carlos / platform Public

spec: parity guard round 2 findings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c3c5965dc4ba593f41fef11f9eb4bd5d290a6b79 parent 947801a
1 file changed, +52 −0
  • docs/superpowers/specs/CODEX-FINDINGS-parity-guard-R2.md +52 −0

CI failed — run details

Intent

Human

<task-notification> <task-id>bc2qx3aul</task-id> <tool-use-id>toolu_01LrCQWEXRHqcu8rp54SfiGo</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a1de5273-c148-49b8-8267-3dee9d49c9c1/tasks/bc2qx3aul.output</output-file> <status>completed</status> <summary>Background command "Run Astra round 2 on parity spec" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 34.3 g CO₂e (4,510,757 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/specs/CODEX-FINDINGS-parity-guard-R2.md b/docs/superpowers/specs/CODEX-FINDINGS-parity-guard-R2.md
new file mode 100644
index 000000000..a0aa3e682
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-FINDINGS-parity-guard-R2.md
@@ -0,0 +1,52 @@
+- R1 P1, CLI enumeration: **partly resolved** — existing comparison forms are covered, but the rejection rule still permits unrecognised dispatch.
+- R1 P2, gated console routes: **partly resolved** — static discovery fixes configuration omissions; the runtime cross-check misses disconnected registrations.
+- R1 P2, exclusive membership: **partly resolved** — shared console routes are supported; shared CLI verbs still cannot represent independent capabilities.
+- R1 P2, status structure: **resolved** — the required membership constraints, reasons and negative fixtures are specified.
+
+Reviewed commit `947801a09ea0de572a91b150fc9b94ce484ac630`, round 2 of 3.
+
+1. **P1 — The CLI rejection rule does not close the enumeration boundary.**
+
+ [Builder call 5](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/docs/superpowers/specs/2026-11-09-parity-guard-design.md:128) rejects unrecognised argument comparisons against strings or constants. Dispatch need not contain such a comparison: a handler-map lookup using `args[0]` can introduce commands without triggering that rule.
+
+ Collection-based selection already exists: [move.go:145](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/move.go:145) accepts subcommands through `slices.Contains(offlineVerbs, args[1])`; the eight accepted words live in a [slice variable](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/move.go:1005). They are then carried through a struct to [later dispatch](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/move.go:1495). Supporting the listed comparison forms does not establish completeness across this flow.
+
+ A scanner can satisfy the specified rejection rule while silently omitting a newly introduced lookup-based dispatcher. Require every dispatch-relevant argument flow to reach a recognised parser boundary or fail explicitly. Include collection membership, returned dispatch values and an unsupported handler-map fixture. Alternatively, select the production-consumed registry already offered by the spec.
+
+ **Fault family:** completeness of CLI enumeration — recurs from R1.
+
+2. **P2 — Exclusive CLI membership still loses independent capabilities and classifications.**
+
+ [Builder call 1](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/docs/superpowers/specs/2026-11-09-parity-guard-design.md:92) requires each verb path in exactly one row. Yet [runAppsSet](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/apps_swap.go:163) implements swap policy, interactive access, copies, update defaults and operator-only policy through the same `apps set` path.
+
+ The [seed inventory](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/docs/superpowers/notes/2026-11-09-parity-inventory.md:42) correctly separates these into parity, gap and operator classifications. Combining them into one `partial` row loses independent gap tracking and mixes customer and operator scope. Notes cannot restore separate statuses or counts.
+
+ Allow explicitly shared CLI references across capability rows, with qualifiers describing their flag-level scope. Keep enumeration at verb-path level; retain unique capability IDs and reject duplicate members within each row.
+
+ **Fault family:** capability granularity and faithful parity reporting — recurs from R1.
+
+3. **P2 — The console cross-check accepts routes that production no longer registers.**
+
+ [Builder call 4](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/docs/superpowers/specs/2026-11-09-parity-guard-design.md:112) requires only that runtime routes belong to the static set.
+
+ Delete the call to `registerDemoRoutes` at [authcli.go:546](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/authcli.go:546), leaving its [declaration and registrations](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/apidemo.go:269). Static discovery and the table remain unchanged. Runtime discovery becomes smaller, so the specified subset check still passes despite those routes disappearing.
+
+ Require equality between static declarations and the union of runtime registrations across configurations covering every declaration. An unexercised declaration must fail. Add a negative fixture that disconnects a registration group while retaining its function.
+
+ **Fault family:** completeness of console enumeration — recurs from R1, now affecting removal detection.
+
+4. **P2 — The literal-pattern rule needs an explicit forwarding-helper boundary.**
+
+ [Builder call 4](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/docs/superpowers/specs/2026-11-09-parity-guard-design.md:106) scans every registration call and rejects nonliteral patterns. Existing helpers necessarily forward variables: [cliRoute](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/authcli.go:463), [cliRouteJournaled](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/authcli.go:479) and [cliScopedRoute](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/teamdoors.go:85).
+
+ Applied literally, this rule rejects the current tree. Specify that route declarations are collected at helper callers, with forwarding implementations checked separately. The [existing service-route scanner](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-parity-guard/internal/console/svcroutes_test.go:861) already distinguishes these boundaries. Keep all discovered routes for the runtime comparison, then exclude helper-classified CLI routes from parity coverage.
+
+ **Fault family:** console enumeration’s declaration/forwarding boundary.
+
+The census assumption remains sound for test-only additions and the currently unlinked `internal/docsite` scanner. Production dispatch changes require census approval. Preserve the documentation scanner’s top-level projection when extending it: its existing tests exclude flag aliases and require corresponding documentation headings.
+
+The repeated CLI, console and capability-granularity families trigger stopping rule 2. Before another repair cycle, choose between refusing unsupported cases, reducing the promised coverage, or enforcing each invariant in one place with guard fixtures. I recommend the third option.
+
+No files changed, subagents used, or test suites run.
+
+NOT READY
\ No newline at end of file