test_every_tool_is_present_at_construction

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

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

  1. mcp, _state = server
  2. names = await _names(mcp)
→

When

  1. —
→

Then

  1. ✓ TIER0 is at most names
  2. ✓ set(TIER1_TOOLS) is at most names

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

What it checks (2)

  1. assert TIER0 <= names, "the lifecycle tools must be present" not attributed
  2. assert 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)

requirementlinked byimplementers exercised
REQ-DDB-MCP-001catalogunknown
REQ-DDB-MCP-003catalogunknown
REQ-DDB-QUERY-006catalogunknown
REQ-DDB-QUERY-008catalogunknown
REQ-DDB-QUERY-009catalogunknown