test_a_data_stale_subject_miss_withdraws_the_definitive_claim¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
gh#12 AS REPORTED. A symbol written minutes earlier came back `found: false` as "a definitive negative from the database", in an envelope that SEPARATELY carried a `data` notice saying 39 files had changed since the build. One reply, two incompatible claims — and the note spent its advice sending the reader to check `target`, which was correct all along.
Verifies REQ-DDB-MCP-001 REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
payload = { "kind": "dossier", "subject": "register_looping_anim", "found": False, "note": ( "No dossier for 'register_looping_anim' in this index. This is a definitive " "negative from the database, NOT an error and NOT a malformed call. Before " "concluding the symbol does not exist, check `target` below names the repository " "you meant." ), }
When
tq._withdraw_definitive(payload, [{"axis": "data", "message": "39 file(s) have changed"}])note = payload["note"]
Then
- ✓ note.lower() does not contain "definitive negative"
- ✓ note contains "NOT DEFINITIVE"
- ✓ note contains "missing rather than absent"
- ✓ note does not contain "`target`"
- ✓ note.lower() contains "refresh"
tests/test_mcp_server.py:3793 · its file's page
What it checks (5)
assert "definitive negative" not in note.lower(), ( f"the claim must be withdrawn, not annotated — leaving it in place and appending a " f"hedge is two claims again: {note}" )not attributedassert "NOT DEFINITIVE" in notenot attributedassert "missing rather than absent" in note, "it must name the actual cause: drift"not attributedassert "`target`" not in note, ( f"the withdrawn half carried the misleading advice and must go with it: {note}" )not attributedassert "refresh" in note.lower(), "route, do not disclaim — name the action that fixes it"not attributed
Where the product reaches it
dossier→_answered→_withdraw_definitive(flow)
Call flow
What 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.
Requirements it verifies (5)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-MCP-001 | catalog | unknown |
| REQ-DDB-MCP-003 | catalog | unknown |
| REQ-DDB-QUERY-006 | catalog | unknown |
| REQ-DDB-QUERY-008 | catalog | unknown |
| REQ-DDB-QUERY-009 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-004 measured