Repository navigation
Ingest the Autumn Budget 2026 harvest (tranche 2 of #230) - #247
Merged
Merged
Conversation
We register each key tranche 1 proposed in data/uk/ab2026_measures.json (104 -> 190 measures) and fold none: no proposed scope matches a registered key, or another proposed key, line for line (rule 3). We rename one key as we register it (review A's RB-8). pipeline/ab2026_key_decisions.py records each decision with its scope and verdict, and the registry builder appends one entry per key. AB2025's rows carry their registry key in measure_key, and the contract checker rejects a registered key left in proposed_measure_key, so pipeline/apply_ab2026_key_decisions.py moves the key on 973 rows in ten families and writes KEY_DECISIONS.md. It changes nothing else in a row. We re-pin COUNTS.json and regenerate PROPOSED_KEYS.md, and the Table 6.2 stager now writes the registered keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FxoZQ5h8QKCGQq2By
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The OBR words 14 revenue rows in prose ("positive = net cost",
"positive = spending reduction"), and 12 rows on other metrics state
their direction in words signs.py didn't read. signs.py now reads 23 of
them as same or opposite. It declares three as a stated reason no sign
applies: the OBR's behavioural erosion of the bank surcharge's yield,
business rates flowing to local government, and a bound on a CPI effect
with no direction.
The fixture now pins 16 more (metric, convention) pairs as same or
opposite. Main's and tranche 1's signs.py read all 29,894 of main's
exported rows as this version does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwQq6FxoZQ5h8QKCGQq2By
policyengine-core adds variables in glob order, which differs by filesystem, so build_ab2025_registry.py --check failed here before this change. We sort them, as #231 did for AB2026 (R1). Regenerated at policyengine-uk 2.89.2 (policyengine-core 3.34.5), the registry changes only the variable lists of 37 name searches; every count stays the same, and --check and --resolve pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FxoZQ5h8QKCGQq2By
scorecard_db/ingest_uk_ab2026.py turns each of the 5,952 staged rows into a claim or a tallied drop: 4,717 claims and 1,235 drops under 15 reasons, pinned per family in ingest_uk_ab2026_expected.json against COUNTS.json. It reuses ingest_uk_ab2025's helpers and keeps its order of drops, its dispositions, worlds, macro verdicts, twin merge and pe_gap verdicts. Where AB2026 differs, we: - decide the 70 metric names AB2025's tables don't hold, with Table 6.2's cash effects on cash_requirement_change; - put a percent row with a GDP denominator on percent_of_gdp; - keep each Table 6.1 or 6.2 claim once and tally its 423 twins in the costings and red book, recording each under also_printed_in; - move OBR row 2740's continued fuel duty freeze to revenue_change, as RF states it, and tally three rows scored against worlds their producer names once; - give a Table 6.4 recosting no verdict, since AB2025's registry states its verdicts at 2.89.2; - hold back TPA's comparison-country rows from the page. We register the OBR's pre-measures October 2026 world, as AB2025 registered November 2025's, add the aliases and the one relationship the claims need, and teach signs.py three phrases the remapped claims use. Main's signs.py still reads all 29,894 of main's exported rows the same. The tests pin the accounting, keys and verdicts, one claim per identity, each claim's sign reading and determinism, with Hypothesis properties on samples, row order, the twin rule and the share-of-GDP rule, and a differential run of AB2025's ingest against origin/main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FxoZQ5h8QKCGQq2By
Regenerating data/uk/ab2025_measures.json with sorted variables reorders the name searches in 212 AB2025 pe_gap rows of data/populations.json, and breaks tests/test_uk_replay_legacy.py's byte pin on the registry. The sort is Max's call, so we leave main's builder and registry as they are and report it in the hand-off. This reverts commit 640bdd3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FxoZQ5h8QKCGQq2By
With the name-search sort reverted, AB2025's pe_gap results match main too, so the differential test now compares every table exactly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FxoZQ5h8QKCGQq2By
Contributor
Author
|
Ready for hub review Head: Items
Tests
Judgment callsThe PR description lists each call with the alternative we rejected:
For Max
What we couldn't do
Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Fux9sYQGvhSFVyJKz
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Fux9sYQGvhSFVyJKz
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Fux9sYQGvhSFVyJKz
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Give HM Treasury and us the verbs that columns, notes and rows held (findings 14, 25, 26, 30, 33), and state the keys #247 registers for Table 6.2 line 6 and its total row (section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Name who acts where rules, releases and rows held the verb (findings 1, 24-27, 33), and state the option key #247 registers (section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Return our readings to us and the Welsh Government's figures to it, state the Barnett key #247 registers, and join the clipped runs (findings 1, 10, 11, 19, 23, 25, 26, 33; B7; section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Restore our "only" on the actual-ANI costing, give the fetches back to the lane, name the #207 file behind parents_bunching, and state the seven option keys #247 registers (findings 1, 9, 24-28, 31, 33; B1; section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Give the 4 November edit back to readers, restore "a single line" and what we left out, and state the 14 group keys #247 registers (findings 1, 4, 5, 16, 17, 23-27, 33; section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Return the p.41 judgement to us, give rules' verbs to us, and state the three keys #247 registers with today's tally of 79 keys on 595 rows (findings 1, 23-27, 30, 31, 33; B3; section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Restore the chart-label logic and the comment's reference, settle the £4.4bn periods from rows 34, 54 and 127, and state the 19 keys #247 registers on 200 rows (findings 1-3, 15, 24, 25, 27, 30-33; B2; section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Restore the conditions and attachments the rewrite moved, rewrite the key table's cells with actors, and state the 29 keys #247 registers with today's tally of 128 keys on 2,742 rows (findings 1, 7, 8, 18, 21, 23-25, 27, 28, 30, 32, 33; B4; section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Fix the pubs-relief and line 47 attachments, restore the lane's fetch, and state the 21 keys #247 registers, with the welfare fraud key under its new name (findings 1, 22, 24-26, 28, 29, 31-33; section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Give the first lane's 29 October choices to the lane in the past tense, add today's per-deck counts, cut the label openers and the defensive clauses, and state the four keys #247 registers (findings 1, 13, 20, 23-26, 29, 30, 32, 33; B8; section D). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6Hz6VzBiZKpP6s4opP
Contributor
Author
|
Ready for hub review. Items A to D have all landed. They change text and merges only: no claim, count or staged row moved. Head: A. Merge
B. The ingest's docstring (
|
Rows and keys no longer carry or sit. No code path changes: only comments, docstrings, one sentence the key decisions' render writes and one problem message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6H2GSz1M5dJa7nNNpB
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6H2GSz1M5dJa7nNNpB
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6H2GSz1M5dJa7nNNpB
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6H2GSz1M5dJa7nNNpB
17 tasks done
GPT-6.1 Sol and a cloud session reviewed 589f822, and both requested changes. - We adopt IFS row 46, £80 from January 2027's one-off Household Energy Payment, on `average_household_income_change` in `gbp_per_household`. The ingest writes 4,687 claims and 1,265 drops, and the 3,171 pe_gap verdicts don't change. - The preservation test now checks statistic, horizon, `component_horizon` and the estimate kind. - The ingest raises if a reviewed twin and its Table 6.1 cell differ in key, in magnitude beyond the red book's last printed digit, or in year outside Ukraine's entry. A test pins all nine reviewed rows and their cells. - The merge tie-breaker reads every primary publication field and leaves out `also_printed_in`. - We rewrote the drop reasons that misdescribed their rows, gave AB2026 its own text for `no_registered_metric` and `mtr_no_registered_metric`, and removed the promise that we score each restated figure under its originator. - We moved the actions in the generated reasons, `KEY_DECISIONS.md` and the registry's `why` strings to their actors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Nov 5, 2026
Merging tranche 2 at 0193b91 brought IFS row 46 to the stager, because #247 scores it on average_household_income_change. IFS averages the Household Energy Payment across households in England, and we publish an average across all UK households, so we tally the claim under a 16th written reason. We also add the Universal Credit limit to the Carer's Allowance rows, name the actors in the reasons and docstrings, and raise on a named OBR line under another sign convention. The tests now compare each row's whole annotation list, reject claims of another geography or unit or on the OBR costings lane, execute vendor, and rederive each counterpart from the producer's sign convention. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n guards The OBR states the continued fuel duty freeze's effect on public sector net borrowing, and README rule 10 lists it among the four policies it states so. We remove the row's move to revenue_change, so it takes the macro verdict under #55 and adds one pe_gap verdict: 3,172. Claims and drops stay at 4,687 and 1,265. We remove the sign phrase and fixture pair that move needed. The reviewed-twin guard binds Ukraine's year exception to its three rows and table cell, reads only "£N million" or "£N billion", and rejects a value its print doesn't state. The preservation test now compares every staged condition, and the tie-breaker test now covers each harvested publication field in both orders. We also fix one docstring's account of which printing takes a repetition, and give actors to the remaining reasons and comments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Nov 5, 2026
…ctors - Restore the five minus signs the OBR prints on the savings and property income tax rows, and split the sentences over 40 words. - State that OBR row 2740 stays on the borrowing metric, as #247 now does. - Search all 12 notes for documents, tables, rows, pages and keys acting as subjects, and give the verb to the producer or to us. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Nov 5, 2026
#247 keeps OBR row 2740 on the borrowing metric, adding one pe_gap verdict. No counterpart, claim or tally in this tranche moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…scape - Compare each staged condition with the claim. A verbatim field now counts only on geography, income_group and program, beside the registered name, so a replaced program or an invented verbatim field fails the test. - Record a registered program's staged text when its canonical name differs. No staged program takes this path, and no claim changes. - Point the Ukraine test at an unchanged copy of table row 252, so removing only the target comparison fails it. - Refuse misplaced commas in a printed amount. - Give the remaining docstrings their actors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OBR registers NI as Northern Ireland, so the claim must hold the registered name with the staged text beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Nov 5, 2026
#247's last review changed its preservation test helper, the ingest's printed-amount regex and its branch for registered programs. No claim moves, so no counterpart, tally or unanswered row in this tranche moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
pushed a commit
that referenced
this pull request
Nov 5, 2026
…p ci] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6GvWR7vNQtomhFhHkb
MaxGhenis
marked this pull request as ready for review
November 5, 2026 16:54
Contributor
Author
|
Merged at
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com |
This branch was successfully deployed
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.
In tranche 2 of #230, we register the 86 keys we proposed in tranche 1, settle #231's pre-ingest items and ingest the Autumn Budget 2026 harvest. We branched from #231, which merged as
f6edbdf6, and retargeted this PR tomain. In tranche 3 we add PolicyEngine counterparts to these claims.Changes
Keys
pipeline/ab2026_key_decisions.pyrecords a decision for each proposed key: its scope from the family's NOTES.md, its kind and its registry verdict.package_ofthose keys when we record every leg in NOTES, and the builder computes its verdict from them. We build 21 of them from Table 6.1 lines andpackage_non_scorecard_decisionsfrom two measures with no line. The builder assigns twoexpressible, ninepartialand the other 11not_expressible, because the engine expresses none of their legs.receipts_oftheir lines. A run gives each leg's whole effect and not its receipts head, so the builder assignspartialto the two groups with an expressible leg andnot_expressibleto the other two.package_ofunder theproducer_scopeconstruction. The builder assignspartialto the 16 that contain registered measures andnot_expressibleto the other 17, which fall outside the household model.ab2026__package_parliament_welfare_fraud_and_error_savingsasab2026__package_welfare_fraud_and_error_savings_in_forecast(review A's RB-8). In red book paragraph 5.17, HM Treasury counts this Budget's measures with those already in the forecast and names no Parliament, and we keep the old name in the entry'sproposed_as.proposed_measure_key, sopipeline/apply_ab2026_key_decisions.pymoves the key intomeasure_keyon 973 rows in ten families and drops the condition. It changes nothing else in a row, and it writes each file in the stagers' format.COUNTS.jsonwithpipeline/harvest_counts.pyand regeneratedPROPOSED_KEYS.mdwith no keys.KEY_DECISIONS.mdfrom the rewritten rows, with every key's decision, verdict, reason, scope and rows by family and row number.Pre-ingest items from #231's plan
signs.pyleft 26 staged rows, under 19 conventions, unrecognised. This version reads 23 of those rows, under 16 conventions, as same or opposite. It reads the other three conventions as stating that no sign applies: the OBR's behavioural erosion of the bank surcharge's yield, business rates flowing to local government, and a CPI bound with no direction.signs.pyalso reads the phrases on rows whose metric the ingest decides: Table 6.2's cash inflow and the red book's "saving or gain".tests/fixtures/ab2026_ingest_sign_readings.json.signs.pyread all 29,894 of main's exported rows (data/populations.jsonanddata/populations-pmd/) as this version does.percentrow with a GDP denominator onpercent_of_gdp, the unit the OBR and TPA use. We stage 33 such rows from IFS, and the ingest drops the 32 that restate the OBR before any metric applies. It drops IFS's own 0.2% tax change, with the OBR's and TPA's shares, as macro-fiscal.publication.also_printed_in, and tallies the 432 repetitions ashmt_figure_staged_twice.REVIEWED_TWINS. In Ukraine's entry, we preserve the red book's "this winter" while identifying the matching Table 6.1 cell as 2026-27.financial_transaction_cash_impact(60 Table 6.2 rows and one costings row) oncash_requirement_change, the metric we stage for the OBR on row 2684.decisions_effect_on_borrowing, because the OBR states the option's effect on public sector net borrowing. We apply the macro verdict under OBR published economic + behavioural effects of policy: the Scorecard entry point for PolicyEngine Macro members #55.revenue_change, and drops RF's restatement of them in rows 385–390 under Ingest the two harvested-but-unused UK think-tank families: IFS (268) + Resolution Foundation (71) #86 before any metric applies.build_ab2025_registry.py's variables, as we did for AB2026 in Add the Autumn Budget 2026 registry and harvest (tranche 1 of #230) #231, and regenerated the registry at 2.89.2. In the registry we changed only the variable lists of 37 name searches. We recorded in640bdd3's message thatbuild_ab2025_registry.py --checkand a--resolverun passed, but not which registry that run resolved. We also reordered the annotations of 212 AB2025 pe_gap rows indata/populations.jsonand broke the registry's byte pin intests/test_uk_replay_legacy.py. We reverted the sort here, and in Sort the AB2025 registry's name searches #251 we sorted the variables on main, with the regenerated feed and a new pin.The ingest
scorecard_db/ingest_uk_ab2026.pyturns 5,952 rows into 4,687 claims and 1,265 tallied drops. We pin the counts per family iningest_uk_ab2026_expected.json, andingest_verdictswrites 3,172 pe_gap results and diagnoses.The ingest reuses
ingest_uk_ab2025's helpers for its order of drops, its dispositions, drop reasons, units and conditions, its engine and world checks, the macro verdict (#55), the claim-id gate and the pe_gap verdict rows. Dropping restated rows first stops a restated figure from landing on a registered metric.The AB2026 ingest adds these steps:
DISPOSITIONS_AB2026andDROP_BY_NAME_AB2026: two adoptions and 64 drops.ROW_METRICSorROW_DROPS, and the ingest raises if a stager moves the row. We assign IFS row 46 its per-household unit throughROW_UNITS.merge_republicationsmerges two printings of one claim by one producer, as in AB2025, and here it merges six pairs: one red book count and five RF figures. It keeps the printing with more digits and breaks a tie on the printing's provenance, so row order never decides which printing a claim cites.advance_laneswith the counterparts in tranche 3.We register the OBR's pre-measures October 2026 world in
baselines.py, as AB2025 registered November 2025's. We also add the aliases the claims use and a held-out relationship for Citizens Advice, the one new producer whose claim reaches the DB.Invariants (tested)
read = ingested + droppedholds per family and in total, against the 5,952 rowsCOUNTS.jsonpins, with a reason of over 80 characters for each drop. Hypothesis samples the harvest at any share and requires the identity for every sample, by family and by reason.not_expressibleunder OBR published economic + behavioural effects of policy: the Scorecard entry point for PolicyEngine Macro members #55. We give 408 claims no key: income levels and growth paths, earlier policies, and other quantities no producer ties to one measure, plus eight macro-fiscal claims, which take the macro verdict.signs.classify. It flags any claim within 5% of a Table 6.1 or 6.2 claim on its key and metric, in any year. The test requires each hit to appear in the reviewed twin table or a reasoned allow-list, and we allow none.value_kind, estimate kind, every staged condition, period, time basis, quote, table and attribution, and it pins the one unit the ingest overrides, on IFS row 46. The ingest stores each value in the producer's orientation, andsigns.pyreads that orientation at comparison.git archive origin/main, and requires the claims, pe_gap results, diagnoses and lanes to match byte for byte. CI's python job fetchesorigin/main, and underGITHUB_ACTIONSthe test fails if it finds no main ref.Judgment calls
package_of_registry_measures, since the tests read that list as keys.not_expressible, with each leg's gap and name search, so its claims get a pe_gap verdict.include_earningsfalse andearnings_path_guaranteetrue from 2030 for it.employment_incomeas an input.partial, and we didn't write a delta for the freeze because its baseline rests on line 3's dashboard modifier.cash_requirement_change.models.pydefines that metric as the PSNCR effect, so we didn't mint a metric for the costings' name.decisions_effect_on_borrowing, because the OBR states the option's effect on public sector net borrowing. We apply the macro verdict under OBR published economic + behavioural effects of policy: the Scorecard entry point for PolicyEngine Macro members #55. RF derives its figure from the OBR's constant-duty-rate receipts less the OBR's central forecast (its footnote 27), so the ingest tallies RF's rows 154 and 397–401 as a restatement and keeps the OBR's estimate alone.average_household_income_changeingbp_per_household. We tally its other three household-support rows because their partial-year periods don't match an annual comparison.real_income_changerows, RF gives outturns or forecast paths for real incomes without estimating a reform's effect. We tally those pound amounts because we usereal_income_growthfor percentages andaverage_household_income_changefor policy effects.energy_bill_changerows 237 and 242. RF stores those values in cells H11 and H12 of sheet F7 in the chart-data workbook it links from its report, and prints no label on the chart, so the ingest keeps the workbook's values.revenue_change. Moving the OBR's total to the borrowing metric would repeat Table 3.1's direct effect of tax measures, and the ingest drops RF's restatement without restaging it.data/populations.jsonand re-pinning the legacy hash belong in their own PR, Sort the AB2025 registry's name searches #251.The public site
Merging changes nothing the site shows, since
scorecard_db/build_db.pydoesn't callingest_uk_ab2026, andbuild_db.pydoesn't regeneratedata/populations.jsoneither. Wiring the ingest in would add three lanes, 4,687 claims (4,661 of them on the page before any counterpart) and 3,172 pe_gap verdicts, and Max decides that step with tranche 3.Checks
3812ce4d, the coordinator ranpipeline/stage_ab2026_hmt_tables.pyagainst the two pinned gov.uk workbooks and matched the committed rows byte for byte, 768 rows, and the dashboard receipt tests passed locally, 10 of 10.8a3e4982,build_ab2026_registry.py --checkreports byte-identical at policyengine-uk 2.151.0,validate_budget_2026_registry.py --registry data/uk/ab2026_measures.json --resolveresolves 30 paths, andrender()reproducesKEY_DECISIONS.md. Between that commit anda28223f2we changed no registry file, builder or generated text.Review fixes
GPT-6.1 Sol and a cloud session reviewed
3812ce4d, and both requested changes. We answered them in commitsdccb4f7to589f8229.partialtonot_expressible, which gave 50 claims a pe_gap verdict.b8af2152we restored one of the IFS rows.merge_republicationsa stable tie-breaker, and it movesalso_printed_into the kept claim.origin/mainfor the differential test. An earlier version of this description saidbuild_db.pyregeneratesdata/populations.json, which it doesn't.KEY_DECISIONS.md.The reviews of
589f8229, atb8af2152GPT-6.1 Sol and a cloud session reviewed
589f8229, and both requested changes. We answered them inb8af2152, and in0193b91fwe merged #231's4dd5281dand, through it,mainwith #251.b8af2152, we restored IFS row 46 and produced 4,687 claims, 1,265 drops and 3,171 gaps.component_horizonand the estimate kind.REVIEWED_TWINS.also_printed_in.no_registered_metricandmtr_no_registered_metric, and removed the promise that we score each restated figure under its originator, and we split the three reasons of over 40 words.KEY_DECISIONS.md, the generated reasons and the registry's 13whystrings to their actors, and we counted the one-producer repetitions under Left to a later PR.We ran 20 mutants against these guards, and the tests kill 19. The twentieth corrupts
component_horizon; we tally IFS row 44, the only staged occurrence of that condition, so we emit no claim with it.The reviews of
0193b91f, at8a3e4982GPT-6.1 Sol requested changes at
0193b91fand a cloud session approved it with low findings only. We answered both in8a3e4982.b8af2152, we moved OBR row 2740 to revenue despite its stated PSNB scope. We now retain the borrowing metric and apply OBR published economic + behavioural effects of policy: the Scorecard entry point for PolicyEngine Macro members #55, adding one pe_gap verdict, so claims and drops stay at 4,687 and 1,265 and gaps reach 3,172. The cloud session accepted the move, since RF's subtraction of the OBR's two receipts forecasts gives 4.289 for 2029-30. In README rule 10 we list paragraph 3.43 among the OBR's stated effects on borrowing, and we follow what the OBR states. We removed the sign phrase and fixture pair the move needed._printed_unitaccepts "£N million" and "£N billion", rejects other printed forms, and checks the stored value against the printed amount before returning the printed unit. The zero-cell test now moves row 11 into row 108's year, so only the magnitude check can raise.8a3e4982, the preservation test compared every staged condition except a storedprogram, which killed cloud's survivingprice_basismutant. The tie-breaker test now changes each of the seven harvested publication fields in both orders, with and without a costings repetition, which kills Sol's survivingpublishermutant. We corrected our docstring to say we attach the costings repetition to the last table printing.--resolvecommand and the income-path reason, which called RHDI per person typical income. InKEY_DECISIONS.mdwe again say where the row numbers count from, and we gave the remaining reasons, comments and sentences their actors.We ran 31 mutants of these guards at
8a3e4982, and the tests killed 29. The other two altercomponent_horizonandgeography_note; we emit neither condition because we tally IFS row 44 and merge red book row 263 into its table row.The review of
8a3e4982, ata28223f2GPT-6.1 Sol requested changes at
8a3e4982, with one medium finding and four low ones. We answered them in412c2f49anda28223f2, and the ingest emits the same 4,687 claims, byte for byte.winter_fuel_paymentpassed. It also accepted an invented_verbatimfield on any condition. We now count a verbatim field only ongeography,income_groupandprogram, require the registered name beside it where one exists, and reject a replaced program and an invented verbatim field in new tests. The ingest also records a registered program's staged text when its canonical name differs, though no staged program takes that path.We ran 18 mutants of these guards at
a28223f2, and the tests killed all 18.The review of
a28223f2An Opus 5.5 cloud session approved
a28223f2with five low findings. We corrected this description for three of them: the AB2025 sentence, the tense of the preservation sentence and the words "those forms". We also limited the sentence on commas, and we add the two guards the reviewer asked for in a later PR, below.Left to a later PR
We add the OBR's receipts estimate for the freeze from paragraph 4.30 and its Table 6.3, "Effects of policy on financial transactions", to
uk_obr_tablesin a small PR after this one. In another PR we take the 26 pairs of claims in which one producer prints a figure twice and the conditions differ only in how it printed it (Resolution Foundation 14, Tax Policy Associates 7, HM Treasury 5). Among them, HM Treasury prints £50 off bills three times, and Tax Policy Associates prints £19.1bn in a footnote and a chart's description. We retain separate claim ids for those figures here, and we land that PR before any decision to wire the ingest in. We leave out Tables 4.2–4.7, 5.2, 5.8, paragraph 7.20 and FAI's Barnett table.In a third small PR we refuse a comma after a lone zero and a leading zero in a printed amount ("£0,123 million", "£01 million"). We also add a test that fails if the pattern accepts a four-digit lead ("£1234,567 million"), and extend the preservation test so that it fails when the ingest adds a condition we didn't stage. We stage none of those forms, and
_printed_unitstill checks the stored value against the printed amount.🤖 Generated with Claude Code