test_a_definitive_negative_is_withdrawn_while_layers_are_derived_stale¶
Tests › tests/test_derived_axis.py
What this test is for
Why it exists
"No callers" from a call graph that has not seen the edit is not a measurement of the edited code. The derived axis withdraws the definitive wording like `schema` does.
Verifies REQ-DDB-INDEX-006
Given
payload = { "note": "No callers. This is a definitive empty result from the database. Do not retry.", }
When
staleness = freshness.notices({"fast": _FAST}, code={})_withdraw_definitive(payload, staleness)
Then
- ✓ payload["note"] contains "NOT DEFINITIVE"
- ✓ payload["note"] does not contain "definitive empty result"
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 6 of 142 steps
… 87 earlier steps
… 42 later steps
2 more
- Build, refresh and check the index · 6 of 153 steps
- `main` (scripts/stage_probe.py) · 6 of 37 steps
tests/test_derived_axis.py:55 · its file's page
What it checks (2)
assert "NOT DEFINITIVE" in payload["note"]not attributedassert "definitive empty result" not in payload["note"]not attributed
Where the product reaches it
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 (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-INDEX-006 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-004 measured