design-parity-guard
Slice 3 of agent-first onboarding and console parity (spec docs/superpowers/specs/2026-11-09-parity-guard-design.md rev 3.1, approved by Paul 2026-11-09; plan docs/superpowers/plans/2026-11-09-parity-guard.md).
What changes
- parity/parity.tsv: the parity stock, one row per capability (226 rows; customer rows 146). parity/packages.tsv: nine work packages, each with its amadan discussion (#734-#742).
- docs/parity.md: generated by
make parity-doc, counts per status, grouped by area. - internal/parity (new, not linked into the root binary): parser, row rules (spec C1-C4), page renderer, CLI top-level check against docsite.TopLevelCommands, stale-page check, discussions-filed check.
- internal/console: every route registration (420) moved into one list, routeDecls, registered by one loop with named gates (demo, host-claim, no-host-claim, region-ha, moves). Behaviour unchanged (Astra checked all 420: pattern, handler, wrapper, roles, gates). The security scanners (scanCLISource, TestEveryCLIDoorNamesItsRoles, TestAuthCLIFamilyResolvesOnlyPersons, the registrar test, billingDoorRoutes) read the list; 14 mutation checks in docs/superpowers/notes/2026-11-09-parity-guard-mutations.md. New: TestRouteDeclsMatchRegistrations (runtime register equals declarations whose gate holds, across a config matrix) and TestParityTableCoversConsoleRoutes.
- internal/provision: record-write census (9B8) re-pinned for the moved route literals (approved by Astra, T2-R2).
- AGENTS.md: rule that new CLI commands/subcommands and console route declarations add their parity row in the same branch.
Reviews (Astra, gpt-6-astra high): Task 2 rounds T2, T2-R2, T2-R3 and a whole-branch round, findings in docs/superpowers/reviews/CODEX-FINDINGS-parity-guard-*.md. Stopping rule 2 hit on "registration completeness"; ruling: the registrar guard catches ordinary drift, not deliberately evasive code in the package (review covers that); R3's P1s parked with that ruling (recorded in the spec). Final fix diff check: READY. Root census: no change (make census-card clean). Ships with the next console release.
Parity stock (parity/parity.tsv), generated docs/parity.md, and the console guard: routes declared in one list the tests read.
Discussions
- No discussions on this branch yet.
Tasks 5/5 done
Activity
- paul@keymail.dev pushed 447d697c8 merge main into design-parity-guard
- paul@keymail.dev pushed 945a7cb98 review: parity guard final fix diff check (READY)
- paul@keymail.dev pushed 30f2adecf review brief: parity guard final fix diff check
- paul@keymail.dev pushed 162cc2033 parity: split canary rm from retire; two rows are operator-only
- paul@keymail.dev pushed 1299721bb console: registrar guard covers construction and handler
- paul@keymail.dev pushed 924969c25 review: parity guard whole-branch Astra round 1 findings
- paul@keymail.dev pushed 89693dcc7 review: parity guard Task 2 Astra round 3 findings
- paul@keymail.dev pushed 53ed9f047 review briefs: parity guard Task 2 R3 and whole-branch R1
- paul@keymail.dev pushed a06cfc261 console: the mux is reached only through registerRoute
- paul@keymail.dev pushed 14dbd242a parity: AGENTS.md rule and work-package discussions
- paul@keymail.dev pushed db2410ca9 review: parity guard Task 2 Astra round 2 findings (rule 2)
- paul@keymail.dev pushed 9b5b66960 parity: seed the table, page and coverage tests
- paul@keymail.dev pushed ac12be00f review brief: parity guard Task 2, Astra round 2 (scoped)
- paul@keymail.dev pushed acfe4a88d console: registrar scan rejects every Handle/HandleFunc
- paul@keymail.dev pushed 86bbbdc6c review: parity guard Task 2 Astra round 1 findings (one P1)
- paul@keymail.dev pushed 6361f1d1e review brief: parity guard Task 2, Astra round 1
- paul@keymail.dev pushed b3317546a notes: parity guard Task 2 mutation checks
- paul@keymail.dev pushed 22012e0a8 provision: re-pin the record-write census for routeDecls
- paul@keymail.dev pushed e9d1a97b4 console: person-only scan matches bare principalFrom calls
- paul@keymail.dev pushed 90c76253d console: one route declaration list, scanners read it
- paul@keymail.dev pushed 82d76a691 console: declare apimail.go routes in routeDecls
- paul@keymail.dev pushed 53931f927 console: declare apiinstancemove.go routes in routeDecls
- paul@keymail.dev pushed ede3a2e0b console: declare apienv.go routes in routeDecls
- paul@keymail.dev pushed a9c7d7a57 console: declare apidemooperator.go routes in routeDecls
- paul@keymail.dev pushed d261a11e1 console: declare apidemoreports.go routes in routeDecls
- paul@keymail.dev pushed 5d5075e80 console: declare apidemo.go routes in routeDecls
- paul@keymail.dev pushed 642b42df0 console: declare authcli.go routes in routeDecls
- paul@keymail.dev pushed 6ba8172e9 console: declare server.go routes in routeDecls
- claude agent, operated by paul@keymail.dev opened T5 whole-branch Astra review, census, CI, merge
- claude agent, operated by paul@keymail.dev opened T4 AGENTS.md rule, nine WP discussions, Luna copy pass