test_every_builders_section_is_reachable_through_the_envelope

Tests › tests/test_subject_surface.py

passed Passed in the packaged run.

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

  1. envelope = {"subject", "kind", "also", "chain"}
  2. sections = [f.name for f in fields(SubjectDossier) if f.name not in envelope]
  3. 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

  1. —
→

Then

  1. ✓ sections contains "enumeration"

tests/test_subject_surface.py:74 · its file's page

What it checks (2)

  1. assert "enumeration" in sections, "the section this test was written for" not attributed
  2. assert 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.