Repository navigation
Stop early years hours once a child starts school, and start working parent hours with the next term - #2570
Conversation
A council meets the universal and working parent duties for a child in a state-funded or council-funded reception class through the school place: DfE's statutory guidance (April 2026, footnotes 7 and 17, paras A4.8 and C.6) gives such a child no free hours outside it. In Scotland a child in primary 1 is no longer an eligible pre-school child (Children and Young People (Scotland) Act 2014 s.47(2)(b)). early_years_child_in_school is true when current_education is primary or a later stage, and can be set directly. Universal eligibility, the working parent qualifying child and Scottish funded early learning and childcare leave such a child out. Without a current_education input a 4-year-old is not in school, so situations without one are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SI 2022/1134 reg 27(1)(a): a child is eligible from the first 1 January, 1 April or 1 September after the day its declaration has effect, which for a declaration made in advance is the day it attains the reg 13 minimum age (regs 20(a) and 25(1)(b)). SI 2016/1257 reg 35(3) set the same dates from the third birthday before December 2022. The model tested the age once, in the middle of the year, so no child aged 0 then qualified and every child aged 1 qualified all year. extended_childcare_entitlement_term_share is the share of the year's terms, beginning on 1 April, 1 September and 1 January, that begin after the child attains the minimum age, read from the date of birth. The qualifying child needs a share above 0, the working parent total is scaled by it, and universal and targeted hours meet it term by term. With a share of 1 every formula is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi
left a comment
There was a problem hiding this comment.
@juaristi22 thanks, this is my review at 369f5503763ed908a3981596c1d4c83d48a14cf6.
Both parts are right in law, and the term rule is a clear improvement. I have two shoulds and two nits. CI at this sha: YAML, lint, docs, smoke imports and fix evidence pass; the five Python shards and Aggregate impact were still pending when I posted.
What I checked
- Sources, read today. SI 2022/1134 regs 13(2)(a), 20(a), 25(1)(b) and 27(1)(a); SI 2016/1257 reg 35(3) as made; Children and Young People (Scotland) Act 2014 s.47(2)(b); DfE early education and childcare statutory guidance from 1 April 2026, footnotes 7 and 17, A1.10 and A1.17, A4.8, C.5 and C.6. Each says what the PR says. Footnotes 7 and 17 give no free hours outside a state-funded or council-funded reception place. C.6 tells parents they cannot take the free hours once the child takes up that place.
- Term rule. The strict
<inextended_childcare_entitlement_term_share.py:47-50matches reg 27(1)(a) ("the first date after the day") and DfE's A1.10 table. A child who turns nine months on 1 April starts on 1 September.hours_age = max_(age, minimum age)gives 30 hours at age 0 from September 2025, and the funding rate stays the under-2 rate. Inextended_childcare_entitlement_per_child.py, thewhere(claims_universal, term_share * universal, universal)branch matches the two allocation branches in the universal and targeted formulas. With a share of 1, everything reduces to the old formulas. - Not modelled, and fine for an annual model. The model takes the code as valid at each term start (the 31 March, 31 August and 31 December deadlines). The three-monthly reconfirmation and the grace period are also left out.
- Wales and Northern Ireland are unaffected. No Welsh or NI variable reads either new variable.
scottish_funded_early_learning_childcare_eligiblehas no consumer yet, so the Scottish change does not move any aggregate. - Tests, in a fresh venv at the head. The DfE, Scottish and new demographic YAML tests all pass (291). So do
test_extended_childcare_term_share.pyandtest_childcare_entitlement_floor_properties.py(25), and the six date, education and funding-rate Python files you list (41). The reproducer YAML fails on main (2f1606e99) and passes here. - PR body.
Reproducer:is there. Theaxiom:line is a maintainer line, notaxiom: needed. Both changelog fragments are there.
Effect on costs (Microcosm a858c100, England, £bn)
| 2027-28 | main | this PR |
|---|---|---|
| Funded hours (universal + targeted + extended) | 11.44 | 10.24 |
| of which reception rule | -1.50 | |
| of which term rule | +0.30 | |
| Static cost of removing the £100,000 limit (funded hours only) | 0.930 | 0.917 |
- The term rule brings under-2s closer to DfE. On this release the age 0 and 1 extended hours are about £2.9bn in 2026-27, against DfE's illustrative £3.0bn for under-2s. On main they were about £2.6bn.
- On the £100,000 reform, the reception rule moves the cost by -0.085bn and the term rule by +0.07bn. The reception figure matches a separate estimate of -0.083bn on an older engine.
Findings
- should: the reception flag is a survey snapshot applied to the whole year, and it covers about half the children who start reception.
early_years_child_in_school.py:41-43, used atuniversal_childcare_entitlement_eligible.py:47-48,extended_childcare_entitlement_qualifying_child.py:59-66andscottish_funded_early_learning_childcare_eligible.py:43-46.- The model's age is the age on 6 October. Under the School Admissions Code (guidance C.5), a child aged 4 then and born before 1 September four years earlier starts reception on 1 September of the same year. By
months_since_last_birthday, that is 89% of 4-year-olds on this release. - The data flag only 52% of them (weighted).
current_educationis enrolment at the survey interview, so the flag mostly records whether the interview came after September. - The legal pattern for those children is the summer term funded and the autumn and spring terms not. The PR does something different: a flagged child loses all three terms, including the summer term it is entitled to, and an unflagged one keeps the autumn and spring terms it is not.
- In aggregate it nearly washes out. In 2027-28 the PR keeps £1.17bn for 4-year-olds, and a date rule would keep £1.11bn. Per household it does not, and that matters for distributional results, including the £100,000 reform.
- Suggested fix, since the PR already reads
birth_day: in England, a child born before 1 September of the year it turns 4 is in reception from the 1 September term. It gets funded hours in the summer term only (a school-start share alongsideextended_childcare_entitlement_term_share).early_years_child_in_schoolstays as an override for household inputs and fee-paying independent schools. Scotland's P1 starts in August, so the same approach fits there with a 1 March to end-of-February cohort. - If you would rather do this separately, a follow-up issue plus a sentence in the docs and changelog saying the flag is point-in-time would be enough for this PR.
- The model's age is the age on 6 October. Under the School Admissions Code (guidance C.5), a child aged 4 then and born before 1 September four years earlier starts reception on 1 September of the same year. By
- should: link the policyengine-uk-data issue for the take-up refit before merge. The PR body says the refit is needed, but the issue isn't filed yet. The reception share and the fitted take-up were calibrated together. Until the refit, this PR lowers baseline funded hours by about £1.2bn in 2027-28 on the current release. Finding 1 decides which children the refit should exclude, so the uk-data issue should cite it.
- nit: the minimum age is read once per year, though the rule is now term by term.
extended_childcare_entitlement_term_share.py:42readsparameters(period), so in 2024-25 every term uses two years. Under SI 2023/1330 reg 2(5)(b), nine months applied from 1 September 2024, so the autumn and spring terms should use it. Reading the parameter at each term's start date would fix 2024-25 at no extra cost. The same applies to the hours schedule in 2025-26 (15 hours for under-2s until 1 September 2025, then 30). Both are older than this PR and only affect past years, so this is optional. - nit: axiom extension comments. The
axiom:line says the reg 27 and reception-place comments and the new s.47(2) parity issue are drafted but not posted. Worth posting them before merge so the line points at something that exists.
Overlaps and merge order
- No file overlaps with other open PRs apart from the ones you name.
- #2403 rewrites
current_education. This PR only reads it, so either order works. - #2535 (Wales) can read
early_years_child_in_school. If finding 1 changes the flag, #2535 should follow the new definition. - #2557 changes
childcare_funding_rateuprating but says the projected path stays the same. If it does move 2026+ rates, whichever PR merges second re-runs the YAML amounts. - #2552 touches only the UC criteria for targeted hours.
🤖 Generated with Claude Code
Aggregate impact on certified data: passBase Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 62 (thresholds in Notes
Moves flagged for review
22 more flags are in the report artifact. Spending by benefit and service
Caseloads
Government balance, each component counted once
Model totals
Household income totals
Mean household net income in each side's own deciles
Standard reform costings (change in gov_balance)
Household net income by decileMean change in household net income per household, and as a share of the decile's base income; households stay in the base run's deciles.
No change in any year: receipts by tax head; components the model counts twice; population; poverty rates; people in poverty; inequality; standard reforms: change in each reform's target. Checks failing on both base and head (1)
Counted-once checkEach of 84 components was raised by £1 per unit in 2026-27, and every head of its totals was read 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 head that breaks a rule is measured again twice: with every other head held at its baseline value, and with every other head held at its value after the first £1 while the component rises again. It fails where either still shows the response. 0 failed; 0 were skipped.
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
Components the model counts twice: 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
|
…view current_education is enrolment at the survey interview, so as a reception flag it caught about half the children who start reception in September and applied to the whole year. A child is entitled to a reception place in the September following its fourth birthday (School Admissions Code 2021 para 2.17), and the place then meets the universal and working parent duties, so such a child keeps the summer term only. early_years_term_share_before_school replaces early_years_child_in_school: the share of the year's terms that begin before the child starts school, from the date of birth. - England and Wales: the September following the fourth birthday. - Scotland: primary 1 in August for children who turn five from March to the next February (Education (Scotland) Act 1980 s.32). - Northern Ireland: September for children who are four by 1 July (Education and Libraries (Northern Ireland) Order 1986 art 46(2)). Universal hours and the working parent total are scaled by it, and a child stays eligible while any term comes before school. early_years_school_start_deferred keeps the year for a deferred start or a council-funded independent reception place. The term start dates move to utils.dates.term_starts, shared with the minimum-age term share. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@vahid-ahmadi thanks. a464aac (pushed) addresses the two shoulds and the Axiom nit, and the minimum-age nit is answered below. The PR body is updated.
On merge order: #2535 should read 🤖 Generated with Claude Code |
vahid-ahmadi
left a comment
There was a problem hiding this comment.
@juaristi22 thanks, this is my review at a464aac656954380c992b1a1ed04dca6cde65122.
Both shoulds are resolved, so I'm approving. The date rule does what I hoped: the cost lands where the round 1 estimate said, and the £100,000 reform cost is now the same as on main. I have two small new nits, both fine as follow-ups. CI at this sha: Changes, Fix evidence and the docs test build pass; Lint, the YAML and Python shards, smoke imports, the docs build and Aggregate impact were still running when I posted. The Aggregate impact comment on the PR is from the round 1 head, so its universal caseload drop of about 300k no longer applies.
Round 1 findings
- should, reception flag: resolved.
early_years_term_share_before_school.py:57-72works out the school start from the date of birth, andcurrent_educationis no longer read.- I checked each nation's cohort boundary against the source, read today. England: the September following the fourth birthday (Admissions Code 2.17), so 1 September. Scotland: Education (Scotland) Act 1980 s.32(4), (6) and (7) give an August start for children who turn five by the latest date, so 1 March. Northern Ireland: art 46(2)(a) and (b) give 1 August for a child who is four by 1 July, so 2 July.
start_yearand the strict<against the term starts get every boundary right, including 29 February. - On Microcosm a858c100, 88% of English 4-year-olds now get the summer term only, against 52% flagged before. In 2027-28, 4-year-olds keep £1.11bn of funded hours, the same as the date rule estimate in round 1.
- Using a separate
early_years_school_start_deferredinput is the right call, for the reason you give. Defaulting the share to 1 keeps a sibling on the formula.
- I checked each nation's cohort boundary against the source, read today. England: the September following the fourth birthday (Admissions Code 2.17), so 1 September. Scotland: Education (Scotland) Act 1980 s.32(4), (6) and (7) give an August start for children who turn five by the latest date, so 1 March. Northern Ireland: art 46(2)(a) and (b) give 1 August for a child who is four by 1 July, so 2 July.
- should, uk-data issue: resolved. PolicyEngine/policyengine-uk-data#633 is open and cites this PR and finding 1. The spring-term caseload basis is right, since
is_child_receiving_extended_childcarenow counts summer-term-only 4-year-olds (236.8k aged 4 in England in 2027-28, the same as main). - nit, parameters by term: agreed to leave.
hours.yamldoes start the under-2 bracket in January 2025, so reading the minimum age by term would not fix autumn 2024 by itself. It's listed under Not in this PR. - nit, Axiom: resolved. Both extension comments on rulespec-uk#364 and #439 are posted, and #484 exists. The
axiom:line links all three.
What I checked again
- Code. In
universal_childcare_entitlement.py:33-48, the share scalesbase_valuebefore the standalone and participating branches, so both see it.extended_childcare_entitlement_total_per_child.py:44-53scales by both shares.extended_childcare_entitlement_per_child.pydoes not need the school share again: the term share is 1 for every child of school-starting age. Scotland's eligibility only gainsbefore_school > 0and still has no consumer. - Household default. A bare age of 4 now gets a third of the year. That is a visible change for app users, but it is the right modal case, and the changelog says so.
- Tests, in a fresh venv at this sha. The DfE, Scottish and demographic YAML tests pass (361), as do
test_early_years_school_start.py,test_extended_childcare_term_share.py,test_childcare_entitlement_floor_properties.py,test_date_of_birth.pyandtest_childcare_funding_rates.py(53).ruff format --check,ruff checkand the F811/F821 check are clean on the changed Python files.
Effect on costs (Microcosm a858c100, England, £bn)
| 2027-28 | main | round 1 | this head |
|---|---|---|---|
| Funded hours (universal + targeted + extended) | 11.44 | 10.24 | 10.18 |
| Static cost of removing the £100,000 limit (funded hours only) | 0.930 | 0.917 | 0.930 |
- The reception rule and the term rule now offset almost exactly on the £100,000 reform. In round 1 they moved it by -0.085bn and +0.07bn.
- Until #633 refits take-up, this PR still lowers baseline funded hours by about £1.3bn in 2027-28.
New findings
- nit: 5-year-olds with a summer term before school still get nothing. The whole-year age gates (
age < p.age.maxatuniversal_childcare_entitlement_eligible.py:32andunder_compulsory_school_ageinextended_childcare_entitlement_qualifying_child.py) drop a child aged 5 on the reference date who starts reception in September. In England that is a child born from 1 September to early October, and 8.6% of English 5-year-olds have a share of a third. They are entitled to the summer term, like the 4-year-olds this PR fixes. It's older than this PR and small, so adding it to "Other start dates" under Not in this PR is enough. - nit: the deferred flag keeps the whole year for any deferral. The docstring at
early_years_school_start_deferred.py:9-14covers a deferral "until later in the school year". A child deferred to January gets the summer and autumn terms, not the spring term too. One clause saying the flag fits a deferral to the summer term or a year out of age group would do.
Overlaps and merge order
Unchanged from round 1. #2535 should read early_years_term_share_before_school, as you say. #2557 and #2552 are unaffected by the third commit.
🤖 Generated with Claude Code
|
Merged by the UK hub (Claude session 8e19f9d5) at head
|
The UK lock moves from 2.145.0 to 2.147.2 (policyengine-core stays at 3.33.3). 2.147.2 stops the early years hours at school start by date of birth and starts working-parent hours the term after the minimum age (PolicyEngine/policyengine-uk#2570). The uprating pins' stamp, the concept coverage (311 to 314 inputs), the coverage manifest, the cited versions and APPROVED_UV_LOCK_SHA256 re-derive. The liquid-asset reason follows 2.147.0's share_like_capital; the three new inputs stay at their defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #2567
What and why
Funded early years hours tested the child's age only. So a 4-year-old in reception kept both the universal and the working parent hours, and in Scotland a child in primary 1 kept funded early learning and childcare. Working parent hours were decided once, on the age in the middle of the year. Survey ages are whole years, so no child aged 0 then ever qualified, though children reach nine months all through the year.
Three ordered commits. The first two are the original change. The third answers the review: the start of school now comes from the date of birth, not from
current_education.1. No funded early years hours once a child has started school (e64fc90, then a464aac)
universal_childcare_entitlement_eligibleandextended_childcare_entitlement_qualifying_childstop from the term a child starts school. In England the council meets both duties through a state-funded or council-funded reception place, and the child is "not entitled to any additional free hours outside their school reception class place" (statutory guidance from April 2026, footnotes 7 and 17, paras A4.8 and C.6). Both variables need it, since Preserve universal and targeted hours alongside extended childcare #2177 splits a child's hours between them.scottish_funded_early_learning_childcare_eligiblestops too: an eligible pre-school child "has not commenced attendance at a primary school (other than at a nursery class in such a school)" (Children and Young People (Scotland) Act 2014 s.47(2)(b)).early_years_term_share_before_school: the share of the year's terms (from 1 April, 1 September and 1 January) that begin before the child starts school, from the date of birth.early_years_school_start_deferredkeeps the whole year. Set it for a deferred start (England: until later in the school year; Scotland: a deferred primary 1 year, funded since August 2023, SSI 2021/67) or for a council-funded independent reception place.current_education(early_years_child_in_school). That is enrolment at the survey interview, so it caught about half the September starters and applied to the whole year. The third commit replaces it, andcurrent_educationis no longer read here.2. Working parent hours start with the term after the minimum age (369f550)
extended_childcare_entitlement_term_share: the share of the year's three terms that begin after the child attains the minimum age. Each term counts as a third of the year, and the term dates are shared with the school rule (policyengine_uk.utils.dates.term_starts). The variable readsdate_of_birth, oragewithmonths_since_last_birthday, which spreads each single year of age over the year in data.extended_childcare_entitlement_qualifying_childneeds a share above 0.extended_childcare_entitlement_total_per_childis scaled by it. It uses the hours for the minimum age when the child reaches that age later in the year: age 0 otherwise gets no hours.Not in this PR
hours.yamlstart in January 2025, not September 2024, and would need re-dating too. Both affect past years only.early_years_term_share_before_school.current_educationcarries into later years. This PR no longer reads it, so the two PRs can merge in either order.Test plan
household/demographic/early_years_term_share_before_school.yaml: each nation's cohort boundary, the whole-age default, and a deferred start beside a sibling;extended_childcare_entitlement_term_share.yaml: each term boundary, whole and fractional ages, and the 2024 and 2022 minimum ages;universal_childcare_entitlement_eligible.yaml,universal_childcare_entitlement.yamlandextended_childcare_entitlement_eligible.yaml: a September starter funded for the summer term (the reproducer), a September birthday keeping the year, a deferred start, a child at school all year, and a sibling;extended_childcare_entitlement_per_child.yaml: partial-year amounts, and universal hours term by term in 2023;funded_early_learning_childcare.yaml: an August primary 1 starter and a child at school all year.test_early_years_school_start.py: every date of birth for children aged 3 to 5 in each nation, against a calendar-date reference from each nation's rule, and a deferred start.test_extended_childcare_term_share.py: every date of birth for children aged 0 to 4, against a calendar-date reference written from reg 27, for 2022 to 2026.test_childcare_entitlement_floor_properties.py:test_childcare_entitlement_floor_properties.py(20);test_early_years_school_start.py(5);test_extended_childcare_term_share.pyand the Python tests that setcurrent_educationfor children or read dates of birth or funding rates (46):test_claimant_not_own_child_properties.py,test_means_test_income_properties.py,test_uc_claimant_elements_properties.py,test_household_head_agreement_properties.py,test_date_of_birth.pyandtest_childcare_funding_rates.py.ruff formatandruff checkon the changed files. The full Python suite is left to CI.changelog.d/2567.fixed.mdandchangelog.d/2567-term-starts.fixed.md.Reproducer:
policyengine_uk/tests/policy/baseline/gov/dfe/universal_childcare_entitlement/universal_childcare_entitlement.yaml::A 4-year-old starting reception in September gets free hours for the summer term only,policyengine_uk/tests/test_early_years_school_start.py::test_the_share_before_school_follows_each_nations_school_start,policyengine_uk/tests/test_extended_childcare_term_share.py::test_term_share_follows_the_date_of_birthaxiom: TheAxiomFoundation/rulespec-uk#364 queued (extension: SI 2022/1134 regs 20(a), 25(1) and 27(1)(a), with SI 2016/1257 reg 35(3)); TheAxiomFoundation/rulespec-uk#439 queued (extension: a reception place meets both duties); TheAxiomFoundation/rulespec-uk#484 queued (Children and Young People (Scotland) Act 2014 s.47(2))
🤖 Generated with Claude Code