Skip to content

Document the child tax credit order dependence in published US builds - #1806

Merged
MaxGhenis merged 5 commits into
mainfrom
us-known-issues-ctc-order
Nov 29, 2026
Merged

MaxGhenis merged 5 commits into
mainfrom
us-known-issues-ctc-order

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

In the b5db384 national build and its compatibility recertification, we estimate that the eight federal income tax smoke probes for 2026 share a baseline that runs $0.146 billion too high. In the 0fb05b6 build it runs $0.123 billion too high. All eight probes pass in both builds' smoke files, and they still pass against a fresh baseline. Both builds scored their diagnostics on policyengine-us 2.2.1, which caps the non-refundable child tax credit at a liability that depends on request order (policyengine-us#9740). In some orders the cap leaves out the state and local tax (SALT) deduction. A compatibility recertification copies every file its parent's release manifest lists, so the b5db384 recertification republishes b5db384's two diagnostic files byte for byte.

The error can also make the build's estimate of the Oklahoma SB2156 tax cut too large. Through the choice to itemize, it can move that row, the two qualified business income deduction probes for 2026 and the other 2025-2027 state reform rows except Connecticut's, in either direction. In 2024 it can move the state income tax probe and the twelve state credit repeal rows. Through New York's credit it can reach eleven of those rows and the probe, and through Oklahoma's credit or Oregon's subtraction for federal income tax, all twelve and the probe. Whether either route changes a score depends on which states share each household batch, which tax units qualify, the reform and what its simulation has already calculated. Through tax units that stop filing, the error can also change the ACA and Medicaid take-up inputs, the premium inputs, the calibration weights and the aca_ptc and spm_unit_benefits smoke arms for 2024. We haven't measured any of these effects. Given the inputs and weights each build published, the error reaches no 2024 baseline figure, though it can reach those inputs and weights.

The policyengine-us changelog records fixes in 2.23.3 (policyengine-us#9738) and 2.29.9 (policyengine-us#9741). A new Limits bullet in docs/us-compatibility-recertification.md sends readers of a 2.2.1 parent's recertification to docs/us-known-issues.md.

Where each figure comes from

  • In reform_coverage_smoke.json, the eight income_tax probes for 2026 share a baseline_total of $2,639,986,687,934 (b5db384) and $2,650,909,437,820 (0fb05b6). In reform_validation.json, the build scores obbba_charitable_floor, the last of the 18 OBBBA rows, at a reform_total of $2,639,840,877,514 and $2,650,786,364,826. By that row the cumulative OBBBA reform differs from current law only in the estate tax. The gaps come to $145,810,420 (0.0055% of the baseline) and $123,072,994 (0.0046%).
  • Both smoke files record 352,932 households in post_export_scoring, with a maximum_batch_size of 2,000 and an n_batches of 177. tools/build_us_fiscal_refresh_release.py (_HouseholdBatchedPostExportScorer._score) runs one simulation per batch for each file's baselines and a fresh one per batch for each simulated reform arm.
  • The build records each effect of the eight income_tax probes for 2026 as baseline_total less reform_total. So a baseline that runs too high raises each of their signed effects by the same amount. For example, casualty loss scores +$1,312,627,618 in b5db384. For five 2024 probes, the build records reform less baseline: the child support, disability benefits and workers' compensation SNAP exclusions, educator expense abolition and the SSI asset limit.
  • If we put the fresh score in place of the baseline and keep each reform total, all eight probes pass. Auto loan interest keeps the smallest margin over its $100 million threshold: $1,043,365,755 (b5db384) and $1,018,465,026 (0fb05b6).
  • In the scores both builds published, the two qualified business income deduction probes for 2026 clear their $1 million thresholds by $880,439,686 (b5db384, farm rent) or more. The fresh income tax score doesn't apply to them, and we haven't measured how far the itemization error moves them.
  • The build scores state.ok.sb2156 at a budget_effect of -$5,394,287,738 (b5db384) and -$5,409,195,100 (0fb05b6). Neither file holds an Oklahoma-specific child tax credit figure, so we can't size the Oklahoma error from them.
  • policyengine/populace-us commit f188b6a5 publishes the recertification, whose release manifest lists reform_validation.json and reform_coverage_smoke.json at b5db384's SHA-256 (3308f309df3ec8bc… and cee2aeef057152a8…). Its compatibility_recertification.json records the parent engine as policyengine-us 2.2.1 with policyengine-core 3.32.5.
  • In policyengine-us 2.2.1, ctc_limiting_tax_liability takes pre-credit tax from its no_salt branch, and refundable_ctc, eligible_for_refundable_credits and tax_unit_is_filer carry the cap into the filing decision. tax_unit_itemizes calculates itemized_taxable_income_deductions in the calling simulation before it compares federal tax in two branches, and va_deductions reads tax_unit_itemizes. ny_ctc_pre_2024_eligible makes New York's pre_tcja_ctc branch. state_income_tax sums the state_income_tax_before_refundable_credits list before it sums the state_refundable_credits list, and New York's 2024 refundable credits include ny_ctc. Its ny_ctc_pre_2024 part runs only when ny_ctc_pre_2024_eligible holds for a tax unit in the batch. ok_child_care_child_tax_credit asks for the federal child care credit before ok_federal_ctc reads the non-refundable and refundable parts of the federal child tax credit. Ohio's AGI deductions include pell_grant, which has no defined_for mask and whose 2024 formula reaches medicaid_enrolled. or_federal_tax_liability_subtraction reads federal income_tax. aca_ptc multiplies the credit by tax_unit_is_filer, and in medicaid_uses_non_filer_rules the filing flag matters only for members other than tax dependents. The ACA take-up step in tools/build_us_fiscal_refresh_release.py (_aca_source_tax_unit_table_from_simulation) counts a tax unit as eligible only when its aca_ptc exceeds zero. capital_gains_tax charges 28% on collectibles gains at zero taxable income. In policyengine-core 3.32.5, Simulation.get_branch, Simulation.clone and Holder.clone copy every value the simulation has cached into a new branch. Simulation._calculate skips a formula when no entity in the batch passes its defined_for mask, and otherwise runs it for the whole batch.

Evidence limits

We haven't rescored either build's diagnostics on policyengine-us 2.29.9 or later. We estimate the smoke error from two totals the builds published, so the estimate takes in every difference between the probes' baseline and the fresh score. The cap causes two of them, directly and through the choice to itemize. The route through filing needs a tax unit that has no duty to file, owes the 28% tax on collectibles gains, itemizes, gets no EITC and files only to claim credits. We don't know how many such units either build holds. The build cuts each batch from up to 2,000 consecutive households in the H5 file it writes, so which states share a batch depends on the file's household order. We haven't measured how that order mixes states, so we don't know whether the New York or Oklahoma route moved a figure the builds published. We found no route from the Connecticut rows, the SNAP take-up step, or the SNAP, SSI and child care cap probes that docs/us-known-issues.md lists.

🤖 Generated with Claude Code

MaxGhenis and others added 4 commits November 28, 2026 17:58
Add docs/us-known-issues.md for the child tax credit order dependence on
policyengine-us 2.2.1: which diagnostics it moves in the published 0fb05b6
and b5db384 national builds and the b5db384 recertification, by how much,
and what it leaves alone. Link it from the recertification Limits and add a
changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Give the Oklahoma SB2156 effect's direction without a size, scope the sign
convention to the eight 2026 income tax probes, add the itemization route to
the 2025-2027 state rows and the 2026 QBID probes, and replace the 2024
state_income_tax route with New York's own branch. Make the weights and H5
inference conditional on the 2024 filing decision, and cite the two
policyengine-us fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the take-up and premium inputs, the calibration weights and the 2024
aca_ptc and spm_unit_benefits smoke arms to possibly affected: in
policyengine-us 2.2.1 a tax unit with no duty to file can owe the 28% tax on
collectibles gains, so the no-SALT cap can take its whole refundable credit and
flip its filing decision. Describe the New York route's full, partial and
no-SALT cases, the Empire State Child Credit repeal exception and the Ohio
route to Oklahoma's credit. Score per household batch, not in one simulation,
and drop the statutory conformity claim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
State the fixed state_income_tax request order, New York's eligibility
mask and the Ohio route without a Pell grant, and say each route can
reach its rows depending on batch composition. Separate the filing flag
from Medicaid's person-level rules, narrow the partial-cache case and
qualify how later calculations reach the branch.

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

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Claude Code for Max Ghenis.

Hand-off: the independent review has used its four rounds and a P1 is still open, so the PR guide's review limit allows no round 5. I've asked the Microcosm hub to choose between a rework and a call for Max. Nobody merges this PR while a P1 is open, and it stays a draft.

Head: 8802fb49e1a4cd9583b1b994b9467ddbc5f071ff.

Round 4 (scoped, the last round) at this head: REQUEST CHANGES. It closed round 3's P1, on how far the New York and Ohio-to-Oklahoma routes reach. Of round 3's P2s, it found the filing and branch-refresh ones fixed and the partial-cache one partly fixed. It raised one new P1 and one P3:

  1. P1, page lines 109-113. The New York bullet presents three cache cases as a complete list, and a batch with Virginia households breaks it. Virginia's deductions read tax_unit_itemizes, which caches the SALT-bearing itemized_taxable_income_deductions before New York's credit runs. It caches no pre-credit tax, taxable income or total deductions. New York's no_salt branch then keeps SALT in regular tax, while the page's third case says the cap leaves SALT out. A source read (no engine run) confirmed the finding and found the same pattern in several other states' 2024 formulas.
  2. P3, page lines 100-101. The two New York branches don't share one snapshot time. The eligibility test copies the simulation into pre_tcja_ctc, and the cap's formula copies pre_tcja_ctc into no_salt later. In between, only child tax credit values change, so no value that depends on SALT differs.

Proposed fix, not pushed. A replacement New York bullet says the branch keeps SALT in regular tax when it starts with any federal value that carries the SALT deduction into taxable income, with North Dakota and Virginia as examples. It says the branch recalculates the liability without SALT only when it starts with none. The fix also corrects the snapshot sentence and adds the Virginia source to the PR body. A claims check and a voice check found no P0, P1 or P2 in it. Applying it counts as a rework, which would need the hub's own review.

CI at this head: 4 pass, 3 skipped, and engine-free (3.13) and engine-free (3.14) still running when I wrote this. From 2026-12-01 the UK expiry checks go red and block every microcosm merge until someone renews those UK entries.

Review record (on this machine, under ~/reviews/us-one-population-d2283-2026-11-11/runs/ctc-order-2026-11-26/):

  • Briefs and verdicts: pr1806-review-r1/ through pr1806-review-r4/, each with BRIEF.md and deliverable.md.
  • Verification notes and applied edits: each round's verify/ and apply/ folders.
  • Round 4's check and the proposed fix: pr1806-review-r4/handoff/, with v1-p1-virginia.md, v2-p3-snapshot.md, us-known-issues.handoff.md, pr-body.handoff.md, c1-claims.md and c2-voice.md.

Round 4 of the review found the New York bullet's three cache cases
read as complete: a batch with Virginia households caches federal
itemized deductions through tax_unit_itemizes, so the branch can keep
SALT in regular tax with neither total the page named cached. The
bullet now says the branch keeps SALT when it starts with any federal
value that carries the deduction into taxable income (North Dakota and
Virginia as examples) and recalculates without SALT only when it starts
with none. It also states the order of the two branch snapshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis marked this pull request as ready for review November 29, 2026 17:33
@MaxGhenis
MaxGhenis merged commit 22935b2 into main Nov 29, 2026
10 checks passed
juaristi22 added a commit that referenced this pull request Nov 30, 2026
Four files conflicted, each on pins that both sides moved:
spec_engine/inventory_coverage.py (seed_map, seed_protocol), the minimal
bundle's golden vector in test_spec_engine_loader.py, the US bundle's
spec_sha256 in engine_workflow/us/test_us_multispine_pool_tool.py, and
docs/evidence/spec-engine/us-f0-coverage.json.

#1538 (#931) adds functions to stochastic_assignment, one of the US seed
protocol's attested kernel modules (main's f055c15), and this branch moves
the same pins with policyengine-us 2.145.3. The resolution keeps this
branch's lines, adds a comment line for #931's move, and re-derives the pins
on the merged tree in the repinner's order: --legacy-only, the US bundle
generator (byte-identical), the repinner (a second pass: the coverage tool
test's pins read the coverage report), and tools/spec_engine_coverage.py
(50842/50842 configuration fields, 41/41 inventory checks). Both --check
runs pass. docs/agent-guide.md, test_transport_evidence_kernels.py and
test_uk_receipt_counts.py merged without conflict and keep both sides.

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