carlos / platform Public

plan: Task 7 Astra review (READY)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7ef0157cfd91fa3781f6f048791dd6b9fe1eaf48 parent 9ca0f62
1 file changed, +9 −0
  • docs/superpowers/plans/CODEX-FINDINGS-cli-registry-words-T7.md +9 −0

CI failed — run details

Intent

Human

<task-notification> <task-id>a54f2b585ae3c796b</task-id> <tool-use-id>toolu_01Y92VVv9vQJD5R7iB5wuJsP</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/27979b8d-cc90-4f50-88f6-87ba41433627/tasks/a54f2b585ae3c796b.output</output-file> <status>completed</status> <summary>Agent "Implement Task 8 parity guard" 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>I've finished Task 8 and committed it as **9ca0f62b** "parity: CLI coverage from the command registry". The usual packed-refs.lock error printed, but `git log -1` shows the commit and the tree is clean. **Tests:** these all pass: `go test ./internal/parity/ ./internal/docsite/ ./internal/clireg/`, `go test . -run 'TestCLIProjection|TestCommandTree'`, and the console's `TestParity*`. Vet and gofmt are clean. `make parity-doc` left `parity/cli.tsv` unchanged and regenerated `docs/parity.md`; customer rows go from 146 to 145 because one gap row moved to operator. From partway through, the sandbox mounted `~/.cache/go-build` read-only, so I ran the Go commands with the sandbox off. TMPDIR was the session dir and GOCACHE was left alone. The `/var/tmp/carlos-test-*` dir from the root-package run was removed. **What was built** - `parity.LoadCLI` and `ParseCLI` are in the new `internal/parity/cli.go`, with `CLIEntry{ID, Audience, Tool, Flags, Enums, Line}`. They check the header, 7 columns, ID shape, duplicates and known audiences. A `-` in the projection becomes empty. - The rule logic is in three functions in the same file: `CheckCLIPaths` (D2 coverage plus the D3 flag check), `CheckCLIAudience` (D5) and `CheckMCPColumn`/`MCPColumn` (D4). - `TestParityCLIPaths`, `TestParityCLIAudience` and `TestParityMCPColumn` replace `TestParityCLITopLevel` in `repo_test.go`. - `internal/parity/cli_test.go` has every fixture the plan lists, all passing. It also has parse-error and MCP fixtures. - `page.go` now says "CLI rows are checked against the command registry (`parity/cli.tsv`)." `page_test.go` checks for the new sentence. - AGENTS.md has the new rule beside the parity rule and the new test names. I also fixed its docsite paragraph, which still said docsite "reads main.go's dispatch switch". `parity/README.md` has the shortened sentence. **Parity rows changed or added** - **`steering`** (gap, wp-instances): members `steering latency ; steering off` became `steering`. `latency` and `off` are arguments of the leaf, not tree nodes. Note left empty, as before. - **`channels-digests`**: was gap, `channels digests`, wp-settings. It is now **operator**, area operator, moved under op-digests. Member: `channels digests [report]`. Note: "Operator only: the report needs a system operator (apiSystemRoller). Shows which channel pointers are digest-signed." - This is forced by the registry: the leaf is Operator, and the read path is operator-gated too (`internal/console/apidigests.go:154`). - **`op-digests`** (operator): `channels digests on ; channels digests off` became `channels digests [on, off]`. Note unchanged. - **`system-box`** (box-local): added `system exec-sandbox-allows-prev ; system runsc-ensure`. Note unchanged. No other leaf lacked a row and no other member failed. In particular, `instances` and its default, `ops`, `system` and the `status` rows already passed. I added no new customer rows, so no console route lookup was needed. **Status I was unsure of:** only `channels-digests`. It changes an existing customer status, which spec D5 says to leave alone ("Today's statuses are unchanged"), but the leaf's Operator audience leaves no other valid choice. Merging it into op-digests would be the alternative. **Decisions the plan didn't settle** - **mcp column now parses.** `internal/parity/table.go:159` used to reject any non-empty mcp column at parse time. I removed that rule so `CheckMCPColumn` can enforce D4, and replaced `TestParseMCPMustBeEmpty` with `TestParseKeepsMCP` in `table_test.go`. - **MCP column format** (`MCPColumn`, `cli.go`): tools in member order, each once, joined with a bare `,`. - **Flags and enums format** (`cliList`, `cli.go`): read as comma-separated, since the projection only writes `-` today. Flag matching ignores leading dashes on both sides (`undeclaredFlags`). The enum part of D3 is not implemented: a word that isn't a flag stays free text. - **Where problems point:** a command with no row is reported against `parity/cli.tsv:&lt;line&gt;` (empty RowID; `Problem.String` in `rules.go`). - **Internal commands** don't need a row. A `__` member must be an existing entry with internal audience. - **Docsite unchanged:** `internal/docsite/clinames.go` still has its own reader for `parity/cli.tsv` rather than using `LoadCLI`.</result> <usage><subagent_tokens>114261</subagent_tokens><tool_uses>36</tool_uses><duration_ms>341184</duration_ms></usage> </task-notification>

Attributed to this commit: 9.17 g CO₂e (1,138,206 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on cli-registry-words, 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/plans/CODEX-FINDINGS-cli-registry-words-T7.md b/docs/superpowers/plans/CODEX-FINDINGS-cli-registry-words-T7.md
new file mode 100644
index 000000000..c08d9d9bc
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-FINDINGS-cli-registry-words-T7.md
@@ -0,0 +1,9 @@
+No P1, P2 or P3 findings in `60ec807c..b1abd1d1`.
+
+Compared against `7f4bdf3a`: root-side arguments and check order are preserved; `router` fallbacks and demos parsing remain equivalent. Census assessment: argument routing only, no root-read added.
+
+The corpus adds 194 cases, including every Task 7 required extra, without changing or removing existing cases. `git diff --check` passes.
+
+Focused Go tests could not start because the sandbox refused creation of Go’s work directory. Runtime replay remains unverified in this review. No files changed.
+
+READY
\ No newline at end of file