Skip to content

Use shared childcare attendance inputs in CalWORKs child care - #9354

Open
hua7450 wants to merge 1 commit into
mainfrom
ca-calworks-childcare-shared-inputs
Open

Use shared childcare attendance inputs in CalWORKs child care#9354
hua7450 wants to merge 1 commit into
mainfrom
ca-calworks-childcare-shared-inputs

Conversation

@hua7450

@hua7450 hua7450 commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Replaces the CA-only ca_calworks_child_care_days_per_month and ca_calworks_child_care_weeks_per_month inputs with the shared childcare_attending_days_per_month and childcare_days_per_week variables. The CA-only variables were int inputs with no default, so the default WEEKLY billing category multiplied every California child care payment (CalWORKs Stage 1, Stage 2, Stage 3, and CAPP) by a coefficient of 0.

Fixes #9286

Changes

  • ca_calworks_child_care_time_coefficient now reads the shared attendance inputs that 17 other state child care programs already use:
    • HOURLY: childcare_hours_per_day × childcare_attending_days_per_month (hours input was already shared)
    • DAILY: childcare_attending_days_per_month
    • WEEKLY: 52/12 weeks per month when attendance is reported through either shared input, following the existing WEEKS_IN_YEAR / MONTHS_IN_YEAR idiom in LA CCAP (la_ccap_monthly_days); zero when no attendance is reported
    • MONTHLY: unchanged (coefficient 1)
  • Deletes ca_calworks_child_care_days_per_month and ca_calworks_child_care_weeks_per_month (their only reader was the coefficient formula; verified with a repo-wide sweep)
  • Adds integration tests that exercise the default (weekly) billing path without pinning ca_calworks_child_care_time_category: MONTHLY, which every prior money test did — including a case asserting the weekly ceiling payout ($227.58 × 52/12 = $986.18 for a part-time three-year-old at a child care center) and a case documenting that no attendance inputs still means $0

Partner impact

The API partner has been informed and approved this change: their integration pins ca_calworks_child_care_time_category: MONTHLY, which bypasses the changed branch entirely. The partner contract tests under tests/policy/baseline/partners/analytics_coverage/edge_cases/state/ca/ are untouched and pass unchanged. Note this also does not change microsimulation output: the shared attendance inputs are zero across the Populace microdata, as they are for every other attending-days state.

Testing

  • 53 CalWORKs Stage 1 child care tests pass (tests/policy/baseline/gov/states/ca/cdss/tanf/child_care)
  • 49 Stage 2 / Stage 3 / CAPP tests pass (tests/policy/baseline/gov/states/ca/cdss/child_care)
  • 3 CA partner contract tests pass with no edits to the partner file

Checklist

  • Tests pass locally
  • Code formatted (ruff)
  • Changelog entry created

🤖 Generated with Claude Code

Replace the CA-only ca_calworks_child_care_days_per_month and
ca_calworks_child_care_weeks_per_month inputs with the shared
childcare_attending_days_per_month and childcare_days_per_week
variables, deriving weekly billing as 52/12 weeks per month when
attendance is reported. Adds integration coverage of the default
(weekly) billing path without pinning the time category.

Fixes #9286

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (724e795) to head (3540ad3).
⚠️ Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #9354   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           35        17   -18     
  Branches         2         0    -2     
=========================================
- Hits            35        17   -18     
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.

@hua7450
hua7450 marked this pull request as ready for review August 27, 2026 16:08
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.

CalWORKs child care pays $0 by default: replace the CA-only days/weeks-per-month inputs with the shared childcare variables

1 participant