Repository navigation
Add an optional weekly CMS basic-rate component - #2995
juaristi22 wants to merge 2 commits into
Conversation
Aggregate impact on certified data: passBase Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 0 (thresholds in Notes
Moves flagged for reviewNone. Spending by benefit and service
Caseloads
Household net income by decileNo household's net income changes in any year. No change in any year: receipts by tax head; government balance, each component counted once; model totals; household income totals; population; poverty rates; people in poverty; inequality; mean household net income in each side's own deciles; standard reform costings (change in gov_balance); standard reforms: change in each reform's target. Checks failing on both base and head (1)
Counted-once checkThe check raised each of 101 components by £1 per unit in 2026-27 and read every head of its totals household by household: its own head must rise by exactly £1, no other tax head may move, no other benefit may rise, and the model's own total must move by what its heads moved. A response that is not finite breaks every rule. The check measures a head that breaks a rule twice more: once holding every other head at its baseline value, and once holding every other head at its value after the first £1 while the component rises again. The head fails where either measurement still shows the response. The check cannot hold a head at a value that is not finite. In each unit where another head is not finite after the first £1, it holds that head at its baseline value, and the second measurement judges no household the unit belongs to. There a head fails wherever it first broke a rule, or wherever the check could not confirm whether its response contains the component. 0 failed and the check skipped 0.
Provenance
Dataset: Receipts by tax head: head levels
Spending by benefit and service: head levels
Caseloads: head levels
Government balance, each component counted once: head levels
Model totals: head levels
Household income totals: head levels
Population: head levels
Poverty rates: head levels
People in poverty: head levels
Inequality: head levels
Mean household net income in each side's own deciles: head levels
Standard reform costings (change in gov_balance): head levels
Standard reforms: change in each reform's target: head levels
|
CI timeout fixedRaised the aggregate impact job limit from 120 to 150 minutes in VerificationAll 17 existing workflow regression checks passed. YAML parsing, the finite timeout, exact two-file scope and whitespace checks passed. Independent verification marked the planned fix clean. CMS source, parameters and test expectations retain their previous validated bytes; no private population run or manual hosted rerun was performed. Hosted checks at the new head remain unverified until they complete. The PR remains draft with |
Part of #669.
Adds an optional Child Maintenance Service (CMS) basic/basic-plus weekly component for 2026 snapshots in Great Britain. Callers must confirm the assessed basic route and supply CMS-assessed gross weekly income, qualifying-child count and relevant-other-child count. A separate availability flag distinguishes missing or unsupported facts from an evaluated amount.
The component caps gross weekly income at £3,000, applies the relevant-other-child reduction, then applies the £800 income bands. It retains intermediate precision. The DWP examples produce £96 per week for £600 income and two qualifying children, and £152 for £1,000 and two children. Sources: Child Support Act 1991, Schedule 1 paragraphs 2 and 10, DWP worked examples.
This preliminary weekly component excludes maintenance-arrangement adjustments, apportionment, shared care and final-decision rounding. It does not determine eligibility or final liability. Reported maintenance income and expenses, household income and government spending retain their existing behavior. The registry lists partial 2026 coverage without adding a budget term. The 2026 support boundary describes model coverage; statutory application began in phases from 10 December 2012.
axiom: needed
This PR remains draft while the required Axiom mirrored provision and same-source companion evidence are outstanding. It implements one component of #669 and leaves the broader issue open.
Validation:
make format: Ruff format and lint passed for all seven Python files; whitespace checks passed.Independent local review: no confirmed code or policy defects. A combined run of all new cases and the directly related maintenance regression passed 58 tests; mixed-person availability/order diagnostics also passed. The source review remains PARTIAL solely for the Axiom companion gap above.
CI timeout repair
The aggregate impact job hit its 120-minute limit in run 46907478984. Both measurements, comparison, report comment and upload completed successfully. This update raises the job limit to 150 minutes to leave completion headroom after the measured 119-minute 40-second measurement step. The job retains a finite cap, its runner, data/privacy controls, measurement commands and structural-failure gate.
Validation: all 17 existing workflow regression checks passed. YAML parsing, the finite timeout, exact change scope and whitespace checks passed. CMS model files, parameters and test expectations remain unchanged. Hosted checks at the updated head remain pending until they run.
The existing CMS contract below is the collected and passing regression for the model addition in this PR. The hosted run and timeout annotation above provide the evidence for this CI repair.
Reproducer: policyengine_uk/tests/test_child_maintenance_service_basic_rate_component.py::test_optional_component_does_not_change_reported_payments_or_budgets