Repository navigation
Conversation
… benefits veterans_benefits and railroad_benefits reached neither household_benefits nor spm_unit_benefits, so neither net income nor SPM resources counted them. Census P60-200 Appendix A lists veterans' payments as a source of money income and counts railroad retirement among government transfers. Both now sit in household_benefits and spm_unit_benefits. Veterans' benefits stay out of federal gross income under 38 U.S.C. 5301(a)(1). Railroad benefits' federal tax treatment follows in a separate change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… parity test #10663 made the parity test require every source in gov.irs.gross_income.sources to name the SPM resource that counts its cash. railroad_benefits, which #10693 adds to spm_unit_benefits, holds the whole annuity; taxable_railroad_pension_benefits and taxable_railroad_social_security_equivalent_benefits tax its parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add veterans_benefits and railroad_benefits to the six reform copies of the benefit lists (BOOST, End Child Poverty Act, EDAA End Child Poverty Act, Texas rebate), which otherwise dropped both benefits and showed a false loss under each reform, and to SHARED_CASH_PROGRAMS so the guard catches a copy that drops them. - Narrow the veterans' benefits property test to gross income and AGI, checking income tax only when neither household itemizes: the IRS counts veterans' benefits as income for the optional sales tax tables. New state_sales_tax.yaml cases show the 2025 Texas row moving. - Keep Combat-Related Special Compensation in veterans_benefits, as military_retirement_pay directs, and point VA education benefits and dependency and indemnity compensation, and railroad survivor annuities, to their own variables. - Cite the Census appendix once, with its page range. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- veterans_benefits: is_veteran reads this input, so a survivor or dependent whose VA payments go here should set is_veteran to false. - disability_benefits: VA disability compensation goes in veterans_benefits. - SSI unearned sources note: household net income now counts railroad benefits; SNAP, HUD and the other program lists still don't (#10551). - Parity test docstring: list the two new invariants, and say the veterans' income tax check covers filers under 65 without a disability, since the model doesn't yet reduce the section 22 credit by VA pensions (26 U.S.C. 22(c)(3)(A)(i)(III)). - Sales tax test comment: the table gives the amount a filer may deduct. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's property tax credit invariant keeps number 7 in test_household_spm_resource_parity.py; this branch's two invariants become 8 and 9. test_aggregate_list_integrity.py lists the benefits beside main's state_property_tax_refunds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Review: Count veterans' and railroad retirement benefits in household and SPM benefitsSummaryThe PR adds Census counts both as money income, and the SPM starts from money income, so the treatment is right. I found no double count with #10696, which is stacked on this head, or with #10764. #10662 conflicts textually in six files (see Branch status). Two items need changes:
I did not run Python. The claims below rest on reading the code at the head, hand traces, the cited primary sources, and CI run 43118653441 at this head. The PR body's microsimulation figures and its account of how Microcosm fills these variables are taken as stated, not re-run. Critical (must fix)None. Should address1. New documentation sends VA education benefits into a variable SNAP counts as income (
Fix: Drop "education allowances" from the Related, and not a finding against this PR: RRB survivor annuities count for SNAP as 2. The new property tests add about two minutes per CI run and mostly repeat existing coverage ( CLAUDE.md, "Test design and CI cost", says: "Do not add a Python test when the existing YAML framework can exercise the same behavior", and "explain the distinct failure the new test detects." In run 43118653441 at this head (Rest, Python shard 7), the two new tests took 88.0 s and 34.8 s.
Suggestions
Verified correct
Axiom line assessment
CI statusAll 36 checks pass at fb34f7c (run 43118653441, started 2026-11-11 23:17 UTC; rechecked 2026-11-13). That run includes the PR validation and guard job, all Baseline and Contrib shards, Python Rest shards 1-9, Microsimulation, and Household API Partners. Branch status
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes: 0 critical, 2 should address, 3 suggestions (details in the report above). The substance is right. Census money income counts VA payments and railroad retirement, the SPM starts from money income, each benefit is counted once, and all six reform copies are updated.
- The new documentation sends VA education benefits to
veterans_benefits, which SNAP counts in full. 7 U.S.C. 2014(d)(3) and 7 CFR 273.9(c)(3)(i) exclude them, and the model keepseducational_assistanceout of SNAP, so they belong there. - The two new Hypothesis tests add about 123 s per CI run, and they mostly repeat YAML and existing coverage. That runs against CLAUDE.md's test-design rules. Adding the two benefits to
CASH_PAYMENTSand moving the income-tax check to YAML would cover the same ground.
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Document how veterans can report qualifying service separately. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
policyengine_us/reforms/congress/tlaib/boost/boost_middle_class_tax_credit.py extends both lists with the SSA-paid credit and inherits the baseline benefits. policyengine_us/reforms/congress/tlaib/economic_dignity_for_all_agenda/edaa_end_child_poverty_act.py extends both lists with the child payment and inherits the baseline benefits. policyengine_us/reforms/congress/tlaib/end_child_poverty_act.py extends both lists with the child payment and inherits the baseline benefits. policyengine_us/reforms/states/tx/rebate/tx_rebate.py appends the rebate to the SPM list, retains its dated state benefits entry and inherits the baseline benefits. policyengine_us/variables/household/income/spm_unit/spm_unit_benefits.py reads the shared list with veterans' and railroad retirement benefits and retains the Census references. 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: 10693
Reviewed head SHA: b5ce717
Merge base SHA: 094934a
Mode: incremental from fb34f7c
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10693-review-sources.json
Review status: COMPLETE
Source Documents
- ecfr_273_9.html — cached original.
- usc_7_2014.html — cached original.
- i1040sca_2025.pdf — cached original.
- or17_2025.pdf — cached original.
- wi_schH_2025.pdf — cached original.
- tn_0600_03_08.html — cached original.
- tn_bulletin_2019_01.pdf — cached original.
- p60_200_appA.pdf — cached original.
- p60_254.pdf — cached original.
- p525_2025.pdf — cached original.
Critical
None.
Should Address
A1 — New comment trips the source-conflict guard, so Rest Python shard 2 is red (OPEN)
- Location:
policyengine_us/variables/gov/irs/deductions/itemized/salt_and_real_estate/state_sales_tax_table_va_educational_assistance.py:14, added by 16c68d2:# The instructions use the filer's income and count dependents in family size. - Trigger: "instructions use" matches the
(form|instructions?|...)\s+(says|say|...|uses|use|tells?)branch ofCONFLICT_COMMENT_RE(policyengine_us/tests/code_health/test_source_conflicts.py:115), and the file has noKNOWN_UNMARKEDentry, sotest_conflict_sounding_comments_do_not_growfails. - Expected vs observed: the guard should pass. CI run 46640815308, job 142619835980: "1 failed, 2951 passed, 10 skipped", with
assert not {'.../state_sales_tax_table_va_educational_assistance.py': 1}. "Check Rest Python shards" fails only because of this shard. Reproduced locally on the snapshot:test_source_conflicts.pygives "1 failed, 250 passed", with the same assertion naming this file (log/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10693-review-code-tests-py.log). - Cause: the PR. The file is new in 16c68d2, and the comment does not describe a conflict between sources.
- Fix: reword the comment rather than adding a
KNOWN_UNMARKEDline, for example# Table income is the filer's; a dependent counts only in family size.I checked that this wording does not match the regex. - Severity: should-address (a red check caused by the PR).
A2 — Axiom line axiom: needed doesn't fit a maintainer's PR that now changes tax and credit results (OPEN)
- Location: PR body, line 48 (
axiom: needed). - Trigger: Commits 4e68132 and 16c68d2 change computed results.
- They add tagged VA education cash to the Schedule A table income, which can change federal tax for itemizers; the new YAML cases move
state_sales_taxfrom $931 to $992. - They also add it to Oregon retirement credit household income, Tennessee elderly relief income and Wisconsin homestead income. The new cases show each credit or relief amount dropping to $0.
- They add tagged VA education cash to the Schedule A table income, which can change federal tax for itemizers; the new YAML cases move
- Expected: Repository CLAUDE.md, "Axiom Parity": a PR that "adds, updates or fixes policy" carries
axiom: <legal id> encoded-correct | <rulespec PR> encoded | <rulespec issue> queued | n/a: <reason>.axiom: neededis only for "an external contributor [who] cannot complete the Axiom work". The priorn/a: income totals only; no tax or benefit rule changesno longer holds, since these commits change tax and benefit rules. - Observed:
axiom: neededfrom a PolicyEngine maintainer, with no rulespec-us PR or issue linked. - Impact: The repository's parity requirement is unmet for four changed provisions: the Schedule A table income, ORS 316.157(2)(c)(A)(xiii), Tenn. Comp. R. & Regs. 0600-03-.08(3) and Wis. Stat. 71.52(6).
- Source: /Users/dtrim99/PolicyEngine/policyengine-us CLAUDE.md, lines 151-155, read at the snapshot.
- Proposed severity: Should address.
Suggestions
S1 — A dependent's VA room and board in veterans_benefits still moves the filer's sales tax table row, but the same dependent's tagged book cash does not (OPEN)
- Location:
policyengine_us/parameters/gov/irs/deductions/itemized/salt_and_real_estate/state_sales_tax_table/income_sources.yaml:44(veterans_benefits).state_sales_tax_income_bracket.py:14sums that list over every tax-unit member, while the newstate_sales_tax_table_va_educational_assistance.py:15zeroes dependents. - Trigger (executed, TX, 2025): a filer with $118,000 of wages and $30,000 of deductible interest, plus a 20-year-old full-time student dependent (
is_tax_unit_dependent= [False, True]; AGI $118,000 in every case).- No VA aid: bracket 10,
state_sales_tax$1,084. - Dependent with $2,000 of room-and-board aid in
veterans_benefits, where the PR's new documentation sends the SNAP-counted share: bracket 11, $1,155. - Dependent with $2,000 of tagged book cash: bracket 10, $1,084.
- No VA aid: bracket 10,
- Expected: the PR adopts the rule that table income is the filer's, not the dependent's. Its comment, its YAML case "A Texas filer leaves a dependent's VA book allowance out of table income" and its changelog ("the filer's and spouse's") all say so. That rule is consistent with
irs_gross_income, which zeroes dependents. Under it, both shares of a dependent's VA education payment would stay out of the filer's table income. - Why it is not a PR defect: on main,
veterans_benefitsand the other person-level nontaxable sources in the list already count for dependents. The PR's new routing sends more dependent VA cash into that path, for example a Chapter 35 student's room and board. - Impact: a $71 larger sales tax deduction in this case, which is about $15.62 of federal tax for a 22% itemizer.
- Severity: suggestion. Either zero dependents for the nontaxable table sources, which is an aggregation fix in
state_sales_tax_income_bracket, or file a follow-up issue. The policy reviewer may want to confirm the filer-only reading of the 2025 Schedule A instructions, p. 5.
Coordinator assessment: The policy review traced the same split and confirmed the filer-only reading of the 2025 Schedule A instructions (p. 5, "Your 2025 income"). Using tax_unit_non_dep_add for the whole table-income list, as the OR, TN and WI income variables already do, would give one rule for both parts of a payment.
S2 — The new Tennessee list entry has no source comment (OPEN)
- Location:
parameters/gov/states/tn/tax/property/elderly_property_tax_relief/nontaxable_income/sources.yaml:17 - Trigger: The
capped_va_educational_assistance_cashentry, effective 2025-01-01. - Expected vs observed: Every other entry in this list, and the same new entry in the OR and WI lists, carries a comment tying it to the rule text. The TN line has none.
- Impact: The behavior is supported but the reasoning is undocumented. Rule 0600-03-.08(3) says only "veteran's benefits", so the link to GI Bill payments is an inference. A comment such as "Rule (3): 'veteran's benefits'; IRS Pub. 525 p.16 lists VA education, training and subsistence allowances as VA benefits" would record it.
- Source: Tenn. Comp. R. & Regs. 0600-03-.08(3) (Cornell LII); TN Comptroller Bulletin 2019-01, p.1, item 5; IRS Pub. 525 (2025), p.16.
- Proposed severity: Suggestion.
Evidence Gaps
No material gaps reported.
Notes
- This round covers the three author commits since the 11-13 review and two merges of main.
- Should 1 (VA education counted in full by SNAP): The documentation now sends the SNAP-excludable part (tuition, books) to
educational_assistanceand room and board toveterans_benefits. That matches 7 CFR 273.9(c)(3)(ii)(C)(1)–(9), where room and board is not excludable. Executed: $3,000 of tagged VA book cash leavessnap_gross_incomeat $500 a month andsnapat $2,457. - Should 2 (Hypothesis test cost): Both tests are deleted, the two benefits are now
CASH_PAYMENTSentries, and the income-tax check is a YAML pair ($17,570 either way). That saves about 123 s per CI run. - Suggestions 1 and 2 are resolved. The Section 22 VA-pension gap now has no docstring claim. It predates this PR, and filing a tracking issue is optional.
- New treatment verified: tagged VA education cash in the Schedule A sales-tax table income (2025 instructions p. 5; Pub. 525 p. 16), the Oregon retirement credit household income (ORS 316.157(2)(c)(A)(xiii); OR-17 p. 128) and the Wisconsin homestead income (Wis. Stat. 71.52(6); Schedule H line 9h). Tennessee elderly relief follows by inference from Rule 0600-03-.08(3). The tag sits in none of the lists that already hold
educational_assistance, so nothing counts twice. - Executed in WI: $3,000 of VA book cash raises household and SPM net income by $2,933.94, which is $3,000 less a $66.06 drop in the homestead credit.
- Both merges keep main's entries. b5ce717 moves the two benefits into main's new parameter-driven
spm_unit_benefitslist (#10662). - The policy reviewer couldn't search rulespec-us for the axiom check. That doesn't affect policy-1, because the PR body links no RuleSpec item.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot): the touched YAML (sales tax, the VA benefits gross-income cases, the OR retirement credit, TN elderly relief, VT veteran credit, WI homestead, SNAP unearned income and the household and SPM totals) passed with 0 failures; test_source_conflicts.py gave 1 failed and 250 passed, reproducing code-1. Diagnostics executed the WI household and the TX dependent sales-tax cases. Sources: 7 CFR 273.9, the 2025 Schedule A instructions, Pub. 525, ORS 316.157 and the OR-17 instructions, Tenn. Comp. R. & Regs. 0600-03-.08 and Bulletin 2019-01, and Wis. Stat. 71.52 and the Schedule H instructions; manifest check passed. CI at b5ce717: 34 checks pass, 2 fail (Python Rest shard 2 and its gate; see code-1).
Timing
setup seconds: 10.00s; scope seconds: 60.00s; parallel review seconds: 996.80s; policy role seconds: 359.70s; code role seconds: 996.80s; adjudication seconds: 120.00s; consolidation cleanup seconds: 47.20s; elapsed seconds: 1476.00s
Review Severity
COMMENT. Open findings: 0 critical, 2 should address, 2 suggestions.
What changes
On main, the household and SPM benefit and market-income lists omit direct entries for
veterans_benefitsandrailroad_benefits. Both totals already includeworkers_compensation. Veterans' and railroad payments can still change other modeled taxes or benefits without direct inclusion.In P60-200 Appendix A, the Census Bureau counts veterans' payments as money income (page 3) and U.S. railroad retirement as a nonmeans-tested government transfer (page 4). This PR adds both variables to
gov.household.household_benefitsandgov.household.spm_unit_benefits. The BOOST Middle Class Tax Credit, the End Child Poverty Act, its Economic Dignity for All Agenda version, and the Texas rebate inherit both payments from the baseline lists.railroad_benefitsfrom federal gross income. Tax railroad retirement benefits federally, exempt them from state income tax, and count them in program income #10696 proposes federal taxation of the taxable components and updates state subtractions. Virginia currently subtracts the full railroad input from federal AGI, including amounts that federal AGI never included.Double counting
veterans_benefits, ED_VAL toeducational_assistance, and the ASEC disability income fields todisability_benefits. Its source build has no person-level survivor income input, so it leavessurvivor_benefitsat zero. These statements describe the producer's mappings.railroad_benefits, not also as Social Security, pension, disability or survivor income.veterans_benefitsnow covers Combat-Related Special Compensation (CRSC), asmilitary_retirement_payalready directs. The military departments pay CRSC to retirees under 10 U.S.C. 1413a, and the IRS lets them exclude it from income (Publication 525, page 19).educational_assistance. Enter the part SNAP counts, such as aid for ordinary room and board, inveterans_benefits. Both inputs count toward household and SPM benefits. Useva_educational_assistance_cashto identify VA cash already included ineducational_assistance. The model caps the tagged cash at the reported educational assistance amount. It counts tagged cash for the filer and spouse in Schedule A sales-tax table income and uses tagged cash in the Oregon retirement income credit, Tennessee elderly property tax relief, and Wisconsin homestead credit. Setis_veterandirectly for a qualifying veteran whose VA payments are all ineducational_assistance. Enter VA dependency and indemnity compensation inveterans_benefitsand Railroad Retirement Board survivor annuities inrailroad_benefits.Invariants
household_benefitsandspm_unit_benefits, and market income plus benefits for the household and the SPM unit, by one dollar. The existing cash-payment property test covers both inputs.irs_gross_incomeandadjusted_gross_income. Two 2026 Texas cases give $17,570 of federal tax for a 40-year-old single nonitemizer with $120,000 in wages, with and without $20,000 of VA benefits. The optional Schedule A sales-tax tables use the filer's AGI plus nontaxable income, including veterans' benefits (2025 Schedule A instructions, p. 5). Useva_educational_assistance_cashto identify SNAP-exempt VA cash already entered aseducational_assistance. The table counts that tagged cash for the filer and a joint-filing spouse. A dependent counts in family size, and the dependent's own tagged cash adds $0 to the filer's table income. The resulting table amount can change modeled tax for itemizers. In the legacy-input example, $30,000 inveterans_benefitsraises the 2025 table amount for a Texas filer with $100,000 in AGI from $931 to $992.test_aggregate_list_integrity.pychecks that the baseline lists include both benefits and guards against copied formulas.test_reform_benefit_lists.pychecks that each reform retains the full baseline lists and adds its own benefit.test_household_spm_resource_parity.pyrecords a reason, so that test keeps passing.Tests
test_household_spm_resource_parity.pynow covers both benefit inputs, and the two nonitemizer checks are YAML cases. The consolidated parity file passes 68 tests locally.test_aggregate_list_integrity.pypasses 53 tests andtest_reform_benefit_lists.pypasses 33, with one existing skip for current law.Impact
An earlier 2026 microsimulation on
hf://datasets/policyengine/populace-us/populace_us_2024.h5@populace-us-2024-spm-20260909compared main at 06553a9 with this PR at e7ddd42. It estimated that counting veterans' benefits adds $130.3 billion tohousehold_benefits,spm_unit_benefitsand both net incomes, and that federal and state tax totals stay unchanged. That build carries no railroad benefits, so they added nothing nationally.That comparison estimated that SPM net income rises for all 13.6 million people in SPM units with veterans' benefits and stays the same for everyone else. Of them, 671,000 leave SPM poverty, no one enters it, and the poverty gap falls by $4.7 billion, to $258.0 billion.
The national estimates above come from the comparison at e7ddd42. In the current model, the Schedule A table amount can change federal tax for itemizers, and tagged VA cash can change the Oregon retirement credit, Tennessee elderly property tax relief, and Wisconsin homestead credit.
axiom: needed
🤖 Generated with Claude Code