test_an_experimental_section_is_tolerated_and_ignored¶
Tests › tests/test_declaration.py
What this test is for
Why it exists
An `x-` section neither refuses nor reaches the build.
Given
(tmp_path / ".clew.yaml").write_text( "x-future-thing:\n whatever: 1\nthread_patterns:\n spawns:\n - {name: worker}\n" )
When
data = load_declaration(tmp_path)
Then
- ✓ data contains "thread_patterns"
- ✓ [key for key in data if key.startswith("x-")] is false
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) · 9 of 142 steps
… 99 earlier steps
… 14 steps between
… 5 steps between
… 3 later steps
2 more
- clew — `main` (clew/cli.py) · 9 of 400 steps
- Build this wiki from the index · 8 of 400 steps
tests/test_declaration.py:455 · its file's page
What it checks (2)
assert "thread_patterns" in data, "the known sections must still be read"observesload_declarationviadataassert not [key for key in data if key.startswith("x-")], ( f"an experimental section reached the build, which is worse than refusing it: {data}" )observesload_declarationviadata
Where the product reaches it
main→propose_main→propose→build_context→load_declaration(flow)
Call flow
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.
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-WIKI-054 inferred