Skip to content

Count workers’ compensation and exclude small cash gifts and qualifying student wages in Maine TANF - #11580

Draft
MaxGhenis wants to merge 4 commits into
mainfrom
me-tanf-income-sources-and-student-wages
Draft

MaxGhenis wants to merge 4 commits into
mainfrom
me-tanf-income-sources-and-student-wages

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Agent-written for Max, by a Codex cloud task and Claude Code for Max Ghenis; no person has reviewed it yet.

What and why

Count regular workers’ compensation as gross and countable unearned income, after withholding for court-ordered support or alimony, Title IV-D support, or recoupment by the agency that issued the benefit. Treat a nonrecurring payment, such as retroactive compensation, as an asset in the month received, not as income. Exclude up to $150 in cash gifts per household over the three months ending in the month of receipt. Count only the excess. Exclude qualifying dependent students’ wages before the ordinary earnings disregard. TANF Rule 126A, PDF pp. 6–8 · TANF Rule 118A, PDF pp. 108–109

The gift cap covers the current month and the two preceding months across the whole household. Maine sets one cap per household. When several assistance units in a household receive gifts, the model splits the unused exclusion in proportion to each unit’s current gifts. That split is inferred. Enter gifts by month in me_tanf_cash_gifts. Annual financial_assistance covers gifts not reported by month. Include a nonrecurring compensation payment in annual workers_compensation, enter it again in me_tanf_workers_compensation_lump_sum for its receipt month, and leave it out of cash assets. Enter qualifying withholding in me_tanf_workers_compensation_withholding. Negative gift and compensation entries count as $0. Age, enrollment, and cash-asset balances use annual inputs.

Use the SPM unit as the assistance unit. Treat its oldest member as the caretaker when that person is a parent, and other members below the age limit as dependent children. Both are modeling choices. Use reported enrollment, so age alone does not make someone a full-time student. Full-time students qualify before age 18. At age 18 they must attend secondary school full time, and full-time college enrollment alone does not qualify. Part-time students under 18 qualify when their usual work is below 35 hours a week, using the BLS work-hours definition. The wage exclusion removes a qualifying student’s whole wage entry, so negative wages do not offset self-employment income. Self-employment income stays subject to the ordinary disregard. TANF Rule 118A, PDF pp. 55 and 100–101 · TANF Rule 118A, PDF pp. 86–88 · BLS Current Population Survey definitions

Rule 119 increased the gift exclusion effective December 10, 2022, but the 2022 rulemaking report gives no amount. The model applies a $150 cap from January 2023, the first full month after that date. That amount is inferred from Rule 118A, which states the $150 cap, and from the Rule 118A adoption notice’s list of Chapter III changes. Before January 2023, the model excludes no gifts. Rule 118A, effective June 4, 2024, documents the workers’ compensation and student provisions. July 2024 is the first modeled month for both. Rule 126A continues all three provisions effective November 30, 2025. 2022 rulemaking report, PDF p. 72 · Rule 118A adoption notice · Rule 126A adoption notice

PR #10764 adds railroad benefits to the shared unearned-income list and merges cleanly with this PR. Workers’ compensation uses a separate dated addition. PR #11104 updates the grant and need standards. The workers’ compensation, January cash gifts, and full-time student grant cases set the $769 need standard and $669 maximum as inputs. The rolling gift-cap case sets $786 and $686. This PR and PR #11104 can land in either order. PR #10639 also changes me_tanf_resources_eligible.py and me_tanf_resources_eligible.yaml, and the two PRs conflict in both files. TANF Rule 125A chart, PDF p. 2

Not done yet: a sourced gift threshold before December 2022, the legal start dates of the workers’ compensation and student provisions before Rule 118A, a RuleSpec encoding of these income rules, and a passing test_no_builtin_sum_over_entity_calls check, which flags the built-in sum() over variable calls in me_tanf_countable_workers_compensation.py.

Test plan

The grant is the lower of the maximum and the need standard less countable income. 22 M.R.S. § 3762(3)(B)(8)

January 2026 case Main Branch
Workers’ compensation Gross and countable $0, grant $669 Gross and countable $300, grant $469
January cash gifts Gross $350, countable $350, grant $419 Gross $350, countable $300, grant $469
Shared household gift cap with child support Countable $110 Countable $50
Full-time dependent secondary student Countable earnings $246, grant $523 Countable earnings $0, grant $669
Student boundaries Person earnings [496, 246, 246, 246, 246, 246, 246, 0] Person earnings [196, 246, 0, 246, 246, 246, 246, 0]
  • Source-derived YAML cases. All 99 cases across the 12 Maine TANF files passed on the branch and with main merged in.
  • Income cases. $100 monthly gifts starting in January 2026 count $0, $50, and $100 in January through March, and the January grant is $26. Two assistance units that used the $150 household cap in January and February each count $37.50 in March. A $3,600 retroactive compensation payment counts as $0 income and lifts January resources to $10,600, above the $10,000 limit. $125 of qualifying withholding leaves $175 of $300 in monthly compensation. Negative gift and compensation entries leave $300 of Social Security countable.
  • Student cases. A 17-year-old K–12 student with a separate tax unit is a child in the assistance unit and excludes all wages. A 17-year-old with no reported enrollment counts $246. A part-time student under 18 counts $0 at 34.99 weekly hours and $246 at 35. An 18-year-old enrolled full time in college and in secondary school, with no full-time student flag, counts $246. A qualifying student with $500 of monthly self-employment and −$100 of wages counts $196.
  • Source-conflict entry and marker. N/A. All 251 source-conflict checks passed.
  • make format, Ruff checks, and the input-variable definition tests.
  • Changelog fragment in changelog.d/.

axiom: needed

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits December 1, 2026 04:20
Count workers' compensation as unearned income and exclude small cash gifts and qualifying dependent student wages.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8999568) to head (acb54ef).
⚠️ Report is 414 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main    #11580    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            1        10     +9     
  Lines           24       164   +140     
  Branches         0         4     +4     
==========================================
+ Hits            24       164   +140     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

MaxGhenis and others added 2 commits December 1, 2026 16:21
Apply one rolling cash-gift limit per household. Treat retroactive workers’ compensation as an asset and count regular benefits after qualifying withholding. Exclude qualifying students’ wages based on their assistance-unit role and enrollment.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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