Skip to content

Test that the ACS transfer chains raw draws past snapped and zeroed targets - #1723

Merged
MaxGhenis merged 11 commits into
mainfrom
us-qrf-identity-gap-tests
Nov 26, 2026
Merged

MaxGhenis merged 11 commits into
mainfrom
us-qrf-identity-gap-tests

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • a discrete numeric target that the decoder snaps to the donor support (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;
  • the self-employment components that keep_measured_self_employment_totals zeroes 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_corp zeroes 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, which semp_covers_partnership_income=True keeps at zero where the row's ACS SEMP already 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_desired before 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_next receives 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_balance and 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_earnings between 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_inputs itself: 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, which tools/build_us_multispine_pool.py passes with a target bank and no regime-evidence targets), for each direction of stacked_gap_fill_plan() (the plans the stacked gap fill passes) and for each group in CANONICAL_US_LATE_TRANSFER_GROUPS (the families canonical post-PUF execution passes). The declared plan's person batch puf_tax_itemization__batch_5 holds farm_operations_income, farm_rent_income, partnership_self_employment_net_earnings and estate_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, as stacked_spine.py builds 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-fill asec_survey_to_acs and 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 person puf_tax_itemization__batch_3 (all eight) and the tax-unit puf_tax_itemization family (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_income is 0 or 100 (60% zero) and s_corp_income is -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 recorded fit_draw_next calls 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, as reconcile_acs_passive_partnership_s_corp groups 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_desired on 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_income and every later target rebuilt. Each prior fed to a rebuilt fit must equal the cold run's raw draw byte for byte, so estate_income is 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:

    • post-PUF batch 3 rebuilds the pension, s_corp_income and partnership_self_employment_net_earnings;
    • declared batch 5 rebuilds farm_operations_income, s_corp_income, the partnership earnings and the estate flag;
    • the tax-unit family rebuilds 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 with semp_covers_partnership_income=True and no bank. The fixture's recipient gets SEMP from its own self-employment income (blank where blank) and tax_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 change partnership_income only by zeroing it, on exactly as many rows as the receipt's nonzero_draws_discarded, and on at least one. Each of the rule's three disjoint row sets (own_semp, tax_unit and blank_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_income and 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.

  • 10f6644 Test that the ACS transfer chains raw draws past snapped and zeroed targets
  • 7c3a34b Test the ACS transfer's raw priors on resume, in production order and on export
  • 33f1f02 Test the year decoder's tie rule, every resume point and runtime batch order
  • b779805 Test production batch plans, whole batches and mixed-bank resumes
  • 88d6926 Test the passive and SEMP-lane export rules and the widened plans
  • 6751304 Test the observed pension in post-PUF batch 3
  • 9500d3d Test a resumed pension, offsetting line 32 and the filter's own plan list
  • f6a03a7 Test resuming each whole batch with only its last target rebuilt
  • 85e103e Test resuming each whole batch from a mixed bank past the passive subset
  • 0725dd2 Merge main at 779452c into the QRF raw-prior tests branch (it changes neither of this PR's files, and the diff against main is still those two files)
  • d1b7c15 Test a pure-prefix resume past the passive subset and the pool plan (it also widens the mixed retry)

Evidence

macOS arm64, local:

  • A generator run with e897698's code and with Fit and draw one QRF target at a time in CPS-ORG wages and the ACS transfer #1667's code on the committed fixture gave the same person, household and tax-unit digests, in memory and banked.
  • A rerun of that generator at e897698 with this branch's fixture module (unchanged since 7c3a34b) gives the same digests: the fixture data is unchanged.
  • All 17 tests pass on d1b7c15's test file, with none skipped. They ran in two slices just before the commit, on 0725dd2 with the edit applied (the file's sha256 equals the commit's), and again at d1b7c15 itself. Before the commit, the production-order and ACS local lane tests took 1 min 48 s at a 1-minute load average of 11 to 18, and the other 15 took 3 min 56 s at load 20 to 31; at d1b7c15, they took 4 min 5 s at load 20 to 26 and 1 min 58 s at load 25 to 17. On 0725dd2 itself, whose test file is 85e103e's, the same slices took 2 min 39 s at load 56 to 21 and 4 min 30 s at load 21 to 69. On 85e103e's file, just before that commit, they took 2 min 44 s at load 27 to 17 and 4 min 47 s at load 17 to 23.
  • Cost. Wall times on this shared machine vary with its load more than with a commit. So earlier commits' costs were measured by running the previous commit's tests and its own alternately, each pair in one process. This commit's cost was not measured that way, so it comes from probes.
    • d1b7c15 against 0725dd2, not paired. The slices above ran about 2.5 hours apart, and the production-order test took 62.4 s on the new file against 93.6 s on the old one, and 186.3 s on d1b7c15 itself, so these unpaired wall times can't measure the commit's cost. Measured directly, the new pure-prefix retry took 9.0 s, bank copy and checks included, in the count probe at load 76 to 105, and 6.1 s in the reviewer's probe at load 104 to 115. The widened mixed retries took 8.3, 14.5 and 1.9 s in the count probe, against 6.1, 14.0 and 1.4 s for the previous ones in the previous count probe at load 85 to 111; the reviewer's probe gave 6.2 and 12.4 s for the widened post-PUF batch 3 and declared batch 5 retries. Between the two count probes the unchanged pension retry went from 16.3 s to 11.9 s, so the widening's change is within the noise. Reading the pool plan took no measurable time. So the commit adds about 10 s locally (inferred).
    • 85e103e against f6a03a7: at load 61 to 102, in two processes that each ran one pair (f6a03a7 then 85e103e, then the reverse), the production-order test took 83.8 s and 75.8 s at f6a03a7 and 96.3 s and 92.7 s at 85e103e (81.1 and 78.6 against 95.0 and 94.1 CPU seconds), about 15 s more. The commit leaves the other 16 tests unchanged. Measured directly, the three mixed retries, bank copies and checks included, took 6.1 s (post-PUF batch 3), 14.0 s (declared batch 5) and 1.4 s (tax unit) in the count probe at load 85 to 111, and 6.4, 11.6 and 1.1 s in the reviewer's probe at load 29, so the commit adds about 20 s locally.
    • f6a03a7 against 9500d3d, at load 29 to 63: the production-order test took 64.0 s and 70.2 s at 9500d3d and 67.9 s and 67.9 s at f6a03a7 (71.4 and 79.5 against 78.7 and 77.4 CPU seconds), and the ACS local lane test 28.4 s against 26.8 s (33.5 against 30.6 CPU seconds): at that load the noise is as large as the change. Measured directly, the three last-target retries, bank copies included, took 4.7 s, 1.8 s and 1.0 s at load 15 to 28, about 7 s.
    • 9500d3d against 6751304, at load about 10: the production-order test took 47.8 s and 53.9 s at 6751304 and 57.5 s and 58.1 s at 9500d3d (53.8 to 58.9 against 64.1 to 65.9 CPU seconds), and the ACS local lane test 24.5 s against 26.9 s (29.0 against 29.8 CPU seconds), about 7 to 10 s more.
    • A first version that gave both line-32 columns three values (-100, 0 and 100) added about 35 s, most likely (inferred, not profiled) because the sign gate, a HistGradientBoostingClassifier, grows one tree per class, so each column now takes two values and keeps a binary gate.
  • Counts on these supplements (from probes on the same data; on 6751304's supplements no row is offset):
    • 205 rows of declared batch 5 and 204 of post-PUF batch 3 draw a zero line 32 under a nonzero passive draw; 250 and 256 rows (125 and 128 tax units) draw a nonzero line 32 that the other person in their unit offsets, 110 and 124 of them in units whose two people share an availability pattern.
    • The local lane's run discards 208 nonzero partnership draws, 67 in the own-SEMP row set, 47 in the tax-unit set and 94 in the blank-SEMP set, in memory and banked alike.
    • In the last-target retries, the prior fed to the rebuilt fit differs from the cold run's export on 575 pension rows and 460 passive rows of post-PUF batch 3; on 503 farm_operations_income, 455 passive and 404 partnership-earnings rows of declared batch 5; and on 39 year rows of the tax-unit family.
    • In the mixed retries, the loaded passive subset fed to the rebuilt fits differs from the cold run's export on 460 rows of post-PUF batch 3 (fed to the partnership earnings) and 910 of declared batch 5 (455 for each of the partnership earnings and the estate flag), and the loaded year on 39 rows of the tax-unit family (fed to the HSA deduction). Widening the retries left these counts unchanged.
    • In declared batch 5's pure-prefix retry, the loaded passive subset differs from the cold run's export on 455 rows for each of the two rebuilt targets.
    • Each fed prior equals the cold raw draw byte for byte, so these are the rows where the export changes the loaded value.
  • Mutations of the production source, applied uncommitted and reverted after each run. Against the first commit's 8 tests:
    • Feeding the snapped year forward fails 5 tests when the in-memory path does it (M1) and 3 when the banked path does (M2). One of M1's five is the banked case of the raw-draw test, which fails because it compares the banked run with the mutated in-memory output. Feeding it forward decoded as int64 raises (M3).
    • Zeroing the components before later targets fails 7 tests in memory (M4) and 3 banked (M5).
    • M6 adds a reconciliation call inside the in-memory model-target loop, with a fabricated self-employment total of zero and all-true masks, and still runs the normal post-transfer reconciliation. Its 7 failures show that premature zeroing changes the outputs under those fixture conditions.
    • Skipping the zeroing (M7), dropping the export snap (M8) or reversing the in-memory chain (M9) fails 4, 3 and 5 tests.
  • Mutations that an earlier commit's tests missed, each caught by a check added later:
Mutation What it changes in acs_transfer.py Missed by Fails at Failing tests
M10 Snaps the year only when the bank loads it from a checkpoint into the priors All 8 tests of 10f6644 7c3a34b, and again at 33f1f02 The resume test after the year's checkpoint: the fresh HSA fit gets a year prior that isn't the raw draw
M11 Zeroes a self-employment component only when the bank loads it All 8 tests of 10f6644 7c3a34b Both component resume tests, on the same check
M12 Sorts each batch's targets, only when the splitter emits more than one batch All 8 tests of 10f6644 7c3a34b The production-order test: batch 5 would draw the estate flag first
M13 Makes the decoder map every positive year to the largest donor year All of 10f6644's tests except the two macOS byte tests, so Linux would have missed it (inferred: those two tests skip there) 7c3a34b The two byte tests and both cases of the raw-draw test (in memory and banked). Seen on macOS; the raw-draw test runs on every platform, so it should catch M13 on Linux too (inferred)
M14 Moves each value up one floating-point step before the unchanged _snap_to_support, so an exact midpoint goes to the upper support point All 12 tests of 7c3a34b (run with M15 and M16 applied too) 33f1f02 Only the export test, on the decoder's tie check: the decoder returns [1991, 1997, 2004, 2011, 2018] where the lower points are [0, 1991, 1997, 2004, 2011]
M15 Sorts the targets of any family whose name contains __batch_, in the transfer loop after the splitter All 12 tests of 7c3a34b (with M14 and M16) 33f1f02 Only the production-order test: after the batch 3 runs (in memory and banked), the first batch 5 run, in memory, drew the estate flag first
M16 On resume, zeroes every loaded component in the priors when the last target loaded before the first rebuilt one is not a component All 12 tests of 7c3a34b (with M14 and M15) 33f1f02 Only the resume test after farm_rent_income's checkpoint: the fresh partnership fit gets a zero farm_operations_income prior
M17 Snaps the year on its handoff to later targets, in memory and banked, only when the family is puf_tax_itemization All 14 tests of 33f1f02 b779805 Only the production-order test: the tax-unit puf_tax_itemization run, in memory, draws HSA on a year prior that isn't the raw draw
M18 Sorts a batch's targets in the transfer loop only when the batch holds eight targets All 14 tests of 33f1f02 b779805 Only the production-order test: the post-PUF batch 3 run, in memory, is drawn sorted. Run alone, declared batch 5 also draws the estate flag first, in memory and banked
M19 On resume, snaps a loaded year in the priors only when an earlier target in its family was rebuilt in this run All 14 tests of 33f1f02 b779805 Only the mixed-bank test that keeps the year: the rebuilt HSA fit gets a year prior that isn't the uninterrupted run's raw draw
M20 Zeroes the passive subset in the chain wherever the row's drawn partnership_income plus s_corp_income is zero, in memory and when the bank hands it on: the export's line-32 rule moved ahead of the later targets All 16 tests of b779805 88d6926 The production-order test (post-PUF batch 3, in memory: the partnership earnings are drawn on a passive prior that isn't the raw draw) and the ACS local lane test (batch 5, in memory, the same check)
M21 Sorts each batch's targets when the regime-evidence widening runs All 16 tests of b779805 88d6926 The production-order test and the ACS local lane test, which both read the plans, at the widening check: gap-fill asec_survey_to_acs batches 1 and 2 come back sorted
M22 Zeroes partnership_income in the chain on the rows semp_covered_partnership_cells names, in memory and when the bank hands it on, keyed on the recipient carrying SEMP: the local lane's rule moved ahead of the later targets All 16 tests of b779805 88d6926 Only the ACS local lane test: in memory, s_corp_income is drawn on a partnership prior that isn't the raw draw
M23 Feeds the later targets the merged value, the recipient's observed value where it has one and the raw draw elsewhere, in memory and when the bank hands it on All 17 tests of 88d6926 6751304 Only the production-order test: post-PUF batch 3, in memory, estate_income is drawn on a pension prior that isn't the raw draw. Its banked hunk alone (M23b) fails the same test on the banked run
M24 On a checkpoint hit only, the bank feeds later targets the merged value of the loaded target (observed where the recipient has one, the checkpoint's raw draw elsewhere); a fresh draw is handed on raw. M23's banked hunk (M23b) merges on misses too, so the cold banked batch 3 run already caught it All 17 tests of 6751304 9500d3d Only the production-order test, in the resumed batch 3 run: estate_income is drawn on a pension prior that isn't the cold run's raw draw
M25 Applies the export's tax-unit line-32 clearance to the passive prior in the chain: where the person's drawn partnership_income plus s_corp_income is 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 by person_tax_unit_id; the banked hunk uses the bank loop's full-recipient arrays. The export is unchanged All 17 tests of 6751304 9500d3d The production-order test (post-PUF batch 3, in memory: the partnership earnings are drawn on a passive prior that isn't the raw draw) and the ACS local lane test (batch 5, in memory, the same check). Its banked hunk alone (M25b) fails the same two tests on their banked runs
M26 Writes the regime-evidence widening into the activation filter's own list (active[:] = ...), then sorts that list in place by batch size All 17 tests of 6751304 9500d3d The production-order test and the ACS local lane test, which both read the plans, at the widening check: the first fit's loop holds gap-fill asec_survey_to_acs's batches in another order than the filter planned
M27 On a checkpoint hit only, the bank hands the loaded passive subset on through the export's line-32 rule: a zero passive prior where the person's or the tax unit's loaded partnership_income plus s_corp_income is zero. A fresh draw is handed on raw, and the export is unchanged All 17 tests of 9500d3d f6a03a7 Only the production-order test, in post-PUF batch 3's last-target retry: partnership_self_employment_net_earnings is drawn on a passive prior that isn't the cold run's raw draw
M28 On a checkpoint hit only, and only in the family puf_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 name All 17 tests of 9500d3d f6a03a7 Only the production-order test, in the tax-unit family's last-target retry: the HSA deduction is drawn on a year prior that isn't the cold run's raw draw
M29 On a checkpoint hit only, and only when an earlier model target of the family was rebuilt in this run, the bank hands the loaded passive subset on through the export's line-32 rule (a zero passive prior where the person's or the tax unit's loaded line 32 is zero): M19's key on M27's rule All 17 tests of f6a03a7 85e103e Only the production-order test, in post-PUF batch 3's mixed retry: partnership_self_employment_net_earnings is drawn on a passive prior that isn't the cold run's raw draw
M31 After every fresh fit that follows a loaded passive subset, the bank refreshes the loaded passive prior to the line-32 rule's form, so each later rebuilt target is fed it. The checkpoints and the export are unchanged All 17 tests of f6a03a7 85e103e Only the production-order test, in declared batch 5's mixed retry, after the partnership earnings pass: the estate flag is drawn on a passive prior that isn't the cold run's raw draw
M32 M31, armed only when no earlier model target of the family was rebuilt in this run, so the refresh fires only on a resume with no earlier miss. The checkpoints and the export are unchanged All 17 tests of 85e103e, and again at 0725dd2 d1b7c15 Only the production-order test, in declared batch 5's pure-prefix retry, after the partnership earnings pass: the estate flag is drawn on a passive prior that isn't the cold run's raw draw
M34 M29, keyed on the model target right before the passive subset having been rebuilt in this run, not on any earlier miss The production-order and ACS local lane tests of 85e103e, and again at 0725dd2 (not run on the other 15, which load no passive subset) d1b7c15 Only the production-order test, in post-PUF batch 3's mixed retry: partnership_self_employment_net_earnings is drawn on a passive prior that isn't the cold run's raw draw
  • Regression sample, by commit:

    • 88d6926: M1 still fails its 6 tests, M10 the resume and mixed-bank tests that reach the year, M17 the production-order test (on the tax-unit run) and M19 the mixed-bank test that keeps the year. M15 and M18 fail the production-order test and now also the ACS local lane test, because both sort batch 5.
    • 6751304: M1 still fails its 6 tests, M17 the production-order test, M20 the production-order and ACS local lane tests, and M22 the ACS local lane test.
    • 9500d3d: M1 still fails its 6 tests, M17 the production-order test (on the tax-unit run), M20 the production-order and ACS local lane tests, M22 the ACS local lane test, and M23 the production-order test (post-PUF batch 3, in memory).
    • f6a03a7: M1 still fails its 6 tests, M20 and M25 the production-order and ACS local lane tests, M22 the ACS local lane test, M23 the production-order test (post-PUF batch 3, in memory), M24 the production-order test (in the resume after the pension) and M26 the production-order and ACS local lane tests, whose widening message now ends "the same batches, in another order". M27 and M28 ran at f6a03a7 on the production-order and ACS local lane tests; the other 15 tests, which f6a03a7 left unchanged, passed under each at 9500d3d.
    • 85e103e: M1 still fails its 6 tests, M20 and M25 the production-order and ACS local lane tests, M22 the ACS local lane test, M23 the production-order test (post-PUF batch 3, in memory), M24 the production-order test (in the resume after the pension) and M26 the production-order and ACS local lane tests (at the widening check), each with the same message as at f6a03a7. M29, M30 and M31 ran at 85e103e on the production-order and ACS local lane tests; the other 15 tests, which 85e103e leaves unchanged, passed under each at f6a03a7.
    • d1b7c15: M1 still fails its 6 tests: the production-order test (on the tax-unit run) and 5 of the other 15. M20 and M25 fail the production-order and ACS local lane tests, M22 the ACS local lane test, M23 the production-order test (post-PUF batch 3, in memory), M24 the production-order test (in the resume after the pension) and M26 the production-order and ACS local lane tests (at the widening check), each with the same message as at 85e103e. M27 and M28 still fail the production-order test in the last-target retries (post-PUF batch 3 and the tax-unit family), M29 in post-PUF batch 3's mixed retry, and M30 and M31 in declared batch 5's mixed retry. These ran at d1b7c15 on the production-order and ACS local lane tests. The other 15 tests, which d1b7c15 leaves unchanged, passed under M27 and M28 at 9500d3d and under M29, M30 and M31 at f6a03a7. Under M32 the other 15 pass at d1b7c15 too, as they load no passive subset.
  • 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:

  • On the first commit (10f6644), both engine-free legs (Python 3.13 and 3.14, x86_64) ran this file. Each reported 8 more tests than main a3767e2: 6 more passes and 2 more skips. Only the two byte tests skip off macOS arm64, so the HSA check passed on both legs.
  • Every check also passed at 33f1f02 (engine-free legs 111 and 125 minutes, against a 165-minute cap) and at 6751304 (145 and 139 minutes).
  • Main's own engine-free legs took 92 to 156 minutes in the ten completed test.yml runs 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.
  • Run 45855878849 tested d1b7c15 merged onto main e29843d and passed all 12 jobs by 18:27Z on 2026-11-26. Its engine-free legs took 90 minutes (3.13) and 139 minutes (3.14). 9500d3d, f6a03a7, 85e103e and the merge 0725dd2 had no run of their own. The four test commits since 6751304 add about 45 s locally (about 7 to 10, 7, 20 and 10 s, above); at three times that on Linux (inferred, not run), a little over 2 minutes.

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_income 0 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 of miscellaneous_income), declared puf_tax_itemization__batch_7 (which the pool plan holds and the pool builder banks) and post-PUF puf_tax_itemization__batch_5 (no fixture target in either; sstb_self_employment_income_before_lsr ahead 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 active at the first fit, so renaming that variable makes the check raise rather than pass. Plans that hold is_pregnant (the declared plan and the post-PUF model_required_boolean group) 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_mask and 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.py makes 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 what transfer_acs_inputs itself 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:

    • post-PUF batch 3 from a bank that holds only its first target's checkpoint (the pension), with its seven later targets rebuilt;
    • each of the three whole batches with only its last target rebuilt;
    • each of the three from a mixed bank, with its first target, the target right before the passive subset and every target after the passive subset rebuilt (in the tax-unit family, the targets around the year);
    • declared batch 5 with only the two targets after the passive subset rebuilt.

    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:

    • a whole-batch retry that loads a component and rebuilds two or more targets after it (declared batch 5 resumed after farm_operations_income), which only the fixture-name resume test reaches, under its own family name;
    • a mixed bank with other miss positions, for example a single miss in the middle of a batch, and a pure-prefix resume at another checkpoint, for example one that rebuilds the passive subset while its line-32 components load (a run stopped right after s_corp_income's checkpoint);
    • a whole-batch mixed bank that loads a component or the pension between rebuilt targets;
    • a batch with fewer than two fixture targets;
    • a resumed ACS local lane run, which production never banks.

    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.py cover 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

…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>
MaxGhenis and others added 10 commits November 25, 2026 01:07
… 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>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Handed to the Microcosm hub at head d1b7c15ebcfaa7a46cf6b415a5b267b2110794e0, with one P1 open on the PR description.

  • What lands: a fixture and 17 tests that check Fit and draw one QRF target at a time in CPS-ORG wages and the ACS transfer #1667's raw-prior chain in the ACS transfer. No production code changes.
  • Review: four Subfleet rounds (review task, hard tier), the last two limited to the open findings and the commits that answer them. Round 4 ran on gpt-6.2-sol at this head and closed round 3's two P1s, P2 and two P3s. It also closed the three P1s that in-session checks raised between rounds, on resumes past a checkpoint-loaded passive subset, from a mixed bank and from a pure prefix. Each P1 closure rests on mutants that fail slice A at this head: M24 and M25 for round 3's, and M27 to M32 and M34 for the in-session ones.
  • Open P1: round 4 found that the description still called the five commits after 6751304974 unpushed and named no CI run for this head. I corrected both passages at 16:23Z, and no reviewer has yet closed it. The PR guide allows no round after round 4, so the hub decides whether a one-item closure check, or its own read, closes it.
  • P2 and P3: the description now carries round 4's timing, Limits and inventory-wording fixes. Key the ACS raw-prior resume checks by the whole batch layout #1766 tracks round 4's P2 on keying the liveness results by the whole batch layout (inferred; no current layout triggers it).
  • Local evidence at this head: all 17 tests pass on the committed tree in two slices on macOS arm64, none skipped. M32, M34, M29, M31, M24 and M1 fail slice A with the messages the fix report gives, and the regression sample (M1, M20, M22 to M26) fails as it did at 85e103e7b5.
  • CI: run 45855878849 tests this head. At 16:23Z, 5 of its 11 jobs had passed and the six engine legs were running. Before landing, please read the run's conclusion and job count.
  • State: the PR stays a draft. My worktree ~/PolicyEngine/_worktrees/microcosm-qrf-identity-gap-tests holds the branch, clean apart from an ignored .ruff_cache/; I didn't run git stash list, which this session's rules forbid. I won't push to the branch unless you ask.
  • Records: ~/reviews/us-one-population-d2283-2026-11-11/runs/main-fcabe4e65f-2026-11-24/, indexed by its MANIFEST.md, holds the round reports (review-r1/review.md to review-r4/review.md, each beside its brief), the in-session checks (check1723*.md), the fix reports (fix1723*.md) and the final verifier (verify1723i.md).

🤖 Generated with Claude Code

@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Round 4 left one P1, on this description's push and CI status. Lines 44 and 128 now name run 45855878849 for d1b7c15e and list the four commits that had no run of their own. A reader and a separate refuter checked each status claim against git and the run, and both found it closed, so I'm treating the P1 as closed. I've updated line 128 and the plan with the run's final result.

The PR changes only tests. Run 45855878849 passed all 12 jobs on this head merged onto main e29843dc. Main has since taken five merges, none of them in a file these tests import, and the 17 tests also pass on a local merge of this head with main 4b78a9b2. Merging it doesn't settle whether this test can replace a build receipt for #1667.

@MaxGhenis
MaxGhenis marked this pull request as ready for review November 26, 2026 18:36
@MaxGhenis
MaxGhenis merged commit 967aeee into main Nov 26, 2026
12 checks passed
@MaxGhenis
MaxGhenis deleted the us-qrf-identity-gap-tests branch November 26, 2026 18:39
juaristi22 added a commit that referenced this pull request Nov 27, 2026
…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>
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.

1 participant