Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
152bd14
Merge #1635 (US gate shadow) ahead of the engine refresh
juaristi22 Nov 17, 2026
e0792f7
Merge #1559 (Route A ASEC pool, block_v1 settings) ahead of the engin…
juaristi22 Nov 17, 2026
ae01906
Lock policyengine-us 2.145.3 on core 3.36.1 for both countries
juaristi22 Nov 17, 2026
ad2dea6
Run Route A on Linux and stop before the release for a dry run
juaristi22 Nov 17, 2026
742f6b7
Add the four take-up inputs policyengine-us 2.145.3 defines
juaristi22 Nov 17, 2026
f247728
Follow the policyengine-us 2.145.3 engine surface
juaristi22 Nov 17, 2026
6c2ff4b
Decide the QRF tail gate at base weights; bound collectibles
juaristi22 Nov 17, 2026
0f51437
Read policyengine-us 2.145.3 in the frame adapter
juaristi22 Nov 17, 2026
be5f611
Read the Fed's republished SCF 2022 summary extract in 2022 dollars
juaristi22 Nov 17, 2026
f263af0
Grade the release dry run's tail register on the base frame
juaristi22 Nov 18, 2026
6423978
Write the release location attributes after the stored-input check
juaristi22 Nov 18, 2026
9a7457e
Re-pin the US contracts and tests on policyengine-us 2.145.3
juaristi22 Nov 18, 2026
e1af099
Add the US national build runbook for Route A on 2.145.3
juaristi22 Nov 18, 2026
2e748b1
Merge #1635 round 2 (gate shadow records a difference) into the engin…
juaristi22 Nov 18, 2026
6d28bf4
Re-pin the late-producer counts, fixtures and digests on 2.145.3
juaristi22 Nov 18, 2026
f5a9354
Skip the ACS local register's engine walk until its 2.145.3 re-review
juaristi22 Nov 18, 2026
4477f5d
Say the gate shadow only warns in the runbook's stop rules
juaristi22 Nov 18, 2026
dc992cf
Keep the branch-retaining hook working on policyengine-core 3.36.1
juaristi22 Nov 18, 2026
be8eb12
Follow policyengine-us 2.145.3 in the US scenario and workflow tests
juaristi22 Nov 18, 2026
6bb6830
Re-pin the UK spine parity graph on policyengine-core 3.36.1
juaristi22 Nov 18, 2026
a25e54c
Let the ACS local stand-in engine define tax_unit_role_input
juaristi22 Nov 18, 2026
ce509f2
Merge main (bcb5cba9d: #1559, #1635 and #1664 landed) into the engine…
juaristi22 Nov 18, 2026
61c8fae
State which engine the ACS local tests grade against while #1675 is open
juaristi22 Nov 18, 2026
11dc10b
Count the frame adapter's helper reviews in the battery's binding ide…
juaristi22 Nov 18, 2026
6ea0e5b
Test the branch hook under core 3.36's clone; refuse an unrecorded copy
juaristi22 Nov 18, 2026
702506d
Say what the voluntary-filing PTC probe measures on 2.145.3
juaristi22 Nov 18, 2026
ff8083f
Re-pin the engine-free tests the first CI rounds could not reach
juaristi22 Nov 18, 2026
8235bab
Merge main (087bcc6df: #1672 build, then certify) into the engine ref…
juaristi22 Nov 18, 2026
69def90
Run the national build as a build, then a certification, in the runbook
juaristi22 Nov 18, 2026
88918db
Record María's 18 November rulings on hosts, staging and publication
juaristi22 Nov 18, 2026
bee1aa6
Merge main (cfd5a2a5e: #1681 certification chooses the tier, #1677) i…
juaristi22 Nov 18, 2026
cf27a8b
Probe the build and wait for María's assessment before certifying, in…
juaristi22 Nov 18, 2026
5c37a80
Pin the stop before the release on the release stage that #1681 accepts
juaristi22 Nov 19, 2026
ea810f3
Address Max's review of #1681 in the release tool (#1585)
juaristi22 Nov 19, 2026
18667a6
Make Route A one command per step, with Max's Route A points (#1585)
juaristi22 Nov 19, 2026
8d33275
Merge main (6d32375b3: #1663) into the engine refresh
juaristi22 Nov 19, 2026
6983bad
Read the quick check before the release, in the runbook (#1585)
juaristi22 Nov 19, 2026
d596fcb
Build #1676's receipt from its own head, in the runbook (#1585)
juaristi22 Nov 19, 2026
8a48bf6
Merge main (7ff5a26bc: #1666, #1682) into the engine refresh
juaristi22 Nov 19, 2026
bd4ff48
Close the five gaps in Max's review of #1676 (#1585)
juaristi22 Nov 19, 2026
360357c
Run the build commit's own driver, read the export reference first (#…
juaristi22 Nov 20, 2026
1382d2d
Keep the export reference test's run root under its tmp_path (#1585)
juaristi22 Nov 20, 2026
ba41043
Fix shellcheck SC1007 in the driver's self-check (#1585)
juaristi22 Nov 20, 2026
12693b9
Lower the child-support channel floor to 0.001 and add its diagnosis …
juaristi22 Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The US build reads the SCF 2022 summary extract the Federal Reserve republished on 2026-10-09 (in 2025 dollars) and converts its dollar columns back to 2022 dollars with the Fed's CPI-U-RS ratio (4789/4376), so a fresh build no longer stops at the SCF wealth stage on the pinned original, which the Fed no longer serves. The original 2022-dollar file is still read as it is.
1 change: 1 addition & 0 deletions changelog.d/1585-review-of-1676.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A US national build now writes `build_incomplete.json` as it creates its `--out`, before any file there, so diagnostics a build wrote before stopping short of its record are no reference either. Each attempt in `certification_failures.json` names the build and its record's digest, so a later build into the same `--out` inherits none. Route A's `--probe` gives a build whose certification found gates failing the same arguments as a build that failed its gates, since neither is a reference, and its rerun guard also compares the digests of what the release reads by path: the base H5, the pinned release inputs and the export input-mass reference. Route A also refuses a driver that is not the build commit's own, since it loads itself and its helpers from the checkout it runs in, and its input check reads the export input-mass reference before any stage, so an unreadable one stops the run before the base (microcosm#1585, item 11; review of #1676).
1 change: 1 addition & 0 deletions changelog.d/1585-review-of-1681.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Certification of a US national build at the certified tier now refuses a failed source-coverage gate before it writes either manifest, as it refuses a failed smoke, so such a build can still be certified as evidence. Every gate failure a certification finds is added to `certification_failures.json` beside the build record, and a build that passed its own release gates and then failed certification's is no reference for a later build, the release-gate preflight or the post-export probe until a certification ships it. A build writes `build_incomplete.json` before its H5 and removes it once its record is written, so an H5 that no record pins is no reference either. A failed build's H5 is a `--base-h5` only beside an `--export-input-mass-reference-h5`, since without one the export input-mass gate judges the export against its base. A standing evidence owner pattern now owns a failure line only from the line's start (microcosm#1585, item 11; review of #1681).
1 change: 1 addition & 0 deletions changelog.d/1647-release-location-rule-attribute.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The US national release now copies the base's household-location root attributes (`populace_location_rule`, its seed, clone count and block ladder digest and vintages) onto its H5 and records them in `us_source_coverage.json`, so a `block_v1` national file no longer reads as `legacy` to ACS staging.
1 change: 1 addition & 0 deletions changelog.d/route-a-linux-and-stop-before-release.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The Route A driver now runs on Linux (portable file-size and free-disk helpers), its README covers tmux and systemd runs, and `STOP_BEFORE_RELEASE=1` stops after the base and the release config so the release's gates can be dry-run first.
1 change: 1 addition & 0 deletions changelog.d/us-child-support-channel-floor.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The US child-support signal gate's floor for each support channel falls from 0.002 to 0.001, in the gate and in both `gates.json` entries (`us_base_child_support`, `us_national_child_support`). The PUF tax-detail channel's share is a noisy draw: its QRF trains on at most 5,000 ASEC people, and the default in-sample sign gate draws a rare class below its rate. The first base on the income-year 2023-2025 ASEC pool drew 0.18% for `child_support_expense` there and stopped. The floor still refuses a dead channel; the pooled bands are unchanged. `tools/diagnose_us_child_support_gate.py` reruns the stage from a base's checkpoint, for several seeds and with the cross-fitted sign gate, and reports the shares without writing to the checkpoints.
1 change: 1 addition & 0 deletions changelog.d/us-core-3361-branch-hook.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The US release's batched target and reform materialization works on policyengine-core 3.36.1. Core 3.36.1's `clone` binds a copied method to the copy, so the hook that retains engine branches could not find a branch's parent and stopped with a `KeyError`; it now takes the parent from the call that made the branch.
1 change: 1 addition & 0 deletions changelog.d/us-engine-2145-estate-qbi-default.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The base ASEC channel now keeps policyengine-us's own default for `estate_income_would_be_qualified` (2.145.3 defaults it to False; 2.2.1 defaulted it to True) instead of forcing it True; the other five qualification flags keep their default of True.
1 change: 1 addition & 0 deletions changelog.d/us-engine-2145-frame-adapter.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The PolicyEngine-US frame adapter reads policyengine-us 2.145.3: the static consumer index ports #1365's extensions and reviews every helper the new formulas call (71 reviews), the generated-variable audit and the concept mapping (with the four new take-up bindings) are refreshed, and the Social Security component names the engine migrates to their `_reported` sources count as storable inputs, so releases keep storing `social_security_<type>` with the same values and working benefit levers.
1 change: 1 addition & 0 deletions changelog.d/us-engine-2145-mortgage-legs.removed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop imputing the tax-unit `first_home_mortgage_interest` and `second_home_mortgage_interest` legs, which policyengine-us removed (policyengine-us#9605): the person-level `home_mortgage_interest` carries the amount. The eCPS parity gate now records the two retired reference layers instead of grading them (ported from microcosm#1365).
1 change: 1 addition & 0 deletions changelog.d/us-engine-2145-reform-probes.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Re-derive two reform-coverage probes for policyengine-us 2.145.3: educator-expense abolition removes `educator_expense_ald` from the above-the-line list, and the SALT-refund neutralization is measured on federal income tax, which now counts state tax refunds in gross income.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the seven stored-input register entries that policyengine-us 2.145.3 defines as inputs (`tax_unit_role_input`, `parent_1_id`, `parent_2_id` and the four federal student loan inputs), and keep microunit's tax-unit roles in the pool's build-time simulation projection (microcosm#1027).
1 change: 1 addition & 0 deletions changelog.d/us-engine-2145-take-up-programs.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the four take-up inputs policyengine-us 2.145.3 defines (Medicare Part D, CSFP, school meals and the Alaska Permanent Fund Dividend) to the US take-up spec and contract, left at their engine default (`rate_unsourced`), so the take-up mapping is total over the engine again.
1 change: 1 addition & 0 deletions changelog.d/us-engine-lock-2145.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lock the US engine to policyengine-us 2.145.3, policyengine-core 3.36.1 and spm-calculator 1.1.0 for the next US national build; the UK side moves to core 3.36.1 with it.
1 change: 1 addition & 0 deletions changelog.d/us-national-build-runbook.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `docs/us-national-build-runbook.md`, the operator runbook for the next US national build on policyengine-us 2.145.3: settings, inputs, steps with times and resources (the build, a probe of it on a household sample, María's assessment, then certification when she asks), stop points and the risks only a real build settles.
1 change: 1 addition & 0 deletions changelog.d/us-obbba-estate-row-record-only.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Note on the OBBBA estate and gift tax exemption validation row that it scores zero by construction on policyengine-us 2.145.3 (`estate_tax` needs the `is_deceased` input, which no release stores), so it is recorded, not compared with JCT.
1 change: 1 addition & 0 deletions changelog.d/us-puf-collectibles-tail-bound.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bound `long_term_capital_gains_on_collectibles` at its weighted donor q0.999 in PUF finalization, as `non_sch_d_capital_gains` already is. Tail bounds now also apply to sparse snapped amount outputs, with the bound lowered onto the donor's snap grid. Interim: microcosm#481 stays the root fix.
1 change: 1 addition & 0 deletions changelog.d/us-qrf-tail-base-weights.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The US release's QRF tail-concentration gate now decides at base (pre-calibration) weights, where the QRF draw artifact it guards lives, and reports the share at final weights in `qrf_tail_concentration.json` (schema 2, `final_weight_report`) without failing on it. A per-run register must now be measured at base weights, and the release's dry run grades the tail register on that same frame with no calibration or selection shift.
1 change: 1 addition & 0 deletions changelog.d/us-route-a-build-probe-commands.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Route A's build is one command: `route_a.sh` now dry-runs the release's gates on the fresh base as a stage of its own before the release starts (`ROUTE_A_DRY_RUN=1`, the default), so a certain failure stops the run in minutes. `route_a.sh --probe` probes an accepted build on a 5% household sample with certification's own post-export checks, and `route_a.sh --rebuild` sets an accepted build aside, keeping it on disk, to build the release again on the same base. A rerun to build refuses release settings other than the accepted build's, and the commit check requires the certification tool and parser on every run, whatever the tier. The US national build runbook has one command per step. The first run stops after the quick check (the base and the release-gate dry run, with the gate battery shadow on), which the operator reads with one command before the release starts, and one command collects a run's logs and records, without its data files, to send for diagnosis (review of #1681).
33 changes: 19 additions & 14 deletions docs/agent-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ uv run ruff check . # lint
```

Each country keeps its own policyengine-core pin (#1086). The extras that
install policyengine-us pin the core the certified US default was built with,
and the extras that install policyengine-uk follow policyengine-uk's own core
floor. So no environment can hold both engines: uv refuses any sync that asks
for an extra that installs policyengine-us (`microcosm-build[us]`,
`microcosm-data[us]` or `microcosm-frame[policyengine]`) together with one that
installs policyengine-uk, such as `uv sync --all-packages --extra us --extra uk`
install policyengine-us pin the engine and core the next certified US build is
built with (policyengine-us 2.145.3 on core 3.36.1), and the extras that install
policyengine-uk follow policyengine-uk's own core floor; today both sides
resolve core 3.36.1. Still, no environment can hold both engines: uv refuses
any sync that asks for an extra that installs policyengine-us
(`microcosm-build[us]`, `microcosm-data[us]` or `microcosm-frame[policyengine]`)
together with one that installs policyengine-uk, such as
`uv sync --all-packages --extra us --extra uk`
or `uv sync --all-packages --all-extras`. To keep both countries set up, point
`UV_PROJECT_ENVIRONMENT` at a separate directory outside the checkout for each.

Expand Down Expand Up @@ -448,13 +450,14 @@ base premium is defined for every eligible person. Part D is
`income_adjusted_part_d_premium_surcharge`, which policyengine-us charges every
Medicare enrollee above the thresholds until PolicyEngine/policyengine-us#10115
gates it on Part D enrollment. IRMAA rests on income from two years before
the period. The locked policyengine-us 2.2.1 reads that year's inputs, and a
single-year release H5 has none, so a 2024 release on that engine reports
`status: no_payers` (the batched scorer gives exactly that on the certified
`populace-us-2024-spm-20260915` file) until the engine includes
PolicyEngine/policyengine-us#10106. A Part with no weighted payer never reports
a Trustees comparison. It is held out the same way: no calibration row, no
release refusal.
the period. policyengine-us 2.2.1 read that year's inputs, and a single-year
release H5 has none, so a 2024 release on that engine reported
`status: no_payers` (the batched scorer gave exactly that on the certified
`populace-us-2024-spm-20260915` file). The locked policyengine-us 2.145.3
includes PolicyEngine/policyengine-us#10106, which falls back to the earliest
input year, so the holdout now reports payers. A Part with no weighted payer
never reports a Trustees comparison. It is held out the same way: no
calibration row, no release refusal.
It also writes `us_population_structure_holdout.json` from the written H5
alone (no engine): marital status of people 65+ by sex (ACS 2024 B12002),
people 65+ living alone (ACS 2024 B09021), people receiving Social Security in
Expand All @@ -476,7 +479,9 @@ A US national build stops before its post-export checks; certify it with
has no tier: certification chooses it, and `--evidence-release` with an owner
for every failure certifies a build whose release gates failed. It may run at
a later commit than the build's only when that commit changes nothing but
tests, docs, changelog fragments and the standing evidence owners register
tests and their helpers (the root `conftest.py` included), docs (`docs/`,
`LICENSE`, and Markdown or reStructuredText outside the packages' sources),
changelog fragments and the standing evidence owners register
(`us_runtime/data/evidence_failure_owners.json`). To check
the post-export stages on a written export without certifying it,
subsample it and probe it as
Expand Down
34 changes: 21 additions & 13 deletions docs/concept-coverage/policyengine-us.md

Large diffs are not rendered by default.

Loading