You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The §2 header is byte-pinned by the golden fixture (key order matters — §2's key-order rule), but no vpp code can build one. The sink needs to embed it in every arrow shard.
Work
views_postprocessing/unfao/wire/header.py: CONTRACT_VERSION = "1.5"; build_header(*, sample_count, dtype, target, time_id, run_id, generated_at, provenance, sharding_index, sharding_count) emitting the 13 keys in exactly the §2 pinned order; the three closed sub-objects (id_semantics, provenance, sharding) reject extra keys (§2.1 rule-1 clarification). Mirror scripts/build_wire_fixture.py:_header — do NOT import from scripts (fixture stays canonical).
Acceptance criteria
json.dumps(build_header(...), indent=2).encode() byte-equals the fixture Track-A metadata.json.
Equals the header recovered from the fixture arrow shard (views_frames.io.arrow.load → state['metadata']).
Extra key in any closed sub-object raises, naming the key.
Tests: tests/test_wire_header.py. Oracle: fixture .tap.zip member + arrow shard metadata.
Shipped and proven by run-0.unfao/wire/header.py (75 lines) exists on development with the pinned key order and closed sub-objects, is covered by the wire test suite (and by the ADR-013 §2 falsification guards), and was exercised end-to-end in the first FAO global-land delivery on 2026-07-27. Live API confirmed serving it 2026-07-31 (smoke test ALL PASS, contract=1.5). Closed during the development→main cleanup sweep; reopen if anything here is unfinished.
Activity
Merge pull request #116 from views-platform/feat/hop-b-s2-header
Polichinel commentedon Jul 31, 2026
Shipped and proven by run-0.
unfao/wire/header.py(75 lines) exists ondevelopmentwith the pinned key order and closed sub-objects, is covered by the wire test suite (and by the ADR-013 §2 falsification guards), and was exercised end-to-end in the first FAO global-land delivery on 2026-07-27. Live API confirmed serving it 2026-07-31 (smoke test ALL PASS, contract=1.5). Closed during the development→main cleanup sweep; reopen if anything here is unfinished.