Repository navigation
Count workers’ compensation and exclude small cash gifts and qualifying student wages in Maine TANF - #11580
Draft
MaxGhenis wants to merge 4 commits into
Draft
Count workers’ compensation and exclude small cash gifts and qualifying student wages in Maine TANF#11580MaxGhenis wants to merge 4 commits into
MaxGhenis wants to merge 4 commits into
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. Annualfinancial_assistancecovers gifts not reported by month. Include a nonrecurring compensation payment in annualworkers_compensation, enter it again inme_tanf_workers_compensation_lump_sumfor its receipt month, and leave it out of cash assets. Enter qualifying withholding inme_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.pyandme_tanf_resources_eligible.yaml, and the two PRs conflict in both files. TANF Rule 125A chart, PDF p. 2Not 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_callscheck, which flags the built-insum()over variable calls inme_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)
[496, 246, 246, 246, 246, 246, 246, 0][196, 246, 0, 246, 246, 246, 246, 0]make format, Ruff checks, and the input-variable definition tests.changelog.d/.axiom: needed
🤖 Generated with Claude Code