carlos / platform Public

spec: CLI registry Astra round 1 findings (NOT READY)

Two P1s in the CLI enumeration family (raw dispatchers, lint gaps), three
P2s (corpus, secret exclusions, repeatable flags). Stopping rule 2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 950bce907c3ae1a5414ba01339449f45630db0a9 parent a28fcfa
1 file changed, +65 −0
  • docs/superpowers/specs/CODEX-FINDINGS-cli-registry.md +65 −0

CI cancelled — superseded by a newer push — run details

Intent

Human

<task-notification> <task-id>bk4cyji5q</task-id> <tool-use-id>toolu_01E7vNrqTU56WfdqF1sZ6RZh</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/27979b8d-cc90-4f50-88f6-87ba41433627/tasks/bk4cyji5q.output</output-file> <status>failed</status> <summary>Background command "Run Astra review round 1" failed with exit code 1</summary> </task-notification>

Human

<task-notification> <task-id>bef0i9bs8</task-id> <tool-use-id>toolu_01Pg6fMWMToN7vzXE3QQakTD</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/27979b8d-cc90-4f50-88f6-87ba41433627/tasks/bef0i9bs8.output</output-file> <status>completed</status> <summary>Monitor "Astra round 1 log growth check" stream ended</summary> <event>log size 236 WARNING: proceeding, even though we could not create PATH aliases: Read-only file system (os error 30) Error: failed to initialize in-process app-server client: Read-only file system (os error 30)</event> </task-notification>

Human

<task-notification> <task-id>bnfithein</task-id> <tool-use-id>toolu_019f8XB9FhFSQV11ioTkoL48</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/27979b8d-cc90-4f50-88f6-87ba41433627/tasks/bnfithein.output</output-file> <status>completed</status> <summary>Background command "Run Astra review round 1 unsandboxed" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>b0owv901s</task-id> <tool-use-id>toolu_01B1XbHHNofgJkbmfqfy82ef</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/27979b8d-cc90-4f50-88f6-87ba41433627/tasks/b0owv901s.output</output-file> <status>killed</status> <summary>Background command "Wait for Astra round 1 to finish" was stopped after reaching its background time limit</summary> <note>If the work in progress still needs it, start it again with `run_in_background` and a longer `timeout`. If it already had the longest `timeout` allowed, do not restart it. Either way, report that it was stopped.</note> </task-notification>

Attributed to this commit: 12.8 g CO₂e (1,503,606 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-cli-registry, 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-cli-registry.md b/docs/superpowers/specs/CODEX-FINDINGS-cli-registry.md
new file mode 100644
index 000000000..4291255b0
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-FINDINGS-cli-registry.md
@@ -0,0 +1,65 @@
+- **R3-1: Resolved** — the walk preserves arguments; `Invocation` and the parse strategies cover the three required examples.
+- **R3-2: Resolved** — runnable leaves and explicit leaf coverage replace the contradictory legacy-terminal model.
+- **R3-3: Partly resolved** — ordinary nodes bind paths to dispatch, but raw dispatchers and unchecked temporary exceptions leave gaps.
+
+Reviewed `a28fcfa68ca060884c59a3dbab2e4eb42163ac9e`, round 1.
+
+1. **P1 — B6/D2/F: Raw leaves contradict complete verb-path coverage.**
+
+ [B6](docs/superpowers/specs/2026-11-09-cli-registry-design.md:322) declares `system demos` a raw leaf whose handler remains unchanged. That handler dispatches `reports`, then other verbs, and its reports handler dispatches `resolve`: [system_demos.go:29](system_demos.go:29), [system_demos.go:69](system_demos.go:69), [system_demos.go:164](system_demos.go:164).
+
+ **Failure:** Following B6 projects only `system demos`. D2 then rejects the existing descendant members in [parity.tsv:213](parity/parity.tsv:213). Collapsing that row would instead abandon the promised subcommand coverage. A node cannot also retain those children under A1’s branch-or-leaf rule.
+
+ **Fix:** Separate raw argument parsing from word dispatch. Declare every word-first descendant, including the unnamed default under `reports`, and specify wrappers or shared handlers that preserve the original parsing and error order.
+
+ **Fault family:** Complete CLI enumeration and declaration-to-dispatch agreement.
+
+2. **P1 — E3: The lint misses real dispatch and rejects preserved manual parsing.**
+
+ [E3](docs/superpowers/specs/2026-11-09-cli-registry-design.md:433) detects comparisons of indexed arguments or `Arg()` calls against at least two literals. Existing dispatch uses both a single comparison (`reports`, [system_demos.go:29](system_demos.go:29)) and a local variable copied from arguments (`verb`, [internal/ops/ops.go:33](internal/ops/ops.go:33)). Neither form meets that rule.
+
+ Conversely, the manual flag switch at [system_demos.go:50](system_demos.go:50) matches it. Its literals are flag spellings, not positional enum values, so neither final allowance applies.
+
+ **Failure:** A new subcommand using either missed form can land without a node or parity row. Preserving the manual parser as B6 requires makes the lint fail when `pending` is prohibited. During migration, an unpinned `pending` marker also permits additional cases without checking the registry.
+
+ **Fix:** Specify and test rejection of single-word dispatch, argument-derived locals and dispatch tables. Add a narrowly checked allowance for raw flag parsing. Pin temporary exceptions to their existing cases and bindings so extending one requires registry coverage.
+
+ **Fault family:** Enforcement of the registry as the sole command inventory.
+
+3. **P2 — E1/E2: The corpus omits important paths and is not fully deterministic.**
+
+ [E1](docs/superpowers/specs/2026-11-09-cli-registry-design.md:405) clears every `CARLOS_*` variable, specifies no alias or conditional-node matrix, and converts timeouts into skips.
+
+ **Failure:** `ops host` is never exercised while enabled; its real condition is at [hostclaim_cli.go:35](hostclaim_cli.go:35). Alias and transparent-path regressions can also escape the prescribed cases. A hang can become a skip. Additionally, inherited AWS settings can change stderr before parsing: root emits an alert when scrubbing them at [environment.go:59](internal/rootaws/environment.go:59). Timestamp and path normalization do not remove that difference.
+
+ **Fix:** Require alias and transparent-path cases, both outcomes of every `When`, and an explicit controlled environment for each case. Fail unexpected timeouts; permit only reviewed, predetermined skips.
+
+ **Fault family:** Deterministic and sufficiently complete compatibility evidence.
+
+4. **P2 — C3/C4: The specified checks do not enforce the secret-taking exclusions.**
+
+ [C3/C4](docs/superpowers/specs/2026-11-09-cli-registry-design.md:350) forbid known secret-taking leaves, but validation rejects only required secret flags; the backstop checks flag names and annotations.
+
+ **Failure:** An accidental `eligible` classification for `gate set` passes those checks when its optional `password` flag is correctly annotated and omitted from the schema. The handler still reads a password from stdin: [gate_cli.go:119](gate_cli.go:119), [gate_cli.go:145](gate_cli.go:145). Credential-producing commands can have no suspicious input flag at all; service creation prints its token at [services.go:284](services.go:284).
+
+ **Fix:** Represent sensitive positional/stdin input and credential output at leaf level, make either incompatible with eligibility, and add regression assertions for the explicitly forbidden leaves. Keep the flag-name scan as the supplementary check described.
+
+ **Fault family:** Secrets excluded from connector tools.
+
+5. **P2 — B4: Repeatable flags lose their argument shape.**
+
+ [B4](docs/superpowers/specs/2026-11-09-cli-registry-design.md:307) maps custom values without `Getter` to strings and provides no repeatability annotation.
+
+ `logs --field` uses `multiFlag`, which has only `String` and `Set`: [logs.go:48](logs.go:48), [logs.go:150](logs.go:150).
+
+ **Failure:** A generated schema represents one string and cannot express two independent field filters without an additional handwritten convention, contrary to the schema-generation goal.
+
+ **Fix:** Add checked repeatability metadata or a supported value interface exposing collection shape. Verify that multiple schema values become repeated occurrences while preserving omission and explicit values.
+
+ **Fault family:** Faithful argument-schema projection.
+
+The specified early-phase ordering and `shimHooked` behavior match the current code. Census approval must still assess the implementation; this design review does not establish the blanket “no root-read unit added” claim.
+
+No files changed, subagents spawned, or tests run. Findings 1 and 2 block readiness.
+
+NOT READY
\ No newline at end of file