Repository navigation
Test that the ACS transfer chains raw draws past snapped and zeroed targets - #1723
Conversation
…argets #1667's identity tests reach no snapped discrete target ahead of another target, and no self-employment component zeroed after the transfer with a target after it. A new fixture puts first_home_mortgage_origination_year ahead of health_savings_account_ald, and the two components ahead of farm_rent_income and estate_income_would_be_qualified. The tests pin that the outputs are byte-identical to e897698's (main before #1667), in memory and banked, on macOS arm64 where those digests were recorded; that they equal fitting every target first on every platform; that every prior fit_draw_next receives is the earlier raw draw, in chain order; and that spies feeding the snapped year or the zeroed components forward move the later targets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… on export Answer review r1 of #1723 with tests only: - Resume: interrupt a banked transfer right after the year's checkpoint, or either self-employment component's, is durably written, then resume. Check that the bank receipt shows that prior and everything before it loaded and every later target rebuilt, that every prior fed to a fresh fit equals the uninterrupted run's raw draw byte for byte, and that the resumed outputs equal the uninterrupted run's. - Production order: split the declared ACS plan and the stacked gap-fill surface with the production splitter, read the stacked post-PUF groups, and check that every batch holding two fixture targets draws them in the fixture's order, and that the declared plan chains each fixture family whole in one batch. - Export: check each exported year against the donor support point nearest its own raw draw, computed apart from the decoder with the decoder's lower-point tie rule, and pin that tie rule. - Partnership prior: zero partnership earnings alone and check that the estate flag moves while every earlier raw draw stays equal. - Print the affected-row counts in every discrimination failure message, and state the execution paths and the byte tests' platform and dependency gate precisely in the module docstring. Let the prior-recording spy wrap another spy. The fixture data is unchanged: e897698's code still gives the recorded digests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h order The export test now calls the decoder on exact midpoints of the year's donor support and expects the lower support points. The resume test runs at every fixture target that has a later target in its family, adding farm_rent_income and first_home_mortgage_balance. The production-order test also runs the fixture's targets of each production batch that holds two or more of them, under the batch's name, in memory and banked, and checks that every pattern draws them in the plan's order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The production-order test now reads each plan from transfer_acs_inputs itself, stopped at its activation filter, for the declared ACS plan, each stacked gap-fill direction and each post-PUF group. It runs every batch that holds two or more fixture targets whole, under its production name, with supplemental donor columns for the other targets. In each availability pattern it checks the plan's order at the draw boundary and that every prior is the earlier raw draw, and it checks that the patterns cover every recipient row once. A new test resumes from banks that keep one target's checkpoint between rebuilt targets of its family: the year between the balance and the HSA deduction, and the partnership earnings among the other person targets. The resume checks, shared with the interrupted-bank test, now also compare each target's checkpoint content digest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The whole-batch runs now give the supplemental line-32 donor columns seeded zeros, so some recipients draw a zero line 32 under a nonzero passive subset. The test asserts that the export zeroes the passive subset on those rows while the chain feeds the later targets the raw passive draw. A new test runs the declared person batch that holds partnership_income as the ACS local lane does, with semp_covers_partnership_income=True, in memory and banked. Every later target must be drawn on the raw partnership draws, and the export must zero some of them. Plans that the stacked callers transfer with regime-evidence targets are now read again at the transfer's first fit, after the widening, and must equal the planned batches. The docstring names the passive and SEMP-lane rules as further export transforms the tests reach. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Canonical post-PUF execution requires ASEC rows to hold the source-written self_employed_pension_contributions_desired before batch 3, while only PUF clones produce the batch's later targets. ASEC clone-0 rows therefore enter the batch observing the pension and lacking the rest. The transfer draws the pension for them and feeds the raw draw to the later targets, while the export keeps the observed value. The post-PUF batch 3 whole-batch runs, in memory and banked, now give the recipient that pension on a seeded half of its rows. The existing raw-prior chain check covers the case. The test also asserts that those rows are still drawn, that some raw pension draws differ from the observed values, and that the export keeps the observed values. Each target's imputed-row count is now the recipient's null rows for it, the count production records for a partly observed target. The docstring names the observed case and says why the other decode and export rules cannot change a value ahead of a later target. A comment at the widening spy notes that it reads the transfer loop's local variable by name and raises if that variable is renamed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…list Round 3 of the #1723 review found three gaps: - Resume post-PUF batch 3 from a copy of its cold bank that keeps only the pension's checkpoint, on the recipient that observes the pension. The retry must load the pension, rebuild estate_income and every later target on the checkpoint's raw pension draw, and reproduce the cold run's outputs. - Draw the supplemental line-32 columns from exact values (partnership income 0 or 100, S-corp income -100 or 100), so some people draw a nonzero line 32 that the other person in their tax unit offsets. The test requires the export to zero the passive subset there, and the chain check requires the later targets to get the raw passive draw. - Copy the activation filter's plan into tuples before production gets the filter's own list, so a widening that edits that list in place cannot move the baseline. The docstring now says no integer-typed target other than the year precedes a later target, and narrows the post-PUF producer claim to a target that a role writes ahead of one the same role does not produce. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No test loaded the passive subset, or any target after the pension, from a checkpoint ahead of a fresh fit. So a bank that handed a loaded value on through an export rule, only on a checkpoint hit, passed every test. Each whole batch the production-order test runs now resumes once more, from a copy of its cold bank that drops only the last target's checkpoint. The chain feeds the rebuilt last target every loaded target, so the existing resume checks now reach the pension, the passive subset, the components and the year on the checkpoint path. The test also requires each of these to reach that fresh fit, on some rows, with a raw draw that differs from the exported value. The resume after the pension stays. The ACS local lane test now requires each SEMP row set (own SEMP, tax unit, blank SEMP) to discard some draws. The widening check now lists the batches the loop adds and drops, or says it holds the same batches in another order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At f6a03a7 the only test that loaded the passive subset from a checkpoint was the last-target retry, a pure-prefix resume that rebuilds one target. Two resume shapes production reaches escaped it: a bank that rebuilds an earlier target and then loads the passive subset (mutant M29), and a retry that rebuilds two or more targets after a loaded passive subset (M31, and M30, its once-only variant). Each passed all 17 tests. The production-order test now resumes each whole batch once more, from a copy of its cold bank that lacks the first target's checkpoint and every one after the passive subset (after the year in the tax-unit family, which draws no passive subset). Post-PUF batch 3 rebuilds the pension and the partnership earnings, declared batch 5 rebuilds farm_operations_income, the partnership earnings and the estate flag, and the tax-unit family rebuilds domestic_production_ald and the HSA deduction. _assert_resume_reuses_raw_draws checks each retry. The test also requires each retry to feed its loaded target to the rebuilt fits, on some rows, with a raw draw the export changes there, and some retry to feed the loaded passive subset to two or more rebuilt targets. _resume_whole_batch takes an optional rebuilt argument for this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each batch with two or more targets after the passive subset (declared batch 5) now also resumes from a bank that lacks only their checkpoints, as when a run stops right after writing the passive subset's. The retry must feed the loaded raw passive draw to each later target on rows where the export changes it; it does so on 455 rows for each of two targets. The mixed retry now also rebuilds the target right before the passive subset (the year in the tax-unit family), so the passive subset loads right after a miss as well as after an earlier one. The batch list reads the pool builder's copy of the declared plan (pool_transfer_target_families), through which production banks declared batch 5. It adds no whole-batch run today, and a reorder there now fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Handed to the Microcosm hub at head
🤖 Generated with Claude Code |
|
Round 4 left one P1, on this description's push and CI status. Lines 44 and 128 now name run 45855878849 for The PR changes only tests. Run 45855878849 passed all 12 jobs on this head merged onto main |
…the e4d46c93 feed and the new CI caps (#931) Main took six pull requests since 4b78a9b: #1736 (LCFS spending drawn as a budget and a donor's mix, with a decile receipt beside ONS Family Spending, the UK feed re-pinned to Chronicle e4d46c93, and register renewals), #1779 (the CI caps from the slowest legs of 19 to 26 Nov), #1772 (a batch file's error skips the fallback), #1767 (New Zealand declares its receipt's take-up cap), #1751 (the US post-export H5 path) and #1723 (US QRF identity tests). The engine lock does not move. Eight files conflicted. - uk_runtime/lcfs_consumption.py: main's receipt imports and the clip's docstring, which now names the mix donor and keeps this branch's count of distinct source households over every clone. Main's new decile and range-step receipts count the frame's support in distinct source households (source_household_id), so on the clone-first spine a source household's clones count once. - uk_runtime/graph_kernels.py: the LCFS stage keeps this branch's full list under the derived binding rule and adds microcosm.fit.donors, which main's draw computes through. - uk_runtime/calibration_run.py: main added the LCFS decile gate to the spine gate scope, which this branch keeps in gate_scopes.py; the gate goes there. - .github/workflows/test.yml: main's caps and their basis, and this branch's note on the after-merge job's cap. - The gate contract pins, the coverage manifest and the H2 fixture are recomputed on the merged tree. The feed. Main moved the UK feed from Chronicle 15040ea5 to e4d46c93 and recorded that every 15040ea5 row is byte-identical there, the 487 new rows being ONS Family Spending. This branch's own Scottish Band D facts take the new pin stamps with their 32 rows unchanged, as main's re-pin did for its vendored resources; the local membership takes main's feed label and DESNZ keys beside this branch's two UC seat deferrals. The vendor tool's check against the e4d46c93 artifact did not run here, which lacks that artifact. Checks: with policyengine-uk hidden, as in CI's engine-free job, the tests main's six pull requests change, the LCFS, consumption, Band D, vendoring and feed tests, the UK graph's binding rules, the nesting, stage health, battery, contract, gate and coverage tests (2,245 pass; the vendoring test that rebuilds the vendored resources from a local copy of the pinned feed refuses this machine's 15040ea5 copy, as it should, and skips in CI, which has none); the US coverage report and pins (--check); CI's test plan verify; and on the engine, H2 parity, the UK graph, the consumption resources and the release input coverage (56 pass). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Draft. The Microcosm hub owns landing it; the hand-off comment below gives the review state.
#1667 changed the ACS transfer to fit and draw one target at a time, and said the imputed values are byte-identical. Its identity tests don't reach targets whose exported value differs from the raw draw that later targets condition on. This PR's fixture reaches two of them:
first_home_mortgage_origination_year). The decoder runs inside the outer family loop, after the year's own family is fitted, so the later targets in that family are drawn on the raw year;keep_measured_self_employment_totalszeroes after the transfer, with later targets in their batch.The whole production batches the tests run reach two more export rules: the passive partnership/S-corp subset, which
reconcile_acs_passive_partnership_s_corpzeroes where the row's line 32 is zero or its tax unit's line 32 is zero, and, on the ACS local lane,partnership_income, whichsemp_covers_partnership_income=Truekeeps at zero where the row's ACSSEMPalready counts it.They also reach a case on the recipient side. Where a row already observes an earlier target of its batch, the export keeps the observed value, because the transfer fills only null cells, while the later targets are drawn on the row's raw draw. Canonical post-PUF execution requires ASEC rows to hold the source-written
self_employed_pension_contributions_desiredbefore post-PUF batch 3, and only PUF clones produce the batch's seven later targets. So ASEC clone-0 rows enter that batch observing the pension and lacking the rest. A canonical late run supplies a bank for the group, so a retry can load the pension from its checkpoint on those rows.If any exported value reached a later target's draw, the chain would feed that target a different prior. The whole-batch runs check those prior bytes; for the fixture's own cases, the discrimination test shows that the later draws move too. At e897698 (main before #1667) the in-memory path fitted every target and then predicted, while the banked path already drew target by target.
This PR adds a fixture that reaches the first two (
test_support/microcosm_build/qrf_raw_priors.py) and 17 tests (tests/engine_free/us/test_us_acs_transfer_raw_priors.py). It adds tests only and changes no production code.What the tests pin
The outputs, in memory and banked, are byte-identical to e897698's on this fixture. These two tests run only where both the platform (macOS arm64) and the installed versions of numpy, pandas, scipy, scikit-learn and quantile-forest match the recording. They skip elsewhere.
The outputs equal
FitThenPredictQRF's (fit every target, then predict) on every platform.Every prior
fit_draw_nextreceives is byte-equal to the earlier raw draw, in chain order, in memory and banked.A banked transfer interrupted right after a target's checkpoint is durably written, and resumed, loads that target and the ones before it from their checkpoints and fits the later targets fresh. The test interrupts at every fixture target that has a later target in its family:
farm_operations_income,farm_rent_income,partnership_self_employment_net_earnings,first_home_mortgage_balanceand the year.A bank can also hold a target's checkpoint while earlier targets of its family are missing. Two cases keep one checkpoint and drop the rest of its family's: the year between the balance and the HSA deduction, and
partnership_self_employment_net_earningsbetween the other person targets. The retry rebuilds the targets on both sides of the loaded one, and the receipt must read rebuilt, checkpoint, rebuilt within that family.In every resume case, the bank receipt shows which targets loaded and which were rebuilt, every prior fed to a fresh fit equals the uninterrupted run's raw draw byte for byte, every target's raw-draw and checkpoint-content digests equal the uninterrupted bank's, and the resumed outputs equal the uninterrupted run's.
Each exported year is the donor support point nearest its own raw draw. The test computes that point apart from the decoder, with the same tie rule: a draw halfway between two points takes the lower one. The fixture never draws an exact midpoint, so the export test also calls the decoder (
_prediction_values) on the midpoints of the year's donor support and expects the lower points.Production's plans put the fixture's targets in the fixture's order. The plans come from
transfer_acs_inputsitself: the test runs it on a one-person recipient on the US entities that lacks every target, and stops it at its activation filter, after it has normalized the families in entity order and split them into batches. It does this for the declared ACS plan, for the pool builder's copy of it (pool_transfer_target_families, whichtools/build_us_multispine_pool.pypasses with a target bank and no regime-evidence targets), for each direction ofstacked_gap_fill_plan()(the plans the stacked gap fill passes) and for each group inCANONICAL_US_LATE_TRANSFER_GROUPS(the families canonical post-PUF execution passes). The declared plan's person batchpuf_tax_itemization__batch_5holdsfarm_operations_income,farm_rent_income,partnership_self_employment_net_earningsandestate_income_would_be_qualified, in that order, among its eight targets, and its tax-unit family holds the year before the HSA deduction. The pool plan must also chain each fixture family in one batch. Its batch 5 and tax-unit family are the declared plan's, and each of its 35 batches is also a batch of another plan the test reads.The stacked callers also pass regime-evidence targets, which can widen an active batch. For every gap-fill direction and post-PUF group, the test passes the targets the callers pass (from
_stacked_post_transfer_calibration_specs, asstacked_spine.pybuilds them). Where there are any, the transfer runs on through the widening, and the test reads the plan its loop is about to fit at the first fit call. That plan must equal the activation filter's, which the test copies into tuples before handing production the filter's own list, so a widening that edits that list in place cannot move the baseline. A failure lists the batches the loop adds and drops, or says the same batches came back in another order. Gap-fillasec_survey_to_acsand six post-PUF groups pass such targets.Each batch that holds two or more fixture targets then runs whole through
transfer_acs_inputs, once however many plans hold it, under its production name, in memory and banked: declared person batch 5 (all eight targets; the pool plan holds the same batch), post-PUF personpuf_tax_itemization__batch_3(all eight) and the tax-unitpuf_tax_itemizationfamily (all six; the declared, pool and post-PUF plans hold the same batch). No gap-fill batch holds two fixture targets, so no gap-fill batch runs. The donor gets a supplemental column, from one seeded stream, for each batch target the fixture lacks; the fixture's own data are unchanged. The supplemental amounts are positive, except that the two line-32 columns (partnership_income,s_corp_income) come from a second seeded stream:partnership_incomeis 0 or 100 (60% zero) ands_corp_incomeis -100 or 100 (half each). Each of their sign regimes holds one value, which its forest draws exactly, so a person's line 32 can be zero and two people's can cancel exactly, and each sign gate stays binary. In every availability pattern, the recordedfit_draw_nextcalls must follow the plan's order, the fixture targets must keep the fixture's relative order, and every prior must be byte-equal to the earlier raw draw. The patterns together must draw every recipient row exactly once.In the two batches that draw the passive subset (declared batch 5 and post-PUF batch 3), some rows must draw a zero line 32 under a nonzero passive draw, and the export must zero the passive subset there. Production also clears the subset where the person's line 32 is nonzero but the tax unit's sums to zero (
person_tax_unit_id, asreconcile_acs_passive_partnership_s_corpgroups it), so some rows must also draw a nonzero line 32 that the other person in their tax unit offsets, under a nonzero passive draw, and the export must zero the subset there too. The raw-prior check above then shows that the later targets were drawn on the raw passive draw on both kinds of row.In the post-PUF batch 3 runs, in memory and banked, the recipient also observes
self_employed_pension_contributions_desiredon a seeded 575 of its 1,200 people, as ASEC clone-0 rows hold it there. Those rows still lack the later targets, so they stay eligible. The test requires them to be drawn, at least one of their raw pension draws to differ from the observed value, and the export to keep every observed value. The raw-prior check above then shows that the later targets were drawn on the raw pension draw, not the observed one. Each target's imputed-row count must equal its null rows on the recipient (625 for the pension, 1,200 for the others), which is how production counts a partly observed target and what the post-PUF outcome check balances against the authorized nulls.The banked batch 3 run then resumes. A copy of its bank keeps only the pension's checkpoint, and the retry runs on the same observing recipient. The receipt must show the pension loaded from its checkpoint and
estate_incomeand every later target rebuilt. Each prior fed to a rebuilt fit must equal the cold run's raw draw byte for byte, soestate_incomeis drawn on the raw pension draw, not the observed value, and on some observed rows those differ. The raw-draw and checkpoint digests and the outputs must equal the cold run's. This reuses the resume tests' checks (_assert_resume_reuses_raw_draws) and the order test's cold run.Each of the three whole batches' banked runs then resumes once more, with only its last target rebuilt. A copy of its bank drops the last target's checkpoint, and the retry runs on the same frames: post-PUF batch 3 rebuilds
partnership_self_employment_net_earnings, declared batch 5 the estate flag and the tax-unit family the HSA deduction, and every earlier target loads from its checkpoint. The chain feeds the last target every earlier one, so each loaded raw draw reaches a fresh fit: the pension on its observed rows, the passive subset on both kinds of line-32 row, the line-32 components, the self-employment components and the year. The same resume checks apply. Across the three retries, the test also requires that the pension, the passive subset, both self-employment components and the year each reach the rebuilt fit, on some rows, with a raw draw that differs from the value the cold run exported there. So a retry that handed on any of them as the export changes it would fail the byte check.Each of the three whole batches' banked runs also resumes from a mixed bank. A copy of its cold bank drops the checkpoints of the first target, of the target right before the passive subset and of every target after the passive subset. The tax-unit family draws no passive subset, so the year takes its place there. The retry runs on the same frames:
s_corp_incomeandpartnership_self_employment_net_earnings;farm_operations_income,s_corp_income, the partnership earnings and the estate flag;domestic_production_ald,first_home_mortgage_interest(right before the year) and the HSA deduction.The other targets load from their checkpoints, so the passive subset (the year) loads right after a miss, with an earlier miss before that. Production reaches this shape: the bank rebuilds a missing, torn or corrupt checkpoint while later ones load, so a run that stopped after writing the passive subset's checkpoint, with earlier checkpoints lost, resumes this way. Canonical post-PUF execution banks post-PUF batch 3 and the tax-unit family. Declared batch 5 is banked only through the pool builder's copy of the declared plan; the declared plan itself runs without a bank. The receipt must show exactly those targets rebuilt and the rest loaded, and the same resume checks apply. The test also requires each retry to feed its loaded target (the passive subset, or the year) to the rebuilt fits, on some rows, with a raw draw that differs from the cold run's export there. Some retry must also feed the loaded passive subset to two or more rebuilt targets on such rows (declared batch 5's partnership earnings and estate flag). So a retry that handed on the loaded passive subset as the export changes it, whether keyed on any earlier miss, on a miss right before it or on a fresh fit, would fail the byte check.
Declared batch 5 is the one whole batch with two or more targets after the passive subset. It resumes once more, from a copy of its cold bank that lacks only those two targets' checkpoints. A run resumes this way when it stops right after writing the passive subset's checkpoint, and the pool builder banks this batch. The retry rebuilds no earlier target: it loads the six targets through the passive subset, then rebuilds the partnership earnings and the estate flag, each fed the loaded passive subset. The receipt must show that, and the same resume checks apply. The test requires the loaded passive subset to reach two or more rebuilt targets, on some rows each, with a raw draw the export changes there. So a retry that handed it on as the export changes it only when no earlier checkpoint was missing would fail the byte check. Post-PUF batch 3 has one target after the passive subset, so there the last-target retry is this retry.
A further test runs declared batch 5 as the ACS local lane does, in memory and banked. The lane's builder (
tools/_legacy/build_us_acs_multispine_base.py, the only caller that sets the flag) passes the declared plan withsemp_covers_partnership_income=Trueand no bank. The fixture's recipient getsSEMPfrom its own self-employment income (blank where blank) andtax_unit_role_input(head; spouse from age 18, dependent below). Every pattern must pass the same order, raw-prior and row checks. The export may changepartnership_incomeonly by zeroing it, on exactly as many rows as the receipt'snonzero_draws_discarded, and on at least one. Each of the rule's three disjoint row sets (own_semp,tax_unitandblank_semp) must discard at least one nonzero draw, and the three counts must sum to that total.The fixture can detect the change on the platform running it. Fed the snapped year, the chain moves HSA draws. Fed the zeroed components, it moves
farm_rent_incomeand the estate flag. Fed zeroed partnership earnings alone, it moves the estate flag while every earlier raw draw stays equal. The four checks that these counts are above zero print all four affected-row counts when they fail.Commits
Oldest first. CI run 45855878849 tests the pushed head, d1b7c15, and the four commits between 6751304 and it had no run of their own.
Evidence
macOS arm64, local:
HistGradientBoostingClassifier, grows one tree per class, so each column now takes two values and keeps a binary gate.SEMProw set, 47 in the tax-unit set and 94 in the blank-SEMPset, in memory and banked alike.farm_operations_income, 455 passive and 404 partnership-earnings rows of declared batch 5; and on 39 year rows of the tax-unit family.acs_transfer.py_snap_to_support, so an exact midpoint goes to the upper support point__batch_, in the transfer loop after the splitterfarm_rent_income's checkpoint: the fresh partnership fit gets a zerofarm_operations_incomepriorpuf_tax_itemizationpuf_tax_itemizationrun, in memory, draws HSA on a year prior that isn't the raw drawpartnership_incomepluss_corp_incomeis zero, in memory and when the bank hands it on: the export's line-32 rule moved ahead of the later targetsasec_survey_to_acsbatches 1 and 2 come back sortedpartnership_incomein the chain on the rowssemp_covered_partnership_cellsnames, in memory and when the bank hands it on, keyed on the recipient carryingSEMP: the local lane's rule moved ahead of the later targetss_corp_incomeis drawn on a partnership prior that isn't the raw drawestate_incomeis drawn on a pension prior that isn't the raw draw. Its banked hunk alone (M23b) fails the same test on the banked runestate_incomeis drawn on a pension prior that isn't the cold run's raw drawpartnership_incomepluss_corp_incomeis nonzero but the tax unit's sums to zero, later targets get a zero passive prior. In memory it groups the pattern's own rows byperson_tax_unit_id; the banked hunk uses the bank loop's full-recipient arrays. The export is unchangedactive[:] = ...), then sorts that list in place by batch sizeasec_survey_to_acs's batches in another order than the filter plannedpartnership_incomepluss_corp_incomeis zero. A fresh draw is handed on raw, and the export is unchangedpartnership_self_employment_net_earningsis drawn on a passive prior that isn't the cold run's raw drawpuf_tax_itemization, the bank snaps a loaded discrete-numeric target to its donor support before handing it on: M10 keyed on M17's production family namepartnership_self_employment_net_earningsis drawn on a passive prior that isn't the cold run's raw drawpartnership_self_employment_net_earningsis drawn on a passive prior that isn't the cold run's raw drawRegression sample, by commit:
M30 is M31 with a once-only flag (it refreshes the loaded passive prior after the first such fit only), so it is keyed on resume geometry and is not chased as a production refactor. It also passed all 17 tests at f6a03a7; at 85e103e and at d1b7c15 it fails the production-order test as M31 does, in declared batch 5's mixed retry (the estate flag on a passive prior that isn't the cold run's raw draw).
M34 is keyed on where the mixed retry used to put its miss (the first target only, several targets before the passive subset), so it leans toward a test fact more than a production refactor. The widened mixed retry closes it anyway.
Linux CI:
test.ymlruns before f6a03a7 (runs 45195643952, 45280421959, 45405391155, 45407829341, 45447301480, 45477906909, 45477993802, 45494131457, 45629292208 and 45638214632, 2026-11-23 to 2026-11-25), and 94 to 150 minutes in its ten most recent completed runs, read at 15:40Z on 2026-11-26 (runs 45671382366, 45677429354, 45701284229, 45768662187, 45794067034, 45814524955, 45823671413, 45823959859, 45825807414 and 45826061552, 2026-11-25 to 2026-11-26; the 3.13 leg of 45671382366 failed after 66 minutes and is left out). Main's slowest leg in these runs, 156 minutes, is 9 minutes under the cap.Limits
Pre-Fit and draw one QRF target at a time in CPS-ORG wages and the ACS transfer #1667 digests exist for macOS arm64 only, so Linux runs the in-process comparisons, not the byte comparison with e897698.
On macOS the snapped-year check moves 7 of 600 HSA rows. CI prints no per-test output, so the Linux count is known only to be nonzero.
The whole-batch runs fill each batch's non-fixture targets from synthetic donor columns: positive amounts, except the two line-32 columns (
partnership_income0 or 100,s_corp_income-100 or 100). They check those targets' order and the raw priors they feed forward, not their values. An export rule that needs a sign pattern these columns lack (a zero or a negative amount in another supplemental column, a negative partnership amount, or a zero S-corp amount) would not fire here.Production batches with fewer than two fixture targets never run whole, including three where a zeroed component precedes later targets: gap-fill
puf_tax_itemization__batch_2(it holds one fixture target,farm_operations_income, ahead ofmiscellaneous_income), declaredpuf_tax_itemization__batch_7(which the pool plan holds and the pool builder banks) and post-PUFpuf_tax_itemization__batch_5(no fixture target in either;sstb_self_employment_income_before_lsrahead of four targets). They are covered only because they share the fixture's component mechanism, so a change keyed on their names or targets would escape.The widening check reads the plan from the transfer loop's local variable
activeat the first fit, so renaming that variable makes the check raise rather than pass. Plans that holdis_pregnant(the declared plan and the post-PUFmodel_required_booleangroup) cannot run past the activation filter on the one-person recipient, but no caller passes them regime-evidence targets, so production does not widen them.The observed-pension case is inferred from production's declarations, not seen on a production frame. In
stacked_spine.py, the post-PUF producer surfaces,_post_puf_producer_maskand the activation check require ASEC rows to observe the pension before batch 3 and let only PUF clones produce its seven later targets;us_late_overlap_ownership.pymakes the batch-3 transfer a producer-masked no-op on ASEC clone-0 rows. The test's observed values and share are synthetic. In no other post-PUF batch does a target that a producer role writes precede a later target that the same role does not produce: the source-written batches, such as child support, have the source write every target. This inventory concerns whattransfer_acs_inputsitself exports; stacked child-support calibration runs after that call. For the declared, pool and gap-fill plans, it is not established that any recipient observes some but not all of a batch's targets, and no such run is added.No other decode or export rule changes a value ahead of a later target in the plans these tests read. Boolean raw draws are exactly 0 or 1 (all 1,200 estate-flag draws on this fixture), so the boolean decode keeps them; the immigration pair,
weeks_unemployed, the second-home year and the adult-care expense never precede a later model target (the QRF fits the immigration pair as one joint target); and no integer-typed target other than the year precedes one, while the tests above reach the year through its decoder. A probe over every batch of these plans found 95 declared output columns that precede a later column in their batch (the pool plan adds no batch: each of its batches is also a batch of another plan these tests read); a static read of their declarations in policyengine-us 2.2.1 (microcosm requires 2.2.1 or later) gives 66 float, 27 bool, one Enum (ssn_card_type, half of the immigration pair) and one int, the year.The resume tests reach these retries and no others. Under the fixture's family names, they reach the five interrupt points and the two mixed banks. Under production names, they reach four whole-batch resume shapes:
The last-target retry feeds every loaded target to its one fresh fit, so a checkpoint-path change that moves any loaded prior on any row in that retry fails it. The mixed retry does the same for the passive subset (the year) loaded right after a miss, with an earlier miss before that. The pure-prefix retry does it for the passive subset loaded with no miss and fed to two fresh fits in turn.
These retries do not reach:
farm_operations_income), which only the fixture-name resume test reaches, under its own family name;s_corp_income's checkpoint);A change that fires only in a resume shape these retries skip would escape.
The production-name retries lose a checkpoint by deleting its file, so the bank's paths for a torn, corrupt or stale checkpoint never run under production names. Those paths hand the transfer no checkpoint, as a missing file does, and the bank's own tests in
test_us_acs_transfer.pycover them and a real interruption. A change confined to how the bank rejects such a file would escape these tests.The fixture's frames carry default indexes, so a change that read rows by label where production reads them by position would escape.
The plans come from a one-person recipient that lacks every target. The pool runs on the source-completed frame, so these tests don't show which of the pool plan's targets its activation filter keeps there.
Plan
🤖 Generated with Claude Code