Skip to content

Count veterans' and railroad retirement benefits in household and SPM totals and route VA education cash - #10693

Open
MaxGhenis wants to merge 11 commits into
mainfrom
vet-rrb-income-totals
Open

MaxGhenis wants to merge 11 commits into
mainfrom
vet-rrb-income-totals

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

What changes

On main, the household and SPM benefit and market-income lists omit direct entries for veterans_benefits and railroad_benefits. Both totals already include workers_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_benefits and gov.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.

Double counting

  • The Microcosm producer maps the ASEC veterans' payments field (VET_VAL) to veterans_benefits, ED_VAL to educational_assistance, and the ASEC disability income fields to disability_benefits. Its source build has no person-level survivor income input, so it leaves survivor_benefits at zero. These statements describe the producer's mappings.
  • The earlier national comparison found no railroad benefits in its pinned Populace build. For household inputs, enter each Railroad Retirement Board annuity once, under railroad_benefits, not also as Social Security, pension, disability or survivor income.
  • The documentation of veterans_benefits now covers Combat-Related Special Compensation (CRSC), as military_retirement_pay already 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).
  • Enter the part of VA education payments that SNAP excludes under 7 CFR 273.9(c)(3), such as aid for qualifying tuition or books, in educational_assistance. Enter the part SNAP counts, such as aid for ordinary room and board, in veterans_benefits. Both inputs count toward household and SPM benefits. Use va_educational_assistance_cash to identify VA cash already included in educational_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. Set is_veteran directly for a qualifying veteran whose VA payments are all in educational_assistance. Enter VA dependency and indemnity compensation in veterans_benefits and Railroad Retirement Board survivor annuities in railroad_benefits.

Invariants

  1. Both lists include veterans' and railroad benefits directly. With no offset from other benefits, a dollar of either payment raises household_benefits and spm_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.
  2. The federal tests check that veterans' benefits stay out of irs_gross_income and adjusted_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). Use va_educational_assistance_cash to identify SNAP-exempt VA cash already entered as educational_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 in veterans_benefits raises the 2025 table amount for a Texas filer with $100,000 in AGI from $931 to $992.
  3. Each of the four reforms retains both payments by extending the baseline benefit lists. test_aggregate_list_integrity.py checks that the baseline lists include both benefits and guards against copied formulas. test_reform_benefit_lists.py checks that each reform retains the full baseline lists and adds its own benefit.
  4. The household and SPM benefit lists still differ only where test_household_spm_resource_parity.py records a reason, so that test keeps passing.

Tests

  • On the merge with main, the nine changed YAML files pass all 265 cases: 13 SPM-benefit cases, eight household-benefit cases, four federal gross-income and income-tax cases, 164 sales-tax cases, eight SNAP unearned-income cases and 68 state program cases.
  • The existing cash-payment invariant in test_household_spm_resource_parity.py now covers both benefit inputs, and the two nonitemizer checks are YAML cases. The consolidated parity file passes 68 tests locally.
  • On the merge with main, test_aggregate_list_integrity.py passes 53 tests and test_reform_benefit_lists.py passes 33, with one existing skip for current law.
  • Local Linux wall time for the parity file was 385 seconds at fb34f7c and 302 seconds after the tests were consolidated.

Impact

An earlier 2026 microsimulation on hf://datasets/policyengine/populace-us/populace_us_2024.h5@populace-us-2024-spm-20260909 compared main at 06553a9 with this PR at e7ddd42. It estimated that counting veterans' benefits adds $130.3 billion to household_benefits, spm_unit_benefits and both net incomes, and that federal and state tax totals stay unchanged. That build carries no railroad benefits, so they added nothing nationally.

SPM poverty rate, 2026 06553a9 (main) e7ddd42 (this PR) Change (points, from unrounded rates)
All people 13.75% 13.55% -0.19
Children 17.56% 17.41% -0.14
Ages 18 to 64 13.17% 12.94% -0.22
Ages 65 and over 10.90% 10.74% -0.16
Deep poverty, all people 2.99% 2.89% -0.10
People in SPM units with veterans' benefits 9.68% 4.77% -4.92

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

… 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>
MaxGhenis added a commit that referenced this pull request Nov 7, 2026
… 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>
@MaxGhenis
MaxGhenis marked this pull request as ready for review November 7, 2026 23:28
MaxGhenis and others added 3 commits November 8, 2026 13:15
- 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>
@DTrim99

DTrim99 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

PR Review: Count veterans' and railroad retirement benefits in household and SPM benefits

Summary

The PR adds veterans_benefits and railroad_benefits to gov.household.household_benefits (both year blocks) and to the spm_unit_benefits list. It also adds them to all six reform-side copies of those lists: BOOST has two, the End Child Poverty Act two, the Economic Dignity for All Agenda's version of that act one, and the Texas rebate one. Each benefit is counted once. Neither variable is in market_income, market_income_sources, any nested household list (state, local, health or refundable state credits), or federal gross income at this head. No program formula reads household_benefits, spm_unit_benefits, household_net_income or spm_unit_net_income, so no tax or benefit amount changes.

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:

  • New documentation sends VA education benefits to a variable that SNAP counts in full. The model deliberately keeps education aid out of SNAP.
  • The two new Hypothesis tests add about two minutes to every CI run, and existing coverage already exercises most of what they test.

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 address

1. New documentation sends VA education benefits into a variable SNAP counts as income (variables/household/income/person/general/veterans_benefits.py:13, variables/household/income/person/misc/educational_assistance.py:9)

  • veterans_benefits now lists "education allowances", and educational_assistance now says "VA education benefits go in veterans_benefits."
  • The household and SPM totals don't depend on this routing, since both variables are in both lists. Program results do.
  • The SNAP unearned list counts veterans_benefits in full (gov/usda/snap/income/sources/unearned.yaml:81). It keeps educational_assistance out on purpose: "(iv) educational assistance is countable only after educational exclusions. Keep it out until the excluded share is modeled" (line 111).
  • Federal law excludes these benefits from SNAP income. 7 U.S.C. 2014(d)(3) excludes "all educational loans on which payment is deferred, grants, scholarships, fellowships, veterans' educational benefits, and the like" (https://www.law.cornell.edu/uscode/text/7/2014). 7 CFR 273.9(c)(3)(i) excludes "Educational assistance, including ... veterans' educational benefits and the like" (https://www.law.cornell.edu/cfr/text/7/273.9).
  • So a user who follows the new text gets SNAP that counts GI Bill payments. Entering them as educational_assistance, as the old text suggested, excludes them. The federal TANF, SSI and HUD unearned lists treat the two variables the same split way.

Fix: Drop "education allowances" from the veterans_benefits documentation. Have educational_assistance say that VA education benefits go there, because SNAP excludes them under 7 U.S.C. 2014(d)(3) and both variables count in household and SPM benefits.

Related, and not a finding against this PR: RRB survivor annuities count for SNAP as survivor_benefits but not as railroad_benefits. The railroad_benefits documentation already covered survivor annuities on main, so that routing predates this PR. #10551 tracks the gap, and the PR's updated SSI note points to it.

2. The new property tests add about two minutes per CI run and mostly repeat existing coverage (tests/test_household_spm_resource_parity.py:615-682)

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. test_a_dollar_of_federal_cash_benefits_adds_a_dollar_to_both_totals is now the slowest test in the file. The existing test_a_dollar_of_cash_adds_a_dollar_to_both_totals covers 16 payments in 56.6 s.

  • Test 8: it samples states, but with $500,000 of earnings no means-tested program responds. It also checks market income plus benefits, which no state tax touches, so the state dimension adds nothing. The new YAML cases in household_benefits.yaml and spm_unit_benefits.yaml already pin both entries. The parity list test and the SHARED_CASH_PROGRAMS guard pin every list and reform copy. Adding ("veterans_benefits", "person", "TX", 2026) and ("railroad_benefits", "person", "VA", 2026) to CASH_PAYMENTS (line 149) gives the same check at no extra cost, since max_examples stays at 20.
  • Test 9: federal gross income, AGI and a non-itemizer's federal income tax don't vary by state. The gross income and AGI parts duplicate the new irs_gross_income/veterans_benefits.yaml. Only the income tax part is new. Pin income_tax in that YAML file for a twin pair with and without the benefit, or keep the test with its two @examples, no state strategy and a small max_examples.

Suggestions

  1. PR body wording. "On main, $10,000 of veterans_benefits or of railroad_benefits changes neither household_net_income nor spm_unit_net_income" holds only for a household with no offsets. On main:

    • Virginia subtracts the full railroad_benefits from federal AGI (gov/states/va/tax/income/subtractions/subtractions.yaml) although AGI excludes them, which lowers Virginia tax.
    • SNAP and TANF count veterans_benefits.
    • is_veteran (veterans_benefits > 0) turns on veteran-only state credits.

    Suggested wording: "neither total counts them as income."

  2. SPM citation. The list comments and references cite P60-200 Appendix A, the 1998 money income definition. The pages support both entries: page 3 has "Veterans' payments", and page 4 has "U.S. railroad retirement" among nonmeans-tested government cash transfers. spm_unit_benefits could also cite the SPM resource definition, "SPM Resources = Money Income From All Sources" (Census P60-254, https://www.census.gov/content/dam/Census/library/publications/2015/demo/p60-254.pdf#page=4), or the current SPM report.

  3. Track the Section 22 gap. The docstring of test 9 says the model doesn't reduce the credit for the elderly or disabled by VA pensions under 26 U.S.C. 22(c)(3)(A)(i)(III). The citation is correct: "(III) a law administered by the Veterans' Administration". Link an issue for it so the deferral is tracked.

Verified correct

  • Census and SPM treatment. The P60-200 Appendix A text matches the PR:
    • Page 1 lists "Veterans' payments" as a money income source.
    • Page 3 defines it and lists railroad retirement as a source of pension, survivor and disability income.
    • Page 4, definition 9, lists "nonmeans-tested veterans' payments, U.S. railroad retirement" among nonmeans-tested government cash transfers.
    • Census P60-254, page 4: "SPM Resources = Money Income From All Sources", plus noncash benefits, minus taxes and expenses.
  • No double count.
    • Neither variable is in market_income (person), gov.household.market_income_sources, household_state_benefits, household_local_benefits, household_health_benefits, household_refundable_state_credits or gov.irs.gross_income.sources at this head.
    • The only other readers are means-tested countable income lists (SNAP, SSI, TANF, HUD, WIC, school meals, state and county programs), some state tax subtractions, and the optional sales tax table income. None of them feeds the totals as income.
    • household_net_income is read only by household_net_income_including_health_benefits, marginal_tax_rate and the behavioral response measurements. Labor supply income effects therefore now use a base that includes these benefits, which is consistent.
  • Reform copies. All six literal copies are updated. The EDAA household_benefits and the Texas rebate's household total read the parameter, so they inherit the entries. No other reform or contrib file holds a copy, on this head or on main.
  • Mutation coverage.
    • Deleting either entry from the 2024 block fails the household YAML case.
    • Deleting it from the 2022 block fails test_benefit_lists_differ_only_where_documented[2023], which reads the 2022 block.
    • Deleting it from spm_unit_benefits fails both YAML files.
    • Deleting it from any reform copy fails test_reform_aggregates_keep_shared_cash_programs.
  • Hand checks:
    1. household_benefits.yaml, new case (TX, two $500,000 earners, so no means-tested benefit): household_benefits = 12,000 + 30,000 = 42,000.
    2. Same case, one SPM unit: spm_unit_benefits = 42,000.
    3. spm_unit_benefits.yaml, new case (FL, two SPM units): [9,000, 24,000].
    4. Same case: household_benefits = 9,000 + 24,000 = 33,000. Arithmetic expressions are an established YAML test pattern, e.g. spm_unit_fpg: 14_720 + 5_200.
    5. irs_gross_income/veterans_benefits.yaml, case 1: $30,000 of VA benefits only gives irs_gross_income 0. The variable is not in gov.irs.gross_income.sources (38 U.S.C. 5301(a)(1)).
    6. Case 1: adjusted_gross_income = 0.
    7. Case 2: $45,000 of wages plus $20,000 of VA benefits gives irs_gross_income 45,000.
    8. Case 2: AGI = 45,000 − 0. There are no above-the-line deductions, and the 2026 tips, overtime and senior deductions come below the line.
    9. state_sales_tax.yaml, first case: table income = AGI 100,000, so state_sales_tax_income_bracket = 10 (the "$100,000–$120,000" row; the bracket amounts in income_bracket.yaml start at 1).
    10. First case: TX, family size 1, 2025 gives $931. The 2025 Instructions for Schedule A, page 16, Texas column 1, $100,000–$120,000 row prints 931, which matches tax.yaml TX/1/10.
    11. Second case: table income = 100,000 + 30,000 = 130,000, so bracket 11 and $992. Page 16, $120,000–$140,000 row prints 992; tax.yaml TX/1/11 has 992. Page 5 confirms the inclusion: income is "line 11b, plus any nontaxable items, such as ... Veterans' benefits."
    12. Second case: AGI stays 100,000.
    13. Property test examples: $12,000 of veterans' benefits in TX and $30,000 of railroad benefits in VA, each at $500,000 of earnings, move spm_unit_benefits, household_benefits and market income plus benefits by exactly the amount. These totals are before tax, so Virginia's railroad subtraction doesn't enter them.
  • Documentation sources.
    • IRS Pub. 525 (2024), page 19: CRSC "you may exclude ... from your income".
    • Page 16 covers VA benefits.
    • 10 U.S.C. 1413a.
    • The updated SSI note is accurate: the SNAP and HUD unearned lists include social_security and ssi but not railroad_benefits.
  • References and changelog. The list-level reference title ends with #page 3-4, quoted, with the href opening page 3, as CLAUDE.md requires for several pages. Variable references are single-page hrefs. The changelog fragment vet-rrb-income-totals.fixed.md is present.
  • Other checks. Test periods are plain (2025, 2026). No new state-gated int or enum keys. No partner test files changed.

Axiom line assessment

axiom: n/a: income totals only; no tax or benefit rule changes. This is valid. The change only affects which inputs count toward PolicyEngine's household and SPM income totals, which follow the Census statistical definitions; no statute or regulation sets them. I checked that no program formula reads household_benefits, spm_unit_benefits or either net income. The new YAML cases pin existing law: VA benefits stay out of gross income, and they count in the sales tax table income.

CI status

All 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 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.

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.

  1. 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 keeps educational_assistance out of SNAP, so they belong there.
  2. 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_PAYMENTS and moving the income-tax check to YAML would cover the same ground.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
MaxGhenis and others added 3 commits November 30, 2026 17:06
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>
@MaxGhenis MaxGhenis changed the title Count veterans' and railroad retirement benefits in household and SPM benefits Count veterans' and railroad retirement benefits in household and SPM totals and route VA education cash Dec 1, 2026
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 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: 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

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 of CONFLICT_COMMENT_RE (policyengine_us/tests/code_health/test_source_conflicts.py:115), and the file has no KNOWN_UNMARKED entry, so test_conflict_sounding_comments_do_not_grow fails.
  • 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.py gives "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_UNMARKED line, 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_tax from $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.
  • 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: needed is only for "an external contributor [who] cannot complete the Axiom work". The prior n/a: income totals only; no tax or benefit rule changes no longer holds, since these commits change tax and benefit rules.
  • Observed: axiom: needed from 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:14 sums that list over every tax-unit member, while the new state_sales_tax_table_va_educational_assistance.py:15 zeroes 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.
  • 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_benefits and 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_cash entry, 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_assistance and room and board to veterans_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 leaves snap_gross_income at $500 a month and snap at $2,457.
  • Should 2 (Hypothesis test cost): Both tests are deleted, the two benefits are now CASH_PAYMENTS entries, 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_benefits list (#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.

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