test_the_public_tool_names_are_frozen¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
README declares MCP tool names COVERED by semantic versioning. Until this test existed that promise could not be kept: every other assertion in this file compares `TIER1_TOOLS` against ITSELF, so renaming a tool — a breaking change for every agent configuration in existence — passed the whole suite silently.
Verifies REQ-DDB-MCP-001 REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
- —
When
- —
Then
- ✓ set(TIER1_TOOLS) equals set(FROZEN_TIER1_NAMES)
tests/test_mcp_server.py:2929 · its file's page
What it checks (1)
assert set(TIER1_TOOLS) == set(FROZEN_TIER1_NAMES), ( "the MCP tool-name surface changed. README declares these names covered by " "semver, so adding one is a MINOR bump and renaming or removing one is a " "MAJOR bump — update this frozen set in the same commit, on purpose." )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 |