Skip to content

Exclude qualifying minors’ earnings and enforce the West Virginia WORKS net income limit - #11497

Draft
MaxGhenis wants to merge 4 commits into
mainfrom
wv-works-student-earnings-exclusion
Draft

MaxGhenis wants to merge 4 commits into
mainfrom
wv-works-student-earnings-exclusion

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

West Virginia WORKS excludes qualifying minors’ earnings from the gross income test and from earnings before the 40% disregard and dependent care deduction. wv_works_income_eligible.py:15 and wv_works_countable_earned_income.py:17 use the person-level exemption in wv_works_earned_income_exempt.py:15. wv_works_eligible.py:30 also applies the net income test to every unit: monthly countable income must not exceed the payment standard that wv_works.py:18 uses. A unit that passes the gross test because of excluded earnings is ineligible when its net income exceeds the payment standard. The net test changes eligibility, not grant amounts, because wv_works.py:22 already pays $0 when countable income reaches the payment standard. The Income Maintenance Manual, pp. 122–123, applies the same net test. Manual, pp. 122–123

W. Va. Code § 9-9-3(j)(2) excludes minor children’s earnings. The 1999 amendment removed the school condition from the 1997 law, and the 2007 reenactment retained the exclusion. The FFY 2024 TANF State Plan, p. 6, confirms the exclusion for minor dependents. The formula uses age 18 as the West Virginia cutoff. WV WORKS Act · Legal capacity · 1997 law, p. 4 · 1999 amendment, p. 3 · 2007 reenactment · State plan, pp. 6 and 11

The Income Maintenance Manual, pp. 32–35 and 44, defines a dependent child as under 18 and unemancipated, and requires a specified relative. wv_works_is_dependent_child.py:24 treats a minor as a dependent child when a co-resident parent belongs to the same SPM unit, whether or not the minor files a separate tax return. Without parent links, it treats a minor as dependent when the unit includes an adult, or when the minor is not a parent and the unit includes a parent. A 17-year-old parent living with only their infant therefore counts their own earnings unless enrolled in school. The SPM unit approximates the assistance group, so this inference is a modeling choice. Users who know the assistance group can supply wv_works_is_dependent_child directly. Manual, pp. 32–35

The Income Maintenance Manual, § 4.5.2.A, p. 119, also excludes earnings of parents under 18 enrolled in secondary school or an equivalent program. wv_works_in_secondary_school.py:4 takes monthly enrollment and falls back to the annual is_in_secondary_school, which defaults to false. Appendix A, p. 239, gives a $786 gross limit and $480 payment standard for two people. Decision 26-BOR-1101, pp. 3–4, confirms those amounts and the calculation steps for January 2026, and p. 8 says net income “could not exceed” the payment standard. Manual · Appendix A · Decision

Test plan

Each result shows monthly countable earnings, gross-income eligibility, overall eligibility, and the monthly grant.

January 2026 case Main Branch
Dependent student, age 17, earning $800/month $480, false, false, $0 $0, true, true, $480
Same student with a parent earning $400/month $720, false, false, $0 $240, true, true, $240
Dependent out of school, age 17, earning $800/month $480, false, false, $0 $0, true, true, $480
Parent enrolled part time, age 17, earning $400/month $240, true, true, $240 $0, true, true, $480
Control with a 19-year-old student heading a unit and earning $400/month $240, true, true, $240 $240, true, true, $240
Control with a dependent student, age 18, earning $800/month $480, false, false, $0 $480, false, false, $0
  • Four source-derived YAML cases in wv_works_income_eligible.yaml:86 and wv_works_countable_earned_income.yaml:111 fail on main and pass on the branch.
  • New cases in wv_works_earned_income_exempt.yaml cover a dependent child who files a separate tax return (line 1), a 17-year-old parent living with only their infant, with inferred and explicit tax roles (lines 22 and 42), enrollment that starts in September (line 60), two exempt earners at the $991 gross limit with a care deduction (line 85), and an exempt minor’s business loss, which cannot offset adult wages (line 106).
  • New cases in wv_works_eligible.yaml cover net income above the payment standard (line 72), net income equal to it with a $0 grant (line 93), and January 2017, where the model backdates the earliest payment standard of $301 (line 107). The $301 amount is not checked against a 2017 source.
  • All 73 YAML cases across nine WV DHHR test files and all 251 tests in test_source_conflicts.py pass on the branch, and the YAML cases also pass after a merge with main. Reverting the gross or countable formula fails its two targeted cases. Reverting the separate-filer, inferred-role, enrollment or net-income logic fails at least one of the new cases for that logic.
  • The source-conflict candidate us-wv:works-minor-earnings-school-enrollment and the official manual excerpt in source_conflicts/sources/us-wv/ document the enrollment difference. The candidate links PR Exclude qualifying minors’ earnings and enforce the West Virginia WORKS net income limit #11497 and lists the dependency and enrollment variables.
  • make format and Ruff format and lint checks on the changed Python files pass.
  • The changelog fragment in changelog.d/ covers the earnings exclusion and the net income limit.

PR #10639 changes resource rounding in WV WORKS. PRs #10670, #10673, #10696, #10722, and #10927 share the source-conflict candidate file for unrelated rules. These six PRs do not touch the earnings, dependency, enrollment or net-income formulas or their YAML tests. PR #11552 adds the same net income limit to wv_works_eligible.py. It also adds its own dependent-child test and its own exclusion of earnings of minors enrolled in secondary school. Like this PR, it changes wv_works_income_eligible.py, wv_works_countable_earned_income.py, wv_works_eligible.yaml and wv_works_income_eligible.yaml. Whichever of the two PRs merges second must reconcile both the rules and the files.

Not done yet: rulespec-us has no WV WORKS module or companion test for these rules. As on main, one nonexempt member’s business loss offsets another member’s wages. The manual lists a net loss as a nondeductible business expense. This PR leaves that aggregation unchanged.

axiom: needed

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits December 1, 2026 02:35
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 (6048ce9).
⚠️ Report is 414 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #11497   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         6    +5     
  Lines           24       104   +80     
=========================================
+ Hits            24       104   +80     
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 15:04
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis MaxGhenis changed the title Exclude qualifying minors’ earnings from West Virginia WORKS Exclude qualifying minors’ earnings and enforce the West Virginia WORKS net income limit Dec 1, 2026

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