Repository navigation
Conversation
…ismatch certify-data refuses a regional release that neither was built with nor claims the pinned policyengine-uk. The only Microcosm local-area cut is on 2.132.6, a new one takes 2-13 hours plus a two-build sign-off, and area receipts are uncertified anyway (the certificate covers the national dataset only, #685). So each national re-cut on a newer policyengine-uk had to drop area regions or wait for a dense rebuild. --accept-regional-model-mismatch REASON (UK only) keeps the regional release routed and records regional_certification in the bundle: basis accepted_model_mismatch, both model versions, the reason and area_receipts: uncertified. It refuses an empty reason, a regional release that already covers the version, and a run without a regional release; the core must still be covered. The national certificate is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The note was a Subfleet job artifact, not part of the change. The hub keeps a copy outside the repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
My ruling on the accepted mismatch: keep the evidence, and fix what counts as dropped. I like requiring evidence for this exception, and producing it is cheap. I dry-ran this PR's own
The port dropped the baseline that PolicyEngine/microcosm#1348's comparison keeps: "Columns neither model defines, and inputs absent under both, are not changes." Please:
With those changes the evidence takes about a minute to produce and can be scripted, which is fine for Budget day. Until the new national and dense pair on 2.151.0 lands, we accept the mismatch only to test the machinery. |
Require audited evidence for a UK regional release served on an accepted model mismatch.
This branch stacks #704 (
da2ae8fb) into #699 (afee349d2) with a merge commit. The intended release order remains main → #704 → #699 → certification.Invariants:
--drop-regional-releaseremoves the exception, regional manifest digest, area routes and dense artifact without changing the national certificate.The comparison is ported from Microcosm #1348's
tools/certify_uk_cut_in_policyengine_py.pyand strengthened to inspect byte-verified H5 entity-table columns by period.scripts/audit_regional_input_surface.pyproduces the required JSON;certify-data --regional-input-surface-evidenceconsumes it with the accepted reason. The original regional manifest's raw-byte digest is retained.Budget route: national
microcosm-uk-2024-25-national-20261023T075039Z-a133f37a(2.147.2) and densemicrocosm-uk-2024-25-dense-20261019T000432Z-ee5c2dbe(built on 2.132.6). The exact model-inventory comparison yields 16 added pure inputs, includingsalary_sacrifice_returned_to_incomeandlocal_bus_uncapped_single_fare; the complete list is documented. Actual dense-byte evidence must be generated by certification with authenticated access to the H5. This implementation job has no HF credential and does not certify that pair.Required downstream refresh: update the dashboard's vendored
tests/fixtures/w4/execution_receipt.v1.schema.jsonfrom this repository's regenerated schema.Validation: 1,248 selected cases passed and two skipped across the UK run and three successful US metadata reruns. One unrelated US offline-import integration case was explicitly deselected. Formatting, lint, generated-schema equality and bundle checks pass. Mypy retains the same 24 baseline diagnostics, with zero errors in the new modules. Expanded validation was interrupted after 3,008 reported passes and five skips; it is not claimed complete. Details are recorded in
.job/HANDOFF.md. Regression tests demonstrated failures before implementation. Leave this PR draft.🤖 Generated with Claude Code