R6: refactor + docs reconciliation + de-staging #37
Reference in New Issue
Block a user
Delete Branch "feature/r6-refactor-destage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pre-release phase R6 (
PRERELEASE.md) — behaviour-preserving, in three separately-committed passes.(a) De-staging
Removed
Stage N/TODO-N/(RN)references from code, comments, service READMEs and the current-state docs (ARCHITECTURE / FUNCTIONAL+_ru/ TESTING / UI_DESIGN), rewording narratives to present tense. PLAN / PRERELEASE / CLAUDE keep the stage history. Renamed the only stage-named identifiers (registerStage8→registerSocialOps,registerStage11→registerLinkOps) and splitstage6_test.goby domain (→email_test.go/account_test.go). De-staged the.fbs/.protocomments and regenerated (only the.proto-derived Go docstrings changed; flatc strips schema comments).(b) Docs↔code reconciliation
Full review against the code; the one drift fixed — ARCHITECTURE §3 still said guest-reaping was "deferred (TODO-3)", but it is implemented, so the current behaviour is stated instead.
(c) Structural changes (owner-approved list)
seat/action/score/totalscalars fromOpponentMovedEvent(no reader used them; regenerated FB Go + TS).notifyand the gatewaytranscodeinto a newscrabble/pkg/wirepackage (single definition of the wire layout; both sides map their source types to neutral structs). Field sets verified identical → behaviour-preserving (net +~145 LOC: an anti-drift win for the fiddly mechanics, not a line-count cut).backend/internal/inttest/helpers.go.Excluded by interview: C3/C5 test merges; the
h2cMaxConcurrentStreamssizing (an R7 tuning concern). No schema change → no contour DB wipe.Verification (local, all green)
gofmt/go vet/go buildacross modules; full unit suites; the integration suite (-tags=integration, Postgres via testcontainers);pnpm check+test:unit+build+ the bundle-size gate; Playwright e2e — 72 passed (chromium + webkit).