Skip to content

Lock policyengine-uk 2.177.7 and policyengine-core 3.34.10 and follow what their releases change - #1572

Merged
juaristi22 merged 12 commits into
mainfrom
uk-pe-uk-bump-2177
Nov 11, 2026
Merged

juaristi22 merged 12 commits into
mainfrom
uk-pe-uk-bump-2177

Conversation

@juaristi22

@juaristi22 juaristi22 commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The UK lock moves from policyengine-uk 2.174.1 to 2.177.7, the newest release when the pin moved (microcosm#1095). From 2.177.4 policyengine-uk requires policyengine-core 3.34.9 or later, so the UK side's core moves from 3.33.3 to 3.34.10, the newest. The US side stays on 3.32.5, and uv.lock moves those two packages alone. What each release since the lock needs is in #1095's "The next policyengine-uk lock" (the read of 10 November), and the releases after it, 2.177.5 to 2.177.7, are below.

This PR was opened stacked on #1550. #1550 merged on 10 November (bd09f1783), and main at that commit is merged into this branch. After that merge the pin moved from 2.177.4 to 2.177.7, as María chose. 2.177.5 to 2.177.7 add no input.

The three new inputs, signed at their defaults

Each is in UK_ENGINE_DEFAULT_INPUTS with the error it can make, for María's signature:

  • legacy_prescribed_accommodation_capital_exception (2.174.8), at False: the FRS samples private households, so it holds almost no claimant living permanently in prescribed accommodation. Such a claimant's Income Support, income-based JSA or income-related ESA is understated by the tariff income on capital between £6,000 and £10,000.
  • esa_income_appointee_saving (2.175.3), at False: the FRS does not identify appointees, so every reported income-related ESA award ends at the abolition of 1 July 2026. DWP exempted around 500 such claimants. 2025, the calibration year, does not move.
  • cares_for_severely_disabled_person (2.177.3), at True: the FRS records caring hours but not whom the carer cares for. At True, caring hours pay as before, so no figure moves.

An input that gained a formula

From 2.176.1, is_before_universal_credit_qualifying_young_person_terminal_date follows the date of birth, so it leaves the engine's input surface (376 to 378 inputs). frs_education still writes it, and the loader takes a stored value over the formula, as it does for any engine variable. Universal Credit reads it only for a 19-year-old, together with the education condition, which is the same test frs_education sets it from. So the stored value and the formula give the same result.

What the build's engine reads return now

  • 2.174.2 to 2.175.3: as UK: every open data item: uk-data parity, engine locks, the local surface, consumption and high-value homes #1095 lists them. The qualifying young person rule for 16-year-olds; the State Pension age addition; the benefit cap reduction; the Universal Credit deduction flag; reg 60A's Working Tax Credit test; Maternity Allowance in the cap; and the income-related ESA abolition, which moves nothing before July 2026.

  • 2.175.5, 2.175.8 and 2.177.2 (Council Tax Reduction):

    • the pensioner schemes in England, Scotland and Wales add child amounts and family premiums;
    • all of a Scottish pensioner's capital over £10,000 counts in tariff income;
    • Scotland's and Wales's working-age schemes get their own rules;
    • Scotland's counts Carer Support Payment after the overlapping-benefit reduction.

    The council tax rows read council tax net of the reduction.

  • 2.175.6 (Grow alcohol and tobacco quantities with OBR clearances per head policyengine-uk#2829): the eleven alcohol and tobacco quantity inputs grow after the base year by the OBR's clearances per head, where they had stayed flat. lcfs_consumption writes nine of them, all but sparkling_cider_litres and heated_tobacco_grams_per_week. The OBR alcohol and tobacco duty rows do not move, since they are measured at FY2024-25, the base year. A read of the duties at 2025 or later does: cigarettes_per_week falls by 10.3% to 2025, so tobacco_duty at 2025 charges on about a tenth fewer cigarettes than on 2.174.1, and each alcohol series moves its duty by its own index.

  • 2.176.0 (Model rent from boarders, lodgers and sub-tenants for the householder policyengine-uk#2002): rent from boarders, lodgers and sub-tenants for the householder.

    • Income tax gives rent-a-room relief on the boarders' and lodgers' rent, which the engine sums for the household head from the rent_paid_as_boarder and rent_paid_as_lodger the build writes.
    • The legacy means tests apply the £20 and board-and-lodging disregards.
    • A boarder or lodger draws no non-dependant deduction.
    • The build keeps the FRS sub-letting rent in property_income.
  • 2.176.1: the qualifying young person's terminal date, above. It now applies to Pension Credit too.

  • 2.176.2:

    • Housing Benefit's and national Council Tax Reduction's non-dependant deductions follow each scheme's rules.
    • Universal Credit changes its LHA bedrooms and its renter exemption.
    • Universal Credit's benefit cap counts welfare benefits without Housing Benefit. A dataset that supplied benefit_cap_welfare_benefits would now also need Housing Benefit before the cap; the build supplies neither.
  • 2.177.0: VAT's survey coverage moves from 0.67 to 0.69. obr.vat stays held.

  • 2.177.2: Marriage Allowance becomes the recipient's tax reduction, and Scottish taxpayers' tax bands apply the Scottish limits to income other than savings and dividends.

  • 2.177.3: Plan 5 borrowers repay nothing before 6 April 2026, the date the student-loans stage already uses. slc.borrowers.plan_5_above_threshold then matches SLC's nil, and slc.repayments.england_plan_5, held, reads nil.

  • 2.177.5 (Bar income-related ESA at pensionable age and on Pension Credit policyengine-uk#2807): no income-related ESA for a claimant who has reached pensionable age, or for a couple that would get Pension Credit without it.

  • 2.177.6 (Count enhanced PIP daily living and AFIP for the enhanced premium policyengine-uk#2808):

    • The legacy enhanced disability premium is paid for enhanced PIP daily living and armed forces independence payment, beside the highest DLA care rate.
    • Four councils' working-age CTR schemes get their own lists.
    • The is_enhanced_disabled_for_benefits the build stores now reaches only Kingston upon Thames's working-age Council Tax Reduction and two deprecated counts, neither of which the build reads.
    • No stage writes armed forces independence payment, so its recipients get the premium only through another qualifying benefit.
  • 2.177.7 (Set reliefs and allowances against income for the least tax policyengine-uk#2830): income tax sets the allowances and reliefs against income in the way that gives the least tax (ITA 2007 s. 25(2)), instead of against non-savings income first.

  • policyengine-core 3.34.10: fixes to cached periods and to inputs on reform branches. The UK side neutralises no variable and uses none of the APIs 3.34.0 removed.

  • The other releases change nothing the build reads at 2024 or 2025, or nothing at all.

What does not move

  • The vendored uprating pins and the bonus-sacrifice anchor change only their version stamps. The CGT projection path keeps its values, within the pinned drift (test_uk_cgt_projection.py).
  • UK_HBAI_GROSS_INCOME_DEDUCTIONS keeps its parity. 2.176.0 adds sublet_income to HBAI income, not to its subtractions, and the build keeps that income in property_income.

Texts and derived files

Every text that described the locked engine was checked against the diff from 2.174.1 to 2.177.7 and now cites 2.177.7, except two comments that still name 2.174.1: pip_points.py's note on the PIP points thresholds and the ISA income contract test's docstring. Both still hold on 2.177.7, and they take its version with the next commit here. That covers the stage notes, code comments, test docstrings, the ISA and LISA docs, and #1550's PIP points, limited capability and trading allowance texts. Among the variables they cite, 2.177.5 to 2.177.7 change only tax_band's comment.

The take-up stage's note had said the build flags nobody in full-time education. Since #1535 it does, and the note now says so, as the code comment does. The coverage manifest tool's PIP notes and the eFRS known gaps follow.

The concept coverage report, the release input coverage manifest, the H2 fixture, the cited versions and APPROVED_UV_LOCK_SHA256 are regenerated.

Measurement

Two arms run on this machine, one at a time, each a spine and a calibration, at review date 2026-11-10 on #1550's feed (8045b138):

  • a control on main at bd09f1783, this PR's base;
  • this branch's head at 9e58d5844, which is also certified as a national release: rule 1 against the enhanced FRS, the signed release-cut certification, and the stage-1 comparison with the promoted national. Published to the inspect lane by tag, without promotion, it can be loaded by that tag for data drills on a certified dataset.

The first certification of the head build stopped on three gaps, which main shares since #1439:

  • Rule 1 refused person.trading_allowance_full_relief, which five HMRC SPI rows read and which had no entry on the reviewed incumbent-unresolvable register. aa08d812b adds María's signed entry.
  • Rule 1 then needed eleven pruning probes, past its fixed bound of ten, because two of the nine signed measures take two probes each. 1d2b51d25 bounds the probes by the register instead: three per signed measure, and the clean probe. A diagnostic run with a wider bound passed on this build.
  • The release-cut battery passed 20 of its 21 gates. uk_degenerate_release_surface refused the same column, which is all zero by design (UK trading allowance: store the claim status once policyengine-uk#2765 is released #1439), and 6c237b74b adds María's signed exclusion.

None of these commits changes anything the build reads, so the certification reruns on the same build at 6c237b74b. It is on hold for now.

The control is fresh because main's merges since #1550 branched change the national build: #1549's register, #1417's ITL differential check and the fiscal targets. Their results follow in a comment: both arms' gates, the fit, the first stage where the spines differ, and the rows each release moves, with rows of the SPI channel as classes.

Tests

  • Engine tier on policyengine-uk 2.177.7: CI's engine-uk job at 9e58d5844 (72 files on Python 3.13 and 3.14), which includes the H parity test, passed on both, as did every other job of that run.
  • Engine tier on 2.177.4: CI's engine-uk list (72 files), run in full locally because CI stops at the first failure. 315 tests: 313 passed and 2 failed, and 5d6a3e7 fixes both.
    • test_uk_tax_band_measure.py had pinned a known gap "so a fix shows", and 2.177.2 is that fix.
    • The frozen eFRS candidate receipt measures the terminal-date column against its engine default, which 2.176.1 flips; the receipt keeps its original engine provenance.
    • The checklist tests passed: the CGT projection, bus parity, UK_HBAI_GROSS_INCOME_DEDUCTIONS, the uprating pins, the bonus anchor and all 13 concept-mapping tests.
  • Engine-free files on the touched surfaces: 81 files, run in three processes and counted by --junitxml. 3,904 tests: 3,877 passed, 25 skipped and 2 failed, neither from this PR.
  • Checks on 2.177.7:
    • tools/ci_test_plan.py verify;
    • tools/spec_engine_coverage.py --check (42,394 of 42,394 fields, 41 of 41 inventory checks);
    • tools/refresh_concept_coverage.py --engine policyengine-uk --check;
    • the coverage manifest with --check;
    • the H2 fixture, regenerated on 2.177.7 in 9e58d5844. Only the engine versions and four stage contract digests move, and no fixture value.
  • The register entry (aa08d812b): the six engine-free files that read the register pass (228 tests).
  • The probe bound (1d2b51d25) and the degenerate exclusion (6c237b74b): the rule-1 files, the files that read the degenerate register and the contract pins pass: 846 tests in 12 microcosm-build files and 311 in microcosm-data's contract tests. Two new tests check that the bound grows with the register and still stops a measure that keeps failing.

Signatures

Awaiting María's signature: the three signed defaults, with the error each can make.

Signed by María on 10 November: the incumbent-unresolvable entry for person.trading_allowance_full_relief (aa08d812b), expiring 10 February 2027.

Signed by María on 11 November: the degenerate release-surface exclusion for person.trading_allowance_full_relief (6c237b74b), expiring 11 May 2027.

Not in this PR

Disclosure

No figure in this PR, its commits or its changelog rests on survey records. The numbers are policyengine-uk's parameters and versions, and published figures cited as their publishers'.

🤖 Generated with Claude Code

juaristi22 and others added 4 commits November 10, 2026 13:50
The UK lock moves from policyengine-uk 2.174.1 to 2.177.4, the newest
release (microcosm#1095). From 2.177.4 policyengine-uk requires
policyengine-core 3.34.9 or later, so the UK side's core moves from
3.33.3 to 3.34.10, the newest; the US side stays on 3.32.5. uv.lock
moves those two packages alone.

Three new inputs stay at their defaults and are signed in
UK_ENGINE_DEFAULT_INPUTS, each with the error it can make, for María's
signature: legacy_prescribed_accommodation_capital_exception (2.174.8)
and esa_income_appointee_saving (2.175.3) at False, and
cares_for_severely_disabled_person (2.177.3) at True, which moves no
figure. From 2.176.1
is_before_universal_credit_qualifying_young_person_terminal_date has a
formula from the date of birth, so it leaves the engine's input surface
(376 to 378 inputs); frs_education still writes it, the loader takes it
as an override, and Universal Credit reads it only for a 19-year-old
alongside the education condition, so the result is the engine's own.

No economic pin moves: the vendored uprating pins and the
bonus-sacrifice anchor change only their version stamps. The three
pyproject floors, the approved lock digest, the engine-core pin test,
the concept mapping's version and the concept coverage follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stage notes, code comments, docstrings and docs that describe the
locked engine now cite 2.177.4, each checked against it: the education
flag's one reader (uc_receiving_education), is_uc_eligible's age and
role conditions, Universal Credit's capital readers, the limited
capability proxy, the PIP categories from points, the trading allowance
claim status, the ISA and Lifetime ISA readers and the capital source
lists are unchanged from 2.174.1 (is_uc_eligible changes only its
reg 60A Working Tax Credit test, from 2.175.1). The two
policy_parameters dependencies of the CGT stages follow the new floor.

The take-up stage's note still said the build flags nobody in full-time
education and named three engine cases; since #1535 frs_education sets
the flag and the lockstep test names a fourth, which the note now
gives, as the code comment does.

The coverage manifest tool's reviewed PIP notes and the eFRS known gaps
follow, and the manifest is regenerated: only those notes and the
source manifest digest move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d a test

From 2.176.1 is_before_universal_credit_qualifying_young_person_terminal_date
defaults to true, so the eFRS candidate's frozen non-default shares for
that column, which the reader measures against the engine's default,
become the shares of the false values, as
tools/build_uk_release_input_coverage_manifest.py measures the cached
certified candidate. Every other measurement matches the frozen receipt,
which keeps its original engine provenance (2.89.0). The stored values
do not change, and the column stays a populated loader input.

From 2.177.2 (PolicyEngine/policyengine-uk#2828) tax_band applies the
Scottish limits to income other than savings and dividends only, as HMRC
classifies taxpayers. That closes the known gap the tax-band measure test
pinned so a fix would show: the test's Scottish taxpayer with 40,000 of
earnings and 5,000 of dividends is now INTERMEDIATE, not HIGHER, and
Scotland's two national ITL rows move with the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The charter-H2 fixture is regenerated on policyengine-uk 2.177.4 and
policyengine-core 3.34.10, and a --check run reproduces it byte for
byte. Every node's numerical dependencies name the new engine and core,
four stage contract digests follow the re-stamped notes and dependency
strings, and the fixture's synthetic CGT asset-type facts, which are
sized from the fixture frame after the stages that read the engine, move
by under 0.001%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juaristi22
juaristi22 changed the base branch from uk-event-data-pr2 to main November 10, 2026 15:22
juaristi22 and others added 2 commits November 10, 2026 16:52
main moved microcosm-emitter-interface to 0.14.0 (and its floor in
microcosm-build); this branch moved policyengine-uk and the UK side's
policyengine-core. uv.lock merges both, uv lock confirms it unchanged,
and APPROVED_UV_LOCK_SHA256 is that lock's digest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The UK lock moves on from 2.174.1 to 2.177.7, the newest release, after
#1550 merged (microcosm#1095); policyengine-core stays at 3.34.10, and
uv.lock moves policyengine-uk alone. 2.177.5 to 2.177.7 add no input, so
the concept coverage keeps its 378 inputs and only its version moves.
They change what the build's engine reads return:
- 2.177.5 (PolicyEngine/policyengine-uk#2807): no income-related ESA
  for a claimant who has reached pensionable age, or for a couple that
  would get Pension Credit without it.
- 2.177.6 (PolicyEngine/policyengine-uk#2808): the legacy enhanced
  disability premium for enhanced PIP daily living and armed forces
  independence payment beside the highest DLA care rate, and four
  councils' own working-age CTR lists. The is_enhanced_disabled_for_benefits
  the build stores now reaches only Kingston upon Thames's working-age
  Council Tax Reduction and two deprecated counts.
- 2.177.7 (PolicyEngine/policyengine-uk#2830): the allowances and reliefs
  set against income in the way that gives the least tax.

Every text that cites the locked engine was checked against 2.177.7 and
moves with it; only tax_band's comment changed among the variables they
cite. The approved lock digest, the three pyproject floors, the
engine-core pin test, the version stamps of the uprating pins and the
bonus-sacrifice anchor, the coverage manifest and the changelog follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juaristi22
juaristi22 marked this pull request as ready for review November 10, 2026 16:55
@juaristi22 juaristi22 closed this Nov 10, 2026
@juaristi22 juaristi22 reopened this Nov 10, 2026
tools/graph_uk_spine_fixture.py on the 2.177.7 lock. The fixture's
numerical dependencies record the engine version, so those of 56 nodes
move from 2.177.4 to 2.177.7. Four stage contracts change their digests
with the re-stamped versions: frs_annual_income_spells, salary_sacrifice
and the two CGT stages. sources/fixture.json carries the re-stamped stage
texts. No fixture value moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juaristi22 juaristi22 changed the title Lock policyengine-uk 2.177.4 and policyengine-core 3.34.10 and follow what their releases change Lock policyengine-uk 2.177.7 and policyengine-core 3.34.10 and follow what their releases change Nov 10, 2026
juaristi22 and others added 2 commits November 10, 2026 23:48
… pinned enhanced FRS

Rule 1 of the certified head build (microcosm#578, microcosm#823) refused. The pinned enhanced FRS leaves the trading allowance claim status at the engine's UNKNOWN and carries no full-relief group, so it cannot materialize person.trading_allowance_full_relief, which five HMRC SPI rows read since microcosm#1439. Main has the same gap.

María signed the entry on 10 November in the form of the register's other entries, expiring 10 February 2027. The rows stay bound in the national solve, and nothing the build reads moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reter refuses it

CI's engine-free (3.14) job at aa08d81 ran on an ubuntu-26.04 runner, whose system Python is 3.14.4, and uv used it instead of downloading 3.14.10. The head-to-head scorer refuses --worker-max-slices before 3.14.7, where replacing a recycled worker can deadlock. test_spawned_workers_score_identically_to_sequential_cli asked for recycling regardless, so it failed there, as it does on this machine's 3.14.6.

On such an interpreter the test now runs only the configurations without recycling. The refusal itself stays tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
juaristi22 and others added 3 commits November 11, 2026 01:37
CI's engine-free (3.14) job at 8fc423f ran on an ubuntu-26.04 runner, where uv 0.13.7 wrapped the error for --package microcosm-frame --extra policyengine --extra uk inside "incompatible with the declared conflicts". The test's substring check missed the wrapped phrase. uv wraps at the terminal width, which differs between runners. The check now reads the error with its whitespace collapsed, and passes at COLUMNS=60, where uv wraps the same message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prune_incumbent_unresolvable stopped after a fixed ten failing probes. A
signed measure's targets can fail over more than one probe: on 11 November
2026, scoring the bump-2177m candidate (built at 9e58d58) against the
incumbent took eleven, since two of the nine signed measures took two
probes each, so rule 1 refused a candidate whose every failure was signed.

The default bound is now three probes per signed measure, and the clean
probe. Every failing probe still prunes at least one target or refuses, so
the loop ends, and a measure that keeps failing still stops at the bound.
An explicit max_rounds keeps its meaning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The trading allowance receipts stage (microcosm#1439) places no one in the
full-relief group: the share it places is zero by María's ruling. So
person.trading_allowance_full_relief is all zero by construction, and
uk_degenerate_release_surface refuses every national or local release built
since microcosm#1439 landed. The column stays in the release because the
bound HMRC SPI self-employment rows read it. María approved the entry on
2026-11-11 (adjudication microcosm#1439, six-month window, every line), like
the draught shares'.

The register is solve-scoped, so the release contract's degenerate evidence
digest moves with it, and the battery tests' exclusion clock moves to the
new approval date, still before the first target-fit expiry (2026-11-16).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juaristi22

Copy link
Copy Markdown
Collaborator Author

Results: the national build on policyengine-uk 2.177.7 against main

Both arms ran on this machine, one at a time, at review date 2026-11-10 on #1550's feed (8045b138): a control on main at bd09f1783 (policyengine-uk 2.174.1) and this branch at 9e58d5844 (2.177.7).

Gates and fit. Both arms pass all 7 build gates and bind the same 1,528 targets. The calibration's final loss is 0.00510 on the branch and 0.00513 on main, and 98.8% of the targets end within 10% of their published values in both. No target's final error moves by more than 5 percentage points. Two targets near the 10% line cross it, one each way: a regional HMRC SPI taxpayer count moves outside it, and a DWP Universal Credit household count moves inside.

Where the spines differ. The two spines' stage records are identical up to the SPI housing shell. WAS wealth is the first stage whose records differ: it reads household values through the engine, while its seeds and pinned inputs are the same in both arms. Most stages after it differ slightly too, and the branch's spine ends with 78,376 household rows against main's 78,410, with the same weight total.

Release certification. On hold. It reruns on this build at 6c237b74b, without a rebuild. The first attempts stopped on gaps that main shares since #1439, now fixed here (see the description):

  • rule 1's unsigned measure (aa08d812b) and its fixed probe bound (1d2b51d25). A diagnostic run with a wider bound passed, scoring 1,349 targets and pruning 185 under the nine signed measures.
  • the degenerate-surface gate on the all-zero full-relief column (6c237b74b), the only one of the release-cut battery's 21 gates to refuse.

Every figure here is a total over the whole calibrated file, or a count of targets, gates or records. No single target's figure is given.

@vahid-ahmadi

Copy link
Copy Markdown
Contributor

Review of 6c237b7. I read the policyengine-uk changelog from 2.174.2 to 2.177.7 and the policyengine-core changelog from 3.33.4 to 3.34.10, then checked each change against the pin sites, the build code, the receipts and the tests. I also checked the results comment of 11 November against the commits it cites. In a clean env synced from the head lock I ran the PR's engine-free and engine tests and the two run_uk_cut preflight checks. I ran no build and used no data.

Should

  1. 2.175.6 is not in the list of what moves (Grow alcohol and tobacco quantities with OBR clearances per head policyengine-uk#2829). The body still groups it with "the other releases [that] change nothing the build reads at 2024 or 2025". In fact 2.175.6 gives the eleven alcohol and tobacco quantity inputs an uprating index, OBR clearances per head, where before they stayed flat in every year after the base year. lcfs_consumption writes nine of them (gates.json:1340-1350: beer_litres through other_tobacco_grams_per_week).

    The five OBR duty rows don't move: calibration_measure_exclusions.json:347-383 measures them at FY2024-25, the base year, and nothing is projected there. Any read of the duties at 2025 or later does move, though, because the build's frame is 2024 read at 2025 (test_uk_isa_income_contract.py:171). For example, cigarettes_per_week now uprates by obr.per_capita.tobacco_clearances.cigarettes, which is -10.27% for 2025. So tobacco_duty at 2025 now charges on about a tenth fewer cigarettes than 2.174.1 did, and the beer, wine and spirits series move it the same way.

    Suggested fix: add a 2.175.6 line to "What the build's engine reads return now", saying that it moves the duties at 2025 and later, not at the base year.

Nit

  1. packages/microcosm-build/src/microcosm/build/uk_runtime/pip_points.py:166 and packages/microcosm-build/tests/engine/uk/test_uk_isa_income_contract.py:176 still say "policyengine-uk 2.174.1". The body says every text that describes the locked engine now cites 2.177.7. The ISA test passes on 2.177.7, so its 1.0032 still holds, and only the version needs changing.

Checked and fine

  • Pin sites all agree at 2.177.7 and 3.34.10:
    • the three pyproject.toml floors;
    • uv.lock (UK core 3.34.10, and the US side's 3.32.5 is unchanged);
    • test_engine_core_pins.py;
    • hmrc_uprating_engine_pins.json and the bonus-sacrifice anchor;
    • the concept adapter's engine_version and its golden file;
    • the stage dependency strings and the H2 fixture.
  • The lock digest in worker_identity.py:30 equals the sha256 of uv.lock at the head.
  • run_uk_cut preflight: assert_installed_engine_is_pinned() returns 2.177.7 on the head env, so "policyengine-uk pinned" passes. The "contract pins agree with the gate spec" pair passes (test_gate_battery_contract_pins.py, microcosm-data test_contract.py), with contract.py's new degenerate-evidence digest from 6c237b7. test_run_uk_cut.py passes too.
  • The other 2.174.1 and 3.33.3 strings are frozen fixtures or historical receipts, not pins: build_folder_switch.py, the certify-cut test, the recertification, local-area and dense contract tests, and docs/evidence.
  • No variable file in the 2.174.1 wheel is missing from the new engine. 2.176.1's terminal date reaches Pension Credit through is_before_first_september_following_19th_birthday, not the UC column frs_education stores, so the stored copy reaches only UC at 19.
  • 2.177.6: in 2.177.7, is_enhanced_disabled_for_benefits is read only by Kingston's CTR condition and the two num_enhanced_disabled_* counts, as the body says.
  • The results comment's rule 1 fixes match the code. incumbent_unresolvable_measures.json holds 9 signed measures after aa08d81, and 1d2b51d's bound is 3 * len(reviewed) + 1, which is 28 probes against the 11 needed. test_uk_candidate_score.py, test_uk_terminal_gates.py and test_uk_battery_bindings.py pass.
  • Give household situations no share of national totals, and let data carry UK totals policyengine-uk#2901 (shares of national totals) is still open, so it is not in this range.
  • 2.176.2: the build supplies neither benefit_cap_welfare_benefits nor uc_benefit_cap_welfare_benefits, so the new ValueError cannot fire.
  • 2.176.0: rent_from_boarders_and_lodgers stays out of the household income measures, and the build writes no sublet_income while SUBRENT stays in property_income. So no rent is counted twice.
  • 2.177.4's real-income re-basing, 2.176.3's supplied_input change and core 3.34.0's removals: no UK code reads real_* income, inflation_adjustment_ahc or supplied_input, neutralises a variable, or calls Reform.from_api or charts.api.
  • test_uk_tax_band_measure.py: HIGHER becomes INTERMEDIATE for £40,000 of Scottish earnings plus £5,000 of dividends. That matches 2.177.2 and HMRC's rule: £40,000 sits in the 2025-26 Scottish intermediate band, which runs to £43,662.
  • The eFRS candidate receipt's terminal-date flip checks out: 0.000847 becomes 0.999153, which is 1 minus its nonzero share, and 0.000479 becomes 0.999521 on the weighted share.
  • Tests, counted by --junitxml, all passed with 0 failures:
    • at 4ad26f0 on 2.177.4: 2,314 tests, 55 skipped, including 74 engine tests with none skipped;
    • at 6c237b7 on 2.177.7: the pin, contract, run_uk_cut, manifest, ISA and tax-band files (447 tests) and the three rule 1 and gate files (169 tests), none skipped.

CI at 6c237b7: in progress at posting. lint, wheels, installed-emitter, integration-uk and engine-uk (3.14) pass; engine-uk (3.13), engine-free and engine-us are still running. The previous head (4ad26f0, run 42859887949) passed every job.

One Should, which is about the body. The pin sites agree, and the preflight checks pass.

🤖 Generated with Claude Code

@juaristi22

Copy link
Copy Markdown
Collaborator Author

Thanks, Vahid. Both points are answered without a new commit, to save a CI round.

  1. 2.175.6 (Should). Agreed, thank you. The body now has a 2.175.6 line under "What the build's engine reads return now". The eleven quantity inputs grow after the base year by the OBR's clearances per head, and lcfs_consumption writes nine of them. The OBR alcohol and tobacco duty rows don't move, since they are measured at FY2024-25, the base year. A read of the duties at 2025 or later does: cigarettes_per_week falls by 10.3% to 2025, so tobacco_duty at 2025 charges on about a tenth fewer cigarettes than on 2.174.1, and each alcohol series moves its duty by its own index.
  2. The two 2.174.1 mentions (Nit). Both are comments, and both still hold on 2.177.7: its PIP points parameters are unchanged from 2.174.1, still one set of thresholds, and the ISA test passes with its 1.0032, as you found. They take 2.177.7 with the next commit on this branch. Until then, the body's "Texts and derived files" names them as the two exceptions.

@juaristi22
juaristi22 merged commit 59e30ab into main Nov 11, 2026
12 checks passed
juaristi22 added a commit that referenced this pull request Nov 11, 2026
Part of #1095. Main moved the lock to policyengine-uk 2.177.7 (#1572) and
signed person.trading_allowance_full_relief as unresolvable on the enhanced
FRS in incumbent_unresolvable_measures.json, which this branch retires: the
score compares with the current build, whose register is
reference_unresolvable_measures.json. The retired register stays deleted,
and its test now counts nine entries. Rule 1's probe bound from #1572
(three probes per signed measure, and the clean probe) carries over to
prune_reference_unresolvable, with its tests on this branch's names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
juaristi22 added a commit that referenced this pull request Nov 11, 2026
Part of #1095. María's ruling of 2026-11-11, after merging #1572. Five
SPI rows filter on person.trading_allowance_full_relief since #1439. The
current national build (eeb6093e) exports neither the claim status nor
the carrier, both new since it, and policyengine-uk 2.177.7 does not
define the carrier. #1572 signed the measure on the enhanced FRS, in the
register this branch retires; the comparison with the current build needs
the same entry for that build, or its score refuses those rows.

The entry runs from 2026-11-11 to 2027-02-11, three months as #1572's
does, and goes dormant once a promotion moves the reference past
eeb6093e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juaristi22

Copy link
Copy Markdown
Collaborator Author

Certified at the merged head. The build in the results comment above (built at 9e58d5844) is now certified at 6c237b74b, this PR's merged head, on the same files: no rebuild. Between those two commits, only the two reviewed registers, rule 1's probe bound, the contract's pinned digest, tests and changelog fragments change, so nothing the build reads.

  • Rule 1 (US base v2: one CPS+ACS+PUF-detail pool; datasets labeled by exact record count (dense = full pool; exact-k L0 selection) #578) against the enhanced FRS 2024-25: passed, with loss 0.0094 against 0.4425 on the 1,349 targets both can compute. The other 185 are pruned under the signed incumbent-unresolvable register.
  • The release-cut battery: shippable, all 21 gates passing, with exclusions evaluated on 2026-11-11.
  • The runbook's interim stage-1 comparison with the promoted cut (eeb6093e), reviewed locally: no column moves by more than half. Five columns are new (the PIP points, the two limited-capability flags and the trading allowance outcome), and one is gone on purpose: self_employment_gross_receipts, which UK trading allowance: store the claim status once policyengine-uk#2765 is released #1439 stopped writing.
  • Published for inspection, not made current: the build is in the national release on policyengine/populace-uk-private as uk-frs-calibration-attempt-20261110T204756Z-9e18f010 (hub commit 07b011115), and all ten files match the local release byte for byte. The arm staged locally only, so the publish used --allow-missing-staging. The release's current build is still uk-frs-calibration-attempt-20261107T020434Z-eeb6093e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants