Skip to content

Count railroad retirement benefits as income in state and county benefit programs - #10764

Open
MaxGhenis wants to merge 31 commits into
mainfrom
state-benefit-railroad
Open

MaxGhenis wants to merge 31 commits into
mainfrom
state-benefit-railroad

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

PolicyEngine counts Railroad Retirement Act benefits in 72 state and county benefit income totals. Maryland Public Assistance to Adults accepts a railroad annuity paid for age, blindness or disability. The changes address part of #10551.

I audited 113 items across state and county programs. I changed 72 income totals and Maryland’s federal benefit test. I found 17 income totals that already count railroad benefits and 23 benefit-program exceptions. R3 also covers two Washington property-tax exceptions, for 25 exceptions in all.

Changes

PolicyEngine adds a railroad amount to 71 state and county income lists and to Missouri’s Supplemental Nursing Care income formula. Use railroad_benefits for the gross amount and report any program-specific component in its corresponding input.

Rules that name railroad retirement

State Program Rule Text
CA Alameda County General Assistance Alameda County GA regulations, income section ".52 Railroad Retirement Benefits (RRB);"
CA CalWORKs EAS 44-113.3 "Net income from Social Security or from Railroad Retirement Benefits"
CO Colorado Child Care Assistance Program 8 CCR 1403-1, section 3.105.1(I)(6) in the 2023 edition and section 3.111(I) from August 2026 “Railroad retirement insurance”
CO Colorado Works 9 CCR 2503-6, section 3.605.3 "7. Railroad retirement payments - payments, such as sick pay, annuities, pensions, and unemployment insurance benefits, which ..."
DC Child Care Subsidy Program Child Care Subsidy Program Policy Manual 2.5.2 and 2.5.3 OSSE counts railroad retirement and exempts permanent disability payments. PolicyEngine subtracts the reported disability share.
DE Purchase of Care 16 Del. Admin. Code 11003 "vii. Pensions; viii. Railroad retirement; ix. Annuities"
HI Child Care Subsidy HAR 17-798.3-10(b)(2)(A) "Railroad retirement insurance checks from the U.S. government"
ME Child Care Affordability Program 10-148 C.M.R. ch. 6, 2.C "railroad retirement, private pensions, annuities"
MI Child Development and Care Bridges Eligibility Manual 503 "The U.S. Railroad Retirement Board makes the payments. Count the gross benefit amount as unearned income."
MT Best Beginnings Child Care Scholarship Child Care 2-6 Income Evaluation Table (row marked pension or retirement, countable) "Railroad Retirement:"
NC LIEAP Energy Programs manual EP-300, 300.09 A, and FNS 300.01 B "Some common examples of unearned income include contributions, railroad retirement, Social Security, and Veteran's benefits."
NC Work First Work First manual WF-114 The Division of Social Services counts railroad retirement net of amounts such as Medicare premiums withheld. It counts the gross amount in cases involving specified tax, debt or child-support withholding.
ND TANF N.D. Service Chapter 400-19-55-20-15 and 400-19-55-25 North Dakota counts railroad benefits and excludes retroactive railroad retirement payments from income.
PA Child Care Works 55 Pa. Code ch. 3042, app. A, part I(F) "Railroad retirement, disability or survivors' benefit payments made by the United States Government under the Railroad ..."
SC Child Care Scholarship Child Care Scholarship Policy Manual 2.1 "Railroad retirement insurance benefits"
UT Child Care Assistance Utah Admin. Code R986-200-235(2)(a) "pensions and annuities such as Railroad Retirement, Social Security, VA, Civil Service"
WY Child Care, Purchase of Service Wyo. Admin. Rules, DFS, Child Care, ch. 1, app. B (row marked unearned and nonexempt) "RR retirement or UI"
WY POWER SNAP and POWER Policy Manual 901 and 1205 DFS counts regular railroad retirement payments as income. It counts retroactive railroad retirement lump sums as assets.

Rules that list pensions, annuities, retirement benefits or federal benefits

State Program Rule Text
AK Child Care Assistance Program CCAP Policies and Procedures 4080-3(1) "Federal benefit income is considered unearned income. Common sources of federal benefit income include but are not limited to: ..."
AL Child Care Subsidy Program FFY 2025-2027 CCDF State Plan 2.2.4(c) "Survivor and retirement benefits."
AR School Readiness Assistance FFY 2025-2027 CCDF State Plan 2.2.4(c) "Pensions or annuities."
CA CARE and FERA PG&E Form 01-9077, CARE/FERA application "Social Security and pensions"
CA Clean Vehicle Rebate Project increased rebate CVRP Implementation Manual, Gross Annual Income CARB includes taxable and nontaxable income, including survivor benefits and pension or retirement income.
CA Los Angeles EZ-SAVE LADWP EZ-SAVE income definition ""Income" means all the money and benefits earned by everyone in the household."
CA Orange County General Relief General Relief Regulations Manual section 70.1 "a contribution from persons or organizations, pensions/retirement, interest or dividends."
CA Riverside County LIHEAP 2025 Riverside County LIHEAP application, countable income "Pension and Annuities:"
CA San Mateo County General Assistance General Assistance Program Fact Sheet (fact-sheet evidence) “retirement benefits, interest income, child or spousal support, and other means of income or support.”
CT Care 4 Kids Regs. Conn. State Agencies 17b-749-05 ""Unearned income" means pensions, annuities, dividends, interest, rental income, lottery winnings, royalties, Social Security, ..."
DC TANF D.C. Code 4-205.05 "pensions; retirement benefits; annuities"
FL School Readiness Fla. Admin. Code 6M-4.200 "veteran benefits, retirement benefits, temporary cash assistance"
GA Childcare and Parent Services CAPS Policy Manual 8.4.1 "Retirement/Pension"
ID Idaho Child Care Program IDAPA 16.06.12 "Unearned income includes retirement"
IL ISBE meal and fee waiver income ISBE Household and Income Form 69-72 (form evidence) “pensions, retirement, Social Security”
LA Child Care Assistance Program LAC 28:CLXV.509.A.3.b "iv.retirement benefits; v.disability benefits;"
MA Child Care Financial Assistance EEC Interim Income Eligible Policies, October 2023, and Income Eligible Policies, May 2026 EEC counts retirement income. PolicyEngine uses the reported railroad total as a retirement income proxy. Treatment of railroad disability and survivor annuities remains uncertain.
MD Child Care Scholarship COMAR 13A.14.06.02 "Pensions and annuities"
ME TANF 10-144 C.M.R. ch. 331 "benefits such as Social Security, Veterans benefits, pensions"
MN Child Care Assistance Program Minn. Stat. 256P.06, subd. 3 "(ix) retirement benefits;"
MN Minnesota Family Investment Program Minn. Stat. 256P.06, subd. 3 "(ix) retirement benefits;"
MO Child Care Subsidy 5 CSR 25-200.050 "Pensions and annuities"
MS Child Care Payment Program CCPP Policy Manual, Rule 5.4 "retirement/pension"
MT TANF TANF manual 501-1 "Recurring payments from pension plans are countable unearned income."
NJ Child Care Assistance FFY 2025-2027 CCDF State Plan 2.2.4c "Pensions or annuities."
NJ LIHEAP FY2026 and FY2027 LIHEAP Handbook 2.3.D "benefits and pensions, annuities"
NV Child Care and Development Program Child Care Policy Manual MS 306.29 "A fixed amount of money paid regularly to somebody during retirement, for either age or disability, by the government, a ..."
OK Child Care Subsidy Okla. Admin. Code 340:40-7-11(c)(2) "Annuities, pensions, retirement benefits, disability benefits from either government or private sources, or Social Security ..."
OR Employment Related Day Care OAR 414-175-0035(52)(a)(A) "Pension and retirement plans include the following: (A) Benefits employees receive only when they retire."
SD Child Care Assistance CCA Subsidy Manual, section 4 "Countable unearned income includes, but is not limited to: TANF, pensions, VA benefits, alimony, retirement"
TX Family Planning Program Family Planning Program Policy Manual 9000 "A pension is any benefit derived from former employment, such as retirement benefits"
WA ECEAP 2021–22 ECEAP Performance Standards, PAO-45(2)(c)(ii) and (vi), and April 2025 application, section 9 DCYF requires contractors to count regular annuity payments and retirement or pension payments.
WI Wisconsin Shares Wisconsin Shares Handbook 6.2 "Pensions and annuities"
WV Child Care Assistance Child Care Subsidy Policy and Procedures Manual 5.2.4.4 "5.2.4.4 Pensions and annuities."

Rules that define income as everything outside their exclusions

State Program Rule Text
CA Child care programs 5 CCR 18078(w) ""Total countable income" means all income of the individuals counted in the family size that includes, but is not limited to, ..."
CA Los Angeles County General Relief DPSS ePolicy, General Relief 44-101 "After approval, all net income to the General Relief (GR) household is deducted from the GR grant."
CA Riverside SHARE Riverside Public Utilities SHARE program page "All household income must be provided"
IL Aid to the Aged, Blind or Disabled 89 Ill. Adm. Code 113.100 "Unearned income is all income other than that received in the form of salary for services performed as an employee or profits ..."
IL Health Benefits for Workers with Disabilities 89 Ill. Adm. Code 120.330 "Unearned income is all income other than that received in the form of salary for services performed as an employee or profits ..."
IL TANF 89 Ill. Adm. Code 112.100 and 112.110(aa) Illinois DHS counts unearned income and disregards railroad disability payments up to the SSI payment level for one person with no other income.
KS Child Care Assistance KEESM 6200 and 6410 "Unearned income is any income that is not earned and may be derived from benefits (unemployment compensation, Social Security, ..."
KS LIEAP KEESM 13361 "Only the following incomes are exempt in determining eligibility"
KY Child Care Assistance Program 922 KAR 2:160 "gross income received or anticipated to be received by the applicant and responsible adult shall be considered"
MA Transitional Aid (TAFDC) 106 CMR 704.210(B) "Unearned income is all income that a person does not earn through employment."
MO Supplemental Nursing Care Supplemental Nursing Care manual 0610.005.00 Missouri counts gross income from all sources and excludes “RR penalty amounts” withheld from railroad benefits to recover previous overpayments.
ND Child Care Assistance Program N.D.A.C. 75-02-01.3-08(16) North Dakota excludes nonrecurring lump sums from income, including retroactive railroad payments.
NH Child Care Scholarship N.H. Code Admin. R. He-C 6910.06(c) "All sources of gross income shall be counted"
RI Child Care Assistance Program 218-RICR-20-00-4, section 4.2, definition 29 “any money, goods or services available to the financial unit used to calculate eligibility for the CCAP.”
TX Child Care Services 40 TAC 809.44(c) "Income that is not listed in subsection (b) of this section as excluded from income is included as income."
TX Commodity Supplemental Food Program Texas CSFP Handbook, section 3 Texas counts all sources of household income outside its exclusions.
TX Comprehensive Energy Assistance 10 TAC 6.4(b) "Income means cash receipts earned and/or received by all Household members 18 years of age and older"
VA Child Care Subsidy Program 8 VAC 20-790-40(H) "includes all earned and unearned income received by the family except the following"
VT Child Care Financial Assistance CCFAP Regulations I B 18 "Gross Income – All income included in determining monthly gross income except that which is specifically excluded by these ..."
WA Working Connections Child Care WAC 110-15-0060(8) "Other types of income not listed in WAC 110-15-0070"

Texas excludes regular Social Security payments under 40 TAC 809.44(b)(17). It counts railroad retirement benefits under subsection (c), which includes income outside the exclusions. Texas Workforce Commission adopted rule

Maryland PAA’s federal benefit test

Maryland requires a federal benefit for age, blindness or disability under COMAR 07.03.07.03(A)(2). PolicyEngine checks both the applicant’s qualifying status and the basis of the railroad annuity. Supply the gross annuity in railroad_benefits and set md_paa_receives_qualifying_railroad_annuity for qualifying months. A survivor annuity paid solely because the recipient cares for the employee’s child does not qualify.

The YAML cases cover qualifying annuitants who meet the age, disability or blindness tests. They also cover an annuitant who meets none of the three tests and a blind applicant whose sole payment comes from a child-in-care survivor annuity. Maryland PAA eligibility Railroad annuity eligibility

Programs that inherit the change

  • DC General Assistance for Children uses DC TANF gross unearned income. Under D.C. Code 4-205.05a(g), DHS disregards up to $7.50 of income from other sources.
  • DC POWER pays eligible households the positive difference between the TANF standard and countable income.
  • Massachusetts uses ma_tcap_gross_unearned_income in its EAEDC net income calculation.
  • Illinois uses il_isbe_countable_income for Prevention Initiative and Preschool for All Expansion.
  • Illinois adds il_aabd_countable_unearned_income when calculating Health Benefits for Immigrant Seniors.
  • Missouri uses Supplemental Nursing Care countable income for both the facility-cost eligibility test and the payment calculation.

Federal sources that state programs read

R5 identifies 31 federal totals, lists and tests that state and county programs outside the tax code read within its two-step scan. State programs inherit gaps in the federal inputs they use. For example, PolicyEngine counts railroad benefits in New Jersey LIHEAP and still reads the federal Part B premium for its Social Security deduction.

  • TANF’s baseline unearned income. In 37 states, 64 TANF variables reference tanf_gross_unearned_income.
  • SNAP’s unearned income. Nebraska LIHEAP uses the federal list. Under 7 CFR 273.9(b)(2)(ii), state SNAP agencies count “Annuities; pensions; retirement, veteran’s, or disability benefits”.
  • Gross income and AGI. DC, Illinois and Massachusetts energy aid read federal gross income. Illinois IHWAP, I-PASS, SCRETD, FPP and BAP, California’s normal CVRP rebate, Washington’s property-tax exemption and New Mexico’s premium help read federal gross income or related tax amounts or tests. The IRS treats the Social Security-equivalent share of tier 1 as a Social Security benefit under IRC 86(d)(1)(B) and (d)(4). Taxpayers include the taxable amount in gross income. Illinois SCRETD also uses the filer's tax-exempt Social Security amount. 26 U.S.C. 86
  • Medicaid and ACA MAGI. In 29 states, 58 variables name one of five MAGI amounts or ratios, including 17 CHIP premium variables. California CCHIP and Rhode Island postpartum coverage also reach medicaid_income_level through medicaid_income_eligible. Under IRC 36B(d)(2)(B)(iii), taxpayers add the untaxed Social Security-equivalent share of tier 1 to AGI for ACA MAGI.
  • Seven ACA amounts and tests. Premium assistance in 10 states references the credit, and assistance in nine references the benchmark premium. The other five amounts and tests reach premium help in California, Maryland, New Jersey, New Mexico, Vermont and Washington. These calculations use ACA MAGI or depend on Medicare eligibility through the ACA coverage test. New Mexico's Puente Health also reads the federal ineligible-coverage list directly.
  • SNAP’s disability test. Energy aid in North Carolina, Nevada, New York and Oklahoma reads is_usda_disabled. Under 7 U.S.C. 2012(j)(7), SNAP agencies recognize a railroad disability annuitant whom the Railroad Retirement Board finds eligible for Medicare or who meets SSI’s disability criteria.
  • Medicare eligibility and eight downstream premiums, tests and lists outside ACA. PolicyEngine checks age 65 or 24 months of Social Security disability. Under 42 U.S.C. 426(b)(2)(B), an eligible disabled railroad beneficiary under age 65 can also qualify for Medicare Part A after 24 months.
    • Illinois SMIB and reduced fares, the MBTA’s TAP CharlieCard, Mississippi’s Healthier Mississippi Waiver and Dallas DART read is_medicare_eligible.
    • Energy aid in 28 states and Washington’s property-tax exemption read medicare_part_b_premium. Energy aid in eight states reads medicare_part_a_premium, and Illinois SMIB reads base_part_b_premium.
    • Rhode Island Medicaid reads medicare_enrolled, which also appears in the disqualifying coverage list Rhode Island CHIP uses. California CCHIP reads the CHIP coverage test and the Medicaid eligibility test. Colorado CHP+ reads Medicaid eligibility, and Mississippi’s waiver reads is_adult_for_medicaid.

Mississippi’s waiver also uses an annual Medicaid income wrapper, which sums monthly budgets that count railroad benefits through SSI. The shared monthly formula reads gross Part B premiums, which depend on Medicare eligibility. R5’s two-step scan stops before the annual wrapper. PolicyEngine sets the premium deduction to false for Mississippi.

California CVRP’s increased rebate and Texas CSFP use separate income totals following #10873. They no longer read school_meal_fpg_ratio. Issue #10551 still covers the federal school-meals, TANF and SNAP lists. #10696 covers railroad benefits in gross income, AGI and the MAGI additions. #10804 covers Medicare eligibility, and #9330 covers SNAP disability.

Merge order with #10696 and #10722

#10696 and #10722 remain open. #10696 builds railroad_benefits from the Social Security-equivalent amount and the taxable and tax-exempt shares of the rest. Households can still supply the total directly. Whichever of this PR and #10696 merges second removes the FEDERAL_GAPS entries that the combined code resolves.

#10722 adds the tax-exempt railroad amounts to Washington's senior and disabled property tax exemption income list. Its branch lacks this PR's invariant tests. Whichever of this PR and #10722 merges second drops the income list's NO_RAILROAD_INCOME entry and keeps the disability retirement receipt exception. RAILROAD_DOLLARS already maps #10722's filer-only Social Security-equivalent amount.

Reporting railroad benefit components

Report the gross annuity in railroad_benefits. Enter the amounts below separately when the gross input includes them. The program applies the deduction or exclusion to the reported component.

Input Amount Programs
railroad_benefits_overpayment_withheld Prior overpayment recoveries the Railroad Retirement Board withholds. Missouri Supplemental Nursing Care
railroad_disability_benefits Annuities the Railroad Retirement Board awards for disability. Illinois TANF and DC Child Care Subsidy Program
railroad_benefits_medicare_premium_withheld Medicare premiums the Railroad Retirement Board withholds. North Carolina Work First
railroad_benefits_retroactive_lump_sum Retroactive railroad annuities paid in a lump sum. North Dakota TANF and CCAP, and Wyoming POWER

For Wyoming POWER, report the cash from a retroactive payment in assets if the household still holds it.

Minnesota counts retirement benefits for CCAP and MFIP under Minn. Stat. 256P.06, subd. 3(2)(ix). PolicyEngine uses the reported railroad total. Georgia’s DECAL counts railroad disability and survivor annuities because the CAPS 8.4.2 exclusion concerns benefits from the Social Security Administration.

New Jersey LIHEAP’s handbook names Social Security in its Medicare Part B deduction and exclusion for children. PolicyEngine counts gross railroad benefits at every age. Two YAML cases cover the premium and age treatment.

PolicyEngine omits pension_income from the Illinois TANF source list. Issue #10784 tracks that omission.

How I read the rules

  • Hawaii. The state publishes its child care rule chapters, HAR 17-798.2 and 17-798.3, as scanned PDFs, so I read them through OCR.
  • Minnesota MFIP. The manual pages its list cites wouldn't load, so I based the row on Minn. Stat. 256P.06, which lists income inclusions for programs under chapter 142G, MFIP's chapter.
  • Washington ECEAP. DCYF instructs contractors to count regular annuity and retirement payments under its June 2021 performance standards. The April 2025 form also asks applicants to report retirement benefits. 2021–22 ECEAP Performance Standards April 2025 ECEAP application
  • Massachusetts CCFA. EEC includes retirement income in its May 2026 policies and excludes Social Security, including survivor and disability benefits. The policies leave the treatment of railroad disability and survivor annuities unresolved. May 2026 EEC income eligibility policies

Other audited lists and checks

  • Already count railroad benefits (17). GA, IA, ID, IN, KY, LA, MO, MT, NV, OH, PA, SD, TN, WA and WY LIHEAP, CT CEAP and CO LEAP read Social Security directly and count railroad benefits through their unearned income lists. Missouri and Pennsylvania also use railroad receipt when they calculate the Medicare Part B deduction.
  • Benefit-program status checks (13). AZ LIHEAP points, CA WDP disability, Contra Costa GA eligibility, DC CCSP need, HI LIHEAP points and IL HBWD disability test SSDI receipt. IN EAP, LA LIHEAP, MS WD disability, NM LIHEAP, PA LIHEAP supplement, VA EAP disability and WI SSP for HUD also test receipt. The gross railroad input lacks the payment basis needed for these checks.
  • Wisconsin WHEAP household size (1). Under WHEAP Manual 3.2.2.4, Wisconsin counts a non-citizen who receives FoodShare or “any form of monthly Social Security income”.
  • Narrower income lists (4). Minnesota CCAP’s RSDI list and South Carolina LIHEAP’s list for minors have narrower income categories. CalWORKs counts railroad benefits in other unearned income. California WDP’s disability-income exemption does not use the gross railroad input. California 250% Working Disabled Program counts Railroad Retirement disability annuities #10540 tracks California’s separate disability amounts.

Programs I couldn't resolve

I couldn't settle these 5 from the sources, or the sources wouldn't load, so I left them unchanged.

Program Why
Contra Costa County GA The cited page doesn't define countable income.
IN CCDF The manual lists countable income types, and none reaches pensions or railroad benefits.
MS Working Disabled Both cited PDFs failed to download.
NC SCCA The rule counts "Pensions and annuities paid directly by an employer or union or through an insurance company", which doesn't clearly reach Railroad Retirement Board payments.
Riverside County General Relief The list's reference notes that the county doesn't publish the program manual.

Invariants

policyengine_us/tests/test_state_benefit_railroad_income.py checks these properties.

  • R1. Tests 72 changed income totals and 17 already-counted totals for annual railroad inputs from $1 to $200,000. Twelve rows set wages above the relevant cash aid limits to isolate the railroad effect. Each test measures the income increase at the variable’s period with the program-specific exclusions unset.
  • R2. Compares the income effect of equal pension and railroad payments in 66 changed income totals whose lists count pensions.
  • R3. Scans literal Social Security names, including taxable_social_security, in state and county parameter lists and Python scopes outside the tax code. R3 accepts a mapped railroad name, an exception with a nonempty reason or the formula that R1 exercises at its sample period. It checks other formulas in those files and flags stale exceptions. Dynamic names and scalar parameters fall outside the scan.
  • R4. Checks directly mapped entries within government parameter lists and literal variable adds lists for overlapping railroad dollars. The test maps taxable Social Security-equivalent benefits for filers and dependents, tax-exempt Social Security-equivalent benefits, and the taxable and tax-exempt parts of the remaining annuity. It includes program-specific components and Count railroad benefits in state tax worksheets, income tests and limits as each state's law does #10722’s filer-only amount.
  • R5. Starts from federal lists that name Social Security without railroad benefits and federal variables that use those lists or name Social Security in their own code. It follows up to two more formula steps and checks the sources that state and county code outside the tax code reads. R5 resolves literal parameter aliases at the line that reads them and keeps each dated list block separate. Dynamic names, parameter lookups passed through function arguments and dependencies beyond two steps fall outside the scan.

R1 and R2 draw five examples per income total with Hypothesis. YAML cases cover the new eligibility outcomes and the program-specific railroad exclusions.

axiom: TheAxiomFoundation/rulespec-us#2142 queued

🤖 Generated with Claude Code

State benefit programs that list Social Security as income often leave out
Railroad Retirement Act benefits, whose tier 1 share replaces Social Security
for railroad workers. This adds `railroad_benefits` to 50 income lists and to
Missouri's Supplemental Nursing Care income variable, where the program's rule
names railroad retirement, counts pensions, annuities or retirement benefits,
or counts all income it doesn't exclude. Each program's own rule was read
against the sources the parameter cites.

Tests: a property test checks that railroad benefits raise each program's
income by the amount received, and a YAML case pins each program whose rule
names railroad retirement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Passing runs cost about a tenth of a second per example, so the extra
examples add little to CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis marked this pull request as ready for review November 9, 2026 11:46
An independent review found that the first sweep skipped any file that
mentioned railroad retirement, even in a comment, and hid child care lists
whose rules name those benefits. Sweep parsed values instead, add the
programs whose rules reach the benefits (HI, MA, MT, PA, UT and WY child
care and seven California county programs), and record the disability and
Medicare limits in the lists' comments.

Add R3, which fails on any state or county reader of Social Security that
neither counts railroad benefits nor explains why, and R4, which rejects a
repeated entry. Run R1 from the first dollar, over the programs that
already counted the benefits too, and extend R2 to every list with a
pension line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis MaxGhenis changed the title Count railroad retirement benefits as income in state benefit programs Count railroad retirement benefits as income in state and county benefit programs Nov 9, 2026
MaxGhenis and others added 4 commits November 9, 2026 14:47
Louisiana CCAP (LAC 28:CLXV.509.A.3.b), North Dakota CCAP (NDAC
75-02-01.3-08 disregards no recurring railroad benefit), Oregon ERDC (OAR
414-175-0035(52)), South Dakota CCA (subsidy manual, section 4) and
Washington ECEAP (DCYF 05-006, section 9) now count railroad_benefits, each
with a YAML case and an R1 row that fails without the entry.

The R3 check now reads each list, and each function or class body, on its
own, and counts the railroad total or any of its parts. R4 also fails when
a list holds railroad_benefits with one of its parts. R5 finds state and
local programs that read the federal TANF or SNAP lists, which leave out
railroad benefits (#10551).

Los Angeles County General Relief cites GR policy 44-101. Massachusetts
CCFA's list explains why railroad payments count as "Retirement income".
Utah's case drops a citation that governs the assistance unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Record Washington's new disability retirement test (#10330) as a yes-or-no
  signal, so R3 passes after the merge of main.
- R3 also scans each variable file's top level, so a module-level list of
  Social Security names no longer passes unseen.
- R4 checks variable adds lists as well as parameter lists, and fails on any
  railroad amount listed twice or with a part it holds.
- R5 follows federal lists through the variables that add or read them and
  up to two more formulas, which finds the school meals ratio and the Medicaid
  and ACA MAGI measures that state programs read. Its entries end when their
  source counts railroad benefits or no state code reads them.
- State SC LIHEAP's reason as the guide's wording, and fix the docstring's R1
  range.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The R1 and R5 docstrings and the FEDERAL_GAPS comments now match the PR
body: agencies and taxpayers act under each cited rule, R5's docstring says
why it stops at two formula steps, and the group descriptions list federal
benefits beside pensions, annuities and retirement benefits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 2 commits November 11, 2026 12:55
Both sides added a ninth Hawaii CCAP case. This keeps main's eight Hawaii
TANF cases as 9 to 16 and renumbers the railroad case to 17.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Hawaii CCAP counts Hawaii TANF since #10332, so its R1 and R2 rows set
wages above the aid limits, as the other eight rows with cash aid do.

R5 starts from one more kind of federal source: a variable whose own code
names a Social Security amount and no railroad amount, the check R3 runs on
state code. That finds is_medicare_eligible, which tests Social Security
disability for 24 months and leaves out the disabled railroad annuitants
42 U.S.C. 426(b)(2)(B) covers. FEDERAL_GAPS lists it and the seven premiums
and tests state code reads within two steps of it.

R5 reads a parameter path through names assigned in the same module or
function, and a list named in a string.

R4 maps each railroad amount to the dollars it holds and fails when two
entries of a list share any, so the tier 1 amount beside the taxable total
fails too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
MaxGhenis and others added 3 commits November 14, 2026 23:54
…s federal benefit test; follow federal lists in R5

40 TAC 809.44(c) counts income that subsection (b) doesn't exclude, and
(b)(17) excludes only regular payments from Social Security. COMAR
07.03.07.03(A)(2) asks for a federal benefit for age, blindness or
disability. WHEAP Manual 3.2.2.4 names Social Security alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…federal gaps

R4 now maps every railroad variable to the five kinds of railroad dollars it
holds, including the dependent's taxable tier 1 inside the tax-exempt amount
and #10722's filer amount, so no income list can count the same dollars twice.

After merging main, R5 follows federal parameter lists one step, and
FEDERAL_GAPS gains the gross income, AGI, ACA and CHIP sources that state
programs now reach. Missouri's and Pennsylvania's LIHEAP lists move to
ALREADY_COUNTED, Louisiana's LIHEAP key follows its rename, and the changelog
names Maryland PAA's federal benefit test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 3 commits November 15, 2026 14:20
R5 resolved names until no alias grew, so a name assigned from its own
attribute, such as `p = p.income`, grew a longer path on every pass and
never ended. R5 now takes at most one pass per assignment, which resolves
any chain of plain assignments. The docstring now says which assignments
R5 follows and that a name bound to two paths reads as both.

Case 20 of md_paa_eligible.yaml now sets meets_ssi_disability_criteria to
false, the input the aged, blind or disabled gate reads, and Case 21 pins
an eligible railroad disability annuitant who meets that test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pass cap still let a name assigned twice from its own attribute, such
as `p = ...gov; p = p.usda; p = p.snap`, double its paths on every pass,
so 19 assignments in one function would stall the test. R5 now reads each
scope's assignments once, in source order, which ends on any input and
gives the same paths as before on all 7,534 variable files. The docstring
adds the one form this misses: a path built in a loop from a name the loop
assigns further down.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R5 doesn't follow a name bound to a call or a conditional expression, and
reads a path that continues past a call only up to the call; the docstring
now says so. The comment above md_paa_eligible.yaml Case 21 now compares the
railroad gate with Social Security other than SSDI, which the formula gates
the same way, rather than with SSDI, which it doesn't gate.

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

Copy link
Copy Markdown
Contributor Author

I'm handing this PR to the US hub at 4f52f39.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
MaxGhenis and others added 14 commits November 27, 2026 23:33
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>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
…road income

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>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
…d list

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>

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.

1 participant