Skip to content

docs(cli): name the swebench capture flag --no-evaluate - #4418

Merged
itomek merged 1 commit into
mainfrom
itomek/fix-swebench-flag-name
Sep 28, 2026
Merged

itomek merged 1 commit into
mainfrom
itomek/fix-swebench-flag-name

Conversation

@itomek

@itomek itomek commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

My own regression from #4416, caught by CI within the hour. The swebench capture flag is --no-evaluate; I wrote --no-grade, taken from the flag's help text rather than from the parser. That made the documented example unrunnable, and test_bench_cli::test_the_documented_examples_parse — which argparses every command block in cli.mdx — went red on main and on every open PR.

Test plan

  • pytest tests/unit/eval/test_bench_cli.py tests/unit/cli/test_cli_docs_drift.py — 17 passed (was SystemExit: 2, unrecognized arguments: --no-grade)
  • Diff is three lines in one file
🔍 The miss, and the rule it broke

src/gaia/cli.py:2506:

tasks_run_parser.add_argument(
    "--no-evaluate",
    action="store_true",
    help="swebench: capture the predictions but do not grade them in Docker "
    "(`gaia eval tasks swebench <run_dir>` does it later)",
)

The help text says "grade", the flag says evaluate. I documented the prose.

CLAUDE.md is explicit about this: when an artifact restates what code already knows — CLI flags, enums, routes — introspect the source rather than hand-authoring it. I ran the drift test, which only checks that the subcommand is named, and not the sibling test that actually parses the examples. Running the parent directory would have caught it before the push.

#4416 documented the flag from its help text rather than from the parser, and
the parser calls it `--no-evaluate` (src/gaia/cli.py:2506). The example was
therefore unrunnable, and test_bench_cli::test_the_documented_examples_parse —
which argparses every command block in cli.mdx — went red on main.

Generated the name by reading the parser this time instead of transcribing it.
@github-actions github-actions Bot added the documentation Documentation changes label Sep 28, 2026
@itomek
itomek added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit c064e5e Sep 28, 2026
28 of 30 checks passed
@itomek
itomek deleted the itomek/fix-swebench-flag-name branch September 28, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant