test_every_tool_is_present_at_construction¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
RETIRED AND INVERTED (gh#7). This asserted that query tools "must not exist before a database does", which was the design until it was measured: a tool that does not exist teaches a model that the CAPABILITY does not exist, and because tier-1 appeared MID-SESSION the two tools most worth reaching for were the two least likely to be in a client's eagerly-loaded set. A reporter ran an entire multi-hour session and called neither once.
Verifies REQ-DDB-MCP-001 REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
mcp, _state = servernames = await _names(mcp)
When
- —
Then
- ✓ TIER0 is at most names
- ✓ set(TIER1_TOOLS) is at most names
tests/test_mcp_server.py:519 · its file's page
What it checks (2)
assert TIER0 <= names, "the lifecycle tools must be present"not attributedassert set(TIER1_TOOLS) <= names, ( "the query tools must be present too — a conditionally-absent tool is one a model never " "learns it has" )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 (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 |