Repository navigation
Conversation
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>
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>
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>
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>
…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>
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>
|
I'm handing this PR to the US hub at 4f52f39.
|
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
policyengine_us/parameters/gov/states/il/dhs/tanf/income/sources/unearned.yaml uses the railroad disability disregard and retains the other sources and IDHS references. policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/unearned/il_tanf_gross_unearned_income.yaml retains Cases 1 to 6 and appends the railroad disability cases. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com> Plain text
Keep per-capita uprating for direct railroad totals, and deduct projected DC railroad disability once. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10764
Reviewed head SHA: 721d366
Merge base SHA: 094934a
Mode: full
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10764-review-sources.json
Review status: PARTIAL
Source Documents
- il_112_110_lii.html — cached original.
- il_112_110_jcar.html — cached original.
- ca_10eas.pdf — cached original.
- co_ccap_2023.pdf — cached original.
- co_ccap_2026.pdf — cached original.
- dc_ccsp_manual.pdf — cached original.
- md_comar_070307_03.html — cached original.
- md_comar_070307_04.html — cached original.
- md_comar_070307_02.html — cached original.
- mo_snc_0610005.html — cached original.
- nd_tanf_20_15.html — cached original.
- nd_tanf_25.html — cached original.
- nd_ccap.pdf — cached original.
- wi_shares.pdf — cached original.
- nc_wf114.pdf — cached original.
- wa_eceap.pdf — cached original.
- usc45_231a.html — cached original.
- ct_17b_749_05_lii.html — cached original.
- ok_340_40_7_11_lii.html — cached original.
- mn_256p06.html — cached original.
- ut_r986_200_235_lii.html — cached original.
- pa_3042_appa.html — cached original.
- md_13a140602_lii.html — cached original.
- va_8vac20_790_40.html — cached original.
- ma_106cmr704_lii.html — cached original.
- fl_6m4200_lii.html — cached original.
- la_28_clxv_509_lii.html — cached original.
- wa_wac_110_15_0070.html — cached original.
- wa_wac_110_15_0060.html — cached original.
- de_11003_lii.html — cached original.
- ky_922kar2160.pdf — cached original.
- wy_power_manual.html — cached original.
- tx_809_44_lii.html — cached original.
- or_414_175_0030_lii.html — cached original.
- il_register_45_29.pdf — cached original.
- il_112_100_jcar.html — cached original.
- il_113_100_lii.html — cached original.
- co_works_lii.html — cached original.
- nh_hec6910_lii.html — cached original.
- hi_17_798_3.pdf — cached original.
- mi_bem503.pdf — cached original.
- me_10_148_ch6.html — cached original.
- md_13a140602_cornell.html — cached original.
- pa_3042_appa_lii.html — cached original.
- wy_cc_rules.pdf — cached original.
- axiom_2142_body.md — cached original.
Critical
C1 — Maine CCAP counts retroactive and other railroad lump sums that its rule names as excluded (OPEN)
- Severity: The trigger needs a reported railroad lump sum, but for an affected household the counted income is wrong.
- Location: policyengine_us/parameters/gov/states/me/dhhs/ccap/income/countable_income/sources.yaml:12 adds gross
railroad_benefits. - Trigger: A Maine household with a retroactive railroad award. Following the PR body's input contract, the award appears both in
railroad_benefitsand inrailroad_benefits_retroactive_lump_sum. - Expected: 10-148 C.M.R. ch. 6 §2.C.5(o) excludes "Nonrecurring lump sum payments such as income tax refunds; and the portion of retroactive, lump-sum Social Security Administration, Supplemental Security Income, railroad retirement or insurance settlements intended to cover a period prior to the current eligibility period". Source: LII text, me_10_148_ch6.txt. The PR's own rule table quotes this same rule for ME CCAP. The PR already applies
railroad_benefits_excluding_retroactive_lump_sumto 10 lists, including ND CCAP, whose rule is a generic nonrecurring lump-sum exclusion. - Observed, executed in pr-10764-policy-diag/me_ccap_retro.log: ME, 2026, parent age 35 and child age 3,
railroad_benefits= 24,000.- With no lump-sum input:
me_ccap_countable_income= 2,000 a month. - With
railroad_benefits_retroactive_lump_sum= 12,000: still 2,000 a month. The exclusion variable falls to 12,000, which would give 1,000 a month.
- With no lump-sum input:
- Impact: Countable income is overstated by the award ÷ 12 each month, which can cost CCAP eligibility or raise the copay. Before this PR the list counted no railroad income, so the diff introduces the overcount of the award.
- Fix: Use
railroad_benefits_excluding_retroactive_lump_sumin this list. The PR body's "51 gross lists … #11287" deferral doesn't fit a rule that names railroad retroactive lump sums explicitly. The coordinator may weigh that documented deferral when reconciling severity.
Coordinator assessment: Executed: a 2026 case with $24,000 of railroad benefits, $12,000 of it a retroactive lump sum, counts $2,000 a month instead of $1,000. The PR defers lump-sum rules for the plain lists to #11287, but this rule (10-148 C.M.R. ch. 6 §2.C.5(o)) names railroad lump sums, and the PR already has railroad_benefits_excluding_retroactive_lump_sum.
C2 — Illinois TANF disregard applies to every head or spouse, but IDHS limits it to a parent's own disability payment (OPEN)
- Severity: This is a code trace, not an executed run: the formula has no parent condition.
- Location: policyengine_us/variables/gov/states/il/dhs/tanf/income/unearned/il_tanf_countable_railroad_benefits.py, formula. It disregards
min(railroad_disability_benefits, railroad_benefits, SSI individual)for any person. - Trigger: An Illinois TANF unit headed by a non-parent caretaker relative who receives a railroad disability annuity, for example a grandparent filing as head of household with a grandchild.
il_tanf_countable_unearned_incomecounts head and spouse income, so this person's railroad income reaches the test. - Expected:
- 89 Ill. Adm. Code 112.110(aa) is silent on who qualifies: "Payments based on disability status are disregarded in an amount up to the [SSI] payment level for one person with no income … Railroad Retirement Disability …". Verified at JCAR and at register vol. 45 issue 29, PDF page 419.
- IDHS PM 08-01-07-c, which the list cites and Pavel asked to keep, is explicit: "a disregard is allowed on certain disability payments received by a parent. The disregard applies when the disability payment is based specifically on that parent's disability … This disregard only applies to a parent of a child included in the TANF unit … If there are 2 parents receiving disability income, each parent receives the exemption." Source: il_pm_08_01_07_c.txt.
- The list's own NOTE also says "a parent's".
- Observed: The disregard is granted regardless of parent status. In 2026 a non-parent's countable income falls by up to $994 a month, so the grant is too high and the household may wrongly pass the eligibility test.
- Fix: Gate the disregard on the person being a parent of a child in the unit, for example with
is_parentor the co-resident parent links already used in NH, TX and WA. - Answer to the coordinator's Q1: The manual makes the disregard parent-only. The regulation doesn't contradict that, so the formula over-disregards for non-parents. Children's railroad income isn't counted in this model at all, so the defect reaches only non-parent heads and spouses.
Coordinator assessment: The coordinator executed it at the reviewed head. A grandparent (head, 62, is_parent false) caring for a grandchild of 8, with an $18,000-a-year railroad disability annuity, gets countable railroad income of $506 a month in January 2026 instead of $1,500, and an il_tanf grant of $110 where counting the full annuity gives none. Log: pr-10764-coord-diag/il_nonparent.log.
Should Address
A1 — The queued Axiom issue doesn't cover the PR's program-specific provisions, so it isn't dispatch-ready for them (OPEN)
- Severity: This fails an explicit repository requirement: CLAUDE.md, "Axiom Parity (required for policy changes)".
- Location: The PR body line
axiom: TheAxiomFoundation/rulespec-us#2142 queued. - Trigger and expected: CLAUDE.md says the PR "must also leave the same provision correct in rulespec-us". A queued issue "must be dispatch-ready and labelled
pe-parity. It needs the module path and corpus citation, the verbatim law, the required outputs, and companion tests." - Observed: Issue #2142 is OPEN and labelled
pe-parity, and its blocker is recorded: no approved billed run. Created 2026-11-09, last updated 2026-11-15. Its blocks encode only whether gross railroad income counts, and they have these gaps:- Illinois TANF is encoded from 112.100 alone. Its companion test is a non-disability annuity of 12,000 giving 1,000 a month. Nothing covers 112.110(aa) or PM 08-01-07-c.
- The issue body has no mention of overpayment withholding (MO), the Medicare premium (NC Work First), grandparents (NH), death benefits (WY child care) or receipt-month budgeting (CO, WI).
- Lump-sum exclusions are covered only as ND CCAP text.
- The issue itself says "Corpus rows not checked … Confirm each row exists in the pinned release before dispatch."
- Impact: A dispatched encoder would leave the PR's deductions and disregards unencoded. That is 9 program-specific provisions, 10 lump-sum exclusions, the MO formula and the IL disregard, so rulespec-us would not match the model.
- Fix: Update #2142 with blocks, verbatim text and companion tests for each program-specific provision, and check the corpus rows. Alternatively, file a separate queued issue. No code change is needed.
A2 — The railroad projection tool depends on private Core functions and copies Core's uprating choice (OPEN)
Severity: SHOULD ADDRESS (maintainability)
- Location.
policyengine_us/tools/railroad_benefits.py:3-6imports_latest_input_keyand_uprating_index_valuefrompolicyengine_core.simulations.simulationat module import._source_period(lines 12-25) and lines 74-79 re-create Core's choice between uprating and carryover from those helpers andHolder.get_input_periods. Variable modules import this tool when the system loads. - Trigger.
pyproject.tomlrequirespolicyengine-core>=3.37.2with no upper bound. A Core release that renames either private helper would makeimport policyengine_usfail for every user, not just railroad households. A change in how Core picks the uprating source would makerailroad_benefits_excluding_retroactive_lump_sumand DC's recurring share drift away fromrailroad_benefits' own uprated value with no error. - Evidence. At Core 3.37.2 the two values agree (diagnostic case A: $13,308.39 for both). The existing precedent,
tools/social_security_inputs.py:713, imports Core internals lazily inside a function, not at module level. - Remedy. Import lazily or add a fallback, and add a direct assertion that the projected recurring amount equals
railroad_benefitswhen no lump sums are reported. Only the YAML cases cover this path today.
A3 — The linked parent-id branches for NH and WA have no tests (OPEN)
Severity: SHOULD ADDRESS (missing coverage of changed branches)
- NH. In
policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_countable_railroad_benefits.py, the linked parent-id loop that finds grandparents (line 22) and thefiler_grandparent & filer_parent_presentpath (line 32) have no YAML case. The only NH case (nh_ccap_countable_income.yaml, "New Hampshire scholarship three generations") uses the unlinkedis_parent_of_filer_or_spouseroute. - WA. In
policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_countable_railroad_benefits.py:28, the linkedhas_childroute is untested. The WA case "Washington ECEAP child survivor payment" has no parent ids, so it only exercises the inferred-caregiver route (line 41). - Effect. R1 and R2 use single-adult households, so they can't detect breakage here. Deleting or inverting these branches would pass CI.
- Current behavior. My diagnostics show the branches behave as intended today (NH linked three generations: $0; WA linked grandparent: $0, parent: $12,000). This is a coverage gap, not a defect.
- Remedy. Add one linked-id case for each program, plus an NH case where the filer's grandparent and the filer's parent are both present.
Suggestions
S1 — The Illinois TANF list comment contradicts its own NOTE (OPEN)
Severity: SUGGESTION
In policyengine_us/parameters/gov/states/il/dhs/tanf/income/sources/unearned.yaml:5-8, the comment says "The exemptions in 112.110 don't include pensions, annuities, veterans benefits, Railroad Retirement…". The NOTE at lines 12-15 then says that 112.110(aa) disregards railroad disability payments up to the SSI level. Qualify the first sentence, for example "other than the 112.110(aa) disability disregard", so the comment matches the new il_tanf_countable_railroad_benefits entry.
S2 — R3 and R5 are repo-wide allowlist checks that tie merge order to #10696 and #10722 (OPEN)
Severity: SUGGESTION
In policyengine_us/tests/test_state_benefit_railroad_income.py, the five checks test different kinds of facts.
R1 and R2 are functional model runs.
- They would fail if any list lost its railroad entry, so they do test something real.
- Their expected values restate the PR's premise: count railroad dollars one-for-one, the same as a pension. They don't derive amounts from sources.
R3, R4 and R5 are static scans of the code and parameter files.
- R4 (
counts_railroad_twice) is a useful guard against double counting. - R3 (
NO_RAILROAD_INCOME) and R5 (FEDERAL_GAPS, about lines 667-729) are allowlists that will fail unrelated future PRs. R3 fails any PR that adds a Social Security reader without a railroad entry or an exception. R5 fails any PR where a state program starts reading a new federal source. - R5 also fails on stale entries, so whichever of this PR and #10696 merges second must edit
FEDERAL_GAPS.
The stale-entry count differs between sources.
- Max's 11-15 trial merge named eight stale entries:
irs_gross_income,adjusted_gross_income,adjusted_gross_income_person,charitable_contributions_ald,tax_unit_is_filer,medicaid_magi,medicaid_income_levelandtax_unit_medicaid_income_level. - The PR body says 13 entries go stale at #10696's current head, including
aca_magi. - The test also names #10696/#10722 variables that don't exist yet (
TIER_1_*,REST_*inRAILROAD_DOLLARS).
Nothing fails at this head. Both #10696 and #10722 were still OPEN on 2026-12-01, and R5 passes.
Suggested remedy. State the R3/R5 maintenance contract in the test docstring, or move them to a non-blocking audit. Record the exact stale FEDERAL_GAPS list against #10696's head before whichever PR merges second.
S3 — Reference pages and source notes (OPEN)
- Severity: SUGGESTION.
- dc_ccsp_nonrecurrent_railroad_benefits.py:19 cites DC manual #page=13. The "Non-recurrent or inconsistent … income that is not part of the family's base income" bullet is on physical page 14; page 13 has the disability exemption.
- nc_tanf_countable_railroad_benefits.py:11 cites WF-114 #page=2. The "Net Unearned Income: Amount of unearned income actually received" definition is on physical page 1. The Social Security Medicare add-back is on page 18, and the railroad row is on page 15.
- railroad_disability_benefits.py:15 cites only the Illinois register page. DC CCSP reads this input too, so add the DC manual, page 13.
- The comment conflict in IL unearned.yaml is already code-4 and is not repeated here.
S4 — New YAML case names break the Case N, description. convention (OPEN)
Severity: SUGGESTION
59 of the 102 added case names aren't numbered.
- Illinois TANF: the two cases after Case 6 ("Illinois disregards a railroad disability annuity below the SSI payment level.") should be Case 7 and Case 8.
- Colorado CCAP: "Colorado CCAP receipt or average"
- New Hampshire: "New Hampshire scholarship three generations"
- Wisconsin Shares: "Wisconsin Shares receipt month"
- The CalWORKs, DC, TX and MO cases follow the same pattern.
Evidence Gaps
- The shared lump-sum exclusion was not source-checked for DC TANF (D.C. Code 4-205.05), Idaho ICCP (IDAPA 16.06.12), Kansas LIEAP (KEESM 13361), Michigan CDC (BEM 500) and Montana TANF (TANF 501-1). Given the Maine result, each rule should be checked for whether it excludes retroactive and nonretroactive lump sums as the shared exclusion does.
- Not source-checked: the exceptions left unchanged (IN CCDF, NC SCCA, MS Working Disabled, Contra Costa GA, Riverside GR); the rule quotations for Alameda GA, MT Best Beginnings, NC LIEAP, SC CCAP and ME TANF; and about 40 of the plain gross entries. Pages not confirmed: the TX TWC PDF anchor, the Wyoming child care Appendix B row, the HI HAR 17-798.3 scan, and several LII pages that returned navigation only.
Notes
- Illinois TANF follows Pavel's 11-30 resolution after #11186:
railroad_benefitsis replaced byil_tanf_countable_railroad_benefitsrather than kept alongside it, main's other income lines and the IDHS PM references are kept, the NOTE is updated, and main's Cases 1–6 come first. All 136 Illinois TANF cases pass. - Each of the 74 dated list blocks names exactly one railroad entry, every entry is an existing variable, and no list or program formula counts the same railroad dollars twice (
social_security,pension_incomeandmarket_incomeexclude railroad benefits). Households without railroad benefits see no change. The other program-specific rules match their sources: CalWORKs, DC CCSP, Maryland PAA, Missouri SNC, North Dakota, Oregon, Wyoming, Texas, Washington ECEAP, Wisconsin, New Hampshire and North Carolina Work First. Eleven quotations from the "name railroad" table, nine plain entries and the sampled exceptions hold up. - Colorado CCAP: the rule is one choice per lump sum at a determination (receipt month or a 12-month average, whichever helps more). Evaluating each month as a determination month gives the same result, so the month-by-month minimum is not a finding.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2; imports resolved to the snapshot): 646 YAML cases across 99 files, including all 136 Illinois TANF cases, and 362 pytest cases (the invariants file and test_uprating_extensions.py) passed with 0 failures in one bounded run. Diagnostics: the Maine CCAP lump-sum case (policy role), the NH and WA parent-id branches (code role), and the Illinois non-parent case (coordinator). Sources: 46 retrieved, manifest check passed. CI: 36/36 checks pass at 721d366.
Timing
setup seconds: 5.00s; scope seconds: 60.00s; parallel review seconds: 624.50s; policy role seconds: 624.50s; code role seconds: 445.70s; adjudication seconds: 300.00s; consolidation cleanup seconds: 115.60s; elapsed seconds: 974.00s
Review Severity
REQUEST_CHANGES. Open findings: 2 critical, 3 should address, 4 suggestions.
PolicyEngine counts Railroad Retirement Act benefits in 72 changed state and county benefit income totals and recognizes qualifying Maryland Public Assistance to Adults railroad annuities in the month of receipt. The changes address part of #10551.
The audit covers 114 items: the 72 changed income totals, 18 totals that already count railroad benefits, 23 benefit-program exceptions and Maryland’s federal benefit test. The R3 invariant below also covers the two Washington property-tax exceptions.
Changes
PolicyEngine adds a railroad amount to 70 state and county income lists, across 74 dated blocks, and updates Missouri’s Supplemental Nursing Care income formula. Wyoming’s two child care readers share one list, so the lists and Missouri’s formula reach 72 income totals. The lists use 51 gross entries, 10 entries with the shared lump-sum exclusion and nine program-specific entries.
Rules that name railroad retirement
Rules that list pensions, annuities, retirement benefits or federal benefits
Rules that define income as everything outside their exclusions
Maryland PAA’s federal benefit test
Maryland requires a federal benefit for age, blindness or disability under COMAR 07.03.07.03(A)(2). Supply the gross annuity in
railroad_benefitsand setmd_paa_receives_qualifying_railroad_annuityin each month the benefit is paid for age, blindness or disability. The railroad pathway qualifies on that receipt without a separate SSI categorical test. A survivor annuity paid solely because the recipient cares for the employee’s child does not qualify.The YAML cases include an age-60 railroad retiree with 30 years of service, who qualifies, and a child-in-care-only survivor, who fails, including in the month after a qualifying payment. Maryland PAA eligibility Railroad annuity eligibility
Programs that inherit the change
ma_tcap_gross_unearned_incomein its EAEDC net income calculation.il_isbe_countable_incomefor Prevention Initiative and Preschool for All Expansion.Federal sources that state programs read
The R5 invariant below 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_gross_unearned_income.medicaid_income_levelthroughmedicaid_income_eligible. For ACA MAGI, taxpayers add the untaxed Social Security-equivalent share of tier 1 to AGI. 26 U.S.C. §36Bis_medicare_eligible.medicare_part_b_premium. Energy aid in eight states readsmedicare_part_a_premium. Illinois SMIB readsbase_part_b_premium.medicare_enrolled, which also appears in the disqualifying coverage list Rhode Island CHIP uses. California CCHIP reads the CHIP coverage test and Medicaid eligibility. Colorado CHP+ reads Medicaid eligibility, and Mississippi’s waiver readsis_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. Issue #10551 still covers the federal school-meals, TANF and SNAP lists. #10696 covers railroad benefits in gross income, AGI and MAGI additions. #10804 covers Medicare eligibility, and #9330 covers SNAP disability.
Merge order with #10696 and #10722
#10696 builds
railroad_benefitsfrom the Social Security-equivalent amount and the taxable and tax-exempt shares of the rest. Users can still enter the total directly. This PR’s projection handles both direct and split inputs and keeps the per-capita index for historical direct totals. Whichever of this PR and #10696 merges second removes the R5 entries the combined test identifies; at #10696’s current head, 13 entries, includingaca_magiandadjusted_gross_income, become stale.#10722 adds the tax-exempt railroad amounts to Washington's senior and disabled property tax exemption income list. Whichever of this PR and #10722 merges second drops the income list's
NO_RAILROAD_INCOMEentry and keeps the disability retirement receipt exception.RAILROAD_DOLLARSalready maps #10722's filer-only Social Security-equivalent amount.Reporting railroad benefit components
Report the gross annuity in
railroad_benefits, and report an annual award both in gross and in the appropriate annual lump-sum component. Enter the amounts below separately when the gross input includes them. PolicyEngine applies each listed program’s deduction or exclusion to the reported component.railroad_benefits_overpayment_withheldrailroad_disability_benefitsrailroad_benefits_medicare_premium_withheldrailroad_benefits_retroactive_lump_sumrailroad_benefits_nonretroactive_lump_sumdc_ccsp_nonrecurrent_railroad_benefitsrailroad_disability_benefits.railroad_benefits_lump_sum_receivedwy_ccap_railroad_death_benefits_used_for_expensesThe retroactive and nonretroactive lump-sum inputs hold separate dollars, and PolicyEngine counts each one-time input only in the year entered. DC reads its own nonrecurrent input instead of the retroactive one, because a retroactive disability award can sit in both the disability and retroactive inputs. DC’s projection removes historical disability without deducting continuing disability twice.
For California CalWORKs and Wyoming POWER, include retained proceeds from retroactive awards and other lump sums in an asset input that
spm_unit_cash_assetsadds, such asbank_account_assets. Both programs’ resource tests read that annual total.Minnesota counts retirement benefits for CCAP and MFIP under Minn. Stat. 256P.06, subd. 3(2)(ix). PolicyEngine uses the reported railroad total. It also counts railroad disability and survivor annuities in Georgia CAPS, since CAPS 8.4.2 excludes disability and survivor 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.
Illinois TANF counts
pension_incomefollowing #11186.Limits on one-time payments and household income
PolicyEngine spreads each annual amount evenly across months for monthly income totals. Only Colorado and Wisconsin read the month a railroad lump sum arrives, through
railroad_benefits_lump_sum_received. Otherwise the lists give railroad payments the same timing and household-member treatment as their other income sources.The other 51 lists add gross railroad benefits. Model one-time income and payment dates across benefit programs covers those lists’ lump-sum and timing rules, North Carolina’s annual eligibility and resource timing, and the Social Security and VA recovery rules in Missouri. Apply child care and preschool income rules to each household member covers the Texas, Washington and New Hampshire member rules for income sources other than railroad benefits.
Sources
Other audited lists and checks
railroad_disability_benefitsinput.Programs left unchanged
PolicyEngine keeps the existing treatment for five programs whose sources don’t settle the railroad question or failed to load.
Invariants
policyengine_us/tests/test_state_benefit_railroad_income.pychecks railroad income and federal reader coverage.taxable_social_security, in state and county parameter lists and individual module, class and function scopes outside the tax code. Each scope or list that names one must also name a railroad income amount, unless its file has a documented exception. R3 records exceptions by file. A withholding input or another subtracted component alone doesn't count as railroad income. R3 exempts the formula R1 exercises at its sample period, checks the file’s other formulas and flags stale exceptions. Dynamic names and scalar parameters fall outside the scan.addslists for overlapping railroad dollars. It accepts the retroactive lump sum, the nonretroactive lump sum and the amount that excludes both together, and rejects gross benefits with any of them. The map also covers taxable and tax-exempt components, including Count railroad benefits in state tax worksheets, income tests and limits as each state's law does #10722’s filer-only amount.R1 and R2 draw five examples per income total with Hypothesis. YAML cases cover the new eligibility outcomes and program-specific railroad exclusions.
Tests
At 978e5bb, on PolicyEngine Core 3.37.2, the in-scope tests pass 1,074 tests across 79 files, including 186 invariant tests in
test_state_benefit_railroad_income.py. The Illinois TANF YAML files pass 136 cases. Each of 17 mutations makes its intended regression test fail.axiom: TheAxiomFoundation/rulespec-us#2142 queued
🤖 Generated with Claude Code