carlos / platform Public

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.

Human

Parity stock (parity/parity.tsv), generated docs/parity.md, and the console guard: routes declared in one list the tests read.

Commits 38
Discussions 0 0 open
Tasks 5/5 done

Activity