Repository navigation
docs(cli): name the swebench capture flag --no-evaluate - #4418
Merged
Merged
Conversation
#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.
3 of 4 tasks
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.
My own regression from #4416, caught by CI within the hour. The
swebenchcapture 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, andtest_bench_cli::test_the_documented_examples_parse— which argparses every command block incli.mdx— went red onmainand on every open PR.Test plan
pytest tests/unit/eval/test_bench_cli.py tests/unit/cli/test_cli_docs_drift.py— 17 passed (wasSystemExit: 2,unrecognized arguments: --no-grade)🔍 The miss, and the rule it broke
src/gaia/cli.py:2506: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.