Repository navigation
Conversation
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 #11497 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 6 +5
Lines 24 104 +80
=========================================
+ Hits 24 104 +80
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:
|
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
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:15andwv_works_countable_earned_income.py:17use the person-level exemption inwv_works_earned_income_exempt.py:15.wv_works_eligible.py:30also applies the net income test to every unit: monthly countable income must not exceed the payment standard thatwv_works.py:18uses. 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, becausewv_works.py:22already pays $0 when countable income reaches the payment standard. The Income Maintenance Manual, pp. 122–123, applies the same net test. Manual, pp. 122–123W. 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:24treats 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 supplywv_works_is_dependent_childdirectly. Manual, pp. 32–35The 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:4takes monthly enrollment and falls back to the annualis_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 · DecisionTest plan
Each result shows monthly countable earnings, gross-income eligibility, overall eligibility, and the monthly grant.
wv_works_income_eligible.yaml:86andwv_works_countable_earned_income.yaml:111fail on main and pass on the branch.wv_works_earned_income_exempt.yamlcover 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).wv_works_eligible.yamlcover 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.test_source_conflicts.pypass 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.us-wv:works-minor-earnings-school-enrollmentand the official manual excerpt insource_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 formatand Ruff format and lint checks on the changed Python files pass.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 changeswv_works_income_eligible.py,wv_works_countable_earned_income.py,wv_works_eligible.yamlandwv_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