Skip to content

Apply Colorado's monthly child care activity rules - #10690

Open
MaxGhenis wants to merge 7 commits into
mainfrom
co-ccap-activity-test
Open

MaxGhenis wants to merge 7 commits into
mainfrom
co-ccap-activity-test

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Colorado requires adult caretakers and teen parents to participate in an eligible activity, subject to approved waivers and continuation rules. This PR adds a monthly activity requirement to co_ccap_eligible.

A Denver parent with a 3-year-old, a $1,000 monthly child care bill and $30,000 in wages at 40 hours a week receives $872 in January 2026. With the same income from a pension and no qualifying activity or waiver, the parent receives $0.

We fix North Carolina's half of #9289 in #10691.

The rule

In section 3.111(B)(1) of 8 CCR 1403-1, the department provides that "The adult caretaker(s) or teen parent(s) shall: 1. Be actively participating in an eligible activity". Elsewhere in the rules, the department defines who counts as a caretaker and which households qualify:

  • In section 3.103, the department defines an adult caretaker as a parent, step-parent, legal guardian or person acting in loco parentis who contributes financially to the child's welfare and has custody. Under section 3.111(D)(2), it counts two caretakers when two adults contribute to the child's welfare or take on a parent's rights and duties, whatever their tax filing. A child's named co-resident parents count even when they file separately or belong to a different SPM unit. The child's SPM unit receives the result. With no resolved parent links, the model uses co-resident tax filers or a sole older teen in the child's tax unit.
  • Under section 3.111(D)(1), a household qualifies when one caretaker takes part in an activity and any other caretaker does too or has a medical verification that they can't care for the child. Under section 3.111(D)(1)(b), the department counts one caretaker when the other is involuntarily out of the home, as through incarceration. Under section 3.111(E), a single incapacitated caretaker with no activity doesn't qualify.
  • Under section 3.111(G)(1) and (2), the county counts employment when gross income divided by the hours worked reaches the federal minimum wage, and self-employment when it also earns more than its expenses. Under section 3.111(G)(4), it counts enrollment in training, in a post-secondary program for a first bachelor's degree or less, or in basic education.
  • Under section 3.116(A), the department treats Colorado Works participants who take part in allowable work activities under an individualized plan as in an eligible activity. Under sections 3.111(D)(6) and 3.115(C), caretakers outside the Colorado Works assistance unit whose children receive basic cash assistance must meet the low-income test.
  • Under sections 3.119(D) and 3.121(B)(3)(a), a qualifying protective-services placement requires an open case. Child Welfare Child Care at home requires county authorization. The homelessness activity waiver applies during authorized stabilization.

Monthly inputs record approved child welfare care, authorized stabilization, medically verified inability to care, and other approved activities for each caretaker. The model uses inability to provide self-care as an incapacity proxy. Education uses reported secondary, technical and full- or part-time college enrollment. Supply co_ccap_in_eligible_education for other qualifying basic education or to exclude ineligible degree programs. Report exhausted county allotments in co_ccap_education_weeks_remaining.

Verified wages and hours apply to the wage job. Verified CCCAP business profit and hours apply to self-employment. The annual fallback uses combined earnings and recorded usual hours for inferred ongoing work. Part-year annual totals alone do not establish work in a given month.

Colorado's wage provisions appear in the December 2019, October 2020 and August 2023 rules. The December 2025 edition governs January 2026 and the August 2026 edition applies from August 14. The model's earlier backdating remains an approximation; 45 CFR 98.20(a)(3) supplies the federal activity rule, which sets no wage floor.

Invariants

The property test test_co_ccap_activity_properties.py exercises the annual work fallback, reported education, incapacity, family composition and monotone earnings. The YAML cases exercise verified wage and business rates, monthly approvals and waivers, and education duration.

  1. Work with annual inputs requires recorded hours for ongoing work and earnings at or above the federal minimum wage. Reported college, secondary school and technical enrollment can qualify. Without an exempt path, a household qualifies when one caretaker takes part in an activity and every other caretaker takes part in one or is unable to provide care.
  2. co_ccap_eligible implies co_ccap_activity_eligible, and a family without it receives no co_ccap_subsidy.
  3. Raising a caretaker's earnings, with hours unchanged, never removes eligibility.
  4. An adult who files separately, claims no eligible child and isn't named in the child's parent ids doesn't change the result, whatever that adult earns.
  5. When the child's parent ids name both parents, the result stays the same whether they file together or apart.
  6. Child welfare and stabilization waivers and other approved monthly activities qualify a family. TANF receipt alone does not confer activity eligibility.

Tests

  • co_ccap_activity_eligible.yaml has 53 cases, among them:
    • earnings of $15,080 for 2,080 hours, the federal minimum wage, and a dollar less;
    • the combinations of two caretakers, including a disabled second caretaker who can still provide care;
    • work that starts in July ($10,000 for 26 weeks at 40 hours establishes no January work) and approved job search after a job loss across years (January covered, May not);
    • a $7,800 wage job for 520 hours beside a loss-making business, and $12,000 of tax profit plus $6,000 of disallowed equipment depreciation;
    • $1 of earnings with no recorded hours (no activity);
    • an open-case placement, an at-home referral alone, and homelessness during and after authorized stabilization;
    • college after the approved weeks run out, and qualifying treatment from July 2026;
    • an inactive co-resident father in another SPM unit, a linked teen claimed by a grandmother, and a sole enrolled teen without parent links;
    • service-business and farm earnings, the 52-week cap and the eligible-child mask;
    • the Denver family end to end: the wage case pays $1,000 − $128 = $872, and a high-school parent receives $1,000.
  • co_ccap_in_eligible_education.yaml has 9 cases: a 19-year-old high-school parent, a 30-year-old high school equivalency learner and a certificate trainee qualify.
  • In co_ccap_eligible.yaml, the 8 existing cases set the new input, and 2 cases show an otherwise eligible family with no activity.
  • Four existing activity cases now return false: Case 1 ($20,000 ÷ 0 hours supplies no verified rate), Case 5 ($10,000 ÷ (26 × 40) = $9.62 with no evidence of January work), Case 21 (no approved placement or authorization) and Case 23 (no authorized stabilization month).
  • Six YAML files pass 86 cases at this head and on a merge with main: co_ccap_activity_eligible 53, co_ccap_in_eligible_education 9, court_supervision 6, co_ccap_eligible 10, co_ccap_subsidy 2, and the unedited partner file signatures/co.yaml 6. The 11 activity property tests pass, in 33 seconds of local test time.

#10699 also edits co_ccap_eligible.py (eligible children), and #10723 also edits court_supervision.yaml (county reimbursement rates).

Not changed here: Colorado continues an approved case through certification between determinations; co_ccap_eligible returns false when both process flags are false, as it did before this PR.

Impact

Microsimulation impact for the monthly rules: pending. An earlier revision of this PR (84d27a4) estimated, on the default 2026 dataset, that Colorado's child care subsidies would fall from $203.9 million to $1,917 a year. Four records carrying 18,797 of 18,807 weighted families lost the payment, and two of them carried 99% of Colorado's payments, so that estimate rests on little data. In each, a married couple files jointly and one spouse has no earnings, schooling, disability or exemption in the data.

axiom: TheAxiomFoundation/rulespec-us#2067 queued

🤖 Generated with Claude Code

8 CCR 1403-1 section 3.111(B)(1) requires adult caretakers and teen
parents to take part in an eligible activity, and section 3.111(D) and
(E) say which households qualify. co_ccap_eligible had no such test, so
the model paid families with no earnings, study or other activity.

co_ccap_activity_eligible adds the test, with the rule's federal minimum
wage floor on earnings and its exempt paths for Colorado Works,
protective services and homelessness.

Part of #9289.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 3 commits November 9, 2026 12:09
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#10721 charges the Denver family in Case 24 the $128 fee that
court_supervision.yaml Case 5 computes, so the subsidy falls from
$884.43 to $872.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under 8 CCR 1403-1 section 3.111(D)(2), Colorado counts the adults who
support a child or take on a parent's duties whatever their tax filing,
so a parent that the child's parent ids name in the same SPM unit now
counts as a caretaker beside the claiming filers.

Under sections 3.111(D)(6) and 3.115(C), caretakers of children who
receive basic cash assistance without them must meet the low-income
test, so TANF receipt no longer exempts a family; Colorado Works
participants under 3.116(A) set meets_ccdf_activity_test.

Section 3.111(G)(4)(a)(1) counts training and post-secondary programs
for a first bachelor's degree or less, full or part time. The new
co_ccap_in_eligible_education defaults to school or college enrollment
and lets users exclude a graduate student.

The references now give one entry per document, with the 2023 edition
and 45 CFR 98.20(a)(3) for earlier years.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99

DTrim99 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

PR Review: Require an eligible activity for Colorado's child care assistance

PR #10690 (author: MaxGhenis), head d9721c191c: 4 commits, +1,294/−2 across 9 files. This is the first review.

Path prefixes:

  • V/ = policyengine_us/variables/gov/states/co/ccap/
  • P/ = policyengine_us/parameters/gov/states/co/ccap/activity/
  • T/ = policyengine_us/tests/policy/baseline/gov/states/co/ccap/

I read the rule before the code, in four editions of Colorado's CCCAP rules:

  • 8 CCR 1403-1, ruleVersionId 12658 (effective 08/14/2026), which the PR cites;
  • 8 CCR 1403-1, ruleVersionId 12277 (effective 12/15/2025), which governs the PR's January 2026 test periods;
  • 8 CCR 1403-1, ruleVersionId 11042 (effective 08/14/2023), which the PR cites for 2023;
  • 9 CCR 2503-9, ruleVersionIds 8430 (12/30/2019) and 9031 (10/01/2020), the Department of Human Services rules that governed CCCAP before October 2022.

Page numbers below are PDF file pages. Each claim says what it rests on: my reading of the code, a hand trace, a source PDF, or a CI log. I ran no Python or tests.

Summary

The fix is needed, and most of it matches the rule. On main, any Colorado family with an eligible child gets CCCAP whether or not anyone in it works or studies, but 3.111(B)(1) requires the adult caretakers to be "actively participating in an eligible activity".

The PR adds co_ccap_activity_eligible and requires it in co_ccap_eligible, the gate for co_ccap_subsidy. The effect stays inside Colorado's program and what reads its subsidy. These parts match the rule (source PDFs):

  • no minimum hours, only the wage floor of (G)(1)(b) and (G)(2)(d);
  • the self-employment profit test of (G)(2)(c);
  • both caretakers in an activity, or one in an activity and the other incapacitated ((D)(1)(c));
  • no eligibility for a single incapacitated caretaker ((E));
  • leaving out a caretaker who is involuntarily out of the home ((D)(1)(b));
  • counting part-time college, since (G)(4)(a)(1) sets no full-time condition;
  • the protective services and homelessness exemptions (3.119(D), 3.121(B)(3)(a)).

The PR also fixes two of the problems we found in the North Carolina sibling #10691. It reads is_part_time_college_student, and it counts a co-resident parent who files separately when the child's parent ids name them. I confirmed the second through co_resident_parent_indices and Cases 29 to 31.

One critical:

  • C1. Basic education counts only through the age 5 to 17 school imputation. A teen parent aged 18 to 20 in high school, or an adult in a high school equivalency, ABE or ESL program, has no activity in the model. 3.103(Q) and 3.111(G)(4)(b) count all of them, and is_in_secondary_school already exists as an input.

Three should items:

  • S1. Six new terms or list entries fail no test when deleted.
  • S2. The parameter's reference cites pages 36 and 37 but follows the one-page format.
  • S3. rulespec-us#2067 defers the protective services and homelessness exemptions that this PR encodes, and no issue tracks them.

Five suggestions: G1 to G5.

CI and branch. CI is 36/36 green at the head. The branch is 140 behind main and 4 ahead, and git merge-tree is clean.

Critical (must fix)

C1. V/co_ccap_in_eligible_education.py:20-26: basic education counts only for people aged 5 to 17. A teen parent aged 18 to 20 in high school, or an adult working toward a high school equivalency, has no activity.

  • The rule (source PDFs, 12658):
    • 3.103(Q), page 4: "'Basic education' is a Low-Income Child Care eligible activity where an adult caretaker or teen parent is in middle school, high school education programs working towards a high school diploma or high school equivalency; Adult Basic Education (ABE); and/or English as a Second Language (ESL)."
    • 3.111(G)(4)(b), page 40: "An adult caretaker who is enrolled in a basic education program is eligible for CCCAP for up to fifty-two (52) weeks", and "Teen parents participating in basic education are not subject to time limits for this activity."
    • 3.103(EEEEE), page 20: a "teen parent" is "a person under twenty-one (21) years of age". 3.103(LLL), page 13, also counts "children under nineteen (19) years of age who are still in high school".
    • The December 2025 edition, which governs the PR's test periods, has the same text: 3.103(Q) on page 3 and 3.111(G)(4)(b) on page 21.
    • None of these sets an age limit on basic education, and none sets a full-time condition.
  • The code (code reading):
    • The formula returns is_full_time_student | is_part_time_college_student.
    • is_full_time_student is is_full_time_college_student | is_in_k12_school, and is_in_k12_school is an imputation from age 5 to 17.
  • The input that already exists: is_in_secondary_school, "Is in secondary school (or in an equivalent level of training)". It is a pure input, and az_ccap_activity_eligible reads it.
  • The result (hand trace):
    • Take a 19-year-old teen parent with is_in_secondary_school: true, no earnings and an eligible child.
    • Age 19 fails the 5-to-17 imputation, and both college flags are false, so co_ccap_in_eligible_education is false. works is false.
    • So co_ccap_activity_eligible is false, co_ccap_eligible is false, and co_ccap_subsidy is 0.
    • Under 3.103(Q) and (G)(4)(b), the parent is in an eligible activity. A 30-year-old in an equivalency program gets the same wrong result.
  • Why it isn't a reasoned deferral. The comment at line 23 says "3.111(G)(4)(b) counts basic education", and the PR body says the default covers "school or college enrollment, full or part time". Both read as full coverage. A user can override the variable, but the model can already see this case. We gave the same ruling on Require care need and apply in-home CPS waivers in North Carolina SCCA #10691's C1.
  • Fix:
    • Return person("is_full_time_student", period) | person("is_part_time_college_student", period) | person("is_in_secondary_school", period).
    • Consider technical_institution_student too, for the workforce training of (G)(4)(a)(2): "vocational, technical or job skills training that will result in a diploma, license, or certificate" (page 39).
    • Pin each new input in T/co_ccap_in_eligible_education.yaml: a 19-year-old in secondary school (true), and an adult aged 30 in secondary school (true).
    • Update the line 23 comment, the variable's documentation, the PR body, and in_activity in the property test, which repeats the same two flags.

Should address

S1. Six new terms or list entries are unpinned: deleting any one fails no fixed test. This rests on my reading of the YAML, the Hypothesis @examples and the unedited partner cases.

  • sstb_self_employment_income and farm_operations_income in P/earned_income_sources.yaml:6-7. No case uses either input. The property test sets only employment_income and self_employment_income, and the Colorado partner cases use employment_income_before_lsr.
  • is_incapable_of_self_care in incapacitated (V/co_ccap_activity_eligible.py:76-79). Only is_disabled is tested (Cases 13, 14, 15, 30).
  • The eligible_child & mask in protective_services (lines 87-93). Cases 21 and 22 put the flag on the eligible child, so they pass without the mask. No case expects false when the flag sits on someone who isn't an eligible child. Without the mask, an adult or a 15-year-old flagged for protective services would exempt the household.
  • same_unit (lines 67-68). Every parent-id case puts the whole household in one SPM unit. The guard matters only for the named parent's own SPM unit, where it stops a parent of a child in another unit from counting as a caretaker. No case outputs that unit's result.
  • min_(weeks, WEEKS_IN_YEAR) (line 38). No case and no draw has more than 52 weeks; the strategy stops at 52. This guard only covers bad input, so you could drop it instead of pinning it.
  • Fix: add short cases to T/co_ccap_activity_eligible.yaml:
    • SSTB self-employment income only (true);
    • farm income only (true);
    • one parent working beside an idle parent with is_incapable_of_self_care only (true);
    • an idle single parent with a 15-year-old flagged for protective services and a 3-year-old not flagged (false);
    • one household with two SPM units: a working mother and her child in one, and the father, named by the child's id, working in the other. Expect co_ccap_activity_eligible: [true, false]; without same_unit, the father's unit turns true;
    • either 60 weeks at 40 hours with $16,000 in wages (60 is capped to 52, and 15,080 ≤ 16,000, so true) or delete the min_.

S2. P/earned_income_sources.yaml:14-15: the reference cites two pages in the one-page format.

  • The title cites "Section 3.111(G)(1) and (2)" and the href opens page 36.
  • (G)(2)(c) starts on page 36, but (G)(2)(d), the self-employment wage floor, is on page 37 (source PDF).
  • CLAUDE.md, "Parameter and variable references": "Several cited pages: the href opens the first, and the title ends with #page 72-75 (consecutive) ... Quote the title, since an unquoted # starts a YAML comment."
  • Fix: title: "8 CCR 1403-1 Section 3.111(G)(1) and (2), employment and self-employed criteria #page 36-37".
  • The variable references follow the rules. Each tuple has one entry per source, and a # PDF pages comment sits above each multi-page href. I checked the pages: 3.103(C) is on page 2, 3.111(B) on 31, (D) on 33-34, (E) on 35, (G) on 36-37 and 39-40, 3.116(A) on 63, 3.118(A) on 68, 3.119(D) on 69 and 3.121(B)(3) on 72.

S3. Axiom coverage leaves out two exemptions that this PR encodes.

  • rulespec-us#2067 queues 3.111(B)(1), (D)(1) and (2), (E), (G)(1)(b), (G)(2)(c) and (d), and (G)(4)(a)(1). Its review finding says: "Leave the exemptions for Colorado Works (3.116(A)), protective services (3.119(D)) and homelessness (3.121(B)(3)(a)) ... for later modules."
  • This PR encodes two of those as formula paths: protective_services (3.118(A), 3.119(D)) and homeless (3.121(B)(3)(a)). The Colorado Works path rests only on an input, so it needs no module.
  • No issue tracks the deferred exemptions, so they aren't queued in rulespec-us as CLAUDE.md "Axiom Parity" requires: "Any PR that adds, updates or fixes policy must also leave the same provision correct in rulespec-us." We raised the same point on Require care need and apply in-home CPS waivers in North Carolina SCCA #10691 (its S4).
  • Fix:
    • Extend South Carolina rate structure #2067 to 3.118(A), 3.119(D) and 3.121(B)(3)(a), or open a companion queued issue and add it to the axiom line.
    • After C1, add 3.103(Q) and (G)(4)(b), and (G)(4)(a)(2) if you adopt it, to South Carolina rate structure #2067's provision list. Today it lists only (G)(4)(a)(1), although its "PolicyEngine implementation" section mentions basic education.

Suggestions

G1. A grandparent who claims both a teen parent and the teen's child counts as a caretaker. When the child's ids name the teen, both of them count.

  • Under 3.103(EEEEE), page 20, a teen parent under 21 with custody is the applicant. Under 3.103(LLL), page 13, the CCCAP household is the children and "the adult caretaker(s) or teen parent(s)".
  • In the model, the claiming filers are the head and spouse of the tax unit with the eligible child. Take a grandmother who claims her 17-year-old daughter and the daughter's baby:
    • Without ids, only the grandmother is tested. The family qualifies if she works, whatever the teen does, and fails if she is retired, even while the teen is in school.
    • With ids naming the teen (hand trace): the teen is a linked parent and in K-12, but the retired grandmother is still a claiming filer with no activity, so the result is false. If the teen claims the baby herself, the same family is true. So tax filing changes the result even though the ids name the parent.
  • The rule is not fully clear. 3.111(D)(2) counts two caretakers when adults "contribute financially to the welfare of the child and/or assume parent rights", and a grandparent claiming the child does contribute financially. So I'm not treating this as a law violation.
  • Consider this: when a child's ids name a co-resident parent, count only the named parents and their head-or-spouse partners as claiming filers. Add a case for the grandmother who claims both.

G2. Cite the edition in force for each period.

  • The January 2026 test periods fall under ruleVersionId 12277 (effective 12/15/2025), not 12658 (08/14/2026) or 11042 (2023). I compared 12277's 3.111(B), (D), (E), (G)(1), (G)(2) and (G)(4) (pages 15-21) with 12658, and the text matches. So the tests are right, and only the citation is off. Either add a 12277 entry or move the cases to September 2026 or later, as South Carolina rate structure #2067's companion cases do.
  • Before October 2022, CCCAP ran under 9 CCR 2503-9 section 3.905.1. Versions 8430 (12/30/2019, page 16) and 9031 (10/01/2020, pages 16-17) already have the employment and self-employment wage floors and the incapacitated-second-caretaker rule. That answers the PR body's "we haven't checked Colorado's editions before 2023". Consider citing it in P/earned_income_sources.yaml, which starts in 2020, and in the variable.
  • Optional: V/co_ccap_eligible.py keeps three pre-existing 11042 entries that differ only by #page= (17, 19, 31). The PR edits this tuple, so it could fold them into one entry under # PDF pages 17, 19, 31.

G3. Narrow the protective-services stand-in, or say how far it reaches (V/co_ccap_activity_eligible.py:85-93).

  • 3.118(A), page 68, defines protective services households as those "in which child(ren) have been placed by the county in foster home care, kinship foster home care, or non-certified kinship care, and have an open child welfare case".
  • receives_or_needs_protective_services also covers a child served at home. Such a case falls under 3.120, Child Welfare Child Care, which the county's child welfare division decides case by case (page 70) and which the comment at lines 98-105 sends to meets_ccdf_activity_test.
  • A sentence in the comment would make the stand-in's reach explicit, or the path could use is_in_foster_care alone.

G4. Reuse the shared helpers.

  • Since Deem income from a disabled parent who is not eligible for SSI #10630 merged today, _parent_links.py on main has linked_child_count(person, period, children) and is_parent_of_any. linked_child_count(person, year, eligible_child) > 0 gives the linked parents. You'd keep only the SPM-unit check, if you keep it at all (S1).
  • P/earned_income_sources.yaml repeats the four earned entries of gov.states.co.ccap.income.countable_income.sources, and Require care need and apply in-home CPS waivers in North Carolina SCCA #10691 adds the same four-entry list for North Carolina.
  • The two PRs also treat TANF differently. Colorado ignores TANF receipt for the reason in the comment, while North Carolina counts Work First through is_tanf_enrolled. A shared caretaker helper, or a shared list, would keep the CCDF activity tests aligned.

G5. The property file overlaps the YAML (CLAUDE.md "Test design and CI cost").

  • in_activity and rule_says_eligible restate the formula's wage floor and caretaker rule.
  • test_each_exempt_path_qualifies_a_family_with_no_activity, test_tanf_receipt_alone_is_not_an_exempt_path and test_a_family_with_no_activity_fails_without_an_exempt_path repeat YAML Cases 2 and 19 to 23.
  • The distinct checks are monotone earnings, the unnamed separate filer, and filing invariance under parent ids. The PR body reports the CI time, about 20 s in Rest group remaining-2 (CI log), and says the file's own peak memory wasn't measured, as CLAUDE.md asks. Trimming is optional.

Verified correct

  • Scope (code reading; grep at the head):
    • co_ccap_eligible is now activity_eligible & (entry | re-determination).
    • co_ccap_subsidy is defined_for = "co_ccap_eligible", and it flows on to co_child_care_subsidies, spm_unit_benefits and household_child_care_subsidies.
    • Nothing else reads co_ccap_activity_eligible or co_ccap_in_eligible_education. No variable outside Colorado's program changes, except through the lower Colorado subsidy, as the PR body's SNAP note describes.
  • Minimum hours: none (source PDFs). (G)(1)(a): "Adult caretakers or teen parents may be employed full or part time." The only floor is gross income divided by hours of at least the federal minimum wage ((G)(1)(b), (G)(2)(d)). The code passes earnings above zero with no recorded hours, which can't fail the floor, and it reads gov.dol.minimum_wage ($7.25 since 2009-07-24).
  • Self-employment (code reading). Clipping each source at zero means a loss never offsets wages (Case 9), and a net loss fails (G)(2)(c) (Case 8).
  • Two-parent households (source PDFs; code reading):
    • (D)(1)(c) requires both caretakers in an activity, or one in an activity and the other incapacitated "according to a physician's statement or other medical verification".
    • has_active_caretaker & no_inactive_caretaker encodes exactly that. Two incapacitated caretakers fail (Case 15), as does a single incapacitated caretaker ((E); Case 14).
  • Which parents count (code reading of _parent_links.py):
    • The caretakers are the claiming head and spouse, plus the parents that an eligible child's parent_1_id or parent_2_id names.
    • co_resident_parent_indices resolves each id among household members. It returns −1 when the id is unresolved or ambiguous, and drops a second slot that repeats the first. So parents[children] with the resolved mask is sound, and the bincount over non-negative indices can't fail.
    • This matches 3.111(D)(2), "whatever their tax filing", for co-resident parents. Under 3.103(C) and (D)(1)(b), an incarcerated person drops out.
  • Exemptions (source PDFs). 3.119(D): "Protective services households are not subject to low-income eligible activity requirements." 3.121(B)(3)(a): no activity is needed "during the stabilization period". Not treating TANF receipt alone as an activity fits 3.115(C) and 3.111(D)(6). 3.116(A) requires an individualized plan and a referral, which the model can't see.
  • Mechanics (code reading):
    • The variable is an SPMUnit MONTH variable. YEAR inputs are read at period.this_year; co_ccap_child_eligible, is_incarcerated and is_in_foster_care are read at the month.
    • The vectorized calls (np.sum(..., axis=0), spm_unit.sum and .any, person.tax_unit.sum) are sound, and there is no builtin sum over arrays.
    • The new variables are bools, so the NH Add New Hampshire state supplementation for 2026 #10156 key pattern doesn't apply.
    • Reading weekly_hours_worked_before_lsr avoids a labor-supply loop, as the Arizona, Georgia, Hawaii, Iowa and Kansas activity tests do. employment_income is already a Colorado countable-income source.
  • No vacuous pass. A household with no caretaker gets has_active_caretaker false, so it fails unless an exempt path applies. Unlike Require care need and apply in-home CPS waivers in North Carolina SCCA #10691, there is no vacuous true.
  • Housekeeping:
    • The changelog fragment changelog.d/co-ccap-activity-test.fixed.md is present.
    • The new YAML files are named after their variables, and the test periods are plain.
    • The 8 existing co_ccap_eligible cases set the new input to true, so True & X leaves every expected value unchanged.
  • Source conflicts: none to record (source PDFs).
    • The 2019, 2020, 2023, 2025 and 2026 editions agree on the provisions encoded here.
    • 45 CFR 98.20(a)(3) sets a floor that the state rule builds on, not a rule that conflicts with it.
    • The stand-ins are approximations, not choices between conflicting sources.
    • No added comment matches the ratchet's CONFLICT_COMMENT_RE (checked statically), and CI ran the ratchet at this head.
  • Partner tests. The PR doesn't touch them. In each Colorado signature household, the head earns $36,000 and the spouse $12,000 with no hours recorded, so both caretakers pass. Household API Partners passed.

Hand checks (all at 2026-01; federal minimum wage $7.25):

Case Trace Expected
act 1 20,000 > 0, no hours, so floor 0 true ✓
act 2 0 earnings, so earnings > 0 fails; age 30, no school; not disabled false ✓
act 3 7.25 × 40 × 52 = 7.25 × 2,080 = 15,080 ≤ 15,080 true ✓
act 4 15,079 < 15,080 false ✓
act 5 7.25 × 40 × 26 = 7,540 ≤ 10,000 true ✓
act 6 0 weeks → 52; 15,080 > 10,000 false ✓
act 7 7.25 × 30 × 52 = 11,310 ≤ 20,000 true ✓
act 8 max(−5,000, 0) = 0, not > 0 false ✓
act 9 20,000 + max(−30,000, 0) = 20,000 ≥ 15,080 true ✓
act 12 parent2 is the inferred spouse (age 30, not younger than the head), so a caretaker with no activity and no incapacity false ✓
act 13 the same, with parent2 disabled, so incapacitated true ✓
act 16 parent2 incarcerated in 2026-01, so out; parent1 works true ✓
act 17 the grandparent's tax unit has 0 eligible children and no ids, so not a caretaker; the parent works true ✓
act 18 the grandparent isn't a caretaker; the parent is idle, so no active caretaker false ✓
act 24 Denver, 30,000/12 = 2,500. Fee 0.01 × 2,500 + 0.14 × (2,500 − 1,762.50) = 128.25 → 128 (as in court_supervision.yaml Case 5). 12,000/12 − 128 872 ✓
act 25 a pension isn't an earned source: no activity, not eligible, 0 through defined_for false / false / 0 ✓
act 26 the input co_ccap_in_eligible_education: false overrides the formula false ✓
act 29 ids give mother row 0 and father row 1, same SPM unit; father idle, not disabled false ✓
act 30 father works (30,000, no hours); mother is the claiming filer, disabled true ✓
act 31 only eligible children's ids are read, so the grandparent named by the mother's id isn't a caretaker; mother idle false ✓
edu 3 age 17, inside the 5-17 imputation true ✓
edu 5 NM, outside defined_for false ✓
eligible new 1, 2 activity input false, so False & ... false ✓

Axiom line assessment

The line is axiom: TheAxiomFoundation/rulespec-us#2067 queued. The issue meets the requirements and matches the head as it stands:

  • It is OPEN and labelled pe-parity. It was created 2026-11-07 and last updated 2026-11-11, the day of the head's CI run.
  • It gives the module path (us-co/regulations/8-ccr-1403-1/3.111/b-eligible-activity), the corpus citation (us-co/regulation/8-ccr-1403-1-eff-2026-08-14), the verbatim text of each provision and the required outputs.
  • It has 13 companion cases and four properties. Cases 1 to 13 mirror YAML cases that are hand-built from the rule text, and it gives hours explicitly where the YAML records none.
  • It records its blocker: the encoder run needs approval, and the pinned corpus release lacks the Colorado scope.
  • Its "PolicyEngine implementation" section describes the parent ids, the wage floor, the weeks handling and the TANF treatment as they are at the head.

Caveats:

  • S3: the protective services and homelessness exemptions have no queued coverage.
  • C1: the provision list should gain 3.103(Q) and (G)(4)(b) once basic education is fixed.

CI status

  • 36/36 checks pass at the head: run 43082215285 on 2026-11-11, head d9721c191c. I re-checked gh pr checks 10690 near the end of this review. Nothing is pending or failing.
  • The run postdates Tie source-conflict markers to the register shared with Axiom #10287, so the source-conflict ratchet ran against this head.
  • YAML (CI log). Baseline states-shard-2 ran co_ccap_activity_eligible.yaml (31 cases), co_ccap_eligible.yaml (10) and co_ccap_in_eligible_education.yaml (5), all passed.
  • Python (CI log). Rest (Python shard 4), group remaining-2, ran all 11 tests in test_co_ccap_activity_properties.py, and all passed. The heaviest took 5.19 s, 4.79 s and 4.52 s of call time.

Branch status

Verdict: REQUEST_CHANGES

@DTrim99 DTrim99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes: 1 critical, 3 should address, 5 suggestions (details in the report above). The activity rule matches 8 CCR 1403-1 in every version that governs the test years: no minimum hours, both caretakers active or one incapacitated. Part-time college and co-resident separate filers are handled correctly, and all 25 expectations check by hand.

  • Critical: basic education counts only through the age 5-17 K-12 imputation. A teen parent aged 18-20 still in high school, or an adult in HSE, ABE or ESL classes, fails the activity test and gets $0. 3.103(Q) and 3.111(G)(4)(b) count those activities, and is_in_secondary_school already exists.
  • Should:
    1. Six new entries and guards have no case.
    2. The earned-income parameter cites pp. 36-37 in the one-page format.
    3. rulespec-us#2067 defers exemptions the PR encodes, and nothing queues them.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
@MaxGhenis MaxGhenis changed the title Require an eligible activity for Colorado's child care assistance Apply Colorado's monthly child care activity rules Nov 30, 2026
MaxGhenis and others added 2 commits December 1, 2026 04:49
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@DTrim99 DTrim99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Program review

Base repository: PolicyEngine/policyengine-us
PR number: 10690
Reviewed head SHA: 6624798
Merge base SHA: 31bee2f
Mode: incremental from d9721c191cd88b90fdd35a4ec7cf32a4e1ca1aaf
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10690-review-sources.json
Review status: COMPLETE

Source Documents

Critical

C1 — co_ccap_subsidy mixes an SPM-unit mask with Person arrays and crashes every multi-unit simulation (both red CI checks) (OPEN)

  • Location: V/co_ccap_subsidy.py:21-28, added in 8c4e219.
  • The bug: mixed_activity = spm_unit.any(activity_eligible) & spm_unit.any(...) has shape (n_spm_units,). The code then combines it with Person-shaped charges and activity_eligible in charges * (~mixed_activity | activity_eligible), with no spm_unit.project(...).
    • With one SPM unit the shape is (1,), which broadcasts, so every YAML case passes.
    • With more than one SPM unit and at least one eligible Colorado unit, numpy raises.
  • Executed results:
    • Two households with the plain working parent: ValueError: operands could not be broadcast together with shapes (2,) (4,) (diag.out).
    • Shard 5, tests/test_child_care_subsidy_needs_care.py::test_no_care_draws_no_subsidy, reproduced locally at the head: shapes (51,) (102,) at co_ccap_subsidy.py:28 (falsifying example earnings=18892, child_ages=[2]). CI had the same error at earnings=15080, child_ages=[0].
    • The Microsimulation job (CI log only, nothing run locally) fails 3 tests on the same line. They hit it through spm_unit_allocated_housing_subsidy (2024) and or_ctc (2028):
      • test_default_dataset_allocates_no_housing_share_to_an_unclassified_unit: (59900,) vs (166321,)
      • test_legacy_enhanced_cps_allocates_no_housing_share_to_an_unclassified_unit: (43134,) vs (101384,)
      • test_or_ctc_sunset.py::test_or_ctc_zero_from_2029: (2417,) vs (5410,)
    • The "Check Rest Python shards" gate fails only because shard 5 did.
    • Main's latest push runs are green (46770751730 at 50af7fb), and the traceback points at PR code, so the PR causes all three red checks.
  • Impact: co_ccap_subsidy feeds co_child_care_subsidies, spm_unit_benefits and household_child_care_subsidies. Any dataset microsimulation, and any multi-household situation that contains an eligible Colorado unit, raises instead of returning results. That includes national runs and anything that reads net income or poverty.
  • Fix: project the unit flag to members before the person-level mask, for example mixed = spm_unit.project(mixed_activity) and then spm_unit.sum(charges * (~mixed | activity_eligible)). Add a YAML case with two SPM units, for example two households in one test, so that the YAML suite catches it.
  • Proposed severity: CRITICAL. It fails required checks, and every multi-unit simulation crashes.

C2 — Any part-year worker loses the activity in every month, so the family gets $0 all year (OPEN)

  • Location: V/co_ccap_child_activity_eligible.py:52-59, where the annual fallback requires weeks_at_work == WEEKS_IN_YEAR. It came in with c3f6ce5. Case 5 of co_ccap_activity_eligible.yaml codifies it, asserting only January.
  • Trigger (executed at the snapshot): a Denver single parent of a 3-year-old, with $12,000 a year of child care costs, in 2026. Inputs: employment_income $30,000, weekly_hours_worked_before_lsr 40, weeks_worked 40. That is $18.75 an hour, far above the $7.25 floor. No monthly inputs. Reproduction: /tmp/policyengine-command-runs/ea33c0bb2b64/pr-10690-policy-diag/repro.py, log repro.log.
  • Observed: co_ccap_activity_eligible is false in all 12 months, and the annual co_ccap_subsidy is $0. With weeks_worked 52 and everything else the same, all 12 months are active and the subsidy is $10,482. The prior head returned true for this case.
  • Expected:
    • 3.111(B)(1) (page 15) and (G)(1)(b) (page 19) count employment whenever gross income ÷ hours is at least the federal minimum wage. That is so in every month the parent works, which is at least 40 of the 52 weeks.
    • 3.112(C)(1) (page 30): "Any interruption in work for a seasonal worker who is not working between regular industry work seasons" is a temporary break, not a cessation of activity.
    • 3.114(A)(3) (page 33): a county may end a case during the eligibility period for inactivity only after the job search period expires. 3.111(G)(3)(a) (pages 19-20) gives "no fewer than thirteen (13) weeks" of job search per non-temporary cessation.
    • 3.103(NNNN) (page 10) and 3.132(B) (page 69) set a 12-month minimum eligibility period and authorization.
    • So the rule makes the family eligible in at least the months worked, and a seasonal worker in all 12. Which months annual data leave unclear, but zero months contradicts the rule under any timing.
  • Impact: this is wrong eligibility and a lost benefit in a claimed year, for every Colorado household with annual inputs and weeks_worked between 1 and 51. In microsimulation that means every CPS part-year worker caretaker. It also reverses behavior the prior review approved.
  • Fix direction (untested): keep the weekly-rate test of the prior head (earnings ≥ minimum wage × weekly hours × weeks) as the annual fallback. Let it cover each month unless monthly inputs (co_ccap_work_hours/co_ccap_work_wages, as in "A job that begins in July") say otherwise. Then make Case 5 true, or move its premise into monthly inputs.
  • Source: 8 CCR 1403-1 (12277), pages 10, 15, 19-20, 30, 33 and 69. Manifest /tmp/policyengine-command-runs/ea33c0bb2b64/pr-10690-review-sources.json.
  • Proposed severity: CRITICAL.

Coordinator assessment: I've kept this critical. It is an executed wrong eligibility result in a claimed year, and it reverses behavior the prior round approved. Under the annual-data fallback, a parent working 40 weeks at $18.75 an hour fails the activity test in all 12 months, and the family's $10,482 subsidy becomes $0. 8 CCR 1403-1 counts work in the months it is done, treats seasonal gaps as temporary breaks (3.112(C)(1)) and allows inactivity closures only after job search (3.114(A)(3)). The code review saw the same pattern: a worker with fewer than 52 weeks and no monthly figures fails every month.

Should Address

A1 — Wages with no recorded hours now count as no activity (OPEN)

  • Location: V/co_ccap_child_activity_eligible.py:57 (annual_hours > 0) and Case 1 / "One dollar of earnings with no recorded hours". Introduced by c3f6ce5.
  • Trigger (executed): the same Denver family with employment_income $30,000 and no hours entered.
  • Observed: false in all 12 months; subsidy $0. The prior head returned true, and the prior review approved that: "earnings above zero with no recorded hours ... can't fail the floor".
  • Source position: (G)(1)(b) (page 19) tests gross income ÷ hours worked, and 3.103(VVV) (page 9) has the county verify hours. With hours unknown, the source settles neither outcome. The floor would fail only above about 4,138 hours a year (79.6 a week) at $30,000. So this is a default choice, not a demonstrated legal error.
  • Impact: a household-calculator user who enters wages but not hours, which is common, now gets no Colorado child care assistance. The PR body states the rule ("$20,000 ÷ 0 hours supplies no verified rate") but not this consequence for users.
  • Ask: justify the default in the variable documentation and the PR body, or default unknown hours to passing, as before.
  • Proposed severity: SHOULD ADDRESS.

Coordinator assessment: The code review measured the same thing: $30,000 of wages with no hours gives $0 for the year, against $872 a month under main's formula. The source doesn't settle unknown hours either way, so this is a default choice. But it removes assistance for a common calculator entry, so please justify it in the documentation and PR body or restore the passing default.

A2 — In a mixed unit, the parent fee still charges the $15 add-on for the child the activity test excludes (OPEN)

  • Location: V/co_ccap_subsidy.py:24-30 with V/co_ccap_add_on_parent_fee.py. co_ccap_children_in_care counts co_ccap_child_eligible children and ignores co_ccap_child_activity_eligible.
  • Trigger (executed, diag.out "mixed_above_fpg"): the PR's own mixed case in T/co_ccap_subsidy.yaml, a student parent with child $4,800/yr and an inactive adult with child $7,200/yr, but with the inactive adult earning $40,000, so income is above FPG.
  • Observed: co_ccap_child_activity_eligible [F, T, F, F]. Yet co_ccap_children_in_care = 2, the add-on fee is $15, the parent fee is $139 and the subsidy is $261 in 2026-01.
  • Expected if, as the PR's design implies, only the passing child is in CCCAP care: 1 child in care, add-on $0, fee $124, subsidy $276.
  • Source premise: that 3.124(P)'s "each child in care after the first" means children authorized for care. That is the policy reviewer's call. The add-on is $15/month through 2028-07-31 and $0 after.
  • Proposed severity: SHOULD ADDRESS, subject to policy confirmation. It is $15/month, and only in mixed units above FPG.

A3 — Two new guards in the caretaker test have no failing case (OPEN)

This rests on a code trace; I did not run mutations.

  • The business_hours < 0 mask on annual self-employment income (V/co_ccap_child_activity_eligible.py:38-48).
    • Every case that sets co_ccap_business_hours either has $0 annual self-employment income (:1146), a negative one clipped to 0 (:964), or a verified profit that already passes (:984).
    • Dropping the mask, so that annual self-employment income always counts, flips no expectation.
    • Add, for example, self_employment_income: 15080, 40 h × 52 wk, co_ccap_business_hours: 0. Expect false.
  • The teen_count == 1 and age[member] > age guards in the no-filer fallback (:96-110). Only one sole-teen case exists (:883), so >= 1 or dropping the age comparison would pass.
    • Add two enrolled teens in the baby's tax unit with no filer. Expect false.
  • Proposed severity: SHOULD ADDRESS (new branches without tests).

Suggestions

None.

Evidence Gaps

No material gaps reported.

Notes

  • This round covers the two author commits since the 11-13 review (c3f6ce5 and 8c4e219) and one merge of main.
  • Round-1 critical (basic education): co_ccap_in_eligible_education now counts secondary school and adult equivalency, basic education and ESL programs, per 3.103(Q) and 3.111(G)(4)(b). Executed: an 18-year-old parent in high school and a 30-year-old in an HSE/ABE/ESL class each get $1,000 a month in January 2026.
  • Should 1 (six entries with no case): Should 2 (page format): RESOLVED; the title is quoted and ends #page 36-37.
  • Should 3 (Axiom parity) is still open and still needs addressing. rulespec-us#2067 hasn't changed since 11-11, and no queue issue covers what the PR now encodes beyond it: job search, temporary breaks, substance use treatment and child-by-child payment. #2067's implementation text describes the old head, so the axiom line no longer matches. Please update #2067 or open a queued companion, and list it on the axiom line.
  • Optional, from round 1: G1 and G3 are resolved. G2 is resolved apart from merging three page links. G4 and G5 remain open.
  • New behavior verified against 8 CCR 1403-1:
    • monthly verified work, with wages and self-employment tested separately against the minimum-wage floor;
    • job search of at least 13 weeks;
    • temporary breaks;
    • Colorado Works;
    • substance use treatment from 2026-07-01;
    • stabilization and child-welfare waivers;
    • child-by-child purchase (3.132(A)).
  • Mid-year changes work month by month. Families with no special case match main's formula ($872 a month for a single worker, $561 for two). The PR body discloses that 12-month continuation through certification is not modeled.
  • code-1 is the cause of all three red checks. Shard 5 fails with (51,) vs (102,) shapes. The microsimulation suite fails three tests on the same line, through spm_unit_allocated_housing_subsidy and or_ctc, diagnosed from the CI log only. Main's latest push run is green. The fix is to project the SPM-unit flag with spm_unit.project(...) and add a two-unit YAML case.
  • The merge of main is clean, and the head merges cleanly with current main.

Validation Summary

Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot): the Colorado CCAP YAML folder passed 178 of 178; the pytest run had 11 passed and 1 failed (the shard-5 test, reproducing code-1). Diagnostics executed the round-1 education households, mid-year changes, the mixed-unit fee, the two-household crash and the policy-1 part-year household. The microsimulation failure was diagnosed from the CI log; no microsimulation was run locally. Sources: 8 CCR 1403-1 (pp. 9–10, 15, 19–21, 30, 33 and 69); manifest check passed. CI at 6624798: 3 checks fail (Microsimulation, Python Rest shard 5 and its gate; see code-1).

Timing

setup seconds: 15.00s; scope seconds: 60.00s; parallel review seconds: 475.10s; policy role seconds: 298.30s; code role seconds: 475.10s; adjudication seconds: 150.00s; consolidation cleanup seconds: 79.90s; elapsed seconds: 1078.00s

Review Severity

REQUEST_CHANGES. Open findings: 2 critical, 3 should address, 0 suggestions.

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.

2 participants