Repository navigation
docs(cli): document gaia eval tasks swebench - #4416
Merged
Merged
Conversation
#4400 added the `swebench` suite and the `gaia eval tasks swebench` grading subcommand without a CLI reference section, so test_cli_docs_drift has been failing the Linux and macOS unit lanes on every open PR since it merged. Documents the subcommand alongside the rest of the tasks suite, plus the two flags that only apply to it (`--instances`, `--no-grade`). The allowlist is untouched — the gap is closed rather than excused.
This was referenced Sep 28, 2026
kovtcharov-amd
pushed a commit
to kovtcharov/gaia
that referenced
this pull request
Sep 29, 2026
My own regression from amd#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 - [x] `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`) - [x] Diff is three lines in one file <details> <summary>🔍 The miss, and the rule it broke</summary> `src/gaia/cli.py:2506`: ```python 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. </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #4400 merged this afternoon, the Linux and macOS unit lanes have been red on every open PR in the repo. The cause is one missing section:
gaia eval tasks swebenchexists in the parser but never got a CLI reference entry, sotest_cli_docs_drift::test_every_leaf_command_is_documentedfails everywhere. This documents it, and the lanes go green again.The allowlist in that test is deliberately untouched — its docstring says nothing may be added to it going forward, so the gap is closed rather than excused.
Test plan
pytest tests/unit/cli/test_cli_docs_drift.py— 3 passeddocs/reference/cli.mdx, +13/-0;git diff --name-only -- tests/is empty🔍 What was undocumented
src/gaia/cli.py:2634registers the subcommand, and:2503/:2509add the two flags that only apply to theswebenchsuite:Before:
After:
3 passed.