Repository navigation
Document the child tax credit order dependence in published US builds - #1806
Conversation
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>
|
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: 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:
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 Review record (on this machine, under
|
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>
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>
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_ptcandspm_unit_benefitssmoke 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.mdsends readers of a 2.2.1 parent's recertification todocs/us-known-issues.md.Where each figure comes from
reform_coverage_smoke.json, the eightincome_taxprobes for 2026 share abaseline_totalof $2,639,986,687,934 (b5db384) and $2,650,909,437,820 (0fb05b6). Inreform_validation.json, the build scoresobbba_charitable_floor, the last of the 18 OBBBA rows, at areform_totalof $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%).post_export_scoring, with amaximum_batch_sizeof 2,000 and ann_batchesof 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.income_taxprobes for 2026 asbaseline_totallessreform_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.state.ok.sb2156at abudget_effectof -$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-uscommitf188b6a5publishes the recertification, whose release manifest listsreform_validation.jsonandreform_coverage_smoke.jsonat b5db384's SHA-256 (3308f309df3ec8bc…andcee2aeef057152a8…). Itscompatibility_recertification.jsonrecords the parent engine as policyengine-us 2.2.1 with policyengine-core 3.32.5.ctc_limiting_tax_liabilitytakes pre-credit tax from itsno_saltbranch, andrefundable_ctc,eligible_for_refundable_creditsandtax_unit_is_filercarry the cap into the filing decision.tax_unit_itemizescalculatesitemized_taxable_income_deductionsin the calling simulation before it compares federal tax in two branches, andva_deductionsreadstax_unit_itemizes.ny_ctc_pre_2024_eligiblemakes New York'spre_tcja_ctcbranch.state_income_taxsums thestate_income_tax_before_refundable_creditslist before it sums thestate_refundable_creditslist, and New York's 2024 refundable credits includeny_ctc. Itsny_ctc_pre_2024part runs only whenny_ctc_pre_2024_eligibleholds for a tax unit in the batch.ok_child_care_child_tax_creditasks for the federal child care credit beforeok_federal_ctcreads the non-refundable and refundable parts of the federal child tax credit. Ohio's AGI deductions includepell_grant, which has nodefined_formask and whose 2024 formula reachesmedicaid_enrolled.or_federal_tax_liability_subtractionreads federalincome_tax.aca_ptcmultiplies the credit bytax_unit_is_filer, and inmedicaid_uses_non_filer_rulesthe filing flag matters only for members other than tax dependents. The ACA take-up step intools/build_us_fiscal_refresh_release.py(_aca_source_tax_unit_table_from_simulation) counts a tax unit as eligible only when itsaca_ptcexceeds zero.capital_gains_taxcharges 28% on collectibles gains at zero taxable income. In policyengine-core 3.32.5,Simulation.get_branch,Simulation.cloneandHolder.clonecopy every value the simulation has cached into a new branch.Simulation._calculateskips a formula when no entity in the batch passes itsdefined_formask, 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.mdlists.🤖 Generated with Claude Code