test_the_stored_document_is_byte_STABLE_across_key_orderings

Tests › tests/test_tiers.py

passed Passed in the packaged run.

What this test is for

Why it exists

WHAT PINS THE CANONICAL FORM. `test_warm_rebuild_is_deterministic` compares two real builds' `build_meta` VERBATIM, so a serialisation that preserved insertion order would make the stored row a function of how the caller spelled its mapping — an intermittent failure there rather than a useful one.

Given

  1. —
→

When

  1. canonical_document(STATED_MANIFEST)
  2. canonical_document(STATED_MANIFEST_REORDERED)
  3. recorded_document(options_meta(o=resolve_document(explicit=STATED_MANIFEST_REORDERED)), "o")
2 more
  1. options_meta(o=resolve_document(explicit=STATED_MANIFEST_REORDERED))
  2. resolve_document(explicit=STATED_MANIFEST_REORDERED)
→

Then

  1. ✓ canonical_document(STATED_MANIFEST) equals canonical_document(STATED_MANIFEST_REORDERED)
  2. ✓ canonical_document(STATED_MANIFEST) does not contain " "
  3. ✓ recorded_document(options_meta(o=resolve_document(explicit=STATED_MANIFEST_REORDERED)), "o") equals STATED_MANIFEST

tests/test_tiers.py:720 · its file's page

What it checks (3)

  1. assert canonical_document(STATED_MANIFEST) == canonical_document(STATED_MANIFEST_REORDERED) observes canonical_document
  2. assert " " not in canonical_document(STATED_MANIFEST) observes canonical_document
  3. assert ( recorded_document(options_meta(o=resolve_document(explicit=STATED_MANIFEST_REORDERED)), "o") == STATED_MANIFEST ) observes recorded_document

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_the_stored_document_is_byte_STABLE_across_key_orderings→canonical_document→recorded_document→options_meta→resolve_document

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_the_stored_document_is_byte_STABLE_across_key_orderings · 3 checkscanonical_documentREQ-DDB-CONFIG-006 · measured
Also reaches 1 requirement

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