test_a_small_reply_keeps_the_full_staleness_prose

Tests › tests/test_freshness.py

passed Passed in the packaged run.

What this test is for

Why it exists

The control on the compaction: a mechanism that always compacts would deliver the pointer and never the remedy, and the remedy is the whole value.

Verifies REQ-DDB-MCP-004

Given

  1. full = [{"axis": fr.AXIS_DATA, "message": "x" * 400}]
  2. fitted = QueryTools(lambda: rich_db, lambda: rich_db.parent, lambda: full)._staleness({"a": 1})
→

When

  1. —
→

Then

  1. ✓ fitted equals full

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.

Look up one name: everything the index holds about it · 1 of 226 steps

… 124 earlier steps

callercallercallercallerclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyother filesother filesother filesother filesopt (line 1414)optdossier125. _bounded_names → list125list126. _answered → _staleness126_staleness127. _staleness → _staleness_within_budget127_staleness_within_budget▶ test enters128–129. _answered → _withdraw_definitive128_withdraw_definitive +1 more

… 97 later steps

tests/test_freshness.py:690 · its file's page

What it checks (1)

  1. assert fitted == full not attributed

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)

requirementlinked byimplementers exercised
REQ-DDB-MCP-004catalogunknown