Repository navigation
feat(devtools): lab list subcommands and artifact-graph --strict - #454
Conversation
Closes #446. - Add `devtools lab-scenario list` with --json. Lists available scenario sets with their tier-0 exercise count and committed-baseline count. - Add `devtools lab-corpus list` with --json. Lists corpus source kinds available to `generate` and `seed`. - Add `devtools artifact-graph --strict`. Default behavior unchanged (always exit 0); `--strict` exits 1 when uncovered artifacts, operations, or maintenance targets are reported. Closes the discoverability gap surfaced by the lab-claims audit (.agent/scratch/swarm-2026-04-26/lab-claims-audit.md): users discovering lab capabilities used to fail with exit 2 on the missing list verbs. Tests in tests/unit/devtools/test_lab_list_subcommands.py: - list output (human + json) for both lab commands - artifact-graph --strict fails today on uncovered maintenance targets (will flip when those are covered) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 39 minutes and 47 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
## Summary Closes #446. Adds `devtools lab-scenario list`, `devtools lab-corpus list`, and `devtools artifact-graph --strict`. Closes the discoverability gap surfaced by the lab-claims audit. ## Problem The verification-lab surface had two specific gaps per the lab-claims audit (swarm 2026-04-26): - **Missing list subcommands**: `devtools lab-scenario list` and `devtools lab-corpus list` are documented/expected patterns but didn't exist; users discovering scenarios failed with exit 2. - **Silent partial failures**: `devtools artifact-graph` always exited 0 even when its own output reported `uncovered_artifacts`, `uncovered_operations`, `uncovered_maintenance_targets`. CI saw exit 0 and treated the lab as passed. ## Solution ### `devtools lab-scenario list` Lists available scenario sets with their tier-0 exercise count and committed-baseline count. `--json` for tooling. ``` $ devtools lab-scenario list archive-smoke tier-0 exercises: 50 baselines: 50 (tests/baselines/showcase) ``` ### `devtools lab-corpus list` Lists corpus source kinds (`default`, `inferred`). ``` $ devtools lab-corpus list default (default) inferred ``` ### `devtools artifact-graph --strict` Default behavior unchanged (exit 0). `--strict` returns exit 1 when uncovered artifacts, operations, or maintenance targets exist. Currently fails because the realized tree has 5 uncovered maintenance targets. ## Verification ``` $ devtools verify --quick verify: all checks passed (incl. all 8 lints) $ pytest tests/unit/devtools/test_lab_list_subcommands.py -v 5 passed $ devtools lab-scenario list --json { "scenarios": [{ "name": "archive-smoke", ... }] } $ devtools lab-corpus list --json { "corpus_sources": [{ "name": "default", "is_default": true }, ...] } $ devtools artifact-graph --strict; echo "exit=$?" exit=1 # uncovered maintenance targets surface ``` The companion sub-issue ("validate output before returning success" for `lab-corpus generate`) is deferred — verification of generated files requires inspecting parser output and is more naturally a follow-up issue. ## Related - #401 — post-renewal consolidation umbrella. - #410 — scenarios as docs/media/proof catalog (depends on `lab-scenario list`). - #411 — representative provider corpora (depends on `lab-corpus list`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
Closes #446. Adds
devtools lab-scenario list,devtools lab-corpus list, anddevtools artifact-graph --strict. Closes the discoverability gap surfaced by the lab-claims audit.Problem
The verification-lab surface had two specific gaps per the lab-claims audit (swarm 2026-04-26):
devtools lab-scenario listanddevtools lab-corpus listare documented/expected patterns but didn't exist; users discovering scenarios failed with exit 2.devtools artifact-graphalways exited 0 even when its own output reporteduncovered_artifacts,uncovered_operations,uncovered_maintenance_targets. CI saw exit 0 and treated the lab as passed.Solution
devtools lab-scenario listLists available scenario sets with their tier-0 exercise count and committed-baseline count.
--jsonfor tooling.devtools lab-corpus listLists corpus source kinds (
default,inferred).devtools artifact-graph --strictDefault behavior unchanged (exit 0).
--strictreturns exit 1 when uncovered artifacts, operations, or maintenance targets exist. Currently fails because the realized tree has 5 uncovered maintenance targets.Verification
The companion sub-issue ("validate output before returning success" for
lab-corpus generate) is deferred — verification of generated files requires inspecting parser output and is more naturally a follow-up issue.Related
lab-scenario list).lab-corpus list).🤖 Generated with Claude Code