review: parity guard whole-branch Astra round 1 findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/reviews/CODEX-FINDINGS-parity-guard-branch.md+25 −0
Intent
<paseo-system version="1" kind="agent-message" source-agent-id="c352b3ff-98e2-427d-859c-088309468688" message-id="18a3d7b3-9136-479f-b5ad-37275e1e9520" source-agent-title="Parity guard (slice 3): plan + build + release (controller)"> Parity guard, Task 2: Astra round 3 of 3 is NOT READY, same fault family (registration completeness). A fourth round needs Paul; I recommend no fourth round and a stated scope instead. Your ruling please. What happened since my last message: I built option A (a06cfc26): the console's mux field may be referenced only in registerRoute, the perf.Middleware wrap and its construction; any Handle/HandleFunc anywhere else fails; 12 mutation checks recorded. Astra R3 (docs/superpowers/reviews/CODEX-FINDINGS-parity-guard-T2-R3.md) says the remaining holes are: - build a second ServeMux in NewServer, mount routes on it via another package, and pass it in as `mux: m`; - shadow the `perf` identifier in a nested block; - wrap s.handler with a handler that serves an extra mux; - an embedded *http.ServeMux field, or reflect+unsafe to reach the mux. Astra itself says both P1s share one cause: name filtering cannot prove exclusive ownership of the serving path. My read: every one of these needs deliberately evasive code inside internal/console. The guard's job (spec B2, and the pre-branch test it replaces) is to catch drift: a route added the ordinary way outside the list. Against that, the branch is strictly stronger than main (main's registrar test missed aliases, method values, http.Handle* and external mounts; all now fail). Hostile code inside the console package can do anything a static scan can't see, and review is the control for that. Options: A. (recommended) Cut the exhaustive claim: write the guard's scope in the test's doc comment and in the spec's "Review findings" section ("catches routes added outside routeDecls by any ordinary means; it does not defend against deliberately evasive code in the package, which review covers"), park R3's P1s with that ruling, no fourth round. Cost if wrong: a deliberately disguised route could land unseen, as it could on main today. B. One more cheap tightening without a review round: require `mux: http.NewServeMux()` literally, the perf.Middleware wrap to resolve to the imported package, and s.handler assigned exactly once. Closes R3's first two concrete forms; reflection/unsafe and other contortions stay open, so it still ends at A's statement. C. Ask Paul for a fourth round. Not recommended: the family converges on "prove no hostile code", which a name-based scan cannot do. Unless you say otherwise I will take A (plus B's three cheap checks, since they cost ~15 lines and need no round), and carry on with the whole-branch review now running. </paseo-system>
<task-notification> <task-id>b27q7pidp</task-id> <tool-use-id>toolu_01J9dPCiKChK8Sqqfqkq3Aoy</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/2185be7a-bc2c-4a32-953d-1ee7721363e3/tasks/b27q7pidp.output</output-file> <status>completed</status> <summary>Background command "~/.cache/parity-build/review-branch.sh; echo exit=$?" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 7.78 g CO₂e (945,427 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-FINDINGS-parity-guard-branch.md b/docs/superpowers/reviews/CODEX-FINDINGS-parity-guard-branch.md| new file mode 100644 |
| index 000000000..e9efaed1d |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-parity-guard-branch.md |
| @@ -0,0 +1,25 @@ |
| +No P1 findings in this review’s scope. Two P2 findings: |
| + |
| +1. **P2 — Task 3 / C8: `canary-list` claims parity between different operations.** |
| + [parity/parity.tsv:37](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/parity/parity.tsv:37) marks `canary rm` and browser canary retirement as `both`. However, [canary.go:774](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/canary.go:774) deletes the canary’s instance and leaves its channel. The browser handler explicitly refuses retirement while a host follows that channel ([server.go:6630](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/server.go:6630)). |
| + |
| + **Failure scenario:** A user can remove a running canary through the CLI but cannot perform that operation through the listed console counterpart. |
| + |
| + **Fix:** Mark the combined row `partial` and explain the difference, or split listing, instance removal, and channel retirement into separately classified capabilities. Regenerate the page. |
| + |
| + **Fault family:** Capability equivalence. `both` must describe the same capability on each side. |
| + |
| +2. **P2 — Task 3 / C3: Two operator-only capabilities are counted as customer gaps.** |
| + `apps-show` ([parity.tsv:16](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/parity/parity.tsv:16)) and `email-pause` ([parity.tsv:135](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/parity/parity.tsv:135)) are customer `gap` rows assigned to work packages. The policy-read handler requires `apiSystemRoller` ([apipolicy.go:411](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/apipolicy.go:411)); email pause/resume requires operator status and the mail-operator allowlist ([apimail.go:1472](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/apimail.go:1472)). |
| + |
| + **Failure scenario:** Ordinary customers receive refusals for capabilities presented as available through their CLI. The generated customer totals and backlog include two operator capabilities. |
| + |
| + **Fix:** Change both rows to `operator`, clear their package assignments, explain the restriction, and regenerate the page. |
| + |
| + **Fault family:** Customer-scope classification. Operator capabilities must remain outside customer parity counts. |
| + |
| +I sampled 33 rows across the requested statuses. Static checks confirmed coverage of all 198 non-CLI declarations, no unknown console members or CLI doors in the table, and top-level CLI coverage in both directions. No additional parser/rule defect was identified. Root-package source and infrastructure files are unchanged; Task 2’s security scanners were excluded as instructed. |
| + |
| +Targeted Go tests and `go list -deps .` were blocked by the read-only sandbox. Discussion #734 could not be read because network access was blocked. No files were edited. |
| + |
| +**READY AFTER FIXES** |
| \ No newline at end of file |