test_status_names_the_options_an_operator_stated

Tests › tests/test_tiers.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE VISIBLE STAMP — the owner's condition for allowing the replay at all. A replayed statement means the index carries a policy the repository does not declare, so two operators of one commit can hold different indexes; that is the shape of the defect rejected in gh#352 and it is acceptable only because it is deliberate AND visible. They may differ; never silently.

Given

  1. db = tmp_path / "clew.db"
→

When

  1. write_build_signature( db, options=options_meta( **{ OPTION_ENTRY_PATTERNS: _entry_patterns(argparse.Namespace(entry_patterns=None), {}), SECTION_SHARED_KEY: resolve_document(explicit=STATED_MANIFEST), SECTION_LOCKS: resolve_document(declared=STATED_MANIFEST), } ), )
  2. stated_options(_options_meta(db))
  3. _options_meta(db)
→

Then

  1. ✓ stated_options(_options_meta(db)) equals (SECTION_SHARED_KEY,)

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) · 2 of 142 steps

… 64 earlier steps

thread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyother filesother filesother filesother filestry (line 3260)try_first_build_worker65. _run_build_walked → db_status65db_status66. db_status → _options_meta66_options_meta67. _options_meta → _meta_section67_meta_section▶ test enters68. _meta_section → meta_section68meta_section69. db_status → stated_options69stated_options70. db_status → read_build_signature70read_build_signature

… 72 later steps

2 more

tests/test_tiers.py:758 · its file's page

What it checks (1)

  1. assert stated_options(_options_meta(db)) == (SECTION_SHARED_KEY,), ( "only a tier-1 win is a STATEMENT — a declaration is the repository's own, and " "the built-in floor is nobody's" ) observes stated_options

Where the product reaches it

  • index → _index_action → build_or_refresh → db_status → _options_meta (flow)
  • index → _index_action → build_or_refresh → db_status → stated_options (flow)

Call flow

test_status_names_the_options_an_operator_stated→write_build_signature→options_meta→_entry_patterns→resolve_document→stated_options→_options_meta

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_status_names_the_options_an_operator_stated · 1 checks_entry_patternsstring_listREQ-DDB-CONFIG-001 · measured_options_metaREQ-DDB-CONFIG-006 · measuredwrite_build_signatureREQ-DDB-CONFIG-007 · measured_options_meta_meta_sectionREQ-DDB-MCP-001 · measuredwrite_build_signatureREQ-DDB-PIPE-005 · measured
Also reaches 5 requirements

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