gh#26. Name-based resolution collapsed three unrelated `_classify` functions into ONE graph node, so `dossier` described one of them and then reported the UNION of all three functions' neighbours — 3 of 4 callers fabricated, including a self-edge claiming recursion that belongs to a DIFFERENT module's function. Every fabricated row came back `confidence: exact`, because all three extraction layers resolve by name and therefore all three reached the same wrong function.
Given
db = tmp_path / "collide.db"
_name_collision_db(db)
→
When
d = q.function_dossier(db, "_classify")
caller_names = {c.name for c in d.callers}
→
Then
✓ d is not None
✓ d.file equals "pkg/guidance.py"
✓ len(d.candidates) equals 3
✓ [c.name for c in d.callers if c.edge_class == "call"] equals ["plan_guidance"]
✓ [c.name for c in d.callees if c.edge_class == "call"] equals []
✓ caller_names does not contain "_guard_scope"
✓ caller_names does not contain "plan_merge"
✓ caller_names does not contain "_classify"
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.
assert d is not Noneobserves function_dossier via d
assert d.file == "pkg/guidance.py"observes function_dossier via d
assert len(d.candidates) == 3, "the ambiguity signal must still fire"observes function_dossier via d
assert [c.name for c in d.callers if c.edge_class == "call"] == ["plan_guidance"]observes function_dossier via d
assert [c.name for c in d.callees if c.edge_class == "call"] == [], ( "guidance._classify calls nothing; a self-edge here belongs to scope._classify" )observes function_dossier via d
assert "_guard_scope" not in caller_names, "belongs to scope._classify"not attributed
assert "plan_merge" not in caller_names, "belongs to mcp_config._classify"not attributed
assert "_classify" not in caller_names, "fabricated recursion"not attributed
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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.
and 2 more requirement paths, listed below.
Also reaches 14 requirements
Its run touches their code; that is reach, not proof.