test_schema_staleness_still_withdraws_with_the_missing_layer_wording¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
The pre-existing behaviour, pinned so the gh#12 change cannot displace it. A schema-stale index may be MISSING WHOLE LAYERS, which undermines an empty row list too — so this one is NOT scoped to a subject miss, and its sentence says "missing rather than empty" where the data case says "missing rather than absent".
Verifies REQ-DDB-MCP-001 REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
payload = { "kind": "locks", "count": 0, "note": "This is a definitive empty result from the database. Do not retry this query.", }
When
tq._withdraw_definitive(payload, [{"axis": "schema", "message": "built by an older pipeline"}])
Then
- ✓ payload["note"] contains "NOT DEFINITIVE"
- ✓ payload["note"] contains "older pipeline"
- ✓ payload["note"] contains "missing rather than empty"
tests/test_mcp_server.py:3874 · its file's page
What it checks (3)
assert "NOT DEFINITIVE" in payload["note"]not attributedassert "older pipeline" in payload["note"]not attributedassert "missing rather than empty" in payload["note"]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