carlos / platform Public

plan: parity stock and guard (slice 3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 2ba7ca988add5c25e89cbac20e09b2c27aa674a6 parent 3a9fb8a
1 file changed, +184 −0
  • docs/superpowers/plans/2026-11-09-parity-guard.md +184 −0
diff --git a/docs/superpowers/plans/2026-11-09-parity-guard.md b/docs/superpowers/plans/2026-11-09-parity-guard.md
new file mode 100644
index 000000000..8153682c4
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-09-parity-guard.md
@@ -0,0 +1,184 @@
+# Parity stock and guard (slice 3) Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
+
+**Goal:** A checked-in parity table (`parity/parity.tsv`), Go tests that fail when it and the code disagree, a generated `docs/parity.md`, and the console route registrations turned into one declaration list the tests can read.
+
+**Architecture:** `internal/parity` (new, not imported by the root binary) parses the table, enforces the row rules, renders the page and checks top-level CLI coverage against `docsite.TopLevelCommands`. `internal/console` gains `routeDecls`, a single list production registers from through one loop; the console's coverage test and its rewritten security scanners read that list.
+
+**Tech Stack:** Go (stdlib only: `go/ast`, `go/parser`, `encoding/csv` not needed, line-based TSV).
+
+**Spec:** `docs/superpowers/specs/2026-11-09-parity-guard-design.md` (rev 3.1, binding). Seed: `docs/superpowers/notes/2026-11-09-parity-inventory.md` (a starting point; check every row against the code).
+
+## Global Constraints
+
+- Nothing in package main changes; the root binary must not import `internal/parity`; `internal/docsite` stays unlinked from the root binary. `make census-card` must report no change.
+- Go runs with the sandbox disabled and the default GOCACHE; never set GOCACHE/GOTMPDIR under /tmp. Locally run only touched packages with `-run`; CI runs everything. `gofmt -l .` clean.
+- Never `git stash`. Scratch under `$TMPDIR/parity-build/`, removed at the end. Never bind 0.0.0.0.
+- Commit subjects < 80 chars, body after a blank line, ending with `Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>`.
+- Statuses are exactly: customer `both`, `partial`, `gap`, `cli-only`, `console-only`; outside customer parity `operator`, `box-local`, `auth`, `demo`, `asset`, `internal`.
+- Work package IDs (exactly these nine): `wp-instances` (instances, incl. region moves), `wp-settings` (small settings forms), `wp-schedules-sidecars`, `wp-email-storage`, `wp-cli-verbs` (CLI verbs for team, activity and rename: the console-to-CLI direction), `wp-fleets-relay`, `wp-db-run` (db query/pull, non-interactive run, door keys), `wp-terminal` (browser terminal: `run -it`, `console`), `wp-import` (instance import).
+- Copy: no em dashes in any prose this branch writes (page text, AGENTS.md, notes, discussions).
+
+## Decisions the builder made (spec "left to the builder")
+
+- **Table format** (`parity/parity.tsv`): UTF-8, tab-separated, `#` lines and blank lines ignored, first non-comment line is the header exactly `id area status cli console package mcp note`. `cli` and `console` hold zero or more members separated by ` ; ` (space, semicolon, space; empty field = no members). A member is `text` or `text [qualifier]` (qualifier: everything between the first ` [` and the closing `]` at the end; non-empty). `package` is a work-package ID or empty. `mcp` must be empty in this slice. `id` is `[a-z0-9][a-z0-9-]*`, unique. `area` is `[a-z][a-z-]*`.
+- **Work packages** live in `parity/packages.tsv`: header `id title discussion`, `discussion` an amadan discussion number or empty until filed (Task 4 fills them; empty is a test failure only after Task 4 sets `requireDiscussions` true, see Task 4).
+- **Spec B1 field names.** One field `Pattern` holds the pattern string exactly as registered (`"GET /a/{sqid}/apps/{app}"`, methodless `"/fleet/architecture"`); the HTTP method is its first word when there is one. The handler field is `Handler` (method expression) rather than the spec's second `Method` (a Go struct cannot have two fields of that name). The parity table's console member is the same string.
+- **`Build` for `cli*` kinds** may return any expression (e.g. `s.offlineVerbDoor(offlineVerbSeal)`): the person-only body scan applies to `plain` declarations only, as today. A `plain` declaration's `Build` must be `func(s *Server) http.HandlerFunc { return func(w, r) {...} }`.
+
+## Review Focus
+
+1. A console route that answers only under one configuration (demo, host claim, region HA, moves) must still need a row: the coverage test reads the declaration list, not one server's registrations. Test: Task 3 coverage test iterates `routeDecls`, not `claimEntries`.
+2. A `/api/cli/*` door declared with `Kind: kindPlain` (a bypass of the role gate) must fail the build, exactly as a bypass via `registerRoute` does today. Test: Task 2 scanner fixture "plain decl under /api/cli/".
+3. A plain handler written as something other than a method expression or function literal (e.g. `Build: func(s *Server) http.HandlerFunc { return s.wrap(s.handleX) }`) must fail the person-only scan, not be skipped. Test: Task 2 scanner fixture.
+4. A qualifier-bearing member written with a stray space (`apps set[--x]`) or an empty qualifier (`apps set []`) must be rejected, not parsed as a different command. Test: Task 1 parser fixtures.
+5. A table edited by hand without regenerating the page must fail with the command to run (`make parity-doc`). Test: Task 3 stale check message.
+
+---
+
+### Task 1: `internal/parity`: parser, rules, page renderer
+
+**Files:**
+- Create: `internal/parity/table.go` (types, `Parse`, `Load`, `LoadPackages`)
+- Create: `internal/parity/rules.go` (`Check`)
+- Create: `internal/parity/page.go` (`Render`)
+- Create: `internal/parity/cmd/parity-doc/main.go` (writes `docs/parity.md` from the repo root's files)
+- Create: `internal/parity/table_test.go`, `rules_test.go`, `page_test.go` (fixtures only; the real-table tests come in Task 3)
+- Modify: `Makefile` (target `parity-doc`, added to `.PHONY`)
+
+**Interfaces (Produces):**
+```go
+package parity
+type Status string // the eleven constants StatusBoth ... StatusInternal, values as in Global Constraints
+func (s Status) Customer() bool // both, partial, gap, cli-only, console-only
+type Member struct{ Text, Qualifier string }
+func (m Member) String() string // "text" or "text [qualifier]"
+type Row struct {
+ Line int // 1-based line in the file
+ ID, Area string
+ Status Status
+ CLI, Console []Member
+ Package, MCP, Note string
+}
+type Package struct{ ID, Title string; Discussion int; Line int }
+func Parse(r io.Reader) ([]Row, error) // syntax only; error names the line
+func Load(path string) ([]Row, error)
+func ParsePackages(r io.Reader) ([]Package, error)
+func LoadPackages(path string) ([]Package, error)
+type Problem struct{ Line int; RowID, Msg string }
+func (p Problem) String() string // "parity/parity.tsv:<line>: row <id>: <msg>"
+func Check(rows []Row, pkgs []Package) []Problem // C1 (ids, duplicate members), C2, C3, C4; package ids must exist
+func Render(rows []Row, pkgs []Package) []byte // docs/parity.md bytes, deterministic
+```
+
+- [ ] **Step 1: Write failing parser tests** (`TestParse*`): header mismatch → error naming line; wrong column count → error with line; members split on ` ; `; `apps set [--swap,--swap-concurrency]` → `Member{"apps set","--swap,--swap-concurrency"}`; `apps set[--x]`, `apps set []`, `apps set [a] b`, leading/trailing spaces in a member → error; non-empty `mcp` → error; bad id/area shape → error; comment and blank lines skipped and `Line` still correct.
+- [ ] **Step 2: Write failing rule tests** (`TestCheck*`), one negative fixture per rule, each asserting the Problem message names the row ID and says what to fix: duplicate ID; duplicate member within a row; empty row (no members); `both`/`partial` missing a side; `partial` with empty note; `gap` with members on both sides or neither; `gap` without package or with unknown package; non-gap with a package set; `cli-only` with a console member; `console-only` with a CLI member; `cli-only`/`console-only`/`auth`/`demo`/`asset`/`internal`/`operator`/`box-local` with empty note; unknown status; a member shared by two rows unqualified in one (C2); two equal qualifiers on one member (C2); CLI member word shape: every word of the text (before the qualifier) matches `^(__)?[a-z0-9][a-z0-9-]*$`; console member shape: `[METHOD ]/path` where METHOD is one of GET HEAD POST PUT PATCH DELETE. Console members may be shared without qualifiers (C2 last sentence): positive fixture.
+- [ ] **Step 3: Run** `go test ./internal/parity/ -count=1` → FAIL (undefined).
+- [ ] **Step 4: Implement `table.go` and `rules.go`.**
+- [ ] **Step 5: Page tests** (`TestRender*`): output starts with `# CLI and console parity`, then a generated-file notice naming `parity/parity.tsv` and `make parity-doc`; a counts table over customer rows only (fixture: 2 both, 1 gap, 1 auth → counts show both 2, gap 1, no auth); the one line "Commands below the top level are checked for shape only until slice 4's registry." above the CLI counts; sections per area in alphabetical order, rows in file order, each row a table line with members in backticks; a "Work packages" section listing each package with its gap rows and, when `Discussion` > 0, the discussion number; non-customer rows in a final section "Outside customer parity" grouped by status; output byte-identical across two calls. Pipe characters in notes escaped.
+- [ ] **Step 6: Implement `page.go` and `cmd/parity-doc/main.go`** (`parity-doc [-root dir]`: loads `<root>/parity/parity.tsv` and `<root>/parity/packages.tsv`, refuses to write when `Check` reports problems (prints them, exit 1), writes `<root>/docs/parity.md`). Makefile: `parity-doc:` → `go run ./internal/parity/cmd/parity-doc`.
+- [ ] **Step 7: Run** `go test ./internal/parity/... -count=1` → PASS; `go vet ./internal/parity/...`; `gofmt -l internal/parity`.
+- [ ] **Step 8: Commit** `parity: table parser, row rules and page renderer`.
+
+### Task 2: Console route declarations and the scanners that read them (Astra per-task review)
+
+**Files:**
+- Create: `internal/console/routedecls.go` (types, gates, `var routeDecls = []routeDecl{...}`, `registerDecls`)
+- Modify: `internal/console/server.go`, `authcli.go`, `apidemo.go`, `apidemooperator.go`, `apidemoreports.go`, `apienv.go`, `apiinstancemove.go`, `apimail.go`, `teamdoors.go`, `claim_routes.go` (registrations move to `routeDecls`; group functions `registerDemoRoutes`, `registerDemoOperatorRoutes`, `registerDemoReportOperatorRoutes`, `registerEnvironmentRoutes`, `registerEmailRoutes`, `registerMovesPhase1Routes`, `registerCLIRoutes` are deleted; helpers take a `routeDecl`)
+- Modify tests: `claim_routes_test.go`, `svcroutes_test.go`, `planexempt_test.go` (`billingDoorRoutes`), `teamdoors_test.go`, `demo_gate_test.go`, `demo_claim_ready_test.go`, `demo_e2e_test.go`, `apidemo_test.go`, `apiinstancemove_test.go`
+- Create: `internal/console/routedecls_test.go`
+
+**Interfaces (Produces):**
+```go
+type routeKind uint8
+const ( kindPlain routeKind = iota; kindCLI; kindCLIJournaled; kindCLIScoped )
+func (k routeKind) isCLI() bool
+type routeGate struct{ name string; holds func(Config) bool }
+var (
+ gateDemo = &routeGate{"demo", func(c Config) bool { return c.Demo.Enabled || c.Demo.BoxMode() }}
+ gateHostClaim = &routeGate{"host-claim", func(c Config) bool { return c.HostClaim }}
+ gateNoHostClaim = &routeGate{"no-host-claim", func(c Config) bool { return !c.HostClaim }}
+ gateRegionHA = &routeGate{"region-ha", func(c Config) bool { return c.HostClaim && c.RegionHA }}
+ gateMoves = &routeGate{"moves", func(c Config) bool { return c.MovesEnabled }}
+)
+var routeGates = []*routeGate{gateDemo, gateHostClaim, gateNoHostClaim, gateRegionHA, gateMoves}
+type routeDecl struct {
+ Pattern string // exactly as registered
+ Kind routeKind
+ Gate *routeGate // nil = always
+ Allow svcrole.Set // cli kinds
+ Target scopeTarget // kindCLIScoped
+ Refused func(*Server, *http.Request, Principal, int) // kindCLIJournaled, a method expression
+ Handler func(*Server, http.ResponseWriter, *http.Request) // method expression, e.g. (*Server).handleHome
+ Build func(*Server) http.HandlerFunc // exactly one of Handler, Build
+}
+var routeDecls = []routeDecl{ ... }
+// registerDecls is THE loop: every declaration match accepts and whose gate
+// holds for s.cfg is passed to its kind's helper. NewServer calls it once
+// with a match-all; tests that re-register a group after flipping config
+// call it with a gate match (replacing registerDemoRoutes() etc.).
+func (s *Server) registerDecls(match func(routeDecl) bool)
+func (s *Server) registerRoute(d routeDecl, h http.HandlerFunc)
+func (s *Server) cliRoute(d routeDecl, h http.HandlerFunc)
+func (s *Server) cliRouteJournaled(d routeDecl, h http.HandlerFunc)
+func (s *Server) cliScopedRoute(d routeDecl, h http.HandlerFunc)
+```
+Gates read `s.cfg` at the moment `registerDecls` runs, the same values today's `if` blocks read. The match-all call sits where `s.registerCLIRoutes()` is today (server.go ~2021), after every piece of state the old interleaved registrations needed; move any non-route statement between old registrations above it unchanged. Keep each door's existing comment above its declaration. Keep the `sourceAdmission` special case in `cliRoute`, keyed on `d.Pattern`.
+
+- [ ] **Step 1: Migration, one commit per source file** (spec B6): `server.go`, `authcli.go`, `apidemo.go`, `teamdoors.go`, then the rest. Use a throwaway go/ast rewriting script under `$TMPDIR/parity-build/` if it helps; do not commit it. Intermediate commits must compile (`go build ./internal/console/`); scanner tests may be red until the last migration commit. Commit subjects: `console: declare <file> routes in routeDecls`.
+- [ ] **Step 2: In the commit that removes the last direct call:** change helper signatures to take `routeDecl`; delete the group functions; update test callers (`fx.srv.registerDemoRoutes()` → `fx.srv.registerDecls(func(d routeDecl) bool { return d.Gate == gateDemo })`, likewise moves and claim tests that register a probe door with a `routeDecl{Pattern: ..., Handler: (*Server).handleHome}` through `registerRoute`).
+- [ ] **Step 3: Rewrite the scanners (spec B5)** in `svcroutes_test.go`. `scanCLISource` parses the package as today, finds the `routeDecls` composite literal (fail if absent or if any other `routeDecl{...}` composite literal exists in non-test code), and for each element reads `Pattern` (string literal required), `Kind`, `Gate` (identifier or absent), `Allow` presence, and handler (`Handler: (*Server).X` → `funcs["X"]`; `Build: func(...) ... { return func(...){...} }` → the inner literal's body; anything else recorded as unreadable). It keeps `fset`, `funcs`, `gated []string` (cli kinds' patterns) and `plain []muxDoor` (plain kinds, with the handler body or an unreadable marker), plus new `decls []scannedDecl{Pattern, Kind, Gate string}`. Checks keep their strength:
+ - bypass: a plain declaration whose pattern contains `/api/cli/` fails; a cli-kind declaration not under `/api/cli/` fails; any call to `registerRoute`/`cliRoute`/`cliRouteJournaled`/`cliScopedRoute`/`mux.Handle*` outside `registerDecls` and the helpers (the helpers forward to `registerRoute`; only `registerRoute` calls `mux.HandleFunc`) fails with its position. `TestClaimConsoleMuxHasOneRegistrar` is extended to this (spec B2).
+ - `TestEveryCLIDoorNamesItsRoles`: the matrix stays; `hostClaimDoors`, `regionHADoors`, `movesDoors`, `demoOperatorDoors` become assertions that those patterns' declarations carry `gateHostClaim`, `gateRegionHA`, `gateMoves`, `gateNoHostClaim`; the doors absent from `cliRoles` in each configuration are exactly the cli declarations whose gate does not hold there.
+ - `TestAuthCLIFamilyResolvesOnlyPersons`: over every plain declaration's handler body; unreadable handler fails with "this test cannot see inside it"; the ten named `/auth/cli/` presence checks and the three `cliUser` checks stay.
+ - non-vacuity: a scan finding zero declarations fails first; keep each test's named presence checks.
+ - `billingDoorRoutes` (planexempt_test.go) reads `src.decls`/`plain` instead of `registerRoute` call literals, same ≥8 floor.
+- [ ] **Step 4: Equality test (spec B3)** in `routedecls_test.go`: `TestRouteDeclsMatchRegistrations` builds `NewServer` under the matrix {default; HostClaim; HostClaim+RegionHA; MovesEnabled; Demo enabled (via `demoTestDeploymentConfig`-style config); Demo enabled + HostClaim}; asserts `len(routeDecls) > 0` first; for each config, the set of `claimEntries` of kind `route` equals the patterns of declarations whose gate holds; every gate in `routeGates` is true in at least one config and false in at least one; every declaration is registered in at least one config. The comparison logic is a function `checkDeclRegistration(decls []routeDecl, cfgs []Config, registered [][]string) []string` with unit fixtures: a declaration whose gate is never true → reported; a declaration with a gate not in `routeGates` (disconnected group) → reported; a registered pattern no declaration names (direct registration) → reported.
+- [ ] **Step 5: Mutation checks.** Each of these, applied by hand, must make a named test fail; revert after each; record the list with the failing test names in `docs/superpowers/notes/2026-11-09-parity-guard-mutations.md`:
+ 1. change one `/api/cli/` declaration's Kind to `kindPlain` → bypass check;
+ 2. add `s.mux.HandleFunc("GET /x", ...)` in server.go → registrar test;
+ 3. add `s.registerRoute(routeDecl{Pattern: "GET /y", Handler: (*Server).handleHome}, s.handleHome)` in server.go → registrar test and equality test;
+ 4. give a non-closed cli door `Allow: svcrole.Set{}` → `TestEveryCLIDoorNamesItsRoles`;
+ 5. drop `Gate: gateHostClaim` from a host-claim door → `TestEveryCLIDoorNamesItsRoles`;
+ 6. make `handleCLIWhoami` call `s.store.CLIPrincipal` → `TestAuthCLIFamilyResolvesOnlyPersons`;
+ 7. replace a plain handler with `Build: func(s *Server) http.HandlerFunc { return s.handleHome }` → unreadable handler failure;
+ 8. in a plain `Build` literal's inner body, call `principalFrom` → person-only scan;
+ 9. remove one `/auth/cli/` declaration → named presence check;
+ 10. change `gateDemo.holds` to always false → equality test (gate never true).
+- [ ] **Step 6: Run** `go build ./... && go vet ./internal/console/ && go test ./internal/console/ -count=1 -run 'Route|Registrar|CLIDoor|AuthCLI|Billing|Demo|Team|Claim|Move|Canary|Apply|Scan'` → PASS; then the whole console package once: `go test ./internal/console/ -count=1` → PASS.
+- [ ] **Step 7: Commit** `console: one route declaration list, scanners read it`.
+
+### Task 3: Seed the table; coverage, CLI and stale-page tests
+
+**Files:**
+- Create: `parity/parity.tsv`, `parity/packages.tsv` (nine packages, discussion empty), `parity/README.md` (five lines: what the files are, the rule, `make parity-doc`)
+- Create: `internal/parity/repo_test.go` (real-table tests)
+- Create: `internal/console/parity_test.go`
+- Create (generated): `docs/parity.md`
+
+**Interfaces:** Consumes Task 1's `parity.Load`, `LoadPackages`, `Check`, `Render`; Task 2's `routeDecls`, `routeKind.isCLI`.
+
+- [ ] **Step 1: Seed.** Every non-cli `routeDecls` pattern appears as a console member in at least one row. CLI rows: every row of the inventory's 1a, 1b (customer), 1c (`box-local`), 1d (`operator`), plus the `__` plumbing words (`internal`), each command read against its dispatcher (main.go case → the command's own `switch`/flag set) and corrected where the inventory is wrong; record corrections in the row's note only when they change status. Console-only rows from inventory section 2. Non-customer routes (`/auth/*`, `/static/*`, `/healthz`, box and fleet machine doors under `/api/box/`, `/api/fleet/`, `/api/ses/`, `/billing/webhook`, demo routes) get `auth`/`asset`/`internal`/`demo` with a reason. Gap rows name one of the nine packages. Areas: `apps`, `releases`, `config`, `instances`, `domains`, `data`, `email`, `storage`, `schedules`, `sidecars`, `fleets`, `relay`, `team`, `account`, `billing`, `observe` (logs, errors, analytics, availability, protection, activity), `operator`, `box`, `auth`, `demo`, `platform` (assets, health, webhooks, machine doors), `tooling` (local-only commands: config, secrets genkey, ship...). Use qualifiers per spec C2 for `apps set`, `env set`, etc.
+- [ ] **Step 2: Console coverage test** `TestParityTableCoversConsoleRoutes` (package console): loads `../../parity/parity.tsv`; fails for each non-cli declaration with no row ("add a row to parity/parity.tsv with console member `<pattern>`"); for each console member that is not a declaration ("row <id>: console member `<x>` is not a route the console declares; fix the pattern or remove it"); for each console member that is a cli-kind declaration ("row <id>: `<x>` is an /api/cli door, outside parity"). Non-vacuity: at least 150 non-cli declarations seen.
+- [ ] **Step 3: Real-table tests** in `internal/parity/repo_test.go`: `TestParityTableIsValid` (`Check` returns no problems; at least 100 customer rows); `TestParityCLITopLevel` (C5: `docsite.TopLevelCommands("../../main.go")`; every word is the first word of some CLI member, message "main.go dispatches `<w>` but no row's CLI member starts with it: add a row"; every CLI member's first word is one it returns unless it starts with `__`, message "row <id>: `<w>` is not a command main.go dispatches"); `TestParityPageIsCurrent` (renders and compares with `../../docs/parity.md`; on mismatch: "docs/parity.md is stale: run make parity-doc").
+- [ ] **Step 4: Generate** `make parity-doc`; run `go test ./internal/parity/ ./internal/console/ -count=1 -run 'Parity'` → PASS.
+- [ ] **Step 5: Confirm** the root binary does not depend on `internal/parity`: `go list -deps . | grep -c internal/parity` → 0; `make census-card` → no changed units.
+- [ ] **Step 6: Commit** `parity: seed the table, page and coverage tests`.
+
+### Task 4: AGENTS.md rule, work-package discussions, copy pass
+
+**Files:** Modify `AGENTS.md`, `parity/packages.tsv`, `docs/parity.md` (regenerated), `internal/parity/repo_test.go` (require discussions).
+
+- [ ] **Step 1: AGENTS.md rule** under "Rules this repo has paid for", beside the `docs/site/cli.md` rule: a new CLI command or subcommand, and a new console route declaration, add their `parity/parity.tsv` row in the same branch; closing a gap moves the row to `both` in the branch that builds the missing side; the tests that enforce it; `make parity-doc`.
+- [ ] **Step 2: File nine amadan discussions** (`amadan discuss new carlos/platform -title ... -body -`, type `Feature Request`), one per package: what the package covers, its rows (IDs and a link to `docs/parity.md#<package anchor>` on main), the inventory's size notes. Record each number in `packages.tsv`.
+- [ ] **Step 3: Require discussions:** `TestParityPackagesFiled` fails on a package with no discussion number. Regenerate the page.
+- [ ] **Step 4: Luna copy pass** (codex `-m gpt-5.6-luna`, brief per the large-copy-decks memory: "You are the copy-review gate itself..."), on the page's static prose (`page.go` strings) and the AGENTS.md text. Apply its table verbatim; regenerate.
+- [ ] **Step 5: Run** `go test ./internal/parity/ -count=1` → PASS. **Commit** `parity: AGENTS.md rule and work-package discussions`.
+
+### Task 5: Whole-branch review, census, CI, merge
+
+- [ ] Astra whole-branch review (max three rounds, stop at first round with no P1; stopping rule 2 → escalate to the coordinator). Brief from `docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md` with round history. The repository's security review covers the scanner rewrite (Task 2's Astra review plus `/security-review` of Task 2's diff).
+- [ ] `make census-card` (expect nothing in scope). Full local gate once: `go build ./... && go vet ./... && gofmt -l .` and touched packages in full.
+- [ ] Push to amadan, describe the branch, wait for CI green, `amadan branch merge carlos/platform design-parity-guard -squash -expect <tip> -message "<subject < 80>\n\n<body>"`. Read main's run after.
+- [ ] Tell the agent manager (`paseo send 8a3d302a-...`) that the console refactor rides the next console release; report to the coordinator with rulings and their cost if wrong.