Replace internal task tracking (TODO.md, FINDINGS.md) with structured documentation in docs/. Trim CLAUDE.md to agent instructions only. Co-Authored-By: Virgil <virgil@lethean.io>
1.1 KiB
1.1 KiB
CLAUDE.md
Module: forge.lthn.ai/core/go-ws
Commands
go test ./... # Run all tests
go test -race ./... # Race detector (required before commit)
go test -v -run Name ./... # Run single test
go test -bench=. -benchmem ./... # Benchmarks
Coding Standards
- UK English throughout
- SPDX-Licence-Identifier: EUPL-1.2 header in every .go file
go vet ./...andgo test -race ./...must be clean before commit- Conventional commits:
type(scope): description - Co-Author trailer:
Co-Authored-By: Virgil <virgil@lethean.io>
Key Interfaces
Authenticator— implement for custom auth (JWT, OAuth, etc.)HubConfig— configures heartbeat, pong timeout, write timeout, callbacks, authenticatorReconnectConfig— configures client-side backoff and callbacks
Documentation
See docs/ for full reference:
docs/architecture.md— hub pattern, channels, auth, Redis bridge, envelope/loop-preventiondocs/development.md— prerequisites, test patterns, coding standardsdocs/history.md— completed phases with commit hashes, known limitations