test_a_test_run_never_inherits_a_moved_source_fingerprint

Tests › tests/test_freshness.py

passed Passed in the packaged run.

What this test is for

Why it exists

WHAT THIS PROTECTS is the rest of the suite, not `code_identity` itself.

Given

  1. —
→

When

  1. identity = code_identity()
→

Then

  1. ✓ identity["matches_source"] is True

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.

thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 3 of 142 steps

… 83 earlier steps

thread startthread startthread startthread startclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.py_first_build_worker84. _data_model_meta → _meta_section84_meta_section85. db_status → code_identity85code_identity86. code_identity → source_fingerprint86source_fingerprint▶ test enters87. source_fingerprint → package_source_root87package_source_root88. code_identity → package_version88package_version89. db_status → notices89notices90. notices → code_identity90code_identity

… 52 later steps

2 more

tests/test_freshness.py:900 · its file's page

What it checks (1)

  1. assert identity["matches_source"] is True, ( "this test run began with the source tree already disagreeing with the process " "fingerprint, so every build-shaped test in it will refuse — see " "`_pin_source_fingerprint` in conftest" ) observes code_identity via identity

Where the product reaches it

  • index → _index_action → build_or_refresh → code_identity (flow)

Call flow

test_a_test_run_never_inherits_a_moved_source_fingerprint→code_identity

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.

test_a_test_run_never_inherits_a_moved_source_fingerprint · 1 checkscode_identityREQ-DDB-MCP-004 · measured
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.