review brief: parity guard Task 2, Astra round 2 (scoped)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-T2-R2.md+8 −0
Intent
<task-notification> <task-id>a1f0482034841246c</task-id> <tool-use-id>toolu_01LWtcYhZfoiTRCe4GbGBFhD</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 acfe4a88.** The registrar scan now rejects every `Handle` or `HandleFunc` outside `registerRoute`, whatever the receiver and whether it is called or stored to call later. - **What changed:** that covers the reviewer's `mux := s.mux` alias, `h := s.mux.HandleFunc; h(...)`, and `http.Handle` / `http.HandleFunc` on the default mux, including at package level. Nothing else in the package's non-test code uses either name, so no legitimate code is refused. - **New fixture:** `TestRegistrarViolationsRefusesAliases` in `claim_routes_test.go` checks a clean `registerRoute` (no violations) and six planted bypasses, each of which is reported. - **Mutation 11:** the alias added to `NewServer` fails `TestClaimConsoleMuxHasOneRegistrar` and `TestAuthCLIFamilyResolvesOnlyPersons` with `mux registration outside registerRoute: server.go:1946:2`. I reverted it and added it to the mutations note, which went into the same commit. - **Tests:** the registrar, alias fixture, CLI door roles, person-only and billing door tests all pass (`ok internal/console 6.616s`). `go vet` and `gofmt` are clean. - **Report:** the fix round is appended to `task-2-report.md`. I did not touch the other agent's files. Concern still open: the record-write census update in 22012e0a needs the reviewer's approval.</result> <usage><subagent_tokens>288268</subagent_tokens><tool_uses>7</tool_uses><duration_ms>147274</duration_ms></usage> </task-notification>
Attributed to this commit: 6.76 g CO₂e (835,492 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-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-T2-R2.md| new file mode 100644 |
| index 000000000..848529adb |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-parity-guard-T2-R2.md |
| @@ -0,0 +1,8 @@ |
| +# Review brief: parity guard slice 3, Task 2, round 2 of 3 (scoped) |
| + |
| +Repo carlos/platform, branch `design-parity-guard`. Under review: the fix commit acfe4a88 (`git show acfe4a88`) only. |
| +Earlier rounds: round 1, `docs/superpowers/reviews/CODEX-FINDINGS-parity-guard-T2.md` (one P1: mux aliases bypass the registrar scan; fault family: registration completeness). Brief for round 1: `CODEX-REVIEW-BRIEF-parity-guard-T2.md` (same authorities). |
| + |
| +First give one line for the round-1 P1: resolved, partly, or not, with evidence. Then report only new breakage introduced by acfe4a88 (P1/P2), and any remaining way, in the same fault family, for non-test code in internal/console to put a handler on the console's mux without passing through registerRoute (and therefore through claimEntries and the scanners). Also state whether you approve the record-write census re-pin in `internal/provision/parity_guard_census_test.go` (round 1 found it only relocates three units). |
| + |
| +Severity, output and verdict rules are those of round 1's brief (P1 blocks; P2 fixed without another round; P3 follow-up; verdict READY / READY AFTER FIXES / NOT READY). Do not edit files. Do not spawn subagents. Do not run full suites. |