review briefs: parity guard Task 2 R3 and whole-branch R1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-T2-R3.md+8 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-branch.md+31 −0
CI passed — run details
Intent
<task-notification> <task-id>a1f0482034841246c</task-id> <tool-use-id>toolu_01HiuNpX61GaiJTv1fH6NWby</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/2185be7a-bc2c-4a32-953d-1ee7721363e3/tasks/a1f0482034841246c.output</output-file> <status>completed</status> <summary>Agent "Implement Task 2: console routeDecls" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Status: fixed in a06cfc26.** The registrar scan now enforces one boundary: the console's `mux` is reached only through `registerRoute`. - **The rule:** in non-test console code, any selector named `mux` fails with "the console's mux is reached only through registerRoute". There are two exceptions: inside `registerRoute`, and the exact `perf.Middleware(...)(s.mux)` wrap in `NewServer`. Setting the field (`mux:`) is allowed only in `NewServer`'s construction. - **No false positives today:** I picked the stricter rule. The only references now are the two in `registerRoute`, the construction, and the wrap. - **Field check:** `TestClaimConsoleMuxHasOneRegistrar` also confirms `Server`'s only `*http.ServeMux` field is the unexported `mux`. A getter would be a reference outside `registerRoute`, so it fails the boundary. - **Round-1 check:** kept. A `Handle` or `HandleFunc` anywhere outside `registerRoute` still fails. - **Fixtures:** `TestRegistrarViolationsRefusesAliases` now plants a clean `NewServer` with the construction and the wrap. It also has six new rejected cases: `instanceupdates.Mount(s.mux, …)`, `m := s.mux`, `s.mux = x`, `f(s.mux)`, a `Mux()` getter, and a `&Server{mux: …}` outside `NewServer`. - **Mutation 12:** the external `Mount` in `NewServer` fails `TestClaimConsoleMuxHasOneRegistrar` and `TestAuthCLIFamilyResolvesOnlyPersons` with `mux referenced at server.go:1946:24: the console's mux is reached only through registerRoute`. I reverted it and added it to the mutations note. - **Tests:** the registrar, alias fixture, CLI door roles and person-only tests pass (`ok internal/console 6.163s`). `go vet` and `gofmt` are clean. - **Report:** round 2 is appended to `task-2-report.md`. Concern still open: the record-write census update in 22012e0a needs the reviewer's approval.</result> <usage><subagent_tokens>298487</subagent_tokens><tool_uses>6</tool_uses><duration_ms>127673</duration_ms></usage> </task-notification>
Attributed to this commit: 7.86 g CO₂e (912,059 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-parity-guard, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-T2-R3.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-T2-R3.md| new file mode 100644 |
| index 000000000..1a4f433de |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-T2-R3.md |
| @@ -0,0 +1,8 @@ |
| +# Review brief: parity guard slice 3, Task 2, round 3 of 3 (scoped, last) |
| + |
| +Repo carlos/platform, branch `design-parity-guard`. Under review: the fix commit a06cfc26 (`git show a06cfc26`) only. |
| +Earlier rounds: R1 `CODEX-FINDINGS-parity-guard-T2.md` (P1 mux alias), R2 `CODEX-FINDINGS-parity-guard-T2-R2.md` (P1 s.mux passed to another package's mount helper; fault family registration completeness; stopping rule 2 triggered). The coordinator was offered A/B/C; option A was built: one boundary, the console's `mux` field is referenced only in registerRoute, the perf.Middleware wrap in NewServer, and its construction; anything else fails. |
| + |
| +First give one line for the R2 P1: resolved, partly, or not, with evidence. Then report only (a) new breakage introduced by a06cfc26 and (b) any remaining way for non-test internal/console code to put a handler on the mux the console serves without registerRoute, given the boundary (consider: replacing s.handler, embedding, reflection, unsafe, a second ServeMux served by the console, the middleware wrap). Since this is round 3: if NOT READY, say whether the P1s share one cause and whether refusing the case up front or cutting the claim would remove them. |
| + |
| +Severity, output and verdict rules are those of round 1's brief. Do not edit files. Do not spawn subagents. Do not run full suites. |
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-branch.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-branch.md| new file mode 100644 |
| index 000000000..39b20a8f2 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-branch.md |
| @@ -0,0 +1,31 @@ |
| +# Review brief: parity guard slice 3, whole branch, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `design-parity-guard`. Under review: the diff `3c38e80a23776f06ebd1eed571979f0d73653002..a06cfc26` (`git diff 3c38e80a23776f06ebd1eed571979f0d73653002..HEAD`), the whole branch. |
| +Authorities: `docs/superpowers/specs/2026-11-09-parity-guard-design.md` rev 3.1 (approved by Paul 2026-11-09), the plan `docs/superpowers/plans/2026-11-09-parity-guard.md` (its "Decisions the builder made" are rulings), and AGENTS.md. Approved as written on this branch; review the code against them. |
| + |
| +You are an independent reviewer. Task 2 (internal/console routeDecls and the security scanners) has its own review (rounds in `CODEX-FINDINGS-parity-guard-T2*.md`); do not re-review its security scanners. Focus on everything else, and on how the parts fit. |
| + |
| +## Fixed: do not re-argue |
| +- Paul's cut: CLI registry and verb enumeration are slice 4; below-top-level CLI words are shape-checked only. |
| +- Nine work packages, IDs as in parity/packages.tsv; region moves in wp-instances, door keys in wp-db-run. |
| + |
| +## What to check |
| +1. `internal/parity`: the parser and `Check` implement spec C1-C4 exactly, each rule with a negative fixture (C4 list, plus C2's two). Find a malformed table that parses and checks clean. |
| +2. C5 (`TestParityCLITopLevel`) uses `docsite.TopLevelCommands` unchanged, both directions, `__` words shape-only. |
| +3. The console coverage test reads `routeDecls` (not one server's registrations), excludes cli kinds by Kind, and fails both ways (missing row; member not a declaration; member that is a cli door), with messages naming the row. |
| +4. The page: generated, counts customer rows only, stale check regenerates and diffs, `make parity-doc` refuses on problems. |
| +5. The seeded table against the code: sample at least 25 rows across areas (both, partial, gap, cli-only, console-only, operator, box-local) and check each status against the CLI dispatcher and console handler. A row that says both where one side is missing, or gap where both exist, is a P2. |
| +6. No root-binary change: nothing in package main changed, `internal/parity` is not in `go list -deps .`, census scope untouched. The AGENTS.md rule says what the spec's Constraints ask. |
| +7. The work-package discussions (#734-#742) link back to their rows (read one with `amadan discuss show carlos/platform 734` if the CLI works for you; otherwise skip). |
| + |
| +## Severity |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity or polish. Follow-up list; never a reason for another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the review open. |
| + |
| +## Output |
| +Findings ranked P1, P2, P3. Each gives the section or task, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant it breaks (its fault family). End with exactly one verdict: **READY**, **READY AFTER FIXES** (no P1; listed P2s fixed without another round), or **NOT READY** (P1s listed). |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |