test_envelope_keys_all_survive

Tests › tests/test_wire.py

passed Passed in the packaged run.

What this test is for

Why it exists

A consumer reads the envelope key by key, so `threads: []` must be PRESENT to be read as "none". This is the distinction that broke when elision was applied universally, and the viewer/MCP field-parity test caught it.

Given

  1. —
→

When

  1. out = wire.one(_Envelope())
→

Then

  1. ✓ out is not None
  2. ✓ set(out) equals {"subject", "brief", "threads", "callers"}
  3. ✓ out["brief"] is None
  4. ✓ out["threads"] equals []
  5. ✓ out["callers"] equals []

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.

Look up one name: everything the index holds about it · 5 of 226 steps

… 27 earlier steps

callercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyother filesother filesother filesother filesdossier28. batch_payload → _flatten_subject28_flatten_subject29. _flatten_subject → one29one30. one → _listed30_listed▶ test enters31–34. one → _prune_rows31_prune_rows +3 more35–36. _pruned_row → _absent35_absent +1 more

… 190 later steps

2 more

tests/test_wire.py:89 · its file's page

What it checks (5)

  1. assert out is not None observes one via out
  2. assert set(out) == {"subject", "brief", "threads", "callers"} observes one via out
  3. assert out["brief"] is None observes one via out
  4. assert out["threads"] == [] observes one via out
  5. assert out["callers"] == [] observes one via out

Where the product reaches it

  • dossier → subject_payload → _flatten_subject → one (flow)

Call flow

test_envelope_keys_all_survive→one

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_envelope_keys_all_survive · 5 checksoneREQ-DDB-QUERY-001 · measured
Also reaches 1 requirement

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