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
Upload metadata lacks structured provenance (lookup version is only in a free-text description; no region, cell/unmapped counts, fill count). FAO can't audit what produced their data.
Build shape (per the epic design contract)
delivery/provenance.py (representation-free): build_provenance(...) -> dict from primitives — lookup_version, region, expected_cell_count, actual_cell_count, unmapped_count (+ fill_count if S2 provides it). No pandas.
Manager: attach the dict to both dsm.upload_data(...) metadata payloads (_save).
Acceptance criteria
delivery/provenance.py pure + pandas-free; unit-tested on the metadata dict.
Both historical + forecast uploads carry the structured fields, sourced from the enricher + S1 coverage (not hardcoded).
Delivered and merged to development via #64 (input-integrity sprint S0–S6). ruff clean, 126 passed / 44 xfailed. Closing — the auto-close keyword did not fire because #64 merged into development, not the default branch. Live-run validation of the residual contracts (C-25 identity name/loa, C-43 enrichment equivalence) is tracked in the risk register and exercised by the go-global run (views-models#127).
Activity
[-]S5 — Structured delivery provenance in upload metadata (C-15, supersedes #12)[/-][+]S5 — Structured delivery provenance invariant (C-15, supersedes #12)[/+]feat(delivery): input-integrity invariant S5 — structured delivery pr…
Polichinel commentedon Jun 26, 2026
Delivered and merged to
developmentvia #64 (input-integrity sprint S0–S6). ruff clean, 126 passed / 44 xfailed. Closing — the auto-close keyword did not fire because #64 merged intodevelopment, not the default branch. Live-run validation of the residual contracts (C-25 identity name/loa, C-43 enrichment equivalence) is tracked in the risk register and exercised by the go-global run (views-models#127).