test_schema_staleness_still_withdraws_with_the_missing_layer_wording

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

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

  1. payload = { "kind": "locks", "count": 0, "note": "This is a definitive empty result from the database. Do not retry this query.", }
→

When

  1. tq._withdraw_definitive(payload, [{"axis": "schema", "message": "built by an older pipeline"}])
→

Then

  1. ✓ payload["note"] contains "NOT DEFINITIVE"
  2. ✓ payload["note"] contains "older pipeline"
  3. ✓ payload["note"] contains "missing rather than empty"

tests/test_mcp_server.py:3874 · its file's page

What it checks (3)

  1. assert "NOT DEFINITIVE" in payload["note"] not attributed
  2. assert "older pipeline" in payload["note"] not attributed
  3. assert "missing rather than empty" in payload["note"] not attributed

Where the product reaches it

  • dossier → _answered → _withdraw_definitive (flow)

Call flow

test_schema_staleness_still_withdraws_with_the_missing_layer_wording→_withdraw_definitive

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.

test_schema_staleness_still_withdraws_with_the_missing_layer_wording · 3 checks_withdraw_definitiveREQ-DDB-MCP-004 · measured

Requirements it verifies (5)

requirementlinked byimplementers exercised
REQ-DDB-MCP-001catalogunknown
REQ-DDB-MCP-003catalogunknown
REQ-DDB-QUERY-006catalogunknown
REQ-DDB-QUERY-008catalogunknown
REQ-DDB-QUERY-009catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.