Skip to content

Fix Wisconsin Works applicant eligibility and cash placements - #11568

Draft
MaxGhenis wants to merge 4 commits into
mainfrom
wi-works-custodial-applicant-and-placements
Draft

MaxGhenis wants to merge 4 commits into
mainfrom
wi-works-custodial-applicant-and-placements

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

Require the same Wisconsin Works applicant to be an adult who passes the immigration test below and receives no SSI, reported state SSI supplement, or SSDI. That applicant must also have custody of a dependent child or qualify for an At Risk Pregnancy grant. Custody means living with a dependent child under Wisconsin's age limit: under 18, or under 19 in secondary school. Reported parent links identify custody, or is_parent when no links are reported. When no links are reported, is_parent is not supplied, and no custodial parent is found in the unit, use the tax-unit head or spouse who claims a co-resident dependent child. The immigration test defaults to citizenship or federal qualified-noncitizen status. Callers can supply wi_works_immigration_status_eligible for other categories Wisconsin accepts, such as U.S. nationals and lawfully residing noncitizens with work authorization. A supplied unit-level demographic flag gates eligibility and can stand in for missing family details in a one-person unit. See wi_works_eligible.py:34, _applicants.py:30, and _applicants.py:48.

Require the applicant to have custody of the infant, through a parent link or a claimed co-resident infant. From October 14, 1997, another adult in the W-2 group can block Custodial Parent of an Infant (CMC) payments. They block CMC if they work in unsubsidized employment, participate in a W-2 employment position, or are eligible for one. The model applies this bar from November 1997, the first month that starts after that date. The other adult is a resident spouse, including one in a separate SPM unit, or a co-parent who shares a dependent child. The model treats a qualified custodial adult as eligible for a position. The applicant's own work does not bar CMC. The monthly wi_works_in_unsubsidized_employment input defaults to positive usual weekly hours, and wi_works_in_employment_position records participation. See _applicants.py:89, wi_works_placement.py:39, and cmc_excludes_other_group_adult.yaml:5.

From January 1, 2010, pay At Risk Pregnancy (ARP) grants. The pregnant applicant must be an adult who passes the immigration and benefit-receipt checks above. They must also be unmarried, have no dependent child in their custody, and have a physician-verified at-risk pregnancy that prevents work. Marriage comes from marital-unit membership or a reported joint or separate filing status. Pregnancy month seven or later stands in for the W-2 Manual's 12 weeks before the due date. The monthly wi_works_verified_at_risk_pregnancy input records verification. It defaults to false, so the model pays no ARP grant unless a caller supplies it. A unit with a pregnant member and no qualified custodial applicant receives no cash placement unless it qualifies for ARP. See _applicants.py:64, wi_works_placement.py:51, and arp_available.yaml:5.

Base Community Service Job (CSJ) payments on the fewest weekly hours among qualified custodial applicants, so an SSI recipient's hours do not set the grant. In the 20-hour fixture, one-third of $653 rounds to $218. See wi_works_unsubsidized_hours.py:41 and wi_works_unsubsidized_hours.yaml:252.

PR #10639 changes the Wisconsin Works resource test and its YAML cases. The applicant and placement files are distinct. PRs #10764, #10116, and #9557 change Wisconsin Shares income, rates, and hours.

Test plan

February 2026 regression Main Branch
Undocumented custodial parent with a citizen child Eligible, $653 Ineligible, $0
Reported parent lives outside the household Eligible, $653 Ineligible, $0
Citizenship and SSI checks split across two parents Eligible, $653 Ineligible, $0
Infant and an employed co-parent CMC, 0 applicant hours, $673 CSJ, 0 applicant hours, $653
Married applicant in pregnancy month eight with no child ARP, $673 NONE, $0
Undocumented pregnant applicant with a citizen housemate ARP, $673 NONE, $0
  • The regression cases check both effective dates; infant custody; other adults across SPM units; ARP marriage, custody, and medical verification; applicant SSI, SSDI, and immigration status; and the hours of the qualified CSJ applicant. The unit-level demographic, verified ARP, and working single-parent CMC controls pass.
  • Two existing placement cases expect different results. Main expects CSJ for Case 14, a month-six pregnancy with no child, and ARP for Case 19, a full-time worker in pregnancy month eight with no medical verification. The branch expects NONE and $0 for both. The other ARP cases supply the verification input.
  • The statute, regulation, and agency manual support these rules. The source-conflict check passed.
  • All six affected Wisconsin Works YAML files, with 101 cases, and the 46 unsubsidized-hours Python tests passed. The YAML files also passed with main merged in.
  • make format passed.
  • Added a changelog.d/ fragment.

axiom: needed

🤖 Generated with Claude Code

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

Additional details and impacted files
@@            Coverage Diff             @@
##              main    #11568    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            1         9     +8     
  Lines           24       180   +156     
  Branches         0         9     +9     
==========================================
+ Hits            24       180   +156     
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:11
Require qualifying custodial applicants for infant and CSJ grants, check resident co-parents and spouses, and apply verified at-risk pregnancy eligibility from January 2010.

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