test_generate_refuses_a_shortcut_answering_model¶
Tests › tests/test_acceptance_identity.py
What this test is for
Why it exists
**THIS IS THE 1.1.0 GAP, NARROWED BY A LATER RULING.** The judge was checked from the first release and the model being GRADED was never asked, so the published grid was judged by `claude-sonnet-4-5-20250929` and answered by `claude-haiku-5-5` with nothing recording it.
Given
FREERTOS = Path(__file__).resolve().parent.parent / "acceptance/targets/freertos/questions.yaml"spent: list[str] = []
5 more
monkeypatch.setattr(cli, "run_cell", lambda cell, *_a, **_k: spent.append(cell.stem()))monkeypatch.setattr(cli, "check_revision", lambda *_a, **_k: None)monkeypatch.setattr(cli, "check_tool_tree", lambda *_a, **_k: None)out = tmp_path / "answers"args = cli.argparse.Namespace( rubric=FREERTOS, models=["sonnet"], replicates=1, seed=7, repo=tmp_path / "repo", out=out, mcp_config=None, timeout=60, resume=False, )
When
cli.cmd_generate(args)
Then
- ✓ cli.cmd_generate(args) equals 1
- ✓ spent is false
tests/test_acceptance_identity.py:267 · its file's page
What it checks (2)
assert cli.cmd_generate(args) == 1, "a client-resolved shortcut was accepted"observescmd_generateassert not spent, f"cells were spent before the refusal: {spent}"not attributed
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
test_generate_refuses_a_shortcut_answering_model→cmd_generateWhat it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-012 inferred