#44: `forward = direction != "backward"` failed OPEN — only the exact lowercase "backward" traced backward, so 'upstream', 'backwards', 'BACKWARD' and every typo silently produced a FORWARD trace while the Chain echoed the caller's own word back, labelling the result with the direction that was asked for and carrying the opposite data. On a causal tool that is the one wrong answer a consumer cannot detect.
for alias in ("backwards", "upstream", "BACKWARD", " Backward "): chain = q.chain_trace(rich_db, "telemetry_report", direction=alias, max_depth=3) assert chain.direction == "backward", f"{alias!r} must normalize, not echo" assert {n.name for n in chain.nodes} == {n.name for n in backward.nodes}
for alias in ("forwards", "downstream", "FORWARD"): chain = q.chain_trace(rich_db, "sensor_poll", direction=alias, max_depth=3) assert chain.direction == "forward" assert {n.name for n in chain.nodes} == {n.name for n in forward.nodes}
for bogus in ("sideways", "up", ""): with pytest.raises(ValueError, match="unknown direction"): q.chain_trace(rich_db, "sensor_poll", direction=bogus)
→
Then
✓ {n.name for n in backward.nodes} contains "sensor_poll"
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.
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.
Also reaches 6 requirements
Its run touches their code; that is reach, not proof.