test_status_names_the_options_an_operator_stated¶
Tests › tests/test_tiers.py
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
db = tmp_path / "clew.db"
When
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), } ), )stated_options(_options_meta(db))_options_meta(db)
Then
- ✓ 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
… 72 later steps
2 more
- Build, refresh and check the index · 2 of 153 steps
- `main` (scripts/stage_probe.py) · 2 of 37 steps
tests/test_tiers.py:758 · its file's page
What it checks (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" )observesstated_options
Where the product reaches it
Call flow
test_status_names_the_options_an_operator_stated→write_build_signature→options_meta→_entry_patterns→resolve_document→stated_options→_options_metaWhat 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.
Also reaches 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 measured
- REQ-DDB-MCP-001 measured
- REQ-DDB-PIPE-005 measured