Repository navigation
Conversation
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
…year Add Arizona's published 2027 standard deduction and project increases from the 2025 statutory amounts. Round partial personal exemption phase-out steps up and key the IRS SOI AGI scale to tax year 2020. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 11294
Reviewed head SHA: bd1a59a
Merge base SHA: 8329e31
Mode: full
Scope: changed behavior and affected dependencies (base branch release/2.2.x)
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-11294-review-sources.json
Review status: COMPLETE
Source Documents
- ar2024.pdf — cached original.
- ar2023_oldhost.pdf — cached original.
- ar2023_main.pdf — cached original.
Critical
None.
Should Address
A1 — code-1 (SHOULD ADDRESS): the four changelog fragments will render as - - bullets on 2.2 (OPEN)
- Where:
changelog.d/az-standard-deduction-2026-indexing.fixed.md:1,changelog.d/fix-ar-low-income-duplicate-threshold.fixed.md:1,changelog.d/fix-breakdown-parameter-uprating.fixed.md:1andchangelog.d/snap-elderly-disabled-asset-limit.fixed.md:1. Each line starts with-. - What happens: towncrier on release/2.2.x (
[tool.towncrier]inpyproject.toml, no custom template) adds its own-bullet. The last 2.2 release shows the result. The 2.2.2 fragments atbb7bbc4b92(changelog.d/cbo-cpi-2036.changed.mdandspm-calculator-1-1.changed.md) started with-, and8329e31bbc:CHANGELOG.mdnow has- - Add CBO's February 2026 ...and- - Require spm-calculator 1.1 ...under 2.2.2. The 2.2.1 fragments had no leading dash and render as single bullets. Main's source fragments for these fixes, such assnap-fy2027-cola.fixed.mdandfix-breakdown-parameter-uprating.fixed.mdat870bd46ce0, also have no dash. - Expected: one line of plain text per fragment. Observed: a leading
-that will produce four- -entries in the 2.2.3 changelog. - Fix: remove the leading
-from all four fragments. This changes no model behavior.
Suggestions
S1 — code-2 (SUGGESTION): the changelog source citations do not match the source PRs (OPEN)
changelog.d/fix-breakdown-parameter-uprating.fixed.mdcredits the CollegeInvest limits, the filing-status indexing and the corrected 2032 head-of-household threshold to "#10854, 2499968". Those changes come from #10825 (870bd46ce0), whose fragment has the same filename. Only the rounded-up exemption phase-out step inexemptions.pycomes from #10854 (249996814a).az-standard-deduction-2026-indexing.fixed.mdcites #10683 and #10783 but leaves out #9928 (4419d14a9c), which supplied the 2026 values and tests.snap-elderly-disabled-asset-limit.fixed.mdhas no source citation (#9623,d27d6c3cc3).- The PR body attributes all of these correctly. This affects only the provenance text.
Evidence Gaps
No material gaps reported.
Notes
- The model changes are right. Every backported parameter, variable and test matches main, or is an adaptation release/2.2.x needs that gives the same result. Arizona's projection uses a small
extend_az_standard_deductionin place of main's base-mode uprating, which needs policyengine-core 3.36 (2.2 locks 3.30.2); it gives the same amounts (2028: 16,950 / 33,900 / 25,425) and the tests check every year to 2100. The Hypothesis property tests became exhaustive parametrized tests, and the Arkansas test years start in 2021 where 2.2's tables do. - Values checked against main and the sources: Arizona's 2026 amounts and the IRS 2027 figures ($16,600 / $33,200 / $24,925), Colorado's CollegeInvest limits, Arkansas's 2024 head-of-household rows ($92 and $104) against the 2024 instructions, and SNAP's $4,750 elderly or disabled asset limit from October 2026. The SNAP asset test now reads the limit monthly: a single 70-year-old in Kansas with $4,650 of assets gets $0 in September 2026 and $25 in October.
- Not caused by this PR: 2.2's federal 2027 standard deduction is still the projection ($16,550 / $33,150 / $24,850), so Arizona's published 2027 amounts are now above it. Arizona's values are right in law (A.R.S. 43-1041(H) indexes them on their own); backporting the federal part of #10683 would be a separate decision.
Validation Summary
Local tests at the reviewed head on release/2.2.x's environment (policyengine-core 3.30.2, imports from the snapshot): 3,015 passed, 0 failed across the changed Python tests and the Arizona, Arkansas, Colorado subtraction, exemption, Biden budget, SNAP, TANF non-cash and partner YAML directories. Sources: the 2023 and 2024 Arkansas instructions fetched and validated; main's corroboration of the IRS, FNS, Colorado and CBO sources reused because the values are identical. CI at bd1a59a: 35/35 succeeded.
Timing
setup seconds: 120.00s; policy role seconds: 620.00s; code role seconds: 880.00s; parallel review seconds: 880.00s; adjudication seconds: 0.00s; elapsed seconds: 1068.00s
Review Severity
COMMENT. Open findings: 0 critical, 1 should address, 1 suggestions.
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
… lines Towncrier adds its own bullet on release/2.2.x, so a leading "- " renders as "- - ". Each line now cites the main PR and commit its change came from. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Agent-written for Max, by Claude Code for Max Ghenis. 885b29a answers the changes-requested review. It changes only the four changelog lines; no model file changed.
|
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 11294
Reviewed head SHA: 885b29a
Merge base SHA: 8329e31
Mode: incremental from bd1a59a
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-11294-review-sources.json
Review status: COMPLETE
Source Documents
- ar2024.pdf — cached original.
- ar2023_oldhost.pdf — cached original.
- ar2023_main.pdf — cached original.
- ars_43-1041.htm — cached original.
- usc26_1.htm — cached original.
- usc26_63.htm — cached original.
Critical
None.
Should Address
A1 — changelog fragments render as - - bullets (RESOLVED)
All four fragments are now one line that starts with text (first bytes Upd, Cor, Add, App). towncrier build --draft --version 2.2.3 at the head renders four single - bullets under "Fixed" and writes nothing (pr-11294-code-r2/towncrier-draft.txt; the snapshot's git status is clean afterwards).
A2 — 6d05f3a backports no main commit and moves Arizona's 2028+ projections away from main and from 2.2's federal deduction (OPEN)
-
Where:
policyengine_us/parameters/uprating_extensions.py(newget_az_standard_deduction_cpi, andextend_az_standard_deductionnow readsgov.bls.cpi.c_cpi_uin place ofgov.irs.uprating). The tests areaz_base_standard_deduction.yaml(2028 case changed to 16,900 / 33,800 / 25,375, plus a new 2028 withholding case) andtest_state_uprating_rounding.py. -
The window is right in law: A.R.S. 43-1041(H) indexes the subsection A amounts "in the same manner in which the federal basic standard deduction is adjusted for inflation pursuant to section 63". The statute names no CPI window of its own; it brings in the federal one.
- 26 U.S.C. 63(c)(7)(B)(ii) adds to the $15,750 and $23,625 bases the cost-of-living adjustment under 1(f)(3), with 2024 as the base year, and rounds each increase down to a multiple of $50.
- 1(f)(3)(A) uses the C-CPI-U for the preceding calendar year.
- 1(f)(4) defines the CPI for a calendar year as the average over "the 12-month period ending on August 31 of such calendar year".
- So tax year Y uses September of Y-2 through August of Y-1, against a base of September 2023 through August 2024.
get_az_standard_deduction_cpi(cpi, Y)starts at September of Y-2, which matches. - Joint = 2 × the single amount, per 63(c)(2)(A). That rule is unchanged.
-
No commit on main matches:
git log upstream/main -S get_az_standard_deduction_cpireturns 0 commits. Main projects Arizona with base-mode uprating ongov.irs.uprating.- Main's index uses September–August only since #9621 (524d588, 2026-11-17). #9621 built
gov.irs.upratingfrom that window, then spliced on CBO's tax-year (12-months-ending-August) projections by growth. - #9621 is not in release/2.2.x (
merge-base --is-ancestorfails; 2.2 forked at f88982f on 2026-09-15). The branch does not cite it. - At the cited 74676f6, main's
get_irs_cpistill averaged August through July. - So 6d05f3a takes over #9621's window, without its projection splice, for Arizona only.
- Main's index uses September–August only since #9621 (524d588, 2026-11-17). #9621 built
-
Head values: executed in the review venv with snapshot imports confirmed; log at
pr-11294-policy-diag/az_values.log. 2026 is 16,100 / 32,200 / 24,150 and 2027 is 16,600 / 33,200 / 24,925, both unchanged and stored as values (Rev. Proc. 2025-32 sec. 4.14(1); Rev. Proc. 2026-35 sec. 3.15(1); verified in round 1). Projections, single / joint / HOH:Year Head Main 2.2 federal at head 2028 16,900 / 33,800 / 25,375 16,950 / 33,900 / 25,475 16,950 / 33,900 / 25,400 2029 17,200 / 34,400 / 25,825 17,300 / 34,600 / 25,975 17,200 / 34,450 / 25,800 2030 17,550 / 35,100 / 26,375 17,650 / 35,300 / 26,525 17,550 / 35,150 / 26,350 - The prior head gave 16,950 / 33,900 / 25,425 in 2028.
- Main's figures are reproduced from main's own data: index 182.500667 × 185.881 / 181.654 = 186.747. Main's federal test
basic_standard_deduction.yaml(2028 single) asserts that same 186.747368 and $16,950. Main's Arizona amounts equal its federal ones by test. This is a reproduction, not a run of the main model.
-
Why the head's projection runs low: the head averages the step-function
c_cpi_useries.- On 2.2 the last observation is June 2026 (184.992). That value fills July 2026 through January 2027, and February to August 2027 take CBO's calendar-2027 average (187.2). The 2028 window averages 186.280.
- Main's observed July and August 2026 values (185.162, 185.739) are already above that flat 184.992.
- So the head's 2028 window understates the statistic, and the head's 2028–2030 amounts are $50–$100 (single) and $100–$200 (joint) below main's.
-
Why it matters: this is a backport branch, and the new behavior matches neither main nor 2.2's own federal deduction.
- Before this commit, Arizona's single and joint 2028 amounts equalled main and 2.2's federal 16,950 / 33,900. Now 43-1041(H)'s "same manner" link breaks between the model's two parameters. Arizona uses the statutory window while 2.2's federal deduction keeps the August–July index; neither uses main's projection.
- These are projections for unpublished years, so this is not a confirmed defect in law. The effect is about $1.25–$5 of Arizona tax per return at 2.5%.
-
Options (maintainer choice, not tested here):
- Drop 6d05f3a and keep Arizona on 2.2's
gov.irs.uprating, as main did at 74676f6. Arizona then equals 2.2's federal projection, as at the prior head. - Or backport #9621's window and CBO tax-year splice for
gov.irs.upratingas a whole. - Either way, the PR body should describe this model change. The author reply covers only 885b29a.
- Drop 6d05f3a and keep Arizona on 2.2's
Coordinator assessment: The code review confirms the scope and the divergence. It loaded the full parameter tree at bd1a59a and at the head: only Arizona's four standard-deduction amounts change, out of 102,528 parameters, and the federal uprating index and CPI series are identical. By 2100, Arizona's single amount is 68,550 at the head, against 69,050 at the prior head and 69,400 on main. Main has no Arizona-specific function; it uprates each filing status from 2025 against the federal index, which needs policyengine-core 3.36 or later. So if #9621 or main's uprating method is later backported to 2.2, expect conflicts in set_all_uprating_parameters and in the Arizona tests in test_state_uprating_rounding.py. The code reviewer rated this a suggestion, since no published source sets a 2028 or later amount. I've kept should-address: the commit isn't a backport, it isn't described in the PR body (whose test counts are still from bd1a59a), and it breaks the equality between Arizona and 2.2's federal deduction that the prior head had and that 43-1041(H) implies.
Suggestions
S1 — changelog source citations (RESOLVED)
Arizona now also cites #9928 4419d14a9c. The breakdown line credits #10825 870bd46ce0 for CollegeInvest, filing-status indexing and the 2032 threshold, and #10854 249996814a only for the phase-out rounding. SNAP cites #9623 d27d6c3cc3. Arkansas now cites #9599 38d67750f8 for the threshold and guard, and #9604 0865b61260 for SOI. All eight commits are on upstream/main, and their subjects match the cited PRs.
Coordinator assessment: The policy review checked every citation independently with git show and the GitHub commits-to-PR API, and got the same result. One new provenance problem in the reworded Arizona line is S2 below.
S2 — the Arizona changelog line credits the September–August window to PRs that did not use it (OPEN)
changelog.d/az-standard-deduction-2026-indexing.fixed.md:1 says the projection uses "September–August chained CPI-U (#9928, 4419d14; #10683, 3cc31c8; #10783, 74676f6)". Each of those commits indexed with gov.irs.uprating's August–July average; the window came to main with #9621 (524d588). If policy-1 is resolved by dropping 6d05f3a, remove the window wording. Otherwise, say it is a 2.2-specific adaptation of #9621. This affects only the provenance text.
Evidence Gaps
No material gaps reported.
Notes
- Round 2, incremental from bd1a59a, covering two commits: 6d05f3a (Arizona's September–August CPI window) and 885b29a (the four changelog lines). Both round-1 items are resolved. The only new blocking item is policy-1, about 6d05f3a, which Max's reply doesn't mention.
- The PR is still a draft.
Validation Summary
Local tests at the reviewed head (review venv for 2.2 with policyengine-core 3.30.2, matching release/2.2.x's uv.lock; imports resolved to the snapshot): 1,752 passed and 0 failed. They cover the changed Arizona test file, the uprating core tests, every other test that touches uprating_extensions, and every Arizona YAML file. Mutation checks: with the old uprating code, 6 of the new tests fail; with the new function called in the old place, 3 fail. towncrier build --draft --version 2.2.3 renders four single bullets. Full parameter-tree comparison between bd1a59a and the head: only the 4 Arizona standard-deduction amounts differ. Sources checked: A.R.S. 43-1041 and 26 U.S.C. 1(f) and 63(c), which add to round 1's six sources; the manifest check passed. CI: 35/35 checks pass at 885b29a.
Timing
setup seconds: 5.00s; scope seconds: 60.00s; parallel review seconds: 578.50s; policy role seconds: 258.90s; code role seconds: 578.50s; adjudication seconds: 0.00s; consolidation cleanup seconds: 71.90s; elapsed seconds: 773.00s
Review Severity
COMMENT. Open findings: 0 critical, 1 should address, 1 suggestions.
Apply CBO's September–August forecast growth to the latest Arizona index based on BLS observations and clarify the backport's changelog. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
This PR backports four fixes to PolicyEngine US's
release/2.2.xmaintenance line.The FY2027 SNAP cost-of-living amounts and allotment changes stay in their source PR. The Minnesota cap has its own draft PR. #9623 #11097
Tests
Earlier Linux runs passed 89 cases across seven base files and 1,632 cases across 56 files at 21d8766. The tables below record those results. The per-fix counts below are from the commit that introduced each fix. The follow-up commit bd1a59a passed 1,654 cases across 51 files, including all 15 Arizona deduction and 16 exemption cases. Its 45 YAML files passed all 313 cases again after merging
release/2.2.x, which brought in no changes.Paths are relative to
policyengine_us/tests/. Counts show passed cases.code_health/test_uprating_placement.pycore/test_breakdown_parameter_uprating.pycore/test_state_uprating_rounding.pycore/test_vectorized_reductions.pypolicy/baseline/contrib/biden/budget_2025/capital_gains_tax_increase.yamlpolicy/baseline/gov/hhs/tanf/non_cash/meets_tanf_non_cash_asset_test.yamlpolicy/baseline/gov/states/ar/tax/income/ar_income_tax_before_non_refundable_credits_joint.yamlpolicy/baseline/gov/states/ar/tax/income/ar_uses_low_income_tax_tables.yamlpolicy/baseline/gov/states/ar/tax/income/integration.yamlpolicy/baseline/gov/states/ar/tax/income/low_income/ar_low_income_tax_joint.yamlpolicy/baseline/gov/states/ar/tax/income/low_income/test_ar_low_income_tax_tables.pypolicy/baseline/gov/states/az/tax/income/deductions/standard/az_base_standard_deduction.yamlpolicy/baseline/gov/states/az/tax/income/integration.yamlpolicy/baseline/gov/states/co/tax/income/subtractions/collegeinvest_contribution/co_collegeinvest_contribution.yamlpolicy/baseline/gov/usda/snap/eligibility/is_snap_eligible.yamlpolicy/baseline/gov/usda/snap/eligibility/meets_snap_asset_test.yamlpolicy/baseline/gov/usda/snap/eligibility/snap_assets.yamlpolicy/baseline/gov/usda/snap/eligibility/work_requirements/snap_work_requirement_disqualification_income_treatment.yamltest_parameter_scale_thresholds.pyPartner searches found 33 unique files. The SNAP asset search and Massachusetts signature check brought the total to 40. Every file below passed at the original PR head.
Paths are relative to
policyengine_us/tests/policy/baseline/partners/.amplifi/2025.yamlamplifi/2026.yamlanalytics_coverage/edge_cases/federal/childcare/early_head_start/co.yamlanalytics_coverage/edge_cases/federal/childcare/head_start/co.yamlanalytics_coverage/edge_cases/federal/healthcare/aca_ptc/co.yamlanalytics_coverage/edge_cases/federal/healthcare/chip/co.yamlanalytics_coverage/edge_cases/federal/healthcare/medicaid/co.yamlanalytics_coverage/edge_cases/federal/nutrition/csfp/federal.yamlanalytics_coverage/edge_cases/federal/nutrition/school_meals/co.yamlanalytics_coverage/edge_cases/federal/nutrition/snap/ca.yamlanalytics_coverage/edge_cases/federal/nutrition/snap/co.yamlanalytics_coverage/edge_cases/federal/nutrition/snap/federal.yamlanalytics_coverage/edge_cases/federal/nutrition/snap/il.yamlanalytics_coverage/edge_cases/federal/nutrition/snap/ks.yamlanalytics_coverage/edge_cases/federal/nutrition/snap/ma.yamlanalytics_coverage/edge_cases/federal/nutrition/snap/nc.yamlanalytics_coverage/edge_cases/federal/nutrition/snap/wa.yamlanalytics_coverage/edge_cases/federal/utility/lifeline/tx.yamlanalytics_coverage/edge_cases/state/ca/tax_credits_composition.yamlanalytics_coverage/edge_cases/state/co/care_worker_credit.yamlanalytics_coverage/edge_cases/state/co/eitc_ctc.yamlanalytics_coverage/edge_cases/state/co/family_affordability_credit.yamlanalytics_coverage/edge_cases/state/co/oap.yamlanalytics_coverage/edge_cases/state/co/state_supplement.yamlanalytics_coverage/edge_cases/state/co/tanf.yamlanalytics_coverage/edge_cases/state/co/tax_credits_composition.yamlanalytics_coverage/edge_cases/state/il/hbwd.yamlanalytics_coverage/edge_cases/state/ma/tax_credits_composition.yamlanalytics_coverage/edge_cases/state/wa/tax_credits_composition.yamlanalytics_coverage/signatures/ca.yamlanalytics_coverage/signatures/co.yamlanalytics_coverage/signatures/federal.yamlanalytics_coverage/signatures/il.yamlanalytics_coverage/signatures/ma.yamlanalytics_coverage/signatures/nc.yamlanalytics_coverage/signatures/tx.yamlanalytics_coverage/signatures/wa.yamlimpactica/2025.yamlmy_friend_ben/2024.yamlmy_friend_ben/2025.yamlHand checks
impact: pending a comparison at the final head.
axiom: TheAxiomFoundation/rulespec-us#1529 queued, TheAxiomFoundation/rulespec-us#2060 queued, TheAxiomFoundation/rulespec-us#2290 queued, TheAxiomFoundation/rulespec-us#2193 queued, TheAxiomFoundation/rulespec-us#1425 queued, TheAxiomFoundation/rulespec-us#1394 queued
In order, these issues cover #9928, #10683, #10825, #10854, #9599 and #9623.
🤖 Generated with Claude Code