test_a_data_stale_subject_miss_withdraws_the_definitive_claim

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

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

  1. 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

  1. tq._withdraw_definitive(payload, [{"axis": "data", "message": "39 file(s) have changed"}])
  2. note = payload["note"]
→

Then

  1. ✓ note.lower() does not contain "definitive negative"
  2. ✓ note contains "NOT DEFINITIVE"
  3. ✓ note contains "missing rather than absent"
  4. ✓ note does not contain "`target`"
  5. ✓ note.lower() contains "refresh"

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

What it checks (5)

  1. 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 attributed
  2. assert "NOT DEFINITIVE" in note not attributed
  3. assert "missing rather than absent" in note, "it must name the actual cause: drift" not attributed
  4. assert "`target`" not in note, ( f"the withdrawn half carried the misleading advice and must go with it: {note}" ) not attributed
  5. assert "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

test_a_data_stale_subject_miss_withdraws_the_definitive_claim→_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_a_data_stale_subject_miss_withdraws_the_definitive_claim · 5 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.