Repository navigation
refactor(devtools): fold the command surface into twelve verbs - #4566
Conversation
The catalog carried 46 exposed commands, most of them one check apiece under `verify`/`workspace`/`release`. `gate <name>` is now the single dispatcher over the invariant checks and the table `verify --quick` runs; `render`, `schema`, `bench`, `archive`, `cache`, `smoke`, and `scenario` group the rest. `verify --help` lists `--quick` and `--all` itself; `--inner-help` is gone and `--json` is declared only where a command emits it. `verify coverage` folds into the `--all` corpus run, which is the only run wide enough to judge the committed floor. `release build-package` is deleted; the distribution check keeps its three CI callers as `gate distribution`. `consumer-reachability` reports without deciding the verifier's exit: the incremental base/head diff it reasons over is not stable across rebases. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz
Docs, CI jobs, the AgentCTL descriptor, and the tests that assert command strings now name the new verbs. The doc-commands gate additionally validates `render <surface>`, `gate <name>`, and `scenario <sub>` against their declaring tables, so a renamed gate or surface cannot pass as a bare `devtools render`. `seeded_archive_cache_gc` executes `devtools cache gc --json`; the three verification operations keep their exact `devtools verify [--quick|--all]` invocations. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e8ea7c12b1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…test-cov (#4567) ## Summary `verify --all` no longer passes `--cov`; the CI coverage artifact upload goes with it. ## Problem (evidence) Job `a51519ba` (`verify_all` on 985e0f9) exited 3 after collection: every worker raised `TestmonException: testmon doesn't support simultaneous run with pytest-cov when branch coverage is on` on its first test (`pytest_runtest_protocol` → `setup_coverage`). #4566 folded the coverage floor into the corpus run; `[tool.coverage.run] branch = true` makes testmon refuse. ## Solution Delete the coverage args and the floor reader. The corpus run's tracer belongs to the testmon graph. ## Verification ``` devtools test tests/unit/devtools/test_verify.py tests/unit/devtools/test_verify_runs.py -n 2 # 33 passed ruff, mypy on devtools/verify.py clean ``` The next `verify_all` job is the end-to-end check. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz Co-authored-by: Claude Fable 5.1 <[email protected]>
CLAUDE.md's verification section predates #4566 (twelve verbs); name them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz Co-authored-by: Claude Fable 5.1 <[email protected]>
#4566 (the devtools fold) deleted .config/wt.toml, added by #4565 minutes earlier, so every new worktree since has had no venv and no testmon seed and the daemon's worktrunk-based workspace create cannot provision. Restore the file as merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz Co-authored-by: Claude Fable 5.1 <[email protected]>
|
Closing out open Codex review threads on this PR (evidence checked against master at 64a9bd0):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
devtoolsexposed 46 commands across 30 catalog entries. It now exposes 12 rootverbs:
status,test,verify,why,gate,render,schema,bench,scenario,smoke,archive,cache.Problem
Most of the surface was one check per command, filed under
verify,workspace, orreleaseby accident of who added it. Three consequences,all observed:
devtools verify --helplisted subcommands only.--quickand--all— thetwo ways the command is actually used — were reachable only through
--inner-help, a flag that existed on every command to proxy--helppastClick into the wrapped argparse parser.
--jsononto every command, including the ones thatprint nothing structured, so the help lied about the contract.
verify coverage,release build-package, andrelease verify-distributionwere a fourth invocation of pytest, a Nix wrapper with one caller, and a real
invariant filed under a group that otherwise did nothing.
Solution
devtools/gate.pyholds one table of 21 named checks.gate <name>runs one;verify --quickruns the twelve marked fast;gate --listprints the tablewith the quick and report-only marks. The verifier builds its steps from that
table instead of a hand-kept list, so the two cannot drift.
render [<surface>|all] [--check]replaces tenrender *commands (thesurface registry already existed).
schema,bench,archive,cache, andscenariogroup the remaining leaves;smokeis the one deployment probe.--quick/--allare declared onverifyand forwarded verbatim, so theyappear in its own help.
--inner-helpis deleted everywhere.--jsonisdeclared per command via
CommandSpec.json_flag.verify coveragefolds intoverify --all: the corpus run now carries--covand thefail_underfloor read frompyproject.toml, one source asbefore.
release build-packageis deleted (nothing called it but the motd).release verify-distributionbecomesgate distribution— it has three liveCI callers, so the group went away and the check stayed.
consumer-reachabilityis report-only in the quick gate, per the review: itsverdict is recorded in the receipt and printed, but does not decide the exit.
doc-commandsgate now validatesrender <surface>,gate <name>, andscenario <sub>against their declaring tables. Without this the fold wouldhave blinded the one gate that catches a renamed surface, because those names
moved from catalog entries into command arguments.
--inner-help(every command),--full(a--allalias),--skipon render (subsumed by the surface argument),--readmeand--docs-readme(path overrides on a surface that renders to two committedpaths),
--pr-body(the consumer-reachability waiver, no caller), and theflags that die with the removed commands:
--out-link,--packageonbuild-package,
--pyproject,--ignore-integration,--term-missing.Verification
The one failure is
test_seeded_archive_cache_gc::test_route_preview_apply_and_repeat_apply_use_generated_keys,which is red on
origin/mastertoo: a run of the four affected files atorigin/masterproduced 35 failures acrosstest_index_fast_forward,test_lineage_validation,test_pytest_progress_plugin, and that test; everyfailure remaining on this branch is in that inherited set.
test_checkout_guard,test_cli_wrapper,test_render_webui_design_system, andtest_deployment_smokewere baselined the same way (11 failures, all inherited).
Residuals
deployment_browser_smoke_service,dev_loop_service,live_provider_proof_service) are deliberately notcatalogued as
smokesubcommands. They read AgentCTL-injected ports and adeclared service lease; a test asserts they stay out of the catalog.
smokeis therefore one command, not four as the review sketched.
release verify-distributionwas on the review's delete list, but it hasthree live CI callers (CircleCI
distribution, GitHubci.ymlandrelease.yml). It survives asgate distributionwith the same flags; thereleasegroup is gone.--index-db,--sample-unresolved,--max-sample-stored-messages(live-archive evidenceknobs on
archive lineage-validation),--protected-worktree(a GC safetyknob),
--privacy/--privacy-configon the threeschemawrite commands,--check-drift,--corpus-count,--keep-archive,--scenario,--oracle,--memory. Each is set only by its own parser today, but each names a realcapability with no evidence of retirement; deleting them would narrow the
tool, not tidy it.
verify --allnow runs coverage instrumentation over the corpus. It has notbeen run end to end on this branch; the nightly
verify_alloperation is itsfirst full exercise.
🤖 Generated with Claude Code
https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz