Skip to content

Count state child care subsidies once in the SPM and preserve reported deductions - #10569

Open
MaxGhenis wants to merge 62 commits into
mainfrom
spm-child-care-subsidies
Open

MaxGhenis wants to merge 62 commits into
mainfrom
spm-child-care-subsidies

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Problem

For a Manhattan parent earning $30,000 with a child in full-time care at $14,000 a year, ny_ccap pays $13,916.40. On main at 469ad12cb9 (2.90.2), turning that subsidy on raises household_net_income by $8,321.86 and lowers spm_unit_net_income by $5,594.54.

On main, SPM resources count only the Colorado, Washington and West Virginia subsidies, and the SPM deduction uses pre-subsidy expenses. So in the other 48 states a subsidy cuts SNAP and tax credits, and nothing in the SPM offsets the cut.

Fix

Census subtracts what parents paid for child care (SPM technical documentation, PDF page 17), and its list of noncash benefits (section 4.3.1) has no child care benefit. So from 2024 the model counts a subsidy in the SPM once, as a lower expense.

In a household calculation, the user enters the price of care before any subsidy as spm_unit_pre_subsidy_childcare_expenses, while both dataset builds fill that input with what parents reported spending. So spm_unit_capped_work_childcare_expenses has two rules. In them, W stands for work expenses, C for the earnings cap, E for the input, S1 for the subsidy the simulated policy pays and S0 for the subsidy baseline policy pays.

Where What E holds Expense
Household calculation The price of care before any subsidy min(W + max(E - S1, 0), C), or min(W + max(X, 0), C) for a unit with a child given childcare_expenses X
Over a dataset, rebuilt without reform= from a snapshot or extracted situation of one, or restored from a dump of one What parents reported spending, which the rule reads as after any subsidy min(W + max(E - (S1 - S0), 0), C) with a baseline arm, and min(W + max(E, 0), C) without one

Over a dataset, the model grosses the reported amount up by the baseline subsidy at run time and then nets the simulated subsidy from the result. Under baseline policy the formula reads no subsidy and keeps min(W + max(E, 0), C), the amount Census subtracts. In both rules the floor applies before child care can affect work expenses. holds_dataset_inputs picks the rule, and simulation.baseline supplies S0, as it does for medicaid_slcsp_state_denominator. The predicate holds over a dataset (simulation.is_over_dataset), in a simulation built from a marked snapshot or situation of one, and in one restored from a marked dump of one.

export_source_inputs marks a snapshot of a dataset simulation with "_dataset_inputs": true, and extract_person marks a situation extracted from one the same way. This package's builders turn the mark into an attribute on the simulation they build, so later branches keep the dataset rule too. At a92315ef96 the Manhattan family's reload read as a household, and its expense fell from $14,000 to $83.60; now it keeps $14,000. A snapshot without the mark, as main's export_source_inputs writes, reloads as a household, and so does one marked false. A mark with a value other than a Python bool raises ValueError. Main's reload_source_inputs reads only a snapshot's version, period keys, provenance envelope, sources and overrides. So it ignores the mark, and snapshots stay at version 1 (read from main's code, not run). Main's builders would reject the mark in an extract_person situation, as they reject any unknown key (read from core's code).

A simulation built with reform= from a marked snapshot or situation raises ValueError in _rebuild_baseline_branch, so a marked situation or snapshot builds without reform=. A builder refuses a replacement if a baseline exists and either set of inputs came from a dataset. Dataset reforms, their branches and their samples refuse export_source_inputs and dump_simulation. A dataset simulation without a baseline arm can be dumped and restored with the reported-payment reading. The baseline arm can be exported or dumped by itself. Core restores one arm. Dataset construction and builders still allow Microsimulation(reform=...) to build and gross up the expense. Unmarked snapshots and situations still take reform= as on main. Main creates snapshots and extracted situations without the mark, so both build under reform= and return household numbers. #11284 tracks paired serialization.

  • In a household calculation, the formula reads childcare_expenses, the model's out-of-pocket variable, for a unit with a child. That variable allocates expenses to children, so for a unit with no child the formula nets child_care_subsidies from the unit's own input. A caller can give a unit with a child its out-of-pocket amount as childcare_expenses, which then replaces max(E - S1, 0). Main reads only E, so for a unit with a child given only $6,000 of childcare_expenses, the expense moves from $0 on main to $6,000. A unit with no child ignores that input. Members' pre_subsidy_childcare_expenses, given directly, also replace E for a unit with a child, since childcare_expenses sums them. Once a caller gives one member's amount, every member holds an input, so a child given none counts zero rather than a share of E. For example, with E of $10,000, $6,000 given for one child, no subsidy, W of $1,000 and C of $20,000, the expense moves from $11,000 on main to $7,000, whether the unit has one child or two. YAML cases pin each of these.
  • From 2024, this PR drops co_ccap_subsidy, wa_child_care_subsidies and wv_child_care_subsidies from spm_unit_benefits and from the four reform copies of that list. The expense has no formula before 2024, so SPM resources keep those subsidies in those years wherever main counts them, and every year before 2024 matches main. The Tlaib copies hold only Colorado's. A YAML case in each reform's file pins 2023 and 2024.
  • From 2024, the child_care_subsidies list holds all 51 state programs. The DC, Tennessee and Texas programs pay in 2024, but main's list leaves them out until 2025. From 2024, over a dataset, the shared childcare_expenses keeps reported payments under baseline policy and moves them by the subsidy change under a reform. SNAP, HUD and the other readers of this variable use that amount. Household calculations still start from gross bills, so adding the three programs lowers childcare_expenses in those states in 2024. For Tennessee households with level bills, SNAP applies the modeled subsidy in the month it pays. A supplied annual out-of-pocket amount is divided over the year. The historical formula applies before 2024. Over Populace 2024 the three programs pay nothing, so the default file's 2024 results don't move.
  • This PR changes main's county rule for dataset runs. latest_readable_county carries a stored county to other years from inputs only. Main could also carry a county calculated for another year, so the arm's first read could change a reform's expense. At 2642c26b34, reading 2025 first gave a $24,290 expense in Cook County, and with no prior read it gave $22,778 in Adams County. On Linux at a094fe5930, both orders give Adams County, an $8,778 subsidy and a $22,778 expense.

At 1b9dec8316, the Manhattan family's expense falls from $14,000 to $83.60, its SPM net income rises by $8,321.86, as its household net income does, and it leaves SPM poverty.

Over a dataset, a unit reporting $14,000 keeps a $14,000 expense under baseline policy. Repealing New York's subsidy raises that expense to $27,916.40 and lowers SPM net income by the same $8,321.86. test_repeal_moves_dataset_and_household_income_by_the_same_amount pins this in New York and Texas.

Adding subsidies to resources instead would depart from the Census definition and fail in two places. It would add income at the earnings cap, where the expense doesn't fall. It would also overcount wherever a program pays more than the family spends. Vermont pays its state rate regardless of the provider's charge, and in the audit it paid $22,828 against a $1,200 bill.

Why the dataset needs its own rule

Both dataset builds fill the input from the ASEC's reported spending, SPM_CHILDCAREXPNS: Populace in microcosm/build/us_runtime/childcare.py and policyengine-us-data in datasets/cps/cps.py. The ASEC asks parents how much they spent on child care, and Census subtracts that amount as it stands. This rule reads the amount as what parents paid after any subsidy, so netting a modeled subsidy from it would count the subsidy twice. Over the default file in 2026, netting cut the SPM expense by $1.135B at 606699d640, and by $7.280B with schedules set at 640753a617. So the builds keep the reported amount, and the model moves it only by the change in subsidy a reform makes.

The baseline arm

The dataset rule reads S0 from the reform's baseline arm. Core builds that arm inside its __init__. Simulation.__init__ and Microsimulation.__init__ then move employment_income, self_employment_income, sstb_self_employment_income, weekly_hours_worked and long_term_capital_gains to their pre-response variables, and fill state_code from state_code_str. At d4d391788d, the arm kept the raw inputs and read 0 from the pre-response variables. In a household situation it paid the Manhattan family $3,498 in New York TANF and no child care subsidy, where a plain run paid no TANF and a $13,916.40 subsidy. Over a dataset that stores raw hours, as policyengine-us-data's CPS build does (cps.py:481), the dataset rule would have carried that gap into the SPM.

#9698, which this branch merges from main, branches the arm again after the moves (_rebuild_baseline_branch). That rebuild bound the copied holders to baseline variables but kept each holder the reform had built in another entity or with other ETERNITY storage. The SPM mixin's constructor, subsample and _baseline_measurement_branch all drop such holders. Under a reform that stores child_care_subsidies for all time, the arm read a New York family's $500 input for all time as S0, where baseline policy pays the family $13,916.40. The family's reform expense came out $14,000.00, where the rule gives $27,416.40. This PR makes the rebuild drop those holders too. A dropped holder takes its inputs with it, though, so dropping alone would have the arm calculate S0 in place of a subsidy the caller gave, even a yearly one that baseline policy can hold.

So where the rebuild would drop a holder that holds an input the caller gave, it raises ValueError naming the variable (_refuse_inputs_baseline_policy_drops). Under the reform that stores child_care_subsidies for all time, a $500 subsidy given for all time or for 2026, through a dataset or a situation, raises. The guard has three limits:

  • It runs only during construction, in the rebuild (system.py:561) at its end. At the constructor's own drop site, core has already dropped the holder and its record of the input.
  • An input set on the reform after construction raises nothing. It stays on the reform side under the reform's definition, and after a subsample the sampled baseline reads its own inputs and calculates the variable.
  • It matches a recorded input by variable name alone, ignoring branch and period, because the records the arm copies from the reform keep the reform's branch name.

The behavioural-response measurement branch drops the same holders and calculates those variables without the guard, as on main. Main's test_baseline_measurement_drops_incompatible_holders sets such an input after construction and expects the branch to calculate the variable as simulation.baseline does. The branch has no baseline of its own, so its SPM expense keeps E and reads no subsidy.

The household rule reads no S0, so the arm doesn't move a household calculation's SPM expense. No reform in policyengine_us/reforms redefines a variable in another entity or with other all-time storage, so none reaches the drop or the guard, and a static test below keeps it so.

Subsampling gives both arms the same household selection and replays each arm's recorded inputs under its own policy. When a branch samples, it gets an arm on its own sample and the parent retains its arm. A failed rebuild restores both populations and the branch state. An existing simulation named "baseline" with an arm still refuses sampling.

Tests and a docstring that #10975 added on main assumed a subsampled branch keeps its parent's unsampled baseline and matched people by ID. An input supplied only to one arm continues to affect the comparison after sampling. This includes a $1,000 FICA contribution set only on the reform: its $71.06 payroll adjustment, $1,000 × 0.0765 ÷ 1.0765, stays after sampling. For explicitly mismatched payroll populations, the person-ID fallback remains available. This PR updates #10975's variable documentation to match.

This PR also adds tests/core/test_reform_baseline_arm_inputs.py, which pins the rebuilt arm on the dataset path this rule reads, and updates the docstring of _baseline_measurement_branch, which still said the arm keeps the raw inputs.

Invariants

I test these with Hypothesis in policyengine_us/tests/test_spm_child_care_subsidy_invariants.py.

For a household calculation:

  1. For a unit that leaves childcare_expenses and its members' pre-subsidy expenses to their formulas, the model's expense equals the formula above, written from the documentation rather than from the code. YAML cases pin a childcare_expenses input X, which replaces max(E - S1, 0) with max(X, 0) for a unit with a child and which a unit with no child ignores.
  2. 0 <= expense(0) - expense(S) <= S, and a larger subsidy never raises the expense.
  3. With taxes and other benefits fixed, a subsidy leaves spm_unit_benefits unchanged and raises spm_unit_net_income by the fall in the expense, so the SPM counts it once.
  4. With a subsidy of zero, the expense matches main's formula in every state for a nonnegative input and a unit that leaves childcare_expenses and its members' pre-subsidy expenses to their formulas. A unit with a child given only childcare_expenses X gets min(W + max(X, 0), C), where main reads no X and gives min(W, C).
  5. From 2024, no *_child_care_subsidies variable, and no program one of them adds, appears in spm_unit_benefits or a reform's copy of it, and all 51 appear in every program block. Every household_state_benefits block from 2024 counts them only through household_child_care_subsidies, which Count all child care subsidies in household benefits #9503 added.
  6. A differential test turns real programs on and off. The expense falls by the amount the test's reference gives. The change in SPM net income equals the change in household net income, less the subsidy household_child_care_subsidies counts in the household measure, plus the fall in the expense.

Over a dataset:

  1. Baseline policy leaves the expense at min(W + max(E, 0), C), whatever subsidy the model pays, in a plain simulation and in a reform's baseline arm.
  2. Under any policy the expense follows the dataset rule, at the floor and the cap and with or without a child in the unit, with W and C from the policy simulated. A policy that pays the same subsidy and keeps W and C leaves the expense where baseline policy put it.
  3. Where the subsidy baseline policy pays doesn't exceed the price, a second differential gives a dataset the amount the household rule says a unit pays at baseline policy. The two rules then give the same expense under any policy. A larger subsidy leaves the unit paying nothing, which hides the price from the dataset rule. With real programs and $14,000 as both rules' input, repealing the subsidy moves SPM net income by the same amount under both wherever neither cap binds. The parent's earnings and hours enter as raw inputs, so this case runs the arm rebuild too.

In tests/microsimulation/test_spm_child_care_reported_expense.py, Microsimulation loads the shipped population, so the dataset flag and the baseline arm come from the path a user's run takes. One test checks property 7 on every record of the default dataset. The other runs a real reform on a 500-household slice that holds units with both a modeled subsidy and reported spending. It checks that the baseline arm matches a plain run and that the reform arm follows the rule.

tests/core/test_reform_baseline_arm_inputs.py checks the arm itself. Under a reform that changes nothing, the reform and its baseline arm compute what a simulation with no reform computes, on four pre-response variables and seven outputs from the subsidy to household net income. It runs a dataset of raw columns with two families in every state, and a situation that names New York only through state_code_str. It also checks that the arm owns its policy and holds no value the reform's policy produced, and that every holder in either arm suits that arm's definition of its variable. Its other tests:

  • The guard. Under the reform that stores child_care_subsidies for all time, a $500 subsidy for all time or for 2026, from a dataset or in a situation, raises ValueError naming the variable from _rebuild_baseline_branch.
  • The guard's limit. Under that reform, a $500 subsidy set after construction and then subsampled raises nothing. The arm pays the subsidy a plain run pays, and the reform keeps the $500.
  • The rebuild's drop. Construction asks a reform for the holder of sstb_self_employment_income while it moves that input, even where the caller gave none. Under a reform that stores the variable for all time, the reform then holds an empty holder for all time, which the guard leaves alone, and the arm holds none.
  • A subsampled branch. Two New York earners each paid $500 for care, with subsidies of $100 and $200 and weights of 0 and 1, under a reform that raises the standard deduction. A branch of the reform simulation that subsamples reads an arm on its own sample, which pays $200, and gets the $500 expense that a subsample of the reform itself gets. The parent keeps its arm on both households.
  • A branch named "baseline", and a failed subsample. Under a reform that repeals the subsidy, the caller names one of a branch's calculation branches "baseline". The branch's subsample still gets S0 of $6,000 and an expense of $12,000, as a subsample of the reform itself does. A subsample given neither n nor frac raises and leaves each branch as it found it, and a retry gets the same S0 and expense.
  • A simulation named "baseline". Under the repeal, get_branch("baseline") on a branch, a clone of it, a deeper branch of that name and a reform simulation renamed "baseline" each raise when they subsample. Each keeps its policy, arm, branches and name, and the first still reads S1 of $0 and an expense of $27,916.40.
  • Snapshots. Both New York families keep their $14,000 and $6,000 expenses when they reload without a reform, in a branch taken before the reload calculates, and through a second snapshot. A situation from extract_person keeps the same expense. A snapshot without the mark reads $83.60 and $0. A snapshot or situation marked false reads $83.60 for the first family. A mark of "true" or 1 raises. Under the repeal, an unmarked reload keeps $40,000 of countable income and $2,000 of work expenses for the first family. Its arm calculates $30,000 and $19,200 of countable income and $0 of work expenses for both families.
  • Refusals. A marked snapshot, an extracted or sampled situation, and a hand-built marked situation each raise under reform=. Over a dataset the repeal gives the two families $27,916.40 and $12,000 of expenses. The source and its branch refuse export. The source's arm pays $13,916.40 and $6,000 in subsidies; it exports, and its reload keeps the $14,000 and $6,000 expenses. A marked situation cannot overwrite an existing household simulation with an arm; an unmarked one can. An unmarked reform situation exports and reloads unmarked, with an arm and the source's reform-side expense.
  • County and the builders. The Illinois source gives Cook County for 2025 alone. Its marked reload and extracted situation read Adams County in 2026. All three read $14,000 for the expense. Core's build_from_dict can overwrite a simulation. A marked simulation overwritten with a situation marked false, or with no mark, reads $5,222 as a household, and an unmarked one overwritten with a marked situation reads $14,000. A dataset that gives Cook FIPS for 2025 and Adams FIPS for 2026 gives the same 2026 expense and subsidy in both calculation orders after the fix.
  • Dumps. A dataset simulation with no reform, dumped through core's dump_simulation before any calculation, restores with the reported expense, $14,000 and $6,000, and the $1,200 Social Security benefit its source reads. With the mark file removed, it restores as a household, at $83.60 and $0, and with 1 in it the restore raises. A household simulation's dump holds no mark.
  • Arm inputs, failures, dumps and replacements. Tests cover a reform and a branch with different subsidy and FICA inputs, a failure after core rebuilds the populations and a retry, a cold dump refusal, and a dataset replacement refusal.

The integration and capped-expense YAML cases cover reported care in DC, Tennessee and Texas, Tennessee's January and October SNAP deductions, and both negative-input floors.

tests/core/test_shipped_reforms_store_no_variable_apart.py reads the source of every reform in policyengine_us/reforms without importing it. It fails on a reform that redefines a variable in another entity or with other all-time storage. It also fails on one that passes update_variable, add_variable or replace_variable anything but a class defined in its own file or a loop over such classes. It reads an attribute that a class body sets by plain assignment or by annotated assignment with a value. It doesn't read one set through a tuple target, an augmented assignment, a nested block, a later assignment on the class or a base other than Variable or a baseline variable. A second test checks that the scan flags the reforms that the arm tests and tests/core/test_spm_system.py build to store a variable apart, and a third that it flags definition_period: str = ETERNITY. test_subsampling_never_changes_which_policy_a_holder_belongs_to in tests/core/test_spm_system.py now checks every holder before it subsamples as well.

The five new invariant cases and the slice test all fail against the formula that nets the subsidy from a reported payment (513aa0bb66). At 5a6557a92a, with _rebuild_baseline_branch disabled, all three arm tests then in the file and the New York repeal case failed. A no-change reform then got the expense wrong for 32 of the arm test's 102 households, by up to $13,916.40.

At 1b9dec8316, I made each change below in turn and ran the tests named. Each fails at least one:

  • Leaving a subsampled branch on its parent's arm fails the subsampled-branch test, which finds the parent's arm in the branch.
  • Copying the arm only where a branch has no "baseline" entry fails the test of a branch named "baseline", whose new arm then repeals the subsidy as the reform does.
  • Removing the restore fails the failed-subsample test, which then finds the arm's copy in a branch that held nothing under "baseline".
  • Removing the guard's three calls fails the four guard cases, which then build without raising.
  • Calling the guard in the measurement branch instead fails both cases of main's test_baseline_measurement_drops_incompatible_holders, which then raise on is_household_head.
  • Removing the rebuild's drop (system.py:562), with the constructor's own drop in place, fails the rebuild's-drop test. The guard's-limit test and test_subsampling_never_changes_which_policy_a_holder_belongs_to still pass without it.
  • Having the guard read the reform's records and holders rather than the arm's fails test_subsampling_never_changes_which_policy_a_holder_belongs_to, which then raises on the reform's own is_household_head.
  • Matching only records on the arm's own branch fails the four guard cases.
  • Removing the dataset rule's floor fails test_policy_over_a_dataset_moves_the_expense_by_the_subsidy_change on an explicit example.
  • Reading S0 from the reform rather than its arm fails the same test on two explicit examples.
  • Removing the household rule's floor for a unit with no child fails the two YAML cases where a subsidy exceeds such a unit's expense.
  • Swapping what the household rule reads for a unit with and without a child fails 13 of the 19 YAML cases, among them the three childcare_expenses cases and the two that give a member's pre-subsidy amount.
  • Dropping the reach scan's read of annotated assignments fails test_the_scan_reads_an_annotated_assignment, which then misses a reform that stores child_care_subsidies for all time that way.

a92315ef96 adds documentation text and one test to 1b9dec8316. At it, I reran the arm test file, #10975's tests and YAML cases and the documentation checks, all of which pass. Removing the restore's check that it made a copy there fails the new test, whose subsample, with no arm, then raises KeyError in place of core's ValueError.

On top of f396fd159a, fb52cd26a9 removes the marked reload's arm rebuild and export's arm map, and restores main's county rule. e279007dcf adds the construction, builder overwrite and export refusals. 2642c26b34 updates the docs, changelog and arm test docstring. a094fe5930 carries counties across years from dataset inputs only. f396fd159a, and 2395a0b6aa, eb6ab79b76 and bea42576fe below it, change text only: the docs page, the changelog fragment, and docstrings and comments in tools/social_security_inputs.py and tests/core/test_reform_baseline_arm_inputs.py. f396fd159a changes only the docs page and the changelog fragment. The docs page now says when a value the caller also set on the arm stops export's refusal, and the changelog's first refusal sentence names the variable last. 2395a0b6aa changes only the docs page and the changelog fragment, which now list the changes to a variable's definition that make export refuse a snapshot. eb6ab79b76 adds two snapshot limits and the same-count condition to the docs page and the arm test file's module docstring. It also rewrites the changelog's refusal sentence and puts one comment in the active voice. A comparison of both Python files' syntax trees, docstrings removed, found them equal to 31766a0aa5's, so none of the four commits changed an executable line (run at f396fd159a, as at 2395a0b6aa, eb6ab79b76 and bea42576fe). Ruff and the documentation checks pass there too. Below them, 31766a0aa5 has a marked reload rebuild its arm as construction does, has county read the mark, and has the builders set the mark either way. Below that, d367d8c1ba changes only comments and docstrings in tools/social_security_inputs.py, and the three commits below that, 688fc8d7af, d10cddb410 and cf7a43e027, change only the docs page's paragraph on snapshots. a7c00425d3 updates the docs, the changelog and the capped-expense variable's documentation, and 202b79eb80 below it gives a marked reload's arm the snapshot's overrides, marks dumps and checks the mark's value. e9fc366e76 added the subsample refusal to a92315ef96, and 439c863eea the snapshot mark.

On Linux at a094fe5930, the arm, Social Security inputs, real-core and state-machine files pass. So do the marital-unit snapshot test, Social Security history, four county Python files and both county YAML files. The integration and capped-expense YAML, reach scan, documentation checks, SPM consumer check, payroll, SPM system, invariant and derived-system tests also pass. I ran the whole arm test file for each mutation below except the county input-period mutation. For that mutation I ran the order test and three county files. Each mutation fails at least the test named:

  • Removing the construction refusal fails the marked reload, extraction and hand-built situation refusal tests. All three build without raising. 24 passed, 3 failed.
  • Removing the builder overwrite refusal fails the marked overwrite refusal test, which then overwrites without raising. 26 passed, 1 failed.
  • Removing the export refusal fails the dataset reform export refusal test, which then exports the reform simulation. 26 passed, 1 failed.
  • Dropping the export refusal's mark condition fails the unmarked reform export control at its export. 26 passed, 1 failed.
  • Having county read the mark fails the marked household county test, whose reload reads Cook County. 26 passed, 1 failed.
  • Carrying calculated county periods again fails the order test. It returns Cook, $10,290 and $24,290 after the earlier read, and Adams, $8,778 and $22,778 without it. The order test failed, and the three other files passed 41, 3 and 4 tests.
  • Dropping the construction refusal's dataset exclusion fails test_dataset_arms_match_a_simulation_with_no_reform when the dataset reform builds. 16 passed, 11 failed.
  • Dropping the construction refusal's baseline check fails test_a_dataset_snapshot_reloads_with_the_dataset_reading when its marked no-reform reload builds. 22 passed, 5 failed.
  • Dropping the builder overwrite refusal's baseline check fails the builder mark replacement control at marked construction. 20 passed, 7 failed.

At 31766a0aa5, these mutation checks also ran:

  • Having the builders set the mark only from a situation marked true fails the builder overwrite test: a marked simulation overwritten with an unmarked situation stays marked.
  • Reading any mark for its truth fails the mark test, which then accepts "true" without raising, and the dump test, which accepts 1.
  • Writing no mark file on dump fails the dump test: the restored expense falls to $83.60 and $0.
  • Reading the mark file without marking the restored simulation fails the dump test the same way.
  • Dropping the mark from every new branch but the arm fails the round-trip test at its branch, taken before the reload calculates anything: the branch's expense falls to $83.60 and $0.
  • Writing no mark on export, or leaving it out of the reloaded situation, fails the round-trip test at the reload's branch, taken before the reload calculates anything: its expense falls to $83.60 and $0.
  • Marking only a simulation over a dataset on export fails the same test at the second snapshot's reload.
  • Reading is_over_dataset alone in the formula fails it at the same branch.
  • Having the builders strip the mark without marking the simulation, or writing no mark in extract_person, fails the extract_person test at $83.60.
  • Removing the check on a simulation named "baseline" fails its test, whose subsample then doesn't raise.

Dropping Texas from the 2024 program block, or every block from 2024 on, fails test_latest_blocks_list_every_state_program. Listing co_ccap_subsidy beside household_child_care_subsidies in the 2026 household block fails the household list test, and listing household_child_care_subsidies in spm_unit_benefits fails the SPM resource test.

Intended violation

A subsidy can lower SPM resources at the whole-model level. SNAP, TANF and tax credits read out-of-pocket expenses, so a subsidy can cut them by more than the SPM expense falls. At the earnings cap the expense can't fall at all, and below the cap a benefit cliff can cut more than the expense falls. Household income loses the same benefits but also counts the subsidy, so it can rise while SPM income falls. SPM net income fell in 22 of the 1,395 subsidized cells in the grid below, and test_subsidy_at_the_cap_can_lower_spm_income pins one case.

Audit of all 51 subsidies

I ran these audits on household calculations at 606699d640 against main at 469ad12cb9, and this head keeps that commit's household rule. Main has since changed the Vermont, New Hampshire, Nevada, Texas, New York and Colorado subsidies (#10584, #10575, #10598, #10622, #10623, #10636, #10817, #10821, #10827, #10721), so those states' counts can differ at the merged head.

  • Each state against the aggregate, 2021 to 2026. I ran one working family in every state for 306 state-years, and no run errored. Before this PR, child_care_subsidies left out paying state programs in DC, Tennessee and Texas in 2024, and in DC, North Carolina, Oregon and Texas in 2021 to 2023. From 2024 they agree. This PR leaves 2021 to 2023 unchanged, because the SPM expense formula starts in 2024.
  • Deduction, 2024 to 2026. In 306 runs across 153 state-years at two expense levels, the deduction matched the formula. That audit compared against the aggregate, so it missed DC, Tennessee and Texas in 2024.
  • Grid. 51 states by 6 earnings levels by 6 expense levels gives 1,836 cells, with meets_ccdf_activity_test set. Every state pays somewhere on the grid, and the identity in invariant 6 holds in every cell.
  • Nevada. At the audit's base, Nevada paid the audit family nothing. Its activity test read meets_ccdf_activity_test, TANF enrollment, homelessness and protective care, and the family had none of them set. Stop requiring an activity input from Nevada's working parents #10575 has since stopped requiring the activity input from working parents.
  • Main's New York and Colorado changes. Since Fix New York child care categorical routes and family shares #10817 and Count public assistance and SSI supplements in New York CCAP income #10827, New York's CCAP counts the Family Assistance grant a family takes up and waives the family share for it. TANF reads employment_income_before_lsr, which a household simulation fills from employment_income but the YAML runner leaves at zero. With a bare employment_income, Family Assistance saw no earnings, paid the Manhattan family $3,498 and waived its $83.60 family share. So every case in this PR's integration YAML now gives pre-response earnings, as a household run stores them, and the New York subsidy stays $13,916.40. With bare earnings, the Alaska, Washington, West Virginia and Tennessee cases also paid TANF grants that a household run doesn't, though their asserted outputs matched. Since Charge Colorado families one child care parent fee under section 3.124 #10721, the Colorado case's single parent pays a $1,518 fee, and the model pays a $12,482 subsidy.
  • Household list. At the audit's base, household_state_benefits listed 23 of the 51 subsidies. Since Count all child care subsidies in household benefits #9503, the list counts all 51 through household_child_care_subsidies, up to the family's pre-subsidy bill for child care and after-school care.

Population impact

I computed these tables from saved full-file arrays for 2026 (populace_us_2024.h5@populace-us-2024-spm-20260909): main at 469ad12cb9, and this PR's taxes and benefits at 606699d640. The population and schedule tables report runs at the commits named with each table, and they describe those revisions. The shared reported-payment rule can now change programs that read childcare_expenses, including when the annual subsidy program lists agree. The branch was checked only with fabricated households, so these tables remain unverified at it.

Measure Main This PR
SPM poverty, all people 14.540% 14.574%
SPM poverty, children 18.825% 18.908%
SPM poverty, adults 18 to 64 13.906% 13.932%
SPM poverty, 65 and over 11.264% 11.264%
Deep SPM poverty, all people 3.355% 3.355%
Deep SPM poverty, children 2.536% 2.536%
SPM net income $0.527B below main

All of the change comes from the three subsidies leaving resources. Main adds modeled Colorado and Washington subsidies ($270.7M and $255.9M) on top of what those families reported paying, and this PR stops that. In these runs, the two program lists match from 2025, so child_care_subsidies, childcare_expenses and SNAP equal main's on every record in 2026, with or without schedules. The deduction differs from main on 0 records, and SPM net income differs on 35. Five records (116,936 people, 64,207 children) enter poverty and none leave. Washington's rate moves from 12.00% to 13.44% on 4 records, and no other state's rate moves by 0.01 point.

With schedules set

The default dataset has no schedule columns, so most programs pay nothing. As a sensitivity, I gave every child under 13 in a unit with child care expenses a full-time schedule on both sides: 8 hours a day, 5 days a week, 21 days a month. I ran main at 469ad12cb9 and this PR's taxes and benefits at 640753a617.

Measure Main This PR
SPM poverty, all people 14.612% 14.648%
SPM poverty, children 19.060% 19.148%
Deep SPM poverty, children 2.676% 2.676%
child_care_subsidies $9.735B $9.735B
SPM net income $0.483B below main

Five records (126,465 people) enter poverty and none leave. Washington moves as above, and West Virginia's rate moves from 14.03% to 14.56% on 1 record.

Costs and limits of this rule

  • Reported payments before 2024. Before 2024, childcare_expenses keeps its historical formula, which subtracts a modeled subsidy from a reported payment. So over a dataset, SNAP and the other readers of that variable can subtract aid already excluded from the family's reported cost. This path predates this PR.
  • The household cap reads E too. household_child_care_subsidies (Count all child care subsidies in household benefits #9503) caps the subsidy household net income counts at the family's bill: its members' pre_subsidy_childcare_expenses plus after-school expenses. By default that person-level variable spreads E evenly across the unit's children, so the bill holds all of E for a unit with a child and none of it for a unit without one. Over a dataset, where E holds the reported amount, household net income counts the subsidy only up to that bill, or in full where the bill comes to zero.
  • Subsidies priced at the payment. Over a dataset the subsidy formulas take E, the reported payment, as the price of care, so S0, S1 and their difference all come from what parents paid. Where a program pays more than the bill, as Vermont's did in the audit, a reform that cuts the subsidy raises the expense by the whole cut, which can exceed what the family paid.
  • Full enrollment. The subsidy formulas pay every eligible family, with no take-up rate or waiting list of their own. So the dataset rule subtracts the full change in subsidy from every eligible family's reported amount, before the floor and the cap apply. A family that reported $100 and gains $1,000 in subsidy sees its expense fall by $100.
  • Run time. A reform run over a dataset now also computes subsidies in its baseline arm, and a plain run pays nothing extra. Over 5,000 households on a loaded Mac, spm_unit_net_income took 29.6 s in a plain run and 37.4 s in the reform arm of a no-change reform.
  • A variable a reform stores apart. Under a reform that redefines a variable in another entity or with other all-time storage, the arm calculates that variable, and construction raises where the caller gave it an input. "The baseline arm" above gives the guard's limits. No shipped reform does this.
  • A Social Security component stored apart. Under a constructed reform that stores social_security_retirement for all time, a dataset that gives the component raises at construction, naming it. tools/social_security_inputs.py records such an input on a source branch of its own, and the guard matches that record by name.
  • A reform given its own system. Microsimulation(dataset=..., reform=..., tax_benefit_system=...) loads the dataset under the system given, then applies the reform. apply_reform drops the holder of a variable the reform stores apart, with its record of the input, before construction rebuilds the arm. So under a reform that stores the subsidy for all time, nothing raises, and the reform and its arm both calculate the subsidy, where a plain run reads the dataset's subsidies.
  • Inputs set after construction. set_input on a reform simulation reaches only that arm. A caller who sets schedule columns on a reform simulation has to set them on simulation.baseline too, or the model computes S0 without them.
  • Entry points without an arm. Core builds the baseline arm only for a reform passed as reform=, and apply_reform builds none. A simulation built with reform= keeps its arm, under baseline policy, through any reform applied later. Microsimulation(tax_benefit_system=...) without reform=, or apply_reform on a simulation built without reform=, leaves no arm, so the expense keeps E, and subsidy changes don't move it. In policyengine_us, only tests call the first form.
  • A simulation named "baseline". An existing simulation named "baseline" with an arm still refuses sampling. Its subsample raises ValueError before it changes anything, and the message says to name the branch something else, such as get_branch("trial"). Such a simulation comes from get_branch("baseline") on a branch, from a clone of one, or from a rename by hand.
  • Snapshots, situations and dumps. Marked snapshots and extracted situations keep the dataset expense rule when built without reform=, and later branches keep it. Construction with reform= raises, and a builder refuses a replacement if a baseline exists and either set of inputs came from a dataset. Dataset reforms, their branches and their samples refuse export_source_inputs and dump_simulation. As on main, county, medicaid_slcsp_state_denominator, in_ala and the local sales tax's county carryover read a reload as a household. is_receiving_unemployment_compensation uses the dataset reading when a reload or extraction carries person_id as an input. sample_person calls extract_person, so its situation carries the mark (a probe ran this at d10cddb410). A reload has no dataset, and core's subsample reads the dataset's time period, and its name when the caller gives no seed. So a reload can subsample only where a caller attaches a dataset by hand. Even then, core's subsample raises a TypeError on the reload's string person ids, marked or not (probes ran both at d10cddb410). Core restores one arm. A dataset simulation without a baseline arm can be dumped and restored with the reported-payment reading, and the baseline arm can be exported or dumped by itself. Two copies carry no mark and so read as a household: a Simulation(populations=...) built from another simulation's populations, and a situation built by hand from a snapshot's sources (both read from code, not run). At dd82d0e596 (2026-10-11), policyengine.py calls none of extract_person, sample_person, export_source_inputs, reload_source_inputs, dump_simulation and restore_simulation. Its US household path builds its own situation from the six entity groups, so it never meets the mark (read, not run, from that revision). The dump and restore hooks access the mark through holders. A marked simulation without holders can lose the mark, and a simulation that reuses another's populations can pick up the source holders' mark. The dump-mark limit and removed arm paths are tracked in #11284.
  • Counties over a dataset. County carry uses input periods only. A single-year dataset stores its columns for later years too, so the county stays the same (read from test_county_branch_reuse.py:85–89).
  • A stored expense. policyengine-us-data's CPS build also stores spm_unit_capped_work_childcare_expenses itself, from SPM_CAPWKCCXPNS (cps.py:786), and the model accepts it as an input. Over that file neither rule runs in the stored year, as on main.
  • Dataset inputs. The model reads any dataset input as a payment. PolicyEngine/ccdf-calculator's scripts/microsim.py raises this input to an assumed price over a dataset, but it reads subsidies and not the SPM, so this rule doesn't reach it.

Migration

For paired results, rebuild from the source dataset with reform=. For baseline-only results, export or dump simulation.baseline, or build the source dataset without a reform. Replace a marked situation by building a fresh simulation without reform=. Rebuild both arms from the source dataset where a workflow on main dumped or overwrote a dataset reform.

Test cost

test_spm_child_care_subsidy_invariants.py stays in REST_REMAINING_HEAVY_TESTS, and it retains one reformed system and builds two more for the real-reform cases. Its tests ran for 206 s in CI at 6946cd74a4. On Linux at a094fe5930, its 12 tests took 184 s. test_spm_child_care_reported_expense.py adds two tests: one reads only the expense and its inputs from a Microsimulation() over the whole file, and the other runs on a slice. The earlier CI figures were 7 s and 31 s. The PR's record gives no SHA for those two timings. These runtimes describe their measured revisions. On Linux at the branch, 1,309 cases in 114 related YAML files pass, and 1,318 pass on a merge with main. At the branch, the 32 arm tests took 505 s, the 47 payroll tests 297 s and the 77 SPM system tests 346 s. At a094fe5930, the 3 reach scan tests took 29 s. Peak memory for these Linux runs is unmeasured. tests/core/test_behavioral_response_measurement_copies.py needs more than 6 GiB alone, the local limit, so only CI runs it whole. At 31766a0aa5, main's test_baseline_measurement_drops_incompatible_holders passes its 2 cases in 7.9 s on a Mac. Linux runs used policyengine-core 3.37.2; those at 31766a0aa5 used 3.37.1 on a Mac.

What this PR does not change

  • Schedules on microdata. New York's subsidy now counts in household calculations, but in a default population run the model still pays it $0, because the default dataset has no schedule columns. With them unset in 2026, one audited family gets nothing from 31 state programs that pay it once it has a schedule, New York's among them. Of the other 20, 6 pay it less without a schedule, 2 pay more and 12 pay the same. So in a default run the baseline subtracts what parents reported, and a reform that changes New York's subsidy moves nothing until the data carries schedules.
  • Years before 2024. The SPM expense has no formula before 2024, so in those years a subsidy reaches the SPM only in Colorado, Washington and West Virginia. The Tlaib reform copies carry only Colorado in those years, as on main.
  • Subsampling after new person IDs. The Social Security source selector, _select_subsample_sources in tools/social_security_inputs.py, can still raise KeyError after person IDs are replaced. A failed rebuild restores the pre-call simulation. A regression test forces an error after core replaces the populations and checks that a retry succeeds.
  • Texas copays before January 2025. The Anderson County fixture checks inclusion using the model's statewide fallback. Its $5,793.01 subsidy and $14,206.99 expense are model results. The Texas Workforce Commission's waiver dates the statewide phase-in to January 13, 2025. The East Texas Board's earlier schedule still needs verification.

axiom: needed

The SPM part needs no encoding: Census publishes the SPM as a statistical measure, and rulespec-us encodes no SPM provision. The SNAP timing this PR adds needs one: the RuleSpec module references 7 CFR 273.10(d), but its companion cases supply zero dependent care expenses.

🤖 Generated with Claude Code

MaxGhenis and others added 3 commits November 1, 2026 12:00
The SPM subtracts what parents paid for child care and lists no child care
benefit among its noncash resources. PolicyEngine subtracted pre-subsidy
expenses and added only the Colorado, Washington and West Virginia subsidies
to resources, so a subsidy in the other 48 states lowered SPM resources.

Net child_care_subsidies from the expense instead, and take the three states
out of spm_unit_benefits and the four reform copies of that list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add YAML cases for the formula's edges and for New York, Texas, Alaska,
Washington, West Virginia and Colorado through their real programs, and
property tests for the invariants. The whole-model form of "a subsidy never
lowers SPM resources" fails where SNAP, TANF and credits fall by more than the
expense, so the property holds those fixed and one test pins the intended case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The differential passed on the old code because its identity holds when the
expense does not move. It now also requires the fall the Census definition
gives, with explicit examples in states that left the subsidy out and states
that counted it as a resource.

Income comparisons get a tolerance above float32 rounding, which tripped the
exact comparison at the fixture's $400,000 of earnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis marked this pull request as ready for review November 1, 2026 18:15
MaxGhenis and others added 2 commits November 1, 2026 14:36
Reviews by GPT-6.1 Sol and Opus 5.5 found three problems at 343f8fe.

- Before 2024 the SPM expense has no formula, so removing the Colorado,
  Washington and West Virginia subsidies from resources made them reach no
  SPM path. A 2023 Washington subsidy lowered SPM income. Those three now stay
  resources until 2024, and years before 2024 match main.
- The 2024 program block left out the DC, Tennessee and Texas subsidies, which
  pay in 2024. All 51 now start at 2024, the first year the SPM expense reads
  the list, and the test checks every block from then on.
- The formula read the pre-subsidy input and ignored a direct out-of-pocket
  amount. It now reads childcare_expenses, the model's out-of-pocket variable,
  for a unit with a child.

Also add paying-subsidy cases for 2024 and 2025, correct the intended
violation's wording, record that datasets fill the pre-subsidy input from
reported spending, and route the property tests to the group for retained
full systems.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The baseline keeps Colorado, Washington and West Virginia subsidies as
resources before 2024, because the SPM expense has no formula then. The four
reform copies of spm_unit_benefits dropped them in every year, so each override
now restores what main carried: all three in the Texas rebate, Colorado in the
Tlaib copies.

Qualify the docstring's identity for a direct childcare_expenses input, and
correct the integration YAML header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 4 commits November 2, 2026 09:36
The list test reads list literals only, so it could not see the pre-2024
clause in the four reform copies. A 2024 case in each reform's YAML file now
fails if the clause loosens and a subsidy counts as a resource on top of the
lower expense.

Also qualify the docstring for person-level pre-subsidy inputs and for the
Tlaib copies, which carry only Colorado's subsidy before 2024, and note in the
integration header that one case sets no care hours.

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

# Conflicts:
#	policyengine_us/tests/policy/baseline/household/income/spm_unit/spm_unit_benefits.yaml
…idies

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Datasets fill spm_unit_pre_subsidy_childcare_expenses from the ASEC's
SPM_CHILDCAREXPNS, which already holds what parents paid after any subsidy, so
netting a modeled subsidy from it counted the subsidy twice. Over a dataset the
expense now keeps the reported amount under baseline policy, and a reform moves
it by the change in subsidy: min(W + max(E - (S1 - S0), 0), C). Household
calculations keep the input as a price and net the subsidy, as before.

Add properties for both rules and a differential between them, and a
microsimulation test over the shipped population.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis MaxGhenis changed the title Count every state child care subsidy in the SPM Count state child care subsidies in the SPM once Nov 2, 2026
MaxGhenis and others added 3 commits November 2, 2026 23:51
…olicy side

Main's #9698 now branches a reform's baseline arm again after the
constructors move the pre-response inputs. Over a dataset, the SPM expense
reads its baseline subsidy from that arm, so pin it there:

- Add tests/core/test_reform_baseline_arm_inputs.py. Under a reform that
  changes nothing, the reform and its arm match a plain run on 102
  households of raw columns, two families in every state, and on a
  situation that names New York only through state_code_str. With
  _rebuild_baseline_branch disabled, both cases fail.
- Keep the parent's raw earnings and hours in the repeal test, which then
  fails in New York without the rebuild.
- Set work expenses and the earnings cap on the policy side only in
  property 8, with an example that fails if the rule reads either from the
  arm.
- Drop the dead branch_name guard, document the entry points that build no
  arm, and word the reported-spending reading as an inference from the ASEC
  question.
- Update _baseline_measurement_branch's docstring, which still said the
  arm keeps the raw inputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docstring still named _rebuild_baseline_arm, which this branch dropped
when it merged main. Main's #9698 calls it
_rebuild_baseline_branch. Name the moved inputs through PRE_RESPONSE_INPUTS,
which also lists sstb_self_employment_income.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 5 commits November 3, 2026 04:29
_rebuild_baseline_branch cloned the reform simulation and rebound the
clone's holders to baseline variables, but it kept each holder the reform
had built in another entity or with other ETERNITY storage. Construction,
subsample and _baseline_measurement_branch all drop those. Under a reform
that stores child_care_subsidies for all time, a New York family with a
$500 input got S0 = $500 from the arm, where baseline policy pays it
$13,916.40, so its reform expense came out $14,000.00 where the dataset
rule gives $27,416.40.

- Call _drop_holders_built_for_another_policy before _rebind_holders.
- Add test_the_arm_calculates_what_the_reform_stores_for_all_time, and
  check in every arm test that each holder suits its arm's variable.
- Check holder binding before subsampling as well. Under the redefining
  reform, the arm copied an empty yearly holder for the baseline's
  ETERNITY is_household_head.
- Document that apply_reform builds no arm while a simulation built with
  reform= keeps its arm, and word the input's after-subsidy reading as the
  model's.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#9503 lists household_child_care_subsidies in
every household_state_benefits block in place of the per-state entries. It
counts each subsidy up to the family's pre-subsidy bill. The differential
test's helper looked only for child_care_subsidies or the state's own
variable, so after the merge it returned 0 while household_net_income
counted the subsidy, and test_spm_and_household_measures_agree would miss
by that amount.

- subsidy_counted_by_household_measure now reads whichever child care
  variable the list names: household_child_care_subsidies, the aggregate,
  the state's variable or a program that variable adds. It fails if the
  list names two.
- test_no_subsidy_is_a_spm_resource also checks that no SPM benefit list
  names household_child_care_subsidies.
- test_household_measure_counts_each_subsidy_once checks that every
  household_state_benefits block from 2024 names
  household_child_care_subsidies once and no other subsidy variable or
  program.

Adding co_ccap_subsidy to the 2026 household block fails the new test, and
adding household_child_care_subsidies to spm_unit_benefits fails the SPM
check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sol's r7 review found that dropping a holder the reform built with other
ETERNITY storage also drops inputs that baseline policy can hold. With a
yearly $500 subsidy for 2026 in the dataset both runs read, under a reform
that stores child_care_subsidies for all time, the arm calculated $13,916.40
as S0 and the reform's expense came out $27,416.40 instead of $14,000.00.

A reform simulation now keeps each input whose variable baseline policy
defines in the same entity but with other ETERNITY storage. Every place that
drops such holders (the constructor's arm, the rebuilt arm, a subsample's arm
and the baseline measurement branch) then sets those inputs again, skipping
any the baseline's definition can't hold. subsample carries them over to the
sample by person ID, and keeps them when it fails before core rebuilds.

Also: #9503's program-list test checked no block on this branch and now
checks every block from 2024; invariant 9 states its price condition; the
changelog names the replay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 6 commits November 24, 2026 00:32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The record of inputs a reform stores apart from baseline policy now keeps
what core stored, drops inputs core deleted or replaced, and reaches a
subsample through core's own export, so core samples and reweights them.
The behavioural-response measurement branch no longer sets them, as on
main, which fixes main's test_baseline_measurement_drops_incompatible_holders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's New York CCAP changes (#10817, #10827) count the Family Assistance
grant a family takes up and waive the family share for it. TANF reads
employment_income_before_lsr, which a household simulation fills from
employment_income but the YAML runner leaves at zero, so the New York cases
now give pre-response earnings, as a household run stores them. Colorado's
single parent fee (#10721) sets that family's fee at $1,518. The
microsimulation test imports the fixture under its Microcosm name (#10687).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core's apply_reform binds holders through _bind_to_tax_benefit_system,
which drops a holder the new definition cannot use, with its recorded
inputs. The docstring said apply_reform keeps a simulation's own inputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The in-session review of 5b05e30 found three ways the baseline arm's
record of stored-apart inputs went wrong, each reached only by a
constructed harness:

- An input core skipped, for a neutralized variable or a period after
  the variable's end, was kept with the value the holder stored for all
  time. set_input now keeps an input only when core's count of stored
  inputs rises.
- A write the record didn't see, such as one on the holder itself, came
  back into play once a later input passed the current-value check.
  Before keeping an input, the record now checks that its last input
  under the key is what the holder stores there, and starts the key's
  record again if not.
- Under a yearly reform of a variable baseline policy stores for all
  time, a holder write under another year was exported after the kept
  columns, so a subsample's arm ended with it. A variable whose holder
  holds an input the record doesn't account for is now calculated in
  the arm, and a subsample drops it from the record it rebuilds.

_input_key now uses core's storage period. Four arm tests pin these and
the removal of a failed subsample's export. Every case in the
integration YAML now gives pre-response earnings, since TANF reads them
and the YAML runner leaves them at zero; the asserted outputs don't
change. Docstrings now say which callers drop holders, that a flat
situation's inputs go through set_input, and why clone copies the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The in-session review of 3ba8fc7 found that the record keyed an
input by the period it was set for. A yearly holder can store one input
under several years, or under fewer than the period spans: given 24
months from January 2025 while 2026 already held an input, core stored
2025 alone. The record then held no input under 2025 and marked the
variable missed, so the arm calculated a role the plain run reads.
Core's count of stored inputs also rose for an input whose years the
holder's handler skipped.

Core stamps every value it stores with a sequence number. set_input now
draws the next number before the input and keeps it under each key
stamped since, for its year on a yearly holder and with the period set
for on a holder for all time. The value checks between calls stay as
they were, since core's apply_reform stores preserved inputs again with
new stamps. A write the record misses that stores the very array it kept
last still goes unnoticed; the docstrings now say so.

The role-order test now covers 12 and 24 months from January, and the
holder-write test covers an edit to the stored array in place. The
review's dispatch harnesses (one month, two years, 12 and 24 months, a
month before 2026, and dataset month columns) now give the arm the
plain run's role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 14 commits November 26, 2026 12:49
A simulation with no reform has no arm and no "baseline" entry, so
subsample makes no copy and must put nothing back when core raises. The
test checks that core's ValueError for a call with neither n nor frac
reaches the caller and that the simulation still has no arm. Without the
restore's arm_copy check, the restore deletes a missing "baseline" key
and raises KeyError while handling core's ValueError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core rebuilds a subsample's arm with get_branch("baseline"), which returns
the simulation itself when that is its own name. A branch named "baseline"
under another branch shares its parent's arm, so its subsample gave it
baseline policy and dropped its arm. subsample now raises before it changes
anything and says to name the branch something else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Over a dataset, spm_unit_pre_subsidy_childcare_expenses reads as what
parents paid after any subsidy; in a household, as the price before it.
export_source_inputs and extract_person turn a dataset simulation into a
situation, so its reload read the same inputs as a household's, and the
Manhattan family's expense fell from $14,000 to $83.60.

Both now write "_dataset_inputs": true for a simulation whose inputs came
from a dataset. This package's builders strip the key and mark the
simulation they build, inside core's __init__ and so before core clones it
into a reform's baseline arm. The expense reads one predicate,
holds_dataset_inputs; no other reader of is_over_dataset uses it. Snapshots
stay at version 1, and one without the key reloads as a household.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Over a dataset, core gives a reform's baseline arm each value the dataset
gives. export_source_inputs lists a value given for a formula variable among
the overrides, and reload_source_inputs set those on the reform side only, so
the reload's arm calculated them and the reform side read S0 from that arm.
A marked reload now sets each override on its arm too. Export lists, under
_baseline_arm_overrides, what the source's arm held for each override it
doesn't share (null for nothing), so a value a caller set on the reform after
construction stays off the reload's arm. A marked reload skips a variable
baseline policy doesn't define, and refuses one the reform stores in another
entity or with other ETERNITY storage, as construction over a dataset does.
An unmarked snapshot reloads as before.

The dump wrapper writes the dataset mark to __entities__/dataset_inputs.json,
and the restore wrapper sets it, so a restored dump of a dataset simulation
keeps the dataset rule. A mark other than true or false raises ValueError in
the builder, the reload and the restore.

The round-trip test now takes its branch before the reload calculates
anything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reorder the SPM child care expense's documentation so "that arm" follows the
arm it names, and say that export_source_inputs marks a snapshot,
extract_person a situation and dump_simulation a dump. A simulation restored
from a marked dump has no arm, as core's restore_simulation builds none, so
the documentation no longer gives it one. The Social Security levers page now
says what a marked reload gives a reform's baseline arm and where a dump holds
the mark, and the changelog fragment names the snapshot mark and the refusal
to subsample a simulation named "baseline".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Social Security component or pure input that a caller sets on a reform
after construction reaches both sides of a reload through the snapshot's
sources and provenance envelope, so the arm-override list doesn't cover it.
Say so, name the `_dataset_inputs` key, limit the refusal to values the arm
would get, and state what a reload with `reform=` gives the arm of a
snapshot taken without one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Social Security component that a caller sets on a reform after construction
gets a null in the arm-override list, yet reaches the reload's arm through the
provenance envelope, as a pure input does through the sources. Describe the
comparison, the listing and the skip in their own sentences, then the two
paths that bypass them, and say when a reload raises on the mark's value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reform rebuilt from an extract_person or sample_person situation of a
reform simulation gives its arm the reform side's values, so its arm takes
a formula value set on the reform after construction, where a marked
snapshot's arm keeps the source arm's value. A restored dump returns an
expense it already holds as dumped. Other dataset-only rules read the
reload, not the expense, as a household.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comments on _baseline_arm_overrides, export_source_inputs and
_set_overrides_on_the_arm now say the snapshot lists each formula
override whose recorded input the arm lacks or records differently, with
the arm's recorded input or null, and that a pure input or Social Security
component set after construction reaches both sides of a reload.
Comments and docstrings only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core's baseline arm is a copy of what the reform side holds at the end of
construction. A marked reload with reform= now sets the overrides the arm
shares, rebuilds the arm with _rebuild_baseline_branch and then sets what
the source's arm held apart, so a neutralized or ended override acts as it
does over a dataset. Export lists each value set on the arm alone and the
arm's copy of each override changed after construction, compares enums by
name and members, and raises for a redefined variable changed on the
reform. county reads the dataset mark, and the builders set the mark true
or false, so an overwrite replaces it. Tests, docs and changelog follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs page and the changelog fragment now name three rules that still read a marked reload as a household, not four. The unemployment rule keys by person_id, which a marked reload and an extracted situation carry. The county wording now covers a calculated county, an extracted situation and a restored marked dump.

A marked reload's equality claims now hold within listed limits, two of them new: a value deleted from the reform side after construction, and the equal-value skip under a reform that moves a variable to another entity.

Docstrings and comments in social_security_inputs.py and the arm test file follow the same corrections. The reload's mark comment and the reform snapshot test's docstring no longer say the mark must precede core's construction arm. No executable line changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs page and the arm test file's module docstring now list two more cases among the snapshot limits. Three rules read a marked reload as a household, so their values can differ from the source's and from a dataset simulation's. And a pure input that a caller deletes from a reform simulation's arm alone after construction comes back on the reload's arm, since `sources` reach both sides.

Both texts also scope the equal-value case to a variable whose two entities have the same count. The changelog fragment now says when export refuses: the reform redefines a formula variable other than the four Social Security benefits, and a caller then changes the value it held at construction on the reform side. One comment in `tools/social_security_inputs.py` now uses the active voice.

This corrects two claims in the message of bea4257. It said the changelog fragment names the three household rules, but the fragment names none of them. It also said the equality claims hold within the listed limits, but no limit list carried these two until this commit.

No executable line changes: the Python edits touch one module docstring and one comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The changelog fragment and the docs page now say when export refuses a snapshot of a reform simulation whose inputs came from a dataset. Export refuses where a caller set on the reform side a value that differs from the copy the baseline arm kept from construction. It refuses only for a formula variable under the reform, and only where the reform changes its entity, definition period, type, enum, ETERNITY storage, set_input handler or end. A new formula alone doesn't count, and export never refuses on the four Social Security benefits. The docs page adds that export doesn't refuse where the caller also set the variable for that period on the arm itself.

This corrects the message of eb6ab79. It said export refuses when "the reform redefines a formula variable", but export compares only the parts of a definition listed above, so a reform that replaces a formula alone gets no refusal. The fragment also said "over a dataset", while export applies the same refusal to any reform simulation whose inputs came from a dataset, a marked reload included.

No executable line changes: this commit touches only the docs page and the changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs page now says export doesn't refuse where the caller also set the variable on the arm itself, and the arm stores that value for the same period as the reform side's value. Under a reform that makes a monthly input a yearly formula, export still refuses where baseline policy's set_input handler stores a yearly value the caller sets on the arm as twelve months.

This corrects the message of 2395a0b. It said export doesn't refuse where the caller also set the variable "for that period on the arm itself". Export skips that value only where the arm stores it for the same period as the reform side's value, so under a reform that makes a monthly input a yearly formula, export can still refuse.

The changelog's first refusal sentence now puts "naming the variable" after the variable it names, with the same meaning.

No executable line changes: this commit touches only the docs page and the changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 4 commits November 30, 2026 04:25
Set snapshot overrides on the simulation the reload builds. Keep the
dataset mark and restore main's county rule for marked situations.
Cover a marked household county and an unmarked reload's overrides.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Raise when a marked situation builds a baseline arm or overwrites a
household simulation that already holds one. Refuse snapshots of reform
simulations whose inputs came from a dataset. Cover the refusals and the
unmarked cases that still work.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Explain when snapshots, extracted situations and dumps keep the
dataset reading of the child care expense. State when construction
and export raise. Record the Python bool check for the mark.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Carry the latest county input a branch can read. Check both calculation
orders on a household whose FIPS code changes between years.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
@MaxGhenis MaxGhenis changed the title Count state child care subsidies in the SPM once Count state child care subsidies once in the SPM and preserve reported deductions Dec 1, 2026
MaxGhenis and others added 3 commits December 1, 2026 11:19
Makefile keeps the reform benefit test group and adds the child care invariants to the remaining heavy tests.
policyengine_us/reforms/congress/tlaib/boost/boost_middle_class_tax_credit.py appends the BOOST credit to the shared benefit list.
policyengine_us/reforms/congress/tlaib/economic_dignity_for_all_agenda/edaa_end_child_poverty_act.py appends the EDAA credit to the shared benefit list.
policyengine_us/reforms/congress/tlaib/end_child_poverty_act.py appends the ECPA credit to the shared benefit list.
policyengine_us/reforms/states/tx/rebate/tx_rebate.py appends the Texas rebate to the shared benefit list.
policyengine_us/variables/household/income/spm_unit/spm_unit_benefits.py excludes three child care subsidies from resources once the deduction accounts for them.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
- Test shared reform benefits across the child care deduction start
- Account for other benefits in the child care repeal comparison

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@DTrim99 DTrim99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Program review

Base repository: PolicyEngine/policyengine-us
PR number: 10569
Reviewed head SHA: cc36311
Merge base SHA: 5f85c22
Mode: full
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10569-review-sources.json
Review status: PARTIAL

Source Documents

Critical

C1 — Over a dataset from 2024, childcare_expenses gives units with no child their whole reported amount, which raises SNAP (OPEN)

  • Location: the dataset branch of childcare_expenses.formula_2024, policyengine_us/variables/household/expense/childcare/childcare_expenses.py:35-38 (reported_childcare_expenses, lines 5-15).

  • Trigger: a dataset (or marked) simulation, 2024 or later, with an SPM unit that has spm_unit_pre_subsidy_childcare_expenses > 0 and no member under 18.

    • The household branch and main's formula both sum pre_subsidy_childcare_expenses, which allocates E only to children, so such a unit gets $0.
    • The new dataset branch returns max(E - (S1 - S0), 0) at the SPM unit with no child test.
    • spm_unit_capped_work_childcare_expenses nets units with no child on purpose. childcare_expenses is a different variable, and SNAP, 22 state TANF income and deduction variables, the RI/ND/NC LIHEAP income definitions and the IL AABD child care exemption read it (31 readers in all).
  • Executed (d4_nochild_dataset.py, NY 2026, a 40-year-old earning $12,000 and a 19-year-old dependent, E = $5,000):

    head, dataset main, dataset head, household
    childcare_expenses $5,000.00 $0.00 $0.00
    snap_dependent_care_deduction (Jan) $416.67 $0.00 $0.00
    snap (2026) $3,156 $1,969 $1,969
  • Expected: $0 and $1,969, as on main and in the household path. The SNAP formula's own comment cites 7 CFR 273.9(d)(4), which covers care for a child under 18 or an incapacitated person. Care for incapacitated adults goes through care_expenses.

  • Prevalence (d5_populace_nochild.py; reads the h5 columns only, no simulation): populace_us_2024.h5 (HF snapshot 9a814a3b) has 4,272 records with E > 0. Of these, 229 records (508,829 weighted SPM units, $4.02B of weighted reported E) have no member under 18. The PR's population tables predate this shared rule, and the body calls them unverified at this head.

  • Fix: in the dataset branch, return 0 where add(spm_unit, period, ["is_child"]) == 0, matching the person allocation. Add a dataset test for a unit with no child that asserts childcare_expenses and snap_dependent_care_deduction.

  • Proposed severity: critical. It is an executed wrong SNAP amount in a claimed year (2026) on the default dataset path. The coordinator may weigh that it reaches only dataset runs.

Coordinator assessment: I've kept this critical. It is an executed wrong SNAP amount in a claimed year on the default dataset path: $3,156 against $1,969 for the executed household. It also reaches 31 readers of childcare_expenses (SNAP, 22 state TANF variables, three LIHEAP income definitions and IL AABD). About 509,000 weighted SPM units in the default file have reported child care and no member under 18. 7 CFR 273.9(d)(4), which the policy review read, covers dependent care for a child or an incapacitated person; adult care goes through care_expenses. The household path and main both give $0. The suggested child test in the dataset branch, plus a dataset test, fixes it.

Should Address

A1 — The Tennessee SNAP timing branch still nets tn_ccap when tn_child_care_subsidies is abolished (OPEN)

  • Location: policyengine_us/variables/gov/usda/snap/income/deductions/snap_dependent_care_deduction.py:33-57.

  • Trigger: the branch checks only gov.abolitions.child_care_subsidies and list membership, then subtracts tn_ccap directly. A reform that abolishes or neutralizes tn_child_care_subsidies zeroes the annual subsidy (and childcare_expenses rises to the full bill), but tn_ccap still pays, so the SNAP deduction keeps netting it.

  • Executed (d3_tn_snap.py, TN 2026, parent $18,000 at 30 hours a week, child aged 3 in full-time care, $12,000 bill):

    Reform child_care_subsidies childcare_expenses Jan snap_dependent_care_deduction Jan snap
    Baseline $9,938.80 $2,061.20 $171.77 $212
    Abolish tn_child_care_subsidies $0 $12,000 $171.77 $211
    Abolish tn_ccap or child_care_subsidies $0 $12,000 $1,000.00 $460
  • Expected: a deduction of $1,000 and SNAP of $460 under the tn_child_care_subsidies abolition. The branch understates SNAP by $249 a month, and it disagrees with childcare_expenses and the SPM expense in the same run.

  • Fix: also skip the branch when tn_child_care_subsidies is abolished, or scale the netted tn_ccap by whether tn_child_care_subsidies pays. Add a YAML case.

  • Design note: a state-specific branch inside the federal SNAP variable that reads core's private _get_recorded_input_array is fragile. A Tennessee monthly amount exposed through the subsidy variables would avoid both.

  • Proposed severity: should-address. It needs a reform to trigger.

A2 — Axiom line uses the external-contributor form for a maintainer's SNAP policy change (OPEN)

  • Location: PR body, final lines ("axiom: needed ..."); rule in repository CLAUDE.md lines 152-156.
  • Trigger: the PR changes the SNAP dependent care deduction. The Tennessee subsidy is now applied in the month paid in household runs (snap_dependent_care_deduction.py formula). From 2024, over datasets, reported payments are no longer netted.
  • Expected: CLAUDE.md requires axiom: <legal id> encoded-correct | <rulespec PR> encoded | <rulespec issue> queued | n/a: <reason>. axiom: needed is reserved for "an external contributor [who] cannot complete the Axiom work". A queued issue must be dispatch-ready and labelled pe-parity.
  • Observed: the author's association is MEMBER (gh api .../pulls/10569). The line names no rulespec PR or issue, though the body itself says the SNAP timing "needs one". The SPM part could properly be n/a: statistical measure.
  • Impact: Axiom parity for 7 CFR 273.9(d)(4) / 273.10(d)(2) has no tracking item. I could not search rulespec-us (the repo is not visible to this account), so the existence of a module or issue is unverified. The finding rests on the line's form.
  • Proposed severity: SHOULD ADDRESS.

A3 — SPM benefits parameter still lists the three subsidies from 2024; the removal is hardcoded in the formula (OPEN)

  • Location: policyengine_us/variables/household/income/spm_unit/spm_unit_benefits.py lines 16-30 (if period.start.year >= 2024: plus a literal tuple of three names); policyengine_us/parameters/gov/household/spm_unit_benefits.yaml (single 0000-01-01 value, lines 57/61/69; description "PolicyEngine counts these sources as SPM unit benefits").
  • Trigger: any period from 2024. Example: a user or reform that reads the parameter, or edits it to count co_ccap_subsidy.
  • Expected: dated policy structure lives in parameters (repo musts: no hardcoded policy values; CLAUDE.md "NEVER use period.start.year ..."). spm_unit_benefits is the only reader of the parameter (grep), and add_to_list_parameter extends every dated value. A 2024-01-01 value without the three would therefore carry the change and keep reforms working.
  • Observed: from 2024 the parameter still claims the three are counted while the formula silently drops them. A parameter-level edit to restore one is ignored.
  • Impact: no wrong output under current law. The parameter misdescribes SPM resources in the app and API, and the gate is invisible to parameter-based reforms.
  • Proposed severity: SHOULD ADDRESS (repository standard / transparency). The code reviewer may raise the same point; merge them if so.

Coordinator assessment: The code review flagged the same filter (its code-3). A dated 2024-01-01 value of gov.household.spm_unit_benefits without the three subsidies would carry the change. add_to_list_parameter in the four reforms extends every dated value, so reforms keep working, and the parameter stops describing SPM resources the model no longer counts. It also removes the period.start.year gate that the repository CLAUDE.md rules out.

Suggestions

S1 — PR body describes "four reform copies" of the SPM list that do not exist (OPEN)

  • Location: PR body, Fix section ("drops ... from spm_unit_benefits and from the four reform copies of that list ... The Tlaib copies hold only Colorado's") and "What this PR does not change" ("The Tlaib reform copies carry only Colorado in those years, as on main").
  • Observed: at merge base 5f85c22 and at the head, all four reforms extend the parameter with add_to_list_parameter (boost_middle_class_tax_credit.py:72, end_child_poverty_act.py:88, edaa_end_child_poverty_act.py:95, tx_rebate.py:51). They hold no copy, and WA and WV are filtered under the reforms too (the test_reform_benefit_lists.py example for WV 2024 uses all three).
  • Impact: the code and tests behave correctly. The description is stale and could mislead the merge record.
  • Proposed severity: SUGGESTION.

S2 — SNAP deduction references drop the statute and omit the billed-month rule (OPEN)

  • Location: snap_dependent_care_deduction.py reference.
  • Observed: the PR removes 7 U.S.C. 2014(e)(3), the statutory basis for the deduction. It adds 273.10(d)(3), which is income/expense averaging and supports spreading an annual amount. It does not cite 273.10(d)(2) ("a deduction shall be allowed only in the month the expense is billed or otherwise becomes due"), which is the rule behind applying the subsidy in the month paid.
  • Expected: keep the statute and add https://www.ecfr.gov/current/title-7/section-273.10#p-273.10(d)(2).
  • Proposed severity: SUGGESTION.

Evidence Gaps

  • The population effect at this head is unmeasured. Over a dataset from 2024, baseline childcare_expenses changes from max(E − S, 0) to E. So SNAP, the CDCC, state TANF and LIHEAP move wherever the dataset pays a modeled subsidy: in a six-unit dataset run, a NY family's SNAP goes from $303 to $4,353. code-1 adds a further shift. The PR body's poverty and budget tables come from 606699d, before this rule. Microsimulations don't run on this machine, so this needs a CI or Modal run.
  • One local failure is unidentified. The first, contended Python run printed one failure before its deadline. By position it is the Hypothesis test test_spm_and_household_measures_agree; a bounded rerun passed and saved no failing example. CI is green at the head. It is either a flaky counterexample or a load artifact.

Notes

  • The core change is sound and matches Census:
    • The SPM subtracts what parents paid for child care, capped with other work expenses at the lowest earner's earnings (SPM Technical Documentation p. 17).
    • No child care benefit appears among SPM noncash resources (section 4.3.1).
    • The ITWG recommendation agrees.
    • So counting a subsidy once, as a lower expense, is right, and dropping CO, WA and WV from SPM resources from 2024 follows the Census definition.
    • Reading the ASEC child care amount (HCHCARE_VAL, "amount paid ... by household members") as after-subsidy is reasonable. Moving it by S1 − S0 avoids double netting.
    • On SNAP, both paths deduct only out-of-pocket cost under 7 CFR 273.9(d)(4). Tennessee's month-paid rule follows 273.10(d)(2).
  • Executed checks that pass:
    • Manhattan family. The household and SPM net income now move by the same $8,321.86. The expense is $83.60, and the family leaves SPM poverty.
    • Dataset repeal runs (NY, CO). The SPM and household changes now agree. On main, the CO repeal raised SPM net income by $4,182.71 while household net income fell by $8,299.29.
    • Double counting. CO, WA and WV count once.
    • Recursion. There is no false cycle, because core filters frames by branch name.
    • Classification. A household Simulation is never classified as a dataset.
  • Evaluating S0 adds the arm's child_care_subsidies tree, not a full baseline. The PR measured +26% for spm_unit_net_income over 5,000 households; the review didn't measure it at full scale.
  • Merges: only 19f31c9 and 513aa0b carry resolution hunks, and no main entry was lost. The PR merges cleanly with current main.
  • Not run locally (CI is green on them): tests/core/test_reform_baseline_arm_inputs.py and the microsimulation test file. The snapshot, dump and builder machinery was reviewed by reading only.

Validation Summary

Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot), slowed by machine contention: the first YAML run reached its deadline with 149 cases passed and 0 failed; the first Python run had 10 passed and 1 unidentified failure (see gaps). The bounded rerun had 15 Python tests passed, 1 skipped and 0 failed (both invariants passed), plus the SNAP dependent care and reform YAMLs reached, with 0 failures. Diagnostics executed the Manhattan household on main and the head, a six-unit dataset Microsimulation with no-change and repeal reforms, the no-child dataset case, the Tennessee timing case and a column-only prevalence read of the default h5. No microsimulation of the full dataset was run. Sources: the Census SPM Technical Documentation, the ITWG Observations (2010), the 2024 ASEC data dictionary, 7 CFR 273.9 and 273.10, and 23-OCFS-ADM-18; manifest check passed. CI: 37 checks pass and 1 skipped at cc36311.

Timing

setup seconds: 20.00s; scope seconds: 60.00s; parallel review seconds: 997.60s; policy role seconds: 509.50s; code role seconds: 997.60s; adjudication seconds: 200.00s; consolidation cleanup seconds: 77.30s; elapsed seconds: 1702.00s

Review Severity

REQUEST_CHANGES. Open findings: 1 critical, 3 should address, 2 suggestions.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants