test_every_builders_section_is_reachable_through_the_envelope¶
Tests › tests/test_subject_surface.py
What this test is for
Why it exists
THE THIRD PARITY, and its absence was a SHIPPED defect. `SubjectDossier.section` is what `_flatten_subject` reads to build the MCP payload, and it returned None for the whole `enumeration` kind — so `dossier("ent_decision_t")` over MCP answered `found: false` on a symbol carrying a brief, a body span and its enumerators, which is gh#6's fix being inert on the very surface gh#6 was filed against. Worse than the original: `unresolved_kinds` no longer names `enumeration` (it IS a subject kind now), so the reply lost its coverage-limitation clause and became a BARE definitive negative.
Given
envelope = {"subject", "kind", "also", "chain"}sections = [f.name for f in fields(SubjectDossier) if f.name not in envelope]for name in sections: sentinel = object() built = SubjectDossier(subject="x", kind="x", **{name: sentinel}) assert built.section is sentinel, f"section {name!r} is populated but unreachable"
When
- —
Then
- ✓ sections contains "enumeration"
tests/test_subject_surface.py:74 · its file's page
What it checks (2)
assert "enumeration" in sections, "the section this test was written for"not attributedassert built.section is sentinel, f"section {name!r} is populated but unreachable"not attributed
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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured