diff --git a/data/uk/ab2026_measures.json b/data/uk/ab2026_measures.json index c18ed674f..3764775fe 100644 --- a/data/uk/ab2026_measures.json +++ b/data/uk/ab2026_measures.json @@ -3362,7 +3362,7 @@ "measure_key": "ab2026__package_government_decisions_since_march_2026", "title": "The total effect of Government decisions since March 2026", "reported_status": "announced", - "source_note": "`hm_treasury`, `obr_efo` and `resolution_foundation` score it on 368 staged rows of the Autumn Budget 2026 harvest (KEY_DECISIONS.md). Scope, from the families' NOTES.md: The OBR's total effect of decisions on PSNB: Table 6.1 lines 1 to 98, the three fiscally neutral measures with no line (PWLB debt relief, Scottish APD devolution and the landlord registration fee) and the two non-scorecard decisions, with direct and indirect effects; the red book's Table 1.3 and RF restate it.", + "source_note": "`hm_treasury`, `obr_efo` and `resolution_foundation` score it on 374 staged rows of the Autumn Budget 2026 harvest (KEY_DECISIONS.md). Scope, from the families' NOTES.md: The OBR's total effect of decisions on PSNB: Table 6.1 lines 1 to 98, the three fiscally neutral measures with no line (PWLB debt relief, Scottish APD devolution and the landlord registration fee) and the two non-scorecard decisions, with direct and indirect effects; the red book's Table 1.3 and RF restate it.", "program": "package", "producers": [ "hm_treasury", @@ -3843,9 +3843,9 @@ }, { "measure_key": "ab2026_option__fuel_duty_continued_freeze", - "title": "Keep fuel duty frozen until 2029-30 instead of the rise in July 2027", + "title": "Keep fuel duty frozen instead of the rise in July 2027", "reported_status": "option_costed_by_others", - "source_note": "`obr_efo` and `resolution_foundation` score it on 7 staged rows of the Autumn Budget 2026 harvest (KEY_DECISIONS.md). Scope, from the families' NOTES.md: Rates held at 52.95p a litre to 2029-30 against the announced policy, which extends line 3: OBR paragraph 3.43's alternative and RF's series for the OBR's constant-duty-rate forecast.", + "source_note": "`obr_efo` and `resolution_foundation` score it on 8 staged rows of the Autumn Budget 2026 harvest (KEY_DECISIONS.md). Scope, from the families' NOTES.md: The OBR's alternative of holding rates at 52.95p a litre after line 3's freeze ends in July 2027, instead of the rise the government announced. We key to it the OBR's effect on borrowing in 2029-30 (paragraph 3.43) and average cut in receipts over 2027-28 to 2031-32 (paragraph 4.30), and RF's series from the OBR's constant-duty-rate forecast.", "program": "fuel_duty", "producers": [ "obr_efo", diff --git a/pipeline/ab2026_key_decisions.py b/pipeline/ab2026_key_decisions.py index 8e69913fc..572e50cc6 100644 --- a/pipeline/ab2026_key_decisions.py +++ b/pipeline/ab2026_key_decisions.py @@ -712,7 +712,7 @@ def _d(kind, title, scope, verdict, program, producers, rows, **kw): ), "package", (HMT, OBR, RF), - 368, + 374, ), "ab2026__package_hmt_distributional_since_ab2024": _d( "package", @@ -1087,8 +1087,8 @@ def _d(kind, title, scope, verdict, program, producers, rows, **kw): ), "ab2026_option__fuel_duty_continued_freeze": _d( "option", - "Keep fuel duty frozen until 2029-30 instead of the rise in July 2027", - "Rates held at 52.95p a litre to 2029-30 against the announced policy, which extends line 3: OBR paragraph 3.43's alternative and RF's series for the OBR's constant-duty-rate forecast.", + "Keep fuel duty frozen instead of the rise in July 2027", + "The OBR's alternative of holding rates at 52.95p a litre after line 3's freeze ends in July 2027, instead of the rise the government announced. We key to it the OBR's effect on borrowing in 2029-30 (paragraph 3.43) and average cut in receipts over 2027-28 to 2031-32 (paragraph 4.30), and RF's series from the OBR's constant-duty-rate forecast.", ( "partial", "The rate leg resolves (gov.hmrc.fuel_duty.petrol_and_diesel), but the option's baseline is the announced path, Table 6.1 line 3, which the dashboard ran as a modifier with no parameter path. A counterpart needs line 3's modifier as its baseline and the frozen rate as its reform.", @@ -1096,7 +1096,7 @@ def _d(kind, title, scope, verdict, program, producers, rows, **kw): ), "fuel_duty", (OBR, RF), - 7, + 8, ), "ab2026_option__fuel_duty_rpi_uprating_since_2011": _d( "option", diff --git a/results/uk/ab2026/STAGING_UNANSWERED.jsonl b/results/uk/ab2026/STAGING_UNANSWERED.jsonl index 20ce66d4f..fb6898687 100644 --- a/results/uk/ab2026/STAGING_UNANSWERED.jsonl +++ b/results/uk/ab2026/STAGING_UNANSWERED.jsonl @@ -281,6 +281,7 @@ {"claim_id": "8c1f7b625d30557e3183", "fy": "2027-28", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "8cc71fc307bfef1b8a7d", "fy": "2030-31", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "9550aac48676da0c118f", "fy": "2030-31", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} +{"claim_id": "9d4e7f8366be16420a10", "fy": "2031-32", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "9f955c248840a7c1c15f", "fy": "2030-31", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "a343280635f20b01af84", "fy": "2026-27", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "a38dd02e11ec4870cb2f", "fy": "2031-32", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} @@ -295,7 +296,6 @@ {"claim_id": "db1dbd504c41526b1201", "fy": "2027-28", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "f05c0312f9ed24ae9b49", "fy": "2031-32", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "f18fa9b82617add29fe7", "fy": "2027-28", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} -{"claim_id": "f59d84db9343c682f25b", "fy": "2031-32", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "f62f1a74e76f8b404868", "fy": "2028-29", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "fc5feea347ce4ff8dbe6", "fy": "2029-30", "measure_key": "ab2026__property_income_rates_plus_2pp", "metric": "revenue_change", "reason": "exchequer_component", "source": "obr_efo"} {"claim_id": "00bb79f9d1025b2be927", "fy": "2031-32", "measure_key": "ab2026__trading_allowance_3000", "metric": "revenue_change", "reason": "cumulative_real_terms", "source": "tax_policy_associates"} diff --git a/scorecard_db/baselines.py b/scorecard_db/baselines.py index 69d2bb972..95a016bf1 100644 --- a/scorecard_db/baselines.py +++ b/scorecard_db/baselines.py @@ -411,6 +411,24 @@ "'OBR pre-measures Autumn Budget 2026 policy parameters'); mapped by " "scorecard_db/ingest_uk_ab2026.py, as AB2025's world is for its OBR rows.", ), + ( + { + "policy": "obr_october_2026_budget_forecast", + "counterfactual": "policy_parameters", + }, + "obr_october_2026_budget_forecast__policy_parameters", + "The OBR's October 2026 Budget forecast, on the assumption that the " + "latest policy is implemented: the Autumn Budget 2026 measures, with " + "fuel duty rates frozen until July 2027 and raised from then. The OBR " + "costs a continued freeze against it (EFO October 2026, paragraphs " + "3.43 and 4.30). A post-measures world, deliberately not a " + "pre-measures one.", + "policy_ref", + "sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables (proposed_baseline " + "'OBR October 2026 forecast, on the assumption that the latest policy " + "is implemented' on rows 2740 and 2800); mapped by " + "scorecard_db/ingest_uk_ab2026.py.", + ), ( { "policy": "obr_november_2025_budget_forecast", diff --git a/scorecard_db/ingest_uk_ab2026.py b/scorecard_db/ingest_uk_ab2026.py index 832fc3af0..0a664762d 100644 --- a/scorecard_db/ingest_uk_ab2026.py +++ b/scorecard_db/ingest_uk_ab2026.py @@ -1,6 +1,6 @@ """Ingest every Autumn Budget 2026 score (#230). -We stage 5,952 rows in ``sources/harvest-uk-ab2026-2026-10-29/`` from 12 +We stage 5,959 rows in ``sources/harvest-uk-ab2026-2026-10-29/`` from 12 families: HM Treasury's tables, costings and red book, the OBR's October 2026 EFO and policy workbook, Resolution Foundation, IFS, Tax Policy Associates, CenTax, IPPR, the devolved governments, Trussell and four smaller @@ -183,8 +183,9 @@ "restated_obr_forecast": ( "Resolution Foundation computes the cost of continuing the fuel duty " "freeze from two OBR forecasts, the constant-duty-rate receipts less " - "the central receipts. We keep only the OBR's own figure, which it " - "prints for 2029-30 as an effect on borrowing." + "the central receipts. We keep the OBR's own figures: its effect on " + "borrowing in 2029-30 (paragraph 3.43) and its average cut in receipts " + "from 2027-28 to 2031-32 (paragraph 4.30)." ), "income_path_not_a_policy_effect": ( "Resolution Foundation gives the change in real household incomes, per " @@ -389,6 +390,8 @@ _PROPOSED_BASELINE_PREFIXES: dict[str, str] = { **AB25._PROPOSED_BASELINE_PREFIXES, "OBR pre-measures Autumn Budget 2026 policy parameters": "obr_pre_measures_autumn_budget_2026__policy_parameters", + # the OBR's costings of a continued fuel duty freeze (paragraphs 3.43, 4.30) + "OBR October 2026 forecast, on the assumption that the latest policy is implemented": "obr_october_2026_budget_forecast__policy_parameters", # the AB2025 world, as the AB2026 OBR family words it "Fuel duty rates increase in line with RPI inflation: stated policy since 2010-11": "obr_fuel_duty_rpi_uprated_since_2010_11", } diff --git a/scorecard_db/ingest_uk_ab2026_expected.json b/scorecard_db/ingest_uk_ab2026_expected.json index e52ea4662..e4baee425 100644 --- a/scorecard_db/ingest_uk_ab2026_expected.json +++ b/scorecard_db/ingest_uk_ab2026_expected.json @@ -1,7 +1,7 @@ { - "read": 5952, - "ingested": 4687, - "dropped": 1265, + "read": 5959, + "ingested": 4688, + "dropped": 1271, "by_family": { "uk_hmt_tables": { "read": 768, @@ -19,9 +19,9 @@ "dropped": 248 }, "uk_obr_tables": { - "read": 2800, - "ingested": 2711, - "dropped": 89 + "read": 2807, + "ingested": 2712, + "dropped": 95 }, "uk_rf_ab2026": { "read": 766, @@ -71,7 +71,7 @@ "energy_bill_level_no_metric": 35, "hmt_figure_staged_twice": 432, "income_path_not_a_policy_effect": 9, - "macro_fiscal_or_out_of_scope": 206, + "macro_fiscal_or_out_of_scope": 212, "mode3_specimen_household": 10, "mtr_no_registered_metric": 4, "no_registered_metric": 9, diff --git a/sources/harvest-uk-ab2026-2026-10-29/COUNTS.json b/sources/harvest-uk-ab2026-2026-10-29/COUNTS.json index db6d73841..dae1e857e 100644 --- a/sources/harvest-uk-ab2026-2026-10-29/COUNTS.json +++ b/sources/harvest-uk-ab2026-2026-10-29/COUNTS.json @@ -57,9 +57,9 @@ ] }, "uk_obr_tables": { - "rows": 2800, + "rows": 2807, "primaries": 4, - "claims_sha256": "886f3c915b58fe91775e33dcbecc81e369c445ba4e1820a7e61bfbafe243872b", + "claims_sha256": "9a92e70edd71be369d08645adc56310ccae31abdcc33d9a69eb37666576c7950", "sources": [ "obr_efo" ] @@ -100,9 +100,9 @@ ] }, "_totals": { - "rows": 5952, + "rows": 5959, "restated": 450, "families": 12, - "pinned_on": "2026-11-05" + "pinned_on": "2026-11-06" } } diff --git a/sources/harvest-uk-ab2026-2026-10-29/KEY_DECISIONS.md b/sources/harvest-uk-ab2026-2026-10-29/KEY_DECISIONS.md index 94ed11ece..f59cb65f2 100644 --- a/sources/harvest-uk-ab2026-2026-10-29/KEY_DECISIONS.md +++ b/sources/harvest-uk-ab2026-2026-10-29/KEY_DECISIONS.md @@ -2,7 +2,7 @@ Generated by `pipeline/apply_ab2026_key_decisions.py` from `pipeline/ab2026_key_decisions.py` and the staged families; don't edit by hand. -We register 86 AB2026 keys (15 measures, 58 packages and 13 options) for 973 staged figures. We give two producers' packages one key only when they identify the same legs (rule 3). For 1 key, we retain the proposed name in `proposed_as`. We store registered keys in `measure_key` and copy each producer's scope from NOTES.md into `source_note`. We number each family's rows from 0, in the order of its `claims_staged.jsonl.gz`, and register the keys in `data/uk/ab2026_measures.json`. +We register 86 AB2026 keys (15 measures, 58 packages and 13 options) for 980 staged figures. We give two producers' packages one key only when they identify the same legs (rule 3). For 1 key, we retain the proposed name in `proposed_as`. We store registered keys in `measure_key` and copy each producer's scope from NOTES.md into `source_note`. We number each family's rows from 0, in the order of its `claims_staged.jsonl.gz`, and register the keys in `data/uk/ab2026_measures.json`. | proposed key | decision | registered key | verdict | why | rows | |---|---|---|---|---|---| @@ -25,7 +25,7 @@ We register 86 AB2026 keys (15 measures, 58 packages and 13 options) for 973 sta | `ab2026__package_dwp_fraud_and_error_measures` | registered | `ab2026__package_dwp_fraud_and_error_measures` | not_expressible | We can't estimate this quantity within the household model. Scope: Red book paragraph 5.17's new measures, expected to save an additional £1.4 billion over the forecast; the red book doesn't list them, and the figure reconciles with no printed basis for line 47. | 1: uk_hmt_redbook 259 | | `ab2026__package_fuel_duty_and_electricity_vat` | registered | `ab2026__package_fuel_duty_and_electricity_vat` | partial | We register it as the receipts of the named Table 6.1 measures. Scope: The receipts of Table 6.1 lines 2 and 3 only (the OBR groups Table 3.1 by receipts head); line 1 doesn't count. | 11: uk_obr_tables 2618–2623, 2650–2654 | | `ab2026__package_fuel_duty_freezes_since_2010_11` | registered | `ab2026__package_fuel_duty_freezes_since_2010_11` | not_expressible | We can't estimate this quantity within the household model. Scope: The OBR's cumulative cost against RPI uprating, which includes line 3 and every freeze since 2010-11; RF's ab2026_option__fuel_duty_rpi_uprating_since_2011 sees the same pair of paths from the other side. | 1: uk_obr_tables 2741 | -| `ab2026__package_government_decisions_since_march_2026` | registered | `ab2026__package_government_decisions_since_march_2026` | partial | Its producer gives the scope in words: the OBR adds its indirect effects and two non-scorecard decisions to Table 6.1's lines. Scope: The OBR's total effect of decisions on PSNB: Table 6.1 lines 1 to 98, the three fiscally neutral measures with no line (PWLB debt relief, Scottish APD devolution and the landlord registration fee) and the two non-scorecard decisions, with direct and indirect effects; the red book's Table 1.3 and RF restate it. | 368: uk_hmt_redbook 24, 143–166; uk_obr_tables 2190–2351, 2358–2501, 2514–2520, 2533–2539, 2552–2563, 2642–2649; uk_rf_ab2026 13, 177, 181 | +| `ab2026__package_government_decisions_since_march_2026` | registered | `ab2026__package_government_decisions_since_march_2026` | partial | Its producer gives the scope in words: the OBR adds its indirect effects and two non-scorecard decisions to Table 6.1's lines. Scope: The OBR's total effect of decisions on PSNB: Table 6.1 lines 1 to 98, the three fiscally neutral measures with no line (PWLB debt relief, Scottish APD devolution and the landlord registration fee) and the two non-scorecard decisions, with direct and indirect effects; the red book's Table 1.3 and RF restate it. | 374: uk_hmt_redbook 24, 143–166; uk_obr_tables 2190–2351, 2358–2501, 2514–2520, 2533–2539, 2552–2563, 2642–2649, 2801–2806; uk_rf_ab2026 13, 177, 181 | | `ab2026__package_hmrc_tax_gap_and_online_marketplace` | registered | `ab2026__package_hmrc_tax_gap_and_online_marketplace` | not_expressible | We combine the named registry measures. Scope: Exactly Table 6.1 lines 45 and 46: red book Table 6.3's subtotal including memo, and footnote 73. | 7: uk_hmt_redbook 181, 351–356 | | `ab2026__package_hmt_distributional_budget_2026` | registered | `ab2026__package_hmt_distributional_budget_2026` | partial | We combine the named registry measures. Scope: Impact on households paragraph 1.4: Table 6.1 lines 2, 3, 4, 5, 8, 11, 15, 26, 39, 49, 52, 59, 60, 61, 62, 72 and 95, and the private landlord registration fee, without line 1. | 1: uk_hmt_redbook 357 | | `ab2026__package_hmt_distributional_since_ab2024` | registered | `ab2026__package_hmt_distributional_since_ab2024` | partial | Its producer gives the scope in words: HM Treasury adds earlier events' measures, which this registry doesn't hold. Scope: Impact on households paragraph 1.8: the Budget 2026 policies above plus earlier events' measures, which aren't Table 6.1 lines. | 1: uk_hmt_redbook 358 | @@ -84,7 +84,7 @@ We register 86 AB2026 keys (15 measures, 58 packages and 13 options) for 973 sta | `ab2026_option__childcare_100k_threshold_raised` | registered | `ab2026_option__childcare_100k_threshold_raised` | expressible | We represent this change with parameter deltas on current law. Scope: CenTax's options to raise the limit to £125,000 or £150,000 (conditions.threshold). | 2: uk_centax 102–103 | | `ab2026_option__childcare_100k_threshold_removed` | registered | `ab2026_option__childcare_100k_threshold_removed` | expressible | We represent this change with parameter deltas on current law. Scope: CenTax's option to make the free childcare entitlement in England available to parents with incomes over £100,000. | 3: uk_centax 1, 25, 99 | | `ab2026_option__childcare_100k_threshold_removed_first_15_hours_under_3s` | registered | `ab2026_option__childcare_100k_threshold_removed_first_15_hours_under_3s` | not_expressible | We need further policyengine-uk development to estimate this quantity. Scope: CenTax's narrower option, for the first 15 hours only and children under 3. | 1: uk_centax 101 | -| `ab2026_option__fuel_duty_continued_freeze` | registered | `ab2026_option__fuel_duty_continued_freeze` | partial | We can estimate part of this change. Scope: Rates held at 52.95p a litre to 2029-30 against the announced policy, which extends line 3: OBR paragraph 3.43's alternative and RF's series for the OBR's constant-duty-rate forecast. | 7: uk_obr_tables 2740; uk_rf_ab2026 154, 397–401 | +| `ab2026_option__fuel_duty_continued_freeze` | registered | `ab2026_option__fuel_duty_continued_freeze` | partial | We can estimate part of this change. Scope: The OBR's alternative of holding rates at 52.95p a litre after line 3's freeze ends in July 2027, instead of the rise the government announced. We key to it the OBR's effect on borrowing in 2029-30 (paragraph 3.43) and average cut in receipts over 2027-28 to 2031-32 (paragraph 4.30), and RF's series from the OBR's constant-duty-rate forecast. | 8: uk_obr_tables 2740, 2800; uk_rf_ab2026 154, 397–401 | | `ab2026_option__fuel_duty_rpi_uprating_since_2011` | registered | `ab2026_option__fuel_duty_rpi_uprating_since_2011` | not_expressible | We can't estimate this quantity within the household model. Scope: RF's revenue that the freezes forgo against RPI uprating since January 2011; it mirrors the OBR's ab2026__package_fuel_duty_freezes_since_2010_11. | 2: uk_rf_ab2026 12, 153 | | `ab2026_option__health_foundation_social_care_reforms` | registered | `ab2026_option__health_foundation_social_care_reforms` | not_expressible | We can't estimate this quantity within the household model. Scope: OBR paragraph 3.41's citation of the Health Foundation's costs, from limited home-care reform to wider schemes, in 2035-36 (footnote 13); not a settled AB2026 policy. | 2: uk_obr_tables 2738–2739 | | `ab2026_option__income_tax_5pc_share_devolved_to_mayors` | registered | `ab2026_option__income_tax_5pc_share_devolved_to_mayors` | not_expressible | We can't estimate this quantity within the household model. Scope: IPPR North's option beyond the Budget's commitment on income tax devolution; no Table 6.1 line sets a 5% share. | 1: uk_ippr 2 | diff --git a/sources/harvest-uk-ab2026-2026-10-29/README.md b/sources/harvest-uk-ab2026-2026-10-29/README.md index 08096da8b..03a93df4b 100644 --- a/sources/harvest-uk-ab2026-2026-10-29/README.md +++ b/sources/harvest-uk-ab2026-2026-10-29/README.md @@ -94,7 +94,7 @@ We follow the AB2025 harvest README's rules 1–10 and its row contract, with th ## Families staged -We pin 12 families and 5,952 rows (450 `restated`) in `COUNTS.json`. +We pin 12 families and 5,959 rows (450 `restated`) in `COUNTS.json`. | family | rows | primaries | producer slugs | |---|--:|--:|---| @@ -105,7 +105,7 @@ We pin 12 families and 5,952 rows (450 `restated`) in `COUNTS.json`. | `uk_hmt_tables` | 768 | 2 | `hm_treasury` | | `uk_ifs_ab2026` | 144 | 14 | `ifs` | | `uk_ippr` | 3 | 3 | `ippr` | -| `uk_obr_tables` | 2,800 | 4 | `obr_efo` | +| `uk_obr_tables` | 2,807 | 4 | `obr_efo` | | `uk_rf_ab2026` | 766 | 8 | `resolution_foundation` | | `uk_thinktank_misc` | 12 | 5 | `citizens_advice`, `cps`, `institute_for_government`, `learning_and_work_institute` | | `uk_tpa` | 305 | 10 | `tax_policy_associates` | diff --git a/sources/harvest-uk-ab2026-2026-10-29/REGISTRY_KEYS.md b/sources/harvest-uk-ab2026-2026-10-29/REGISTRY_KEYS.md index a5bcdd4e1..551b15949 100644 --- a/sources/harvest-uk-ab2026-2026-10-29/REGISTRY_KEYS.md +++ b/sources/harvest-uk-ab2026-2026-10-29/REGISTRY_KEYS.md @@ -188,7 +188,7 @@ earlier event's registry named in `conditions.recosting_of`. | `ab2026_option__childcare_100k_threshold_raised` | | expressible | CenTax: raise the free childcare income limit from £100,000 | | `ab2026_option__childcare_100k_threshold_removed` | | expressible | CenTax: remove the £100,000 free childcare income limit | | `ab2026_option__childcare_100k_threshold_removed_first_15_hours_under_3s` | | not_expressible | CenTax: remove the income limit for the first 15 hours of childcare for under-3s | -| `ab2026_option__fuel_duty_continued_freeze` | | partial | Keep fuel duty frozen until 2029-30 instead of the rise in July 2027 | +| `ab2026_option__fuel_duty_continued_freeze` | | partial | Keep fuel duty frozen instead of the rise in July 2027 | | `ab2026_option__fuel_duty_rpi_uprating_since_2011` | | not_expressible | Fuel duty uprated by RPI since January 2011 | | `ab2026_option__health_foundation_social_care_reforms` | | not_expressible | Health Foundation's illustrative social care reforms | | `ab2026_option__income_tax_5pc_share_devolved_to_mayors` | | not_expressible | IPPR North: devolve 5% of income tax to mayors | diff --git a/sources/harvest-uk-ab2026-2026-10-29/uk_ifs_ab2026/NOTES.md b/sources/harvest-uk-ab2026-2026-10-29/uk_ifs_ab2026/NOTES.md index 495d32c92..8e153304b 100644 --- a/sources/harvest-uk-ab2026-2026-10-29/uk_ifs_ab2026/NOTES.md +++ b/sources/harvest-uk-ab2026-2026-10-29/uk_ifs_ab2026/NOTES.md @@ -635,9 +635,9 @@ fiscal-year condition, and proposed no baseline. discounts; the 2029 revaluation; April 2028 income-tax revenue devolution. IFS prints no quantified spending or revenue amount on the devolution slide. - IFS prints “28 October 2026” on the title slide, though the coordinator - assigned the 29 October briefing, and in the PDF metadata IFS records creation - and modification on 29 October. We follow the printed cover for the publication - date (2026-10-28). + assigned it as the 29 October briefing deck, and in the PDF metadata IFS records + creation and modification on 29 October. We follow the printed cover for the + publication date (2026-10-28). - We keep IFS's £1.1bn combined savings/property yield verbatim. In Table 6.1 HM Treasury gives lines 61 and 62 final-year amounts of £455m and £590m, totalling £1.045bn. Different rounding or aggregation could explain IFS's displayed diff --git a/sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables/NOTES.md b/sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables/NOTES.md index 8e7626c4d..ddaddc44e 100644 --- a/sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables/NOTES.md +++ b/sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables/NOTES.md @@ -2,7 +2,7 @@ We keep `stage.py` on branch `uk/ab2026-harvest-staging` at `harvest-staging/ab2026/lanes/obr-tables/uk_obr_tables/stage.py`. We commit only NOTES.md, `manifest.jsonl` and `claims_staged.jsonl.gz` to this branch, and no primary bytes to the repository. Fetch each primary from its `manifest.jsonl` URL (or, while obr.uk refuses non-browser clients, use the coordinator's local copies) and check its sha256. -We staged this family on 2026-10-29, reworked it on 3 November 2026 under the OBR review, and again on 4 November under reviews A and B (see "Review fixes" at the end). We use source `obr_efo`. We stage **2,800 rows (2,891 before the 3 November review, 2,797 at 4f424b9), 4 primaries (we cite 3 of them in rows), 98 individual registered measures plus the registered total-policy package.** We write all outputs inside this family. `stage.py` embeds all reviewed rows as metadata templates and cell data. A rerun needs only the Python standard library, and reproduces the gzip without primary files or network access. +We staged this family on 2026-10-29, reworked it on 3 November 2026 under the OBR review, and again on 4 November under reviews A and B (see "Review fixes" at the end). We use source `obr_efo`. We stage **2,807 rows (2,891 before the 3 November review, 2,797 at 4f424b9), 4 primaries (we cite 3 of them in rows), 98 individual registered measures plus the registered total-policy package.** We write all outputs inside this family. `stage.py` embeds all reviewed rows as metadata templates and cell data. A rerun needs only the Python standard library, and reproduces the gzip without primary files or network access. ## Access recipe and primaries @@ -17,7 +17,7 @@ We give the resolved ZIP URL as the publication URL for both members, with the m | Primary file | Rows | Bytes | SHA-256 | |---|---:|---:|---| | efo-october-2026-detailed-forecast-tables-policy.xlsx | 2,520 | 106,602 | `cdcc2a06b100241bf3010bd159a4e5d43daef2348a3850797b1e88a308fd45fd` | -| economic-and-fiscal-outlook-october-2026-web-accessible.pdf (28 October) | 267 | 1,754,344 | `9e0e9c340e35e603066f3124a614fcd68feadb3d5d10d1f76fb536e150e6225e` | +| economic-and-fiscal-outlook-october-2026-web-accessible.pdf (28 October) | 274 | 1,754,344 | `9e0e9c340e35e603066f3124a614fcd68feadb3d5d10d1f76fb536e150e6225e` | | efo-october-2026-detailed-forecast-tables-aggregates.xlsx | 13 | 218,000 | `3ffa3f1e63667b2ae9fb9626dc1da881673227d43aeeb52f8c3db168a5c75d6b` | | economic-and-fiscal-outlook-october-2026-web-accessible.pdf, corrected 30 October 2026 | 0 | 1,771,863 | `555e0c266a5c2a9a5fdeaee9a36425c6bf3b899fde456160945b5323f610c3f4` | @@ -29,6 +29,7 @@ We give the resolved ZIP URL as the publication URL for both members, with the m - Table 3.3, 35 costings plus 7 categorical uncertainty ratings. - Policy and behavioural prose and Box 3.1, 69 rows. On 4 November we restored paragraph 3.20's financing requirement and added Box 3.1's two measure counts. - We treat Table 3.2's 47 funding cells as design (rule 8) and don't stage them. +- Paragraph 4.30 and Table 6.3: **7** rows, which we appended on 5 November as rows 2800–2806. We stage the continued fuel duty freeze's receipts average once and the whole-package financial-transactions line for each of six fiscal years. - Headline fiscal context: we stage **55** rows: 13 workbook cells (PSNB cash six years; ex-BoE PSND/GDP seven years) and 42 PDF cells (Table 7.1 headroom 13; Annex A Table A.9 PSNB, PSNFL and ex-BoE PSND 29). For the current-budget and PSNFL rules we include current pre-measures, post-measures and the printed memo excluding fuel-duty rises, and we include the welfare-cap margin. Where the OBR gives the same forecast in the PDF and the aggregate workbook, we stage it once. ## Conventions @@ -37,17 +38,17 @@ We give the resolved ZIP URL as the publication URL for both members, with the m - **Signs.** The OBR prints in the policy workbook “This table uses the convention that a negative sign implies a loss to the Exchequer (and is therefore an increase in PSNB).” Under PDF Tables 3.1/3.3 it prints “A positive sign implies an increase in borrowing.” We keep both. On the workbook's indirect-effect rows, whose signs conflict with that workbook legend, we say so. In prose rows we keep positive magnitudes for costs, yields or behavioural erosion as the OBR words them, and state the meaning in per-row conditions. We record headroom as positive for a margin and negative for a breach. - **Period.** We use the FY end year, with the printed `fy`. For quarterly CPI peaks we use calendar-year `point_in_time` and quarter detail without `fy`. We stage an annual average or recurring prose amount once, at the terminal forecast FY, with its interval in `aggregation`, rather than manufacture six yearly values. We treat staffing figures as design (rule 8) and keep them in `conditions.staffing`, not in rows. We put Box 3.1's undated share and counts at the publication-year anchor, 2026. We keep end-March timing for debt stocks and end-March-centred GDP denominators. - **Central.** We stage ordinary policy tables and prose as `point` estimates of the single final forecast. We mark aggregate forecasts `central`, for the OBR central forecast, and observed 2025-26 outturns `point`. We infer no statistical confidence interval. For “High” ratings we use categorical `value: 0`, the precedent's schema placeholder, not a numerical score. The Health Foundation's range endpoints span alternative reform options, not uncertainty about one policy. -- **Attribution.** We mark 2,777 rows `own` and 23 `restated` (2,821 and 70 before we dropped Table 3.2's 47 rows on 3 November). +- **Attribution.** We mark 2,784 rows `own` and 23 `restated` (2,821 and 70 before we dropped Table 3.2's 47 rows on 3 November). - We follow the AB2025 `own` convention for OBR-certified and HMRC- or DWP-scrutinised costings, and use `obr_efo_forecast` for the OBR's fiscal judgments. - We mark twelve workbook fuel cells and two PDF fiscal fuel costings restated `hmt_costing_uncertified`: in EFO p.59 footnote 1 the OBR says the final Government costing arrived after certification. - We name ONS on six latest ONS outturn aggregate cells, the Health Foundation on two social-care options, and the Government/DBT impact assessment on one FTA effect. - We keep the OBR's CPI judgments as its own estimates. We use `administrative_fact` for ONS facts and `different_model` for modelled estimates. -- **Scope.** All 98 numbered workbook titles match registry titles once we normalise whitespace and footnotes. We key fiscal-head components to their full measure, with component conditions; never sum totals and components as independent estimates. We use the registered total-policy package only for workbook row 552 and the PDF's explicit HMT-policy-table memo. For all other groupings we use the package keys we proposed and registered in tranche 2, and for context levels null with no key. Since 4 November, by the coordinator's call on review A's H-6(b), we stage paragraph 3.28's salary-sacrifice revision as a context row with a null key, not as an AB2026 intervention. The AB2025 OBR family stages no headline fiscal aggregates. We take `fiscal_headroom` from the live `Metric` enum, and the closest aggregate names from cross-family proposals. +- **Scope.** All 98 numbered workbook titles match registry titles once we normalise whitespace and footnotes. We key fiscal-head components to their full measure, with component conditions; never sum totals and components as independent estimates. We use the registered total-policy package only for workbook row 552 and the PDF's explicit HMT-policy-table memo. We key Table 6.3's policy effects on financial transactions to `ab2026__package_government_decisions_since_march_2026`. For all other groupings we use the package keys we proposed and registered in tranche 2, and for context levels null with no key. Since 4 November, by the coordinator's call on review A's H-6(b), we stage paragraph 3.28's salary-sacrifice revision as a context row with a null key, not as an AB2026 intervention. The AB2025 OBR family stages no headline fiscal aggregates. We take `fiscal_headroom` from the live `Metric` enum, and the closest aggregate names from cross-family proposals. - **Quotes and order.** We quote full numeric or rating cells, or full OGL prose sentences, keeping the printed number. We normalise PDF whitespace and line wraps, and leave footnote superscripts out of sentence text. We read in policy workbook row/column order, then PDF page/position, then aggregate workbook table/row/column. In the 28 October file that we cite in rows, the physical page equals the printed page + 3 (+ 4 in the 30 October correction). ## Coverage by measure_key, including null -We use 128 keys on 2,742 rows, 1,951 of them `row_type: measure_component`. Of those rows, we key 535 (374 of them `measure_component`) to the 29 keys we proposed and registered in tranche 2. We stage 58 rows as context: 42 fiscal aggregates, 13 headroom rows, Box 3.1's two measure counts and paragraph 3.28's salary-sacrifice revision. Across the family we mark 1,951 rows `measure_component` and 649 `measure_total`, and give 200 no row type. We key the uncertainty ratings to their measures. +We use 128 keys on 2,749 rows, 1,951 of them `row_type: measure_component`. Of those rows, we key 542 (374 of them `measure_component`) to the 29 keys we proposed and registered in tranche 2. We stage 58 rows as context: 42 fiscal aggregates, 13 headroom rows, Box 3.1's two measure counts and paragraph 3.28's salary-sacrifice revision. Across the family we mark 1,951 rows `measure_component` and 655 `measure_total`, and give 201 no row type. We key the uncertainty ratings to their measures. | measure_key | Rows | |---|---:| @@ -150,7 +151,7 @@ We use 128 keys on 2,742 rows, 1,951 of them `row_type: measure_component`. Of t | `ab2026__writing_down_allowance_12pc_and_fya_50pc` | 43 | | `ab2026__your_first_home_equity_loan` | 19 | | `ab2026__youth_guarantee_and_apprenticeships_spring_2026` | 18 | -| the 29 keys we proposed (below) | 535 | +| the 29 keys we proposed (below) | 542 | | `null` (context) | 58 | ## Keys we proposed, with the producer's scopes @@ -168,7 +169,7 @@ We gave all of these rows `measure_key: null` and proposed these keys, and in tr | `ab2026__package_dividend_and_capital_gains_tax_changes` | 6 | Table 6.1 lines 26, 49 and 60: OBR “Changes to dividend and capital gains taxation”. (Was `ab2026__package_obr_dividend_and_capital_gains_tax_changes`.) | | `ab2026__package_fuel_duty_and_electricity_vat` | 11 | The receipts of Table 6.1 lines 2 and 3 only (the OBR groups receipts in Table 3.1's tax groups, review B finding 3); OBR “Fuel duty freeze and VAT off domestic energy bills”. Excludes household council-tax rebate line 1. (Was `ab2026__package_obr_fuel_duty_and_electricity_vat`.) | | `ab2026__package_fuel_duty_freezes_since_2010_11` | 1 | OBR cumulative 2010-11 to 2027-28 fuel duty freezes and 5p cut relative to stated RPI uprating; includes Table 6.1 line 3 and earlier freezes since 2010-11. Not the cost of the AB2026 measure alone. (Was `ab2026__package_obr_historical_fuel_duty_freezes_and_5p_cut`.) For `ab2026_option__fuel_duty_rpi_uprating_since_2011`, the Resolution Foundation (RF) compares RPI uprating since January 2011 against the freezes, reversing the OBR's comparison. We keep the two keys separate and name each family in the other's NOTES (review A's K-6). | -| `ab2026__package_government_decisions_since_march_2026` | 340 | Table 6.1 lines 1–98, plus the three fiscally neutral measures (PWLB debt relief, Scottish APD devolution, landlord registration fee) and the two non-scorecard policies listed above. OBR “Total effect of Government decisions”, with direct, indirect, receipt, expenditure and fiscal-head projections distinguished in conditions. Includes indirect effects where stated; not the HMT scorecard-only package. (Was `ab2026__package_obr_government_decisions_since_march_2026`.) Shared with the red book's Table 1.3 "Total effect of policy decisions" and RF's restatement. **Parts and wholes (rule 9, 4 November):** we mark the totals (workbook row 549 and Table 3.1's total) `measure_total` with no `component`, and every part `measure_component`, with `component` the label the OBR prints. We count as parts the workbook's direct and indirect effects, its total of receipts measures ("Total effects of receipts measures", on which we keep `revenue_change`) and its 288 lines by head ("Receipts: " or ": "). We also count Table 3.1's direct and indirect effects and paragraphs 3.2 and 3.5. Never sum a part with the total. We moved the workbook's total of expenditure measures to the spending-decisions key and paragraph 3.4's tax line to the tax-decisions key (review B finding 6). | +| `ab2026__package_government_decisions_since_march_2026` | 346 | Table 6.1 lines 1–98, plus the three fiscally neutral measures (PWLB debt relief, Scottish APD devolution, landlord registration fee) and the two non-scorecard policies listed above. OBR “Total effect of Government decisions”, with direct, indirect, receipt, expenditure and fiscal-head projections distinguished in conditions. Includes indirect effects where stated; not the HMT scorecard-only package. (Was `ab2026__package_obr_government_decisions_since_march_2026`.) Shared with the red book's Table 1.3 "Total effect of policy decisions" and RF's restatement. **Parts and wholes (rule 9, 4 November):** we mark the totals (workbook row 549 and Table 3.1's total) `measure_total` with no `component`, and every part `measure_component`, with `component` the label the OBR prints. We count as parts the workbook's direct and indirect effects, its total of receipts measures ("Total effects of receipts measures", on which we keep `revenue_change`) and its 288 lines by head ("Receipts: " or ": "). We also count Table 3.1's direct and indirect effects and paragraphs 3.2 and 3.5. Never sum a part with the total. We moved the workbook's total of expenditure measures to the spending-decisions key and paragraph 3.4's tax line to the tax-decisions key (review B finding 6). | | `ab2026__package_national_wealth_fund_and_british_business_bank` | 5 | Table 6.1 lines 29 and 30 together, plus their associated financial transactions in Table 6.2; OBR “funding available for the National Wealth Fund and the British Business Bank ... to invest in financial assets”. Paragraph 3.20's effects: we stage the financing requirement (`cash_requirement_change`, restored 4 November), the net debt effect (£3.4bn) and the borrowing effect (£0.5bn) as wholes, and the gross debt (£3.9bn) and the additional income (£0.6bn) as their parts (`measure_component`). (Was `ab2026__package_obr_national_wealth_fund_and_british_business_bank`.) | | `ab2026__package_non_scorecard_decisions` | 12 | No Table 6.1 lines. “Direct effect of non-scorecard decisions”: exactly the departmental spending assumption and public-pension valuation changes above. (Was `ab2026__package_obr_non_scorecard_decisions`.) | | `ab2026__package_obr_other_ame_spending_decisions` | 6 | In Table 3.1 the OBR excludes net unfunded pensions valuation from “Other AME spending decisions”. It also nets out the separately shown council tax rebate (−£2.6bn in 2026-27). In Table 6.2 the OBR prints "Other spending decisions" at 0.4 in 2026-27: the rebate's 2.6 plus this group's −2.2 (review B finding 9). (Was `ab2026__package_other_ame_spending_decisions` until 4 November, review B finding 15.) The OBR gives no full Table 6.1 line decomposition in the PDF. (Was `ab2026__package_obr_other_ame_spending_decisions`.) | @@ -179,14 +180,14 @@ We gave all of these rows `measure_key: null` and proposed these keys, and in tr | `ab2026__package_property_and_savings_income_rates_receipts` | 7 | The receipts of Table 6.1 lines 61 and 62: Table 3.1's “Changes to savings and property income tax rates”. (Was `ab2026__package_obr_savings_and_property_income_tax_rates`.) **Receipts only (3 November):** The OBR prints −0.1 in 2027-28 and −0.9 in 2029-30 in Table 3.1, with positive values for borrowing increases. We match their rounded magnitudes to receipts, rather than to the policy workbook's line totals of £160m and £954m. In Table 3.3 the OBR prints line 61's receipts as −2, −543 and −400 (£m) from 2027-28. So we don't use `ab2026__package_property_and_savings_income_rates`, which covers exactly lines 61 and 62. | | `ab2026__package_spending_decisions_since_march_2026` | 13 | OBR “Direct effect of spending measures” / “Spending measures”: expenditure-side effects of decisions since March, including unfunded public service pensions valuation and the £5.5bn 2031-32 RDEL assumption reduction. We don't use the HMT total-spending package here. Table 6.1 lines 1–98 can affect expenditure fiscal heads; the OBR publishes no complete narrower line decomposition, and we leave it unresolved. (Was `ab2026__package_obr_spending_decisions_since_march`.) Since 4 November we also key the workbook's total of expenditure measures (I520:N520) here, the reverse of Table 3.1's direct effect of spending measures (review B finding 6). | | `ab2026__package_tax_administration_compliance_and_debt_collection_receipts` | 6 | The receipts of Table 6.1 lines 45 and 46: OBR “Tax administration, compliance and debt collection measures”. The group (−0.1 / −0.5 / −0.6 / −2.4 / −2.9 / −3.6) equals lines 45 and 46's receipts (107 / 455 / 567 / 2,411 / 2,881 / 3,630) in all six years; their totals (8 / 262 / 434 / 2,248 / 2,733 / 3,423) round differently in every year (review B finding 3). Never key it to line 45 alone. (Was `ab2026__package_obr_tax_administration_compliance_and_debt`, then `ab2026__package_tax_administration_compliance_and_debt_collection` until 4 November.) Shared with RF's restatement. | -| `ab2026__package_tax_decisions_since_march_2026` | 6 | OBR Table 3.1 "Direct effect of tax measures": the direct effect of tax decisions since March 2026, as the OBR classifies them. Shared with RF's restatement of the same row. It equals −1 × the workbook's total of receipts measures, so the OBR groups receipts here. Before 3 November we put these rows under the total package with `component: tax measures (OBR classification)`. Since 4 November we also key paragraph 3.4's "reducing borrowing by an average of £6 billion over the final four years" here, the mean of this line from 2028-29 (review B finding 6). | +| `ab2026__package_tax_decisions_since_march_2026` | 7 | OBR Table 3.1 "Direct effect of tax measures": the direct effect of tax decisions since March 2026, as the OBR classifies them. Shared with RF's restatement of the same row. It equals −1 × the workbook's total of receipts measures, so the OBR groups receipts here. Before 3 November we put these rows under the total package with `component: tax measures (OBR classification)`. Since 4 November we also key paragraph 3.4's "reducing borrowing by an average of £6 billion over the final four years" here, the mean of this line from 2028-29 (review B finding 6). | | `ab2026__package_temporary_business_rates_reliefs_receipts` | 1 | The receipts of Table 6.1 lines 12, 13 and 14 (paragraph 3.19's "net cost of around £0.5 billion in 2028-29" covers their receipts, 536, against totals of 663; review B finding 3 and review A's K-7(g)): “package of temporary business rates measures” including real-terms freeze for certain sectors, pubs/live-music reliefs, small-business thresholds and extension of transitional support, partly offset by transitional relief supplement. (Was `ab2026__package_obr_temporary_business_rates_reliefs`, then `ab2026__package_temporary_business_rates_reliefs` until 4 November.) | | `ab2026__private_landlord_register_fee_65` | 18 | No Table 6.1 lines. “Landlord registration fee”; receipts, current DEL and total. (Was `ab2026__package_obr_landlord_registration_fee`.) The costings family's spelling for the same measure. | | `ab2026__public_sector_pensions_2024_valuations` | 27 | No Table 6.1 lines. “Public Sector Pensions: Net impact of the 2024 valuations”; departmental reductions, net public service pension payments and their net total. In the PDF the OBR calls this “Net impact of unfunded pensions valuation”. (Was `ab2026__package_obr_public_sector_pensions_2024_valuations`.) | | `ab2026__pwlb_debt_relief_councils_severe_distress` | 12 | No Table 6.1 lines. “Provide Public Works Loan Board (PWLB) debt relief for councils in severe financial distress”; capital AME and total. (Was `ab2026__package_obr_pwlb_distress_debt_relief`.) The costings family's spelling for the same measure. | | `ab2026__scottish_air_passenger_duty_devolution` | 18 | No Table 6.1 lines. “Devolving Air Passenger Duty to the Scottish Government in April 2027”; Scottish BGA, self-financed expenditure and total. (Was `ab2026__package_obr_scottish_air_passenger_duty_devolution`.) | | `ab2026__state_pension_triple_lock_adjustment` | 2 | No Table 6.1 line: OBR paragraph 3.49 adjusted state pension triple lock expected April 2030, retaining CPI/2.5 percent floor but linking catch-up to 2029-30 earnings ratio. Paragraph 3.51's two figures (rows 2743–2744) come from the OBR's simulation over 1990–2025, not from a medium-term costing of the policy. (Was `ab2026__package_obr_adjusted_state_pension_triple_lock`.) The red book's spelling for the same measure. | -| `ab2026_option__fuel_duty_continued_freeze` | 1 | No Table 6.1 line as an announced measure: OBR paragraph 3.43 counterfactual “if fuel duty were to remain frozen until 2029-30”, extending line 3 beyond July 2027. (Was `ab2026_option__obr_fuel_duty_frozen_until_2029_30`.) Shared with RF, which prints the same £4.3bn in 2029-30 in its series for the OBR's constant-duty-rate alternative. | +| `ab2026_option__fuel_duty_continued_freeze` | 2 | No Table 6.1 line as an announced measure: OBR paragraph 3.43 counterfactual “if fuel duty were to remain frozen until 2029-30”, extending line 3 beyond July 2027. (Was `ab2026_option__obr_fuel_duty_frozen_until_2029_30`.) Shared with RF, which prints the same £4.3bn in 2029-30 in its series for the OBR's constant-duty-rate alternative. We also stage paragraph 4.30's £4 billion annual receipts average for 2027-28 to 2031-32. | | `ab2026_option__health_foundation_social_care_reforms` | 2 | No Table 6.1 line: Health Foundation illustrative future social care reforms cited by OBR paragraph 3.41, from limited home-care reform to wider schemes including residential care; costs additional to current spending in 2035-36 per footnote 13. The OBR cites the Health Foundation's estimates as illustrations, and HM Treasury prints no social care line in Table 6.1. (Was `ab2026_option__obr_health_foundation_social_care_reforms`.) | @@ -206,7 +207,7 @@ We use no unregistered enum literals. We register `fiscal_headroom` in the live | `psnfl_share_of_gdp` | 7 | PSNFL as percent of nominal GDP; reuses AB2025 cross-family spelling. | | `public_sector_net_borrowing` | 7 | Annual PSNB cash level in GBP. | | `public_sector_net_debt` | 7 | End-March PSND stock explicitly excluding Bank of England, GBP. | -| `public_sector_net_debt_change` | 3 | Marginal stock debt effects of NWF/BBB investment and Your First Home lending, paragraphs 3.20/3.22. | +| `public_sector_net_debt_change` | 9 | Marginal stock debt effects of NWF/BBB investment and Your First Home lending, paragraphs 3.20/3.22, and Table 6.3's six policy effects on financial transactions. | | `public_sector_net_financial_liabilities` | 7 | End-March PSNFL stock, GBP. | We propose these units: `percent_of_gdp` (28 rows, nominal GDP denominator, including one prose package effect and fiscal shares/headroom); `rating_category` (7 High uncertainty ratings); `measures` (Box 3.1's 2 counts). @@ -219,7 +220,8 @@ We leave every `baseline_policy` null, and give effect estimates the explicit un | proposed_baseline, verbatim | Rows | |---|---:| -| OBR pre-measures Autumn Budget 2026 policy parameters | 2,730 | +| OBR pre-measures Autumn Budget 2026 policy parameters | 2,735 | +| OBR October 2026 forecast, on the assumption that the latest policy is implemented: the Autumn Budget 2026 measures, with fuel duty rates frozen until July 2027 | 2 | | Fuel duty policy reflected in OBR October 2026 economy forecast, confirmed before the final Budget parameters | 1 | | Current social care spending (Health Foundation 2024 scenarios, additional spending in 2035-36) | 2 | | Fuel duty rates increase in line with RPI inflation: stated policy since 2010-11 | 1 | @@ -236,11 +238,9 @@ We leave every `baseline_policy` null, and give effect estimates the explicit un - **The rule for lending and financing (4 November, the coordinator's call on review B's finding 5; README rule 8).** In the harvest we stage HM Treasury's Tables 6.1, 6.2 and 6.4 and the OBR's policy workbook whole, as the decisions' costings. Elsewhere we treat an amount a scheme will lend or spend as design (rule 8), and an effect on borrowing, debt or the financing requirement as an estimate. So we keep paragraph 3.22's loan volumes dropped and its effect on debt staged. We had dropped paragraph 3.20's "£1.9 billion a year" increase in the Government's financing requirement on 3 November as a financing allocation, and we restored it as a fiscal-aggregate estimate (`cash_requirement_change`). In EFO paragraphs 6.19–6.20 the OBR says the CGNCR "forms the basis of" the DMO's remit, so we treat the requirement as the aggregate and the remit as the design. - **Repeats, which we dropped on 3 November (review finding 5, the coordinator's call): 37 rows.** As in the AB2025 OBR family, we stage the table cells. We dropped text that repeats a Table 3.1 cell (paras 3.2, 3.3, 3.4, 3.11, 3.13, 3.16, 3.17 and 3.19: 19 rows) or earlier text (paras 3.11, 3.12, 3.13 and 3.16: 6 rows). We also dropped Table 3.1's "Spending measures" and "Tax measures" rows, which repeat its "Direct effect of spending measures" and "Direct effect of tax measures" rows (12 rows). -- **Chapters 1, 2 and 4–6 and paragraph 7.20 (4 November, review B finding 4; the coordinator's call: not staged).** In most of these chapters the OBR repeats Table 3.1 and the workbook's lines by head (Tables 4.5–4.7, 5.4, 5.6 and 6.2 among them). The OBR gives these new estimates there, which we didn't stage; tranche 2 may add any of them as components: +- **Other estimates in chapters 1, 2 and 4–6 and paragraph 7.20 (4 November, review B finding 4; the coordinator's call).** In most of these chapters the OBR repeats Table 3.1 and the workbook's lines by head (Tables 4.5–4.7, 5.4, 5.6 and 6.2 among them). The OBR gives these new estimates there, which we didn't stage; tranche 2 may add any of them as components: - Tables 4.2 (p.87, indirect effects on receipts), 5.2 (p.108, indirect effects on spending) and 5.8 (p.128, "Effects of Government decisions" on debt interest, −0.9 / 1.2 / 1.0 / 0.7 / 0.4 / 0.3). They form parts of the decisions' total effect, which we stage whole in rows 2490–2495 and 2534–2539 (4f424b9 order). - Tables 4.3 to 4.7's indirect rows by tax and their PAYE / self-assessment split, including Table 4.4's self-assessment income tax by measure (e.g. "Timely payment for self assessment" 3.5 / 6.5 in 2029-30 / 2030-31). They split, by tax or by cash timing, lines we already stage. - - Paragraph 4.30: a continued fuel duty freeze "would reduce receipts, on average, by £4 billion a year between 2027-28 and 2031-32". The OBR gives here the receipts average of the option whose effect on borrowing we stage in row 2740. - - Table 6.3 (p.141, "Effects of policy on financial transactions", −0.1 / 0.8 / 2.1 / −12.4 / 3.9 / 4.0): the OBR's whole-package effect on financial transactions. We don't stage it yet. We stage HM Treasury's Table 6.2 total in `uk_hmt_tables`. - Paragraph 7.20's decomposition of the changes in the fiscal-target margins. - In Annex A the OBR gives no policy-costing narrative beyond introduction A.1. Its current receipts, spending and economy forecast Tables A.1–A.8/A.11–A.12 fall outside the policy family's scope. The aggregate lane owns the headline fiscal aggregates in A.9. - The OBR prints no numeric Pension Tax Allowance or Carer’s Allowance taper claim in chapter 3 or Annex A. A whole-PDF search finds no PTA phrase, and Carer’s Allowance appears only in a generic welfare footnote, not a taper costing. We cover these measures with workbook rows. @@ -327,7 +327,7 @@ Review B (issue comments 6635496734 to 6635499259 on #231) approved this family - We mark the workbook's direct and indirect effects, its total of receipts measures and its 288 lines by head, Table 3.1's direct and indirect effects, and paragraphs 3.2 and 3.5 as `measure_component`. We set each part's `component` from the OBR's wording, adding the fiscal head for workbook lines and the paragraph number for paragraphs 3.2 and 3.5. - We mark the workbook's scorecard and non-scorecard rows `measure_total` on their own keys, and give Table 3.1's total, indirect and current budget memo rows `source_model: obr_efo_forecast`. 3. **Receipts-only figures (finding 3, review A's K-5 and K-7(g)):** we mark paragraph 3.17's £0.4bn and paragraph 3.19's electricity VAT figures as receipts components of their lines. We gave the tax administration and temporary business rates groupings `_receipts` keys, and stage Table 3.3's online marketplace rows as line 46's whole costing. -4. **Chapters 1, 2 and 4–6 and paragraph 7.20 (finding 4):** we didn't stage them, and list each with its reason (the coordinator's call). +4. **Chapters 1, 2 and 4–6 and paragraph 7.20 (finding 4):** we left these estimates unstaged on 4 November and listed each with its reason. On 5 November we added paragraph 4.30 and Table 6.3's policy line. 5. **Paragraph 3.20's financing requirement (finding 5):** we restored it on `cash_requirement_change`, under the rule for lending and financing above. 6. **Splits on the split keys (finding 6):** we stage the workbook's total of expenditure measures and paragraph 3.4's tax line as whole rows on the spending- and tax-decisions keys. 7. **Lines 70 and 71 (finding 7):** we give the carbon price package's scope, and key footnote 9's £0.8bn to line 70 as its current AME. @@ -342,3 +342,42 @@ Review B (issue comments 6635496734 to 6635499259 on #231) approved this family 16. **Stale and run-together text (finding 16):** we corrected the row notes and these NOTES, and `review_fixes_nov4()` inserts the missing spaces in every field but quotes, values and locators. Under review A's K-2 we make row 2522 the defence investment plan's RDEL part, with the sign convention "positive = cost to the Exchequer (higher RDEL spending)". Under K-6 we keep RF's RPI-uprating option apart from this family's fuel duty freezes key. Under K-7(d) we give paragraph 3.51's two simulations conventions that `signs.py` reads. Under H-6(b), the coordinator's call, we make paragraph 3.28's revision a context row with a null key and no `recosting_of`. + + +## Paragraph 4.30 and Table 6.3, 5 November 2026 + +We append paragraph 4.30's £4 billion annual cut in receipts as row 2800, on +`ab2026_option__fuel_duty_continued_freeze`, for 2027-28 to 2031-32. RF's +rows 397–401 average about £3.98 billion over those years, so we give both +paths that option's key and keep row 2740's effect on borrowing. + +We append Table 6.3's six policy effects on financial transactions as rows +2801–2806, on `public_sector_net_debt_change` and the Government-decisions +package. In paragraph 6.13 the OBR includes timely payment for self +assessment in this line, so we key it to the whole package rather than to +HM Treasury's Table 6.2 total. We leave every earlier row at its index. + +The OBR prints these quotes in both the original 28 October PDF +(`9e0e9c34…`), which we cite in the rows, and the corrected one +(`555e0c26…`). We add no primary bytes and leave the four manifest entries +unchanged. + +For #249's finding L4, we set the property behavioural aggregation to +`annual`, since in paragraph 3.17 the OBR attaches the average from 2028-29 +to the £0.4 billion yield and states the behavioural reduction per year. It +draws the same line between the £0.6 billion savings yield and the £0.2 +billion ISA response, so we set that behavioural aggregation to `annual` too. + +On 6 November we moved rows 2740 and 2800 to the OBR's forecast on the +latest policy. In paragraph 4.30 the OBR forecasts fuel duty receipts on +the assumption that the government carries out its latest policy: it +freezes the duty until July 2027 and raises it from then. Against that +forecast, the OBR estimates that keeping the freeze would add £4.3 +billion to borrowing in 2029-30 (paragraph 3.43) and cut receipts by £4 +billion a year on average from 2027-28 to 2031-32 (paragraph 4.30). So we +propose that world for both rows, and the ingest maps it to +`obr_october_2026_budget_forecast__policy_parameters`. + +The stager also reproduces tranche 2's 535 key registrations, and +`python stage.py` writes all 2,807 rows without primary files or network +access. diff --git a/sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables/claims_staged.jsonl.gz b/sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables/claims_staged.jsonl.gz index e5a81c149..c6efce1b5 100644 Binary files a/sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables/claims_staged.jsonl.gz and b/sources/harvest-uk-ab2026-2026-10-29/uk_obr_tables/claims_staged.jsonl.gz differ diff --git a/sources/harvest-uk-ab2026-2026-10-29/uk_rf_ab2026/NOTES.md b/sources/harvest-uk-ab2026-2026-10-29/uk_rf_ab2026/NOTES.md index 78ffd7158..94ae1a7ed 100644 --- a/sources/harvest-uk-ab2026-2026-10-29/uk_rf_ab2026/NOTES.md +++ b/sources/harvest-uk-ab2026-2026-10-29/uk_rf_ab2026/NOTES.md @@ -200,7 +200,7 @@ We gave each row below `measure_key: null` and its key in `conditions.proposed_m | `ab2026__package_tax_decisions_since_march_2026` | 13 | The OBR's Table 3.1 "Direct effect of tax measures" since March, sign flipped. F10 "Net direct effects", the p.23 labels, and p.4 "about £5 billion annually from next year". Differs from Table 6.1's tax total (-£1,749m vs -£1,645m in 2026-27). | | `ab2026_option__tax_decisions_with_continued_fuel_duty_freeze` | 11 | The OBR's direct effect of tax measures plus keeping Fuel Duty at current rates: F10 "Net effect if Fuel Duty frozen" and its p.23 labels. On `revenue_change` (README rule 10; see "README rule 10" below). | | `ab2026__package_tax_administration_compliance_and_debt_collection_receipts` | 7 | The OBR's Table 3.1 group "Tax administration, compliance and debt collection measures", which covers the receipts of Table 6.1 lines 45 and 46 (OBR review B, finding 3; it includes timely payment for Self Assessment; RF doesn't list the lines). F10 row 52; p.4 "over £3 billion annually by 2030-31". | -| `ab2026_option__fuel_duty_continued_freeze` | 6 | Fuel Duty rates held at 52.95p a litre instead of rising to 60.59p in July 2027, relative to the announced policy: the OBR's constant-duty-rate alternative less its central forecast. F10 "… and if Fuel Duty frozen"; p.24 £4.3bn in 2029-30. A receipts cost, on `revenue_change`. At ingest we drop these rows as restatements of the OBR's forecast and keep the OBR family's £4.3bn (paragraph 3.43, row 2740) on `decisions_effect_on_borrowing`, because the OBR states its effect on borrowing. | +| `ab2026_option__fuel_duty_continued_freeze` | 6 | Fuel Duty rates held at 52.95p a litre instead of rising to 60.59p in July 2027, relative to the announced policy: the OBR's constant-duty-rate alternative less its central forecast. F10 "… and if Fuel Duty frozen"; p.24 £4.3bn in 2029-30. A receipts cost, on `revenue_change`. At ingest we drop these rows as restatements of the OBR's forecast. We keep the OBR's own figures: £4.3bn in 2029-30 on `decisions_effect_on_borrowing` (paragraph 3.43, row 2740), and £4 billion a year on average over 2027-28 to 2031-32 on `revenue_change` (paragraph 4.30, row 2800). RF's rows 397–401 average about £3.98 billion over those five years. | | `ab2026__package_rf_other_tax_measures` | 6 | RF's residual in F10 "Other tax measures": OBR net direct effects less Fuel Duty, Bank Surcharge, capital allowances, savings and property, and tax administration. | | `ab2026__package_household_energy_vat_and_household_share_of_fuel_duty` | 3 | Table 6.1 lines 1 and 2 plus the household-incidence share of line 3: RF's "£4.4 billion cost of living package", in which RF counts Fuel Duty "at the share accruing directly to households" (fn 19; about half of line 3's £1.4bn). Lines 1 and 2 sum to £3,685m over 2026-27 and 2027-28. A two-year total, `cumulative` (review A, K-4). | | `ab2026__package_household_energy_payment_and_electricity_vat` | 5 | Lines 1 and 2: "A £3.7 billion package of household support"; p.17 "£3.4 billion in 2026-27", "£0.3 billion in 2027-28", 45 per cent. The sums show line 2 is the whole cut; see the discrepancies below. | diff --git a/tests/test_ab2026_key_decisions.py b/tests/test_ab2026_key_decisions.py index f7af13250..3ddc16fae 100644 --- a/tests/test_ab2026_key_decisions.py +++ b/tests/test_ab2026_key_decisions.py @@ -31,14 +31,14 @@ def test_key_decisions_md_is_rendered_from_the_rows(): assert (HARVEST / "KEY_DECISIONS.md").read_text() == render() -def test_tranche_one_proposed_86_keys_on_973_rows(): +def test_registered_86_keys_cover_980_rows(): kinds = [d["kind"] for d in D.DECISIONS.values()] assert (kinds.count("measure"), kinds.count("package"), kinds.count("option")) == ( 15, 58, 13, ) - assert sum(d["rows"] for d in D.DECISIONS.values()) == 973 + assert sum(d["rows"] for d in D.DECISIONS.values()) == 980 def test_each_registered_key_carries_its_kind_and_producers(): diff --git a/tests/test_uk_ab2026_harvest.py b/tests/test_uk_ab2026_harvest.py index 35b93f791..472ee3632 100644 --- a/tests/test_uk_ab2026_harvest.py +++ b/tests/test_uk_ab2026_harvest.py @@ -308,7 +308,8 @@ def test_a_totals_lines_by_head_keep_revenue_change(): Government decisions. Those rows keep revenue_change; every other row on that key gives the total, its direct or indirect effects or a part of them, and takes the borrowing metric or, for the current budget deficit, - proposes fiscal_balance_change.""" + proposes fiscal_balance_change. Table 6.3's policy effects on financial + transactions propose public_sector_net_debt_change.""" on_key = [ r for fam in FAMILIES for r in rows(fam) if _key(r) == GOVERNMENT_DECISIONS ] @@ -323,9 +324,9 @@ def test_a_totals_lines_by_head_keep_revenue_change(): assert not re.search(r"\b(total|effects? of)\b", _label(r), re.I), _label(r) for r in on_key: if r.get("metric") != "revenue_change": - assert ( - r.get("metric") == BORROWING - or r.get("proposed_metric") == "fiscal_balance_change" + assert r.get("metric") == BORROWING or r.get("proposed_metric") in ( + "fiscal_balance_change", + "public_sector_net_debt_change", ), _label(r) @@ -335,6 +336,110 @@ def test_the_fuel_freeze_totals_keep_revenue_change(): assert {r["metric"] for r in freeze} == {"revenue_change"} +def test_the_fuel_freeze_receipts_series_rounds_to_the_obr_average(): + """RF's constant-duty-rate path and OBR paragraph 4.30 describe the same + option: their five annual receipts cuts average £3.98bn, which rounds to + the OBR's £4bn a year over 2027-28 to 2031-32.""" + key = "ab2026_option__fuel_duty_continued_freeze" + rf = rows("uk_rf_ab2026")[397:402] + assert [r["conditions"]["fy"] for r in rf] == [ + f"{year}-{(year + 1) % 100:02d}" for year in range(2027, 2032) + ] + assert {_key(r) for r in rf} == {key} + obr = [ + r + for r in rows("uk_obr_tables") + if _key(r) == key and r["source_table"] == "para 4.30" + ] + assert len(obr) == 1 + assert obr[0]["conditions"]["aggregation"] == "annual average 2027-28 to 2031-32" + assert {r["metric"] for r in rf + obr} == {"revenue_change"} + average = sum(abs(r["value"]) for r in rf) / len(rf) + assert round(average / 1e9) * 1e9 == obr[0]["value"] == 4e9 + + +FREEZE = "ab2026_option__fuel_duty_continued_freeze" +LATEST_POLICY = ( + "OBR October 2026 forecast, on the assumption that the latest policy is implemented" +) + + +def test_the_obr_costs_a_continued_freeze_against_its_latest_policy_forecast(): + """Review of #255, M1: in paragraphs 3.43 and 4.30 the OBR costs a + continued fuel duty freeze against its forecast on the latest policy, + which includes this Budget's measures, so those two rows, and only they, + propose that world.""" + obr = rows("uk_obr_tables") + latest = [ + i + for i, r in enumerate(obr) + if (r.get("proposed_baseline") or "").startswith(LATEST_POLICY) + ] + assert latest == [2740, 2800] + assert [obr[i]["publication"]["locator"] for i in latest] == [ + "para 3.43 (p.76)", + "para 4.30 (p.96)", + ] + assert [i for i, r in enumerate(obr) if _key(r) == FREEZE] == latest + + +# Table 6.3's "Effects of policy on financial transactions" line as the OBR +# prints it (£ billion), typed from the table, not read from the stager. +TABLE_6_3_POLICY = ( + ("2026-27", 2027, "-0.1"), + ("2027-28", 2028, "0.8"), + ("2028-29", 2029, "2.1"), + ("2029-30", 2030, "-12.4"), + ("2030-31", 2031, "3.9"), + ("2031-32", 2032, "4.0"), +) + + +def test_table_6_3s_policy_line_keeps_each_printed_cell(): + """Review of #255, L1: each of rows 2801-2806 takes its fiscal year, its + printed cell and its sign from Table 6.3, on the Government-decisions + package's key.""" + line = "Effects of policy on financial transactions" + staged = rows("uk_obr_tables")[2801:] + assert len(staged) == len(TABLE_6_3_POLICY) + for r, (fy, period, cell) in zip(staged, TABLE_6_3_POLICY): + assert (r["conditions"]["fy"], r["source_column"], r["period"]) == ( + fy, + fy, + period, + ) + assert r["value_raw"] == r["quote"] == cell + assert r["value"] == round(float(cell) * 1e9) + assert _key(r) == GOVERNMENT_DECISIONS + assert r["proposed_metric"] == "public_sector_net_debt_change" + assert r["conditions"]["table_row"] == line + assert r["conditions"]["sign_convention"] == ( + "as worded: positive = net debt increase" + ) + assert r["publication"]["locator"] == f"Table 6.3 (p.141), {line}, {fy}" + + +def test_paragraph_3_17_averages_the_yields_and_not_the_responses(): + """Review of #255, L2 (#249's finding L4): the OBR averages the savings + and property yields from 2028-29, and states each behavioural reduction + per year.""" + obr = rows("uk_obr_tables")[2668:2672] + assert [(_key(r), r["value"], r["conditions"]["aggregation"]) for r in obr] == [ + ( + "ab2026__savings_income_rates_plus_2pp", + 600_000_000, + "annual average from 2028-29", + ), + ("ab2026__savings_income_rates_plus_2pp", 200_000_000, "annual"), + ( + "ab2026__property_income_rates_plus_2pp", + 400_000_000, + "annual average from 2028-29", + ), + ("ab2026__property_income_rates_plus_2pp", 100_000_000, "annual"), + ] + + def test_receipts_totals_and_tax_change_estimates_keep_revenue_change(): """README rule 10 (delta review of 8b7b23db, findings 1 and 2): a receipts total or a tax-change estimate keeps revenue_change unless its evidence diff --git a/tests/test_uk_ab2026_ingest.py b/tests/test_uk_ab2026_ingest.py index 6878013a8..8cba9e3d3 100644 --- a/tests/test_uk_ab2026_ingest.py +++ b/tests/test_uk_ab2026_ingest.py @@ -1,6 +1,6 @@ """The Autumn Budget 2026 ingest (#230, tranche 2). -Every one of the 5,952 staged rows becomes a claim or a tallied drop. These +Every one of the 5,959 staged rows becomes a claim or a tallied drop. These tests pin the ingest's invariants: 1. read = ingested + dropped, per family and in total, against COUNTS.json @@ -87,7 +87,7 @@ def _rows(scores): def test_every_staged_row_is_ingested_or_tallied(staged): scores, acct = staged exp = I.expected() - assert acct["read"] == exp["read"] == COUNTS["_totals"]["rows"] == 5952 + assert acct["read"] == exp["read"] == COUNTS["_totals"]["rows"] == 5959 assert acct["ingested"] == len(scores) == exp["ingested"] assert acct["ingested"] + acct["dropped"] == acct["read"] assert set(acct["by_family"]) == {k for k in COUNTS if not k.startswith("_")} @@ -105,6 +105,36 @@ def test_every_drop_states_a_reason(staged): assert sum(e["rows"] for e in acct["drops"].values()) == acct["dropped"] +def test_the_restated_fuel_freeze_reason_names_both_obr_figures(): + assert I.DROPS_AB2026["restated_obr_forecast"] == ( + "Resolution Foundation computes the cost of continuing the fuel duty " + "freeze from two OBR forecasts, the constant-duty-rate receipts less " + "the central receipts. We keep the OBR's own figures: its effect on " + "borrowing in 2029-30 (paragraph 3.43) and its average cut in receipts " + "from 2027-28 to 2031-32 (paragraph 4.30)." + ) + + +def test_the_new_obr_rows_become_one_claim_and_six_macro_drops(): + numbered = {"uk_obr_tables": list(enumerate(RAW["uk_obr_tables"][2800:], 2800))} + scores, acct = I.stage(numbered) + assert (acct["read"], acct["ingested"], acct["dropped"]) == (7, 1, 6) + assert {key: value["rows"] for key, value in acct["drops"].items()} == { + "macro_fiscal_or_out_of_scope": 6 + } + claim = scores[0] + assert claim.metric == Metric.REVENUE_CHANGE + assert ( + claim.conditions["measure_key"] == "ab2026_option__fuel_duty_continued_freeze" + ) + assert claim.value == 4_000_000_000 + assert claim.conditions["aggregation"] == "annual average 2027-28 to 2031-32" + assert claim.reform.baseline == LATEST_POLICY_WORLD + old, old_acct = I.stage({"uk_obr_tables": [(2688, RAW["uk_obr_tables"][2688])]}) + assert old == [] + assert set(old_acct["drops"]) == set(acct["drops"]) + + def test_restated_rows_are_tallied_not_carried(staged): _, acct = staged assert ( @@ -325,9 +355,8 @@ def test_table_6_2_and_the_obr_financing_requirement_share_one_metric(staged): assert [s.metric for s in obr] == [Metric.CASH_REQUIREMENT_CHANGE] -def test_the_continued_fuel_duty_freeze_stays_on_borrowing(staged): - """The OBR states the option's effect on public sector net borrowing, so we - retain that metric and apply #55's macro verdict.""" +def test_the_fuel_freeze_keeps_the_obrs_borrowing_and_receipts_figures(staged): + """Keep both OBR quantities and apply #55's macro verdict to borrowing.""" scores, _ = staged freeze = [ s @@ -335,16 +364,54 @@ def test_the_continued_fuel_duty_freeze_stays_on_borrowing(staged): if s.conditions.get("measure_key") == "ab2026_option__fuel_duty_continued_freeze" ] - # RF derives its figure from the OBR's forecasts, so only the OBR's stays - [obr] = freeze - assert obr.source == "obr_efo" - assert obr.metric == Metric.DECISIONS_EFFECT_ON_BORROWING + # RF derives its figures from the OBR's forecasts; keep both OBR estimates. + assert len(freeze) == 2 + assert {s.source for s in freeze} == {"obr_efo"} + by_metric = {s.metric: s for s in freeze} + assert set(by_metric) == { + Metric.DECISIONS_EFFECT_ON_BORROWING, + Metric.REVENUE_CHANGE, + } + receipts = by_metric[Metric.REVENUE_CHANGE] + assert (receipts.value, receipts.period) == (4_000_000_000, 2032) + assert receipts.conditions["aggregation"] == "annual average 2027-28 to 2031-32" + obr = by_metric[Metric.DECISIONS_EFFECT_ON_BORROWING] assert "staged_metric" not in obr.conditions assert obr.conditions["pe_expressibility"] == "not_expressible" assert obr.conditions["pe_missing"] == I.AB25.MACRO_MISSING assert obr.conditions["action_link"] == I.AB25.MACRO_LINK +LATEST_POLICY_WORLD = { + "policy": "obr_october_2026_budget_forecast", + "counterfactual": "policy_parameters", +} + + +def test_the_freeze_claims_score_against_the_obrs_latest_policy_world(staged): + """Review of #255, M1: both OBR costings of a continued freeze take the + registered latest-policy world, and every other OBR claim keeps its own.""" + scores, _ = staged + obr = [s for s in scores if s.source == "obr_efo"] + latest = [s for s in obr if s.reform.baseline == LATEST_POLICY_WORLD] + assert sorted(s.publication["locator"] for s in latest) == [ + "para 3.43 (p.76)", + "para 4.30 (p.96)", + ] + assert {s.conditions["measure_key"] for s in latest} == { + "ab2026_option__fuel_duty_continued_freeze" + } + assert {s.conditions["baseline_policy"] for s in latest} == { + "obr_october_2026_budget_forecast" + } + assert Counter((s.reform.baseline or {}).get("policy") for s in obr) == { + "obr_pre_measures_autumn_budget_2026": 2702, + "obr_october_2026_budget_forecast": 2, + "obr_fuel_duty_rpi_uprated_since_2010_11": 1, + None: 7, + } + + def test_ifs_keeps_the_one_off_payment_and_tallies_the_partial_year_support(): """IFS averages January 2027's Household Energy Payment across households in England, and the whole payment falls in one fiscal year. Its other three @@ -746,7 +813,6 @@ def _staged_unit(row): "pe_expressibility", "pe_missing", "reform_hint", - "scoring_method", "staged_metric", "value_verbatim", } @@ -775,7 +841,15 @@ def _keeps_conditions(row, score): for key in staged if key == "program" or key in I.AB25._CANONICALISED } - return set(score.conditions) <= set(staged) | verbatim | INGEST_CONDITIONS + allowed = set(staged) | verbatim | INGEST_CONDITIONS + if "scoring_method" in score.conditions and "scoring_method" not in staged: + if ( + row.get("proposed_metric") != "exchequer_impact_static" + or score.conditions["scoring_method"] != "static" + ): + return False + allowed.add("scoring_method") + return set(score.conditions) <= allowed _CHILDCARE = "free childcare entitlement (claimed and received some)" @@ -832,6 +906,14 @@ def _keeps_conditions(row, score): {"source": "centax", "conditions": {"basis": "forecast"}}, {"basis": "forecast", "geography_verbatim": "England"}, ), + ( + { + "source": "centax", + "proposed_metric": "exchequer_impact_static", + "conditions": {}, + }, + {"scoring_method": "post_behavioural"}, + ), ], ) def test_preservation_rejects_a_lost_or_invented_condition(row, stored): @@ -896,9 +978,18 @@ def canonical(source, axis, value): assert score.conditions.get("program_verbatim") == verbatim -def test_a_static_exchequer_row_gains_its_scoring_method(): +def test_a_centax_row_cannot_gain_an_unstaged_scoring_method(): + row = RAW["uk_centax"][100] + assert "scoring_method" not in (row.get("conditions") or {}) + score = I._score(row, "uk_centax", row["source"], Metric.AFFECTED_SHARE) + score.conditions["scoring_method"] = "static" + assert not _keeps_conditions(row, score) + + +@pytest.mark.parametrize("method", [None, "post_behavioural"]) +def test_a_static_exchequer_row_gains_its_scoring_method(method): """We staged no row under `exchequer_impact_static`, so we set it on an - HM Treasury costings row with no scoring method.""" + HM Treasury costings row and preserve any staged scoring method.""" row = copy.deepcopy( next( r @@ -907,8 +998,10 @@ def test_a_static_exchequer_row_gains_its_scoring_method(): ) ) row["proposed_metric"] = "exchequer_impact_static" + if method is not None: + row.setdefault("conditions", {})["scoring_method"] = method score = I._score(row, "uk_hmt_costings", row["source"], Metric.REVENUE_CHANGE) - assert score.conditions["scoring_method"] == "static" + assert score.conditions["scoring_method"] == (method or "static") assert _keeps_conditions(row, score) @@ -1172,7 +1265,14 @@ def test_a_reviewed_twin_outside_the_printed_rounding_raises(monkeypatch): I._check_row_calls("uk_hmt_redbook", rows) -@given(st.integers(1, 99_999), st.integers(0, 3), st.booleans()) +def test_a_four_place_decimal_prints_a_hundred_thousand_pound_unit(): + assert ( + I._printed_unit({"value": 1_234_500_000, "value_raw": "£1.2345 billion"}) + == 100_000 + ) + + +@given(st.integers(1, 99_999), st.integers(0, 6), st.booleans()) def test_the_printed_unit_follows_the_last_printed_digit(digits, places, billions): number = digits / 10**places word, scale = ("billion", 1e9) if billions else ("million", 1e6)