test_the_stored_document_is_byte_STABLE_across_key_orderings¶
Tests › tests/test_tiers.py
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
- —
When
canonical_document(STATED_MANIFEST)canonical_document(STATED_MANIFEST_REORDERED)recorded_document(options_meta(o=resolve_document(explicit=STATED_MANIFEST_REORDERED)), "o")
2 more
options_meta(o=resolve_document(explicit=STATED_MANIFEST_REORDERED))resolve_document(explicit=STATED_MANIFEST_REORDERED)
Then
- ✓ canonical_document(STATED_MANIFEST) equals canonical_document(STATED_MANIFEST_REORDERED)
- ✓ canonical_document(STATED_MANIFEST) does not contain " "
- ✓ 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)
assert canonical_document(STATED_MANIFEST) == canonical_document(STATED_MANIFEST_REORDERED)observescanonical_documentassert " " not in canonical_document(STATED_MANIFEST)observescanonical_documentassert ( recorded_document(options_meta(o=resolve_document(explicit=STATED_MANIFEST_REORDERED)), "o") == STATED_MANIFEST )observesrecorded_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_documentWhat 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-CONFIG-006 measured