Skip to content

fix(devtools): add missing list subcommands and tighten exit codes #446

Closed

Description

@Sinity

Discovered by

lab-claims-audit agent (swarm 2026-04-26). Full report: .agent/scratch/swarm-2026-04-26/lab-claims-audit.md.

Problem

Two specific gaps in the verification-lab surface:

Missing list subcommands

  • devtools lab-scenario list is a documented/expected pattern but doesn't exist; users discovering scenarios fail with exit 2.
  • devtools lab-corpus list similarly missing.

devtools mutmut-campaign list and devtools benchmark-campaign list exist and work. The lab commands should follow the same pattern.

Silent partial failures

  • devtools lab-corpus generate exits 0 if batch metadata is printable, even if generated files are invalid or empty.
  • devtools artifact-graph always exits 0, even when its own output reports uncovered_artifacts, uncovered_operations, uncovered_maintenance_targets.
  • devtools lab-scenario verify-baselines confirms output parity but not functional correctness — the audit flags this as scope-mismatch with the help text.

These failures are silent in CI: a user runs the command, sees exit 0, and assumes the lab passed. The actual checking happens in different tools.

Target

Add list subcommands

devtools lab-scenario list           # name, kind, declared targets, status
devtools lab-corpus list             # name, kind, output path, last generated

Both emit human-readable by default; --json produces structured output for tooling.

Tighten exit codes

  • devtools artifact-graph accepts --strict (or default-fail when uncovered items exist).
  • devtools lab-corpus generate validates produced files (parseability, non-empty) and fails on bad output.
  • devtools lab-scenario verify-baselines documents what it does verify (output parity); a separate verify-functional mode (or per-scenario assertion runner) covers behavior.

Acceptance criteria

  • devtools lab-scenario list and devtools lab-corpus list exist; documented in docs/devtools.md (rendered).
  • devtools artifact-graph --strict fails with non-zero on uncovered items; default behavior decided in this issue (tighten by default vs. opt-in).
  • devtools lab-corpus generate validates output before returning success.
  • devtools lab-scenario verify-baselines help text accurately states what it verifies.
  • Tests: each tightened exit-code path has a regression test.

Related

Activity

  1. added
    type:fix
    phase:architecture
    area:devtools
    on Apr 26, 2026
  2. added a commit that references this issue on May 7, 2026
    7816741
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:devtoolsphase:architecturetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions