A sixth golden directory, never an edit to the five that exist. Its only difference from the SEGMENTED_V1 golden is the added `okf_version` root key -- measured by diffing the two -- which is exactly what the profile is for and nothing else moved. Modelled on tests/test_segmented_golden.py rather than test_golden.py's `materialize_case`, which is Door A only: it drives materialize_bundle from a manifest and this bundle comes through Door B's inbox. The plan's pointer to an "existing goldens list" in test_golden.py is stale -- that file holds only the Door A parametrize, and `ingest-golden-segmented` is not in it either. Door B goldens carrying their own test file is the established pattern, and this one asserts the five priors are untouched from its own side. CROSS-BUNDLE IDENTITY (PM decision B1) is settled BEFORE this pin, not after. Byte-pinning a bundle carrying `okf_version` is where its concept IDs stop being adjustable: a concept ID is bundle-local and stable, identity across bundles is the tuple (bundle_id, concept_id), and there is no cross-bundle link form in v0.2. Asserted -- every concept carries its bundle id, so the tuple is readable from one document, and no foreign bundle id appears anywhere. Two defects in these tests, both found by running them: - `parse_frontmatter` takes a Path and returns the dict; three call sites had it wrong. - The cross-bundle check used `b-golden-segmented` as the foreign id, which is a PREFIX of this bundle's own id. It failed on every file for the wrong reason and would have read as "a cross-bundle reference was emitted". Now a foreign id that is not a prefix, with a known-positive half asserting the bundle does name its own id -- so the check is looking at content that could have carried one. Negative control: changing one byte of the golden's `okf_version` turns the pin red. `okf_version` and `bundle_id` are fixture DATA read from the case, never constants in the test -- the value belongs to catalog (E1). Suite 931 -> 941. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
146 B
146 B
| okf_version | bundle_id |
|---|---|
| 0.2 | b-golden-segmented-okf-v0-2 |