Add Santa Clara County General Assistance Program#8358
Draft
hua7450 wants to merge 4 commits into
Draft
Conversation
Starting implementation of Santa Clara County General Assistance. Documentation and parallel development will follow. Refs PolicyEngine#8357
Mirrors Alameda County GA structure with SCC-specific values: - MAP: $343 single, $460 married (effective 2016-04-01, frozen) - Personal property limit: $500 - 6 qualified immigration statuses Adds two deviations from the Alameda mirror: - Shared-housing tiers (15/20/25% reductions per GA 282) - Expanded countable income to 17 PE sources (Alameda has 6) Closes PolicyEngine#8357 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8358 +/- ##
===========================================
+ Coverage 70.38% 98.54% +28.15%
===========================================
Files 4791 11 -4780
Lines 69837 137 -69700
Branches 345 0 -345
===========================================
- Hits 49153 135 -49018
+ Misses 20684 2 -20682
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:
|
- personal_property/limit.yaml: period month -> year (asset stock not flow); cleaner template description - age_threshold.yaml: add Cal. Family Code § 6500 reference (statutory source for age-of-majority "18") - shared_housing/reduction.yaml: add GA-62 PDF as corroborating reference for derived percentage tiers - Currency unit tests: add absolute_error_margin: 0.1 to base_amount, countable_income, countable_income_person All 77 tests still pass. Co-Authored-By: Claude Opus 4.7 (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 Santa Clara County General Assistance (GA), a 100% county-funded cash aid program for indigent adults without dependent children. The program is mandated by Cal. W&I Code § 17000 and operationally codified in the Santa Clara County GA Handbook (GA 100-289). Mirrors the existing Alameda County GA implementation 1-for-1 with two scoped additions: shared-housing MAP reductions (GA 282) and an expanded countable-income source list to match the SCC handbook.
Closes #8357
Regulatory Authority
Program Overview
ca_scc_general_assistancepolicyengine_us/parameters/gov/local/ca/scc/general_assistance/policyengine_us/variables/gov/local/ca/scc/policyengine_us/tests/policy/baseline/gov/local/ca/scc/ga/Eligibility Requirements
ca_scc_general_assistance_age_eligible.pyviaage_thresholdparameterin_scc.py(county_str == "SANTA_CLARA_COUNTY_CA")ca_scc_general_assistance_immigration_status_eligible.pyreadingqualified_immigration_status.yamlca_scc_general_assistance_personal_property_eligible.pyca_scc_general_assistance_eligible_person.py(ssi == 0)ca_scc_general_assistance_eligible_person.pyviais_tax_unit_head_or_spouseca_scc_general_assistance_income_eligible.py(strict<)Benefit Amounts (Need Standards Chart, GA 280; corroborated by GA-62)
Effective date: 2016-04-01 (frozen since). AB 161's 0.3% MAP increase applies to CalWORKs only, not General Assistance.
Shared-Housing Reductions (GA 282) — extension beyond Alameda
Implemented via a new Enum input variable
ca_scc_general_assistance_shared_housing_statusand theshared_housing/reduction.yamlparameter (breakdown keyed by the enum). Default isNOT_SHARED, so unconfigured households see no reduction. The reduction is applied insideca_scc_general_assistance_base_amount.pyasunshared * (1 - reduction[shared_status]).Countable Income — extension beyond Alameda
Expanded from Alameda's 6 sources to 17 PolicyEngine variables to match the SCC handbook's Types-of-Income chapter:
employment_income,self_employment_income,sstb_self_employment_income,social_security,unemployment_compensation,veterans_benefits,workers_compensation,taxable_pension_income,tax_exempt_pension_income,taxable_interest_income,tax_exempt_interest_income,qualified_dividend_income,non_qualified_dividend_income,alimony_income,child_support_received,strike_benefits,rental_income.All source variables were verified to exist in the codebase. Split sub-variables (taxable/tax-exempt, qualified/non-qualified) were preferred over parent aggregators so each line item appears explicitly.
Benefit Formula
Fill-the-gap:
The inner
max_(countable, 0)floors countable income at 0 to prevent negative-income inflation above the MAP (caught by edge-case tests at $-1M SE income — see Implementation Notes).Requirements Coverage
16 in-scope requirements, 100% covered. See
/tmp/santa-clara-ga-coverage-report.mdfor the full mapping (parameter file × variable file × test case per REQ).Not Modeled
Files Added (28)
Test Plan
policyengine-core test policyengine_us/tests/policy/baseline/gov/local/ca/scc/ -c policyengine_usmake formatcleanImplementation Notes
scc(parallel toalafor Alameda; follows the 3-letter county-code convention).policyengine_us/{variables,parameters}/gov/local/ca/ala/(Alameda County GA).in_scc.py: Alameda'sin_ala.pycheckscounty_str == "Alameda_COUNTY_CA"(mixed case), butcounty_str.decode_to_str()returns the ALL-UPPERCASE enum member name. Alameda's tests bypass this latent bug by settingin_ala: truedirectly. SCC'sin_scc.pycorrectly uses"SANTA_CLARA_COUNTY_CA"(all uppercase), matching the working convention in Riverside (riv) and LA (la).ca_scc_general_assistance.py: The top-level variable uses an explicitformula(spm_unit, period, parameters)returningbase - max_(countable, 0)rather than the typicaladds/subtractspattern. Withadds=baseandsubtracts=countable, a negative countable income (e.g., self-employment losses) would computebase - (-N) = base + N, inflating the benefit far above the MAP. Edge-case tests with