Add the UK national calibration step over ledger-backed target references - #729
Open
MaxGhenis wants to merge 3 commits into
Open
Add the UK national calibration step over ledger-backed target references#729MaxGhenis wants to merge 3 commits into
MaxGhenis wants to merge 3 commits into
Conversation
juaristi22
force-pushed
the
uk-uc-contract-refresh
branch
2 times, most recently
from
August 20, 2026 12:00
051c9ab to
7ff3f16
Compare
…nces Part of #623 and #701: a named national stage that resolves activated references against pinned chronicle facts (any unresolvable activated reference aborts the build), builds the benefit-unit target matrix, and calibrates household weights through microcosm-calibrate's public front door. Activates the UC caseload and UC-in-cap expenditure references at period 2025. Post-calibration aggregate scalers stay out of scope per the open adjudication on #623.
Rebasing over merged #727 (and #730 beneath it): main's TestUnevidencedArms now enumerates the closed set of gates that report evidence_absent when the battery runs unarmed, so the new uk_calibration_reference_coverage gate joins that set. Also squares the indentation of the earlier enumeration update in the national-build terminal-batch test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
juaristi22
force-pushed
the
uk-national-calibrate
branch
from
August 20, 2026 14:52
e077f5d to
9dcc83b
Compare
Adding uk_calibration_reference_coverage to uk/gates.json moves the three vintage pins (policy sha256, gates-manifest sha256, spec fingerprint) and the entry-gates mirror in the data contract, plus the schema-3-style local copies in the data shard's contract tests. The new entry carries no legacy detail schema and contributes no evidence digest, so the legacy-name and evidence-id mirrors are unchanged; the all-passing fixture mirrors the evaluator's activated/resolved/matrix detail block. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The national calibrate step scoped in #623, stacked on #727 (base branch; the first commit here is tree-identical to its head). Part of #623 and #701 — the post-calibration aggregate-scaler adjudication (2026-08-14 comment) stays open and out of scope: no incumbent scalers are ported.
uk_runtime/national_calibration.py: resolves activated references fromuk/target_references.jsonagainst the pinned chronicle facts; an activated reference that cannot compile aborts the build (the policyengine-uk-data#456 silent-drop class is impossible by construction). Builds the benefit-unit-grain target matrix per the reference declarations and calibrates household weights viamicrocosm.calibrate.calibrate()(public API only).dwp.uc.households(caseload, sum of benefit units withuniversal_credit.amount > 0) andobr.universal_credit_in_cap(expenditure), both period 2025 under the resolver's per-reference resolve-at-or-before semantics. Facts: chronicle#184 (fixture-backed here; live resolution needs the released chronicle bundle carrying Add proximal L1 solver path #184 — stated dependency).uk/gates.json).tools/build_uk_national_dataset.pygrows an opt-in calibration flag + diagnostics JSON output; the staging seam's behaviour without the flag is unchanged.No dataset was built; running this on the real staging H5 is a later, gated act. Refs: #707, #727, chronicle#184, policyengine-uk-data#452.
🤖 Generated with Claude Code