Add Marin County, CA General Relief program#8583
Draft
hua7450 wants to merge 4 commits into
Draft
Conversation
Scaffolds the branch for implementing Marin County, CA General Relief (General Assistance) under California Welfare and Institutions Code 17000. Closes PolicyEngine#8582 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Post-2025-07-01 version: flat two-tier grant ($387 single / $636 couple) minus net countable income, with liquid-asset, personal-property, age, immigration, and SSI-ineligibility eligibility tests. Local program under gov/local/ca/marin/general_relief, un-wired (matches LA/Riverside). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8583 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 4 15 +11
Lines 67 188 +121
Branches 1 0 -1
==========================================
+ Hits 67 188 +121
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Add non-Marin $0 end-to-end test (exercises defined_for=in_marin), plus couple over-asset and personal-property-fail integration cases. - Document couple-grant assumption (max_grant) and net-income applicant/ recipient simplification (income_eligible). No logic changes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Implements California Marin County General Relief (GR) in PolicyEngine — a county-funded and county-administered cash-aid (loan) program of last resort, mandated statewide by CA Welfare & Institutions Code §17000 et seq. and operated by the Marin County Department of Health & Human Services under Board-approved Program Policies and Standards.
This models the post-July-1-2025 version of the program. The July 1, 2025 reform raised liquid-asset limits and eliminated Income-in-Kind reductions and work-requirement sanctions; all parameters are effective
2025-07-01(single era).The program is implemented as a local program at
gov/local/ca/marin/general_reliefand is intentionally left un-wired into household-level benefit aggregators, matching the existing LA County and Riverside County General Relief implementations (both of which exist as standalone SPMUnit variables and are not wired into any household aggregator).Closes #8582
Regulatory Authority
Program Overview
Eligibility Tests
in_marin=county_str == "MARIN_COUNTY_CA"; all GR variables chaindefined_for = "in_marin"age_head >= 18(parametereligibility/age_threshold.yaml). Married/emancipated-under-18 exception not modeled (rare).immigration_statusin a qualified-status list parameter; unit eligible if ≥ 1 applicant qualifies. PRUCOL approximated (see Not Modeled).spm_unit_cash_assets <= where(married, $800, $400)add(spm_unit, period, ["personal_property"]) <= where(married, $1,200, $600)<=monthly max grant. The brochure phrases the limit as "not higher than," so the at-or-below boundary is inclusive (<=).ssi > 0The top-level
ca_marin_general_relief_eligible(SPMUnit, MONTH) ANDs all of the above sub-tests.Income
ca_marin_general_relief_gross_income, Person) sums anincome_sourceslist parameter — earned income, self-employment income, unemployment compensation, state disability insurance, veterans' benefits, and Social Security. SSI is excluded from the list because SSI recipients are categorically ineligible (including it would be moot and could mask the categorical bar).ca_marin_general_relief_net_income, SPMUnit) =max(gross income − mandatory withholdings, 0), usingspm_unit_paycheck_withholdings(FICA = Social Security + Medicare, plus federal and state income tax). The Standards allow mandatory deductions only — there is no general earned-income disregard.spm_unit_paycheck_withholdingsdoes not include the employee SDI/UI contributions, which the Standards also list as mandatory deductions. We don't subtract SDI/UI at the moment (matches the LA County GR proxy). The net-income floor at 0 and the monthly conversion (annual net income ÷MONTHS_IN_YEAR) are applied before the income test and benefit subtraction.<=— a household with net income exactly equal to the grant is income-eligible (and receives a $0 partial grant).Benefit Calculation
defined_forhalf-benefit trap).max(max grant − monthly net countable income, 0), computed insideca_marin_general_relief_base_amount(MONTH) and surfaced through the top-levelca_marin_general_relief(MONTH, add-only) so there is no MONTH/YEAR subtraction mismatch.Requirements Coverage
in_marinin_marin.yamlca_marin_general_relief_eligibleeligibility/ca_marin_general_relief_eligible.yaml(7 cases)eligibility/age_threshold.yaml(18)ca_marin_general_relief_age_eligibleeligibility/ca_marin_general_relief_age_eligible.yamlqualified_immigration_status.yaml..._immigration_status_eligible_person..._immigration_status_eligible_person.yaml(7 cases)..._immigration_status_eligible..._immigration_status_eligible.yaml(3 cases)eligibility/limit/liquid_assets/{single,married}.yaml..._liquid_asset_limit,..._liquid_asset_eligible..._liquid_asset_limit.yaml,..._liquid_asset_eligible.yamleligibility/limit/personal_property/{single,married}.yaml..._personal_property_limit,..._personal_property_eligible..._personal_property_limit.yaml,..._personal_property_eligible.yamlincome_sources.yaml..._gross_income..._net_incomeincome/ca_marin_general_relief_net_income.yaml(4 cases incl. floor)<=)..._income_eligibleeligibility/ca_marin_general_relief_income_eligible.yaml(6 cases incl. boundary)..._eligible:~(ssi > 0))..._eligible.yaml+ integration Case 6amount/{single,married}.yaml(387 / 636)..._base_amount,ca_marin_general_relief,..._max_grant..._base_amount.yaml(4),..._max_grant.yaml(3),integration.yaml(16 cases)qualified_immigration_status.yaml..._immigration_status_eligible_person..._immigration_status_eligible_person.yaml15 in-scope requirements (REQ-001..014 + REQ-019). Coverage is ~100% of in-scope requirements.
Not Modeled (by design)
spm_unit_paycheck_withholdingscovers FICA + income tax but not SDI/UI; we don't subtract SDI/UI at the moment (matches LA County GR)Files Added
9 parameters, 15 variables, 14 test files (69 YAML tests passing), plus the changelog fragment.
Test plan
policyengine-core test policyengine_us/tests/policy/baseline/gov/local/ca/marin/ -c policyengine_us)Microsimulation()and a synthetic mixed population with no exceptions (verifies vectorized county-string comparison, immigration-listnp.isin, and YEAR/MONTH period mixing)make formatclean