Plan: Medicaid Cooperation With Medical Support and Third-Party Liability (#3069)

Status: Done (2026-11-02) — U1, U2 and U3 (#3189, #3190, #3191) merged
Epic: &58
Issues: #3069 (parent) · #3189 U1 (w3) · #3190 U2 (w5) · #3191 U3 (w3)
Branches: feat/3069-medicaid-cooperation-findings, feat/3069-medicaid-cooperation-penalty, feat/3069-medicaid-cooperation-form

Erratum (2026-11-01): U1 lands refusals_on as #[cfg(test)], because canopy-medicaid has no production caller until U2 and lint suppressions are banned; U2 drops the cfg.

Erratum (2026-11-01): U1’s database route tests live in services/canopy-medicaid/src/api/cooperation_route_tests/infra_tests.rs, because the lane partition runs a test against the devstack only under a module path segment ending in infra_tests.

Erratum (2026-11-01): U1 also touches its contract tests (crates/canopy-contracts-medicaid/tests/roundtrip.rs), the typed id MedicaidCooperationFindingId (crates/canopy-common/src/id.rs), the thiserror dependency, services.adoc, authorization-inventory.adoc and the OpenAPI snapshot, and keeps its row type in store/cooperation.rs.

Erratum (2026-11-01): The finding list admits READER rather than a new canopy_auth::delegated row, so a case-reader row through canopy-web, if U3’s tab needs one, is U3’s to add.

Erratum (2026-11-01): Shared Rust doc comments cite only 42 CFR 435.610 and 433.148, since the neutrality gate refuses a state-manual citation on a closed vocabulary; the PAMMS citations stay in the docs.

Erratum (2026-11-01): #3204 gates Pathways on the section 1115 demonstration’s qualifying-activity hours, so the gate tests where a penalized parent of 30 keeps Pathways record that parent’s hours, and the federal-floor case runs under the default pack, since test-max elects no demonstration.

Erratum (2026-11-01): The cooperation ruleset also outputs medical_support_removed_groups, so each removed group carries the code of the refusal that removed it; with both refusals, a group exempt from medical support alone would otherwise read as a medical-support removal.

Erratum (2026-11-01): magi_size is an i32, the type of household_size and of fpl_100_monthly's argument.

Erratum (2026-11-01): [medicaid.cooperation] lands in georgia, default and test-max; test-min has no [medicaid].

Erratum (2026-11-01): U2’s integration cases run in-process, not in tests/medicaid_test.rs: determine/cooperation_gate_tests.rs over the shipped rulesets through a zen-engine stand-in (src/test_engine.rs), and its infra_tests child through determine on an ephemeral schema.

Erratum (2026-11-02): U3 lands with #3201’s U3 (#3205) in one MR, since both add a form and a listing to the Medicaid categories tab: one section (case_detail/medicaid_tab/worker_facts.rs), one mock surface (mock_upstream/medicaid_facts.rs) and one test file (actions_medicaid/fact_tests.rs), the forms mirroring the CAPS fact actions (#3184), which follow the WIC breastfeeding form.

Erratum (2026-11-02): The tab lists every member, not only adults: adulthood is canopy-medicaid’s to judge from the pack’s adult_age at the determination, and a finding recorded for a child is never applied (2657). The names come from the named roster, which opens no SSN.

Erratum (2026-11-02): U3 adds the case-reader row the U1 erratum left to it: the finding list admits by delegated::MEDICAID_GET_COOPERATION_FINDINGS, which also admits a case reader through canopy-web, as the tab’s other reads do.

Erratum (2026-11-02): D6’s two rows leave compliance/action-coverage-allowlist.toml (their #785 entries) as they bind; the good-cause row’s operation is create_cooperation_finding and its test U1’s a_create_answers_201_with_the_bearers_subject.

Erratum (2026-11-01): In Georgia a parent aged 19 to 64 is also Pathways-eligible, and Pathways is exempt from medical support, so U2’s medical-support denial case uses a caretaker of 65; a 30-year-old parent keeps Pathways. The Newborn-only case pins the MAGI answer, since no adult reaches Newborn through the shipped graphs.

This is a Design + Scope plan: GitLab owns tracking, the child issues carry the implementer brief, and the plan freezes when U1 starts.

Context

42 CFR 435.610(a) makes assignment of rights and cooperation a condition of Medicaid eligibility: an applicant attests that they will cooperate, and a beneficiary cooperates, in "establishing the identity of a child’s parents and in obtaining medical support and payments, unless the individual establishes good cause for not cooperating or is a pregnant woman described in § 435.116" a)(2)(i, and in identifying liable third parties a)(3. 42 CFR 433.148(a) denies or terminates an individual who refuses; (b) keeps Medicaid for anyone who "cannot legally assign his own rights" but would otherwise be eligible. canopy has no cooperation fact, input or rule in any layer, and the catalogue rows medicaid.verification.tpl-cooperation-notice-good-cause and tpl-noncooperation-penalty (compliance/action-catalogue/medicaid.toml) are unbound.

Georgia’s manual sets the shape (rulesets/georgia/.policy-cache/dfcs-medicaid/modules/medicaid/pages/):

  • The attestation is the application. 2250 (MT-70): "If the application or renewal is completed using GA Gateway or a 94A, a 138 is not required as the 138’s language is included in the GA Gateway, and 94A application and renewal." Non-cooperation is an adverse finding that starts from a DCSS notice ("Notice of Non-Cooperation", 2250) and a good-cause determination; no finding means no penalty.

  • Good cause. It may be claimed at any time, and "Assistance is not delayed, denied or terminated pending a determination of Good Cause if the A/R has cooperated in providing information and/or evidence in support of the Good Cause claim." After good cause is not established, "Do not impose a penalty or refer to DCSS if a hearing is requested."

  • Who is penalized. "If a Family Medicaid AU member fails to cooperate with DCSS without Good Cause, the adult who failed to cooperate is penalized" (2250); "A child is never penalized or excluded for the adult’s failure to cooperate with TPL or Division of Child Support Services (DCSS) for the child" (2657); "A minor caretaker and a minor applying for Medical Assistance due to pregnancy are considered a child" (2657). A Medicaid A/R cooperates "in obtaining medical support only" (2250). TPL: "An adult A/R is penalized for failure to cooperate with the TPL process"; "Recipients of Newborn Medicaid are not required to provide information regarding TPLs" (2230).

  • Exempt groups. TMA / 4MEx, Pathways, newborns, and pregnant women "under any COA" are not required to cooperate with DCSS (2250, EXCEPTIONS).

  • The budget. For a MAGI AU, "If the individual … is a parent, the parent is penalized. Include the income of the penalized parent in the budget" and "Do not include the penalized individual when selecting the appropriate income limit for the AU" (2657).

Precedents: the residency gate (#3095, residency_denial in services/canopy-medicaid/src/determine.rs, the federal rulesets/federal/medicaid-residency.json) is a per-subject ruleset gate whose denial is signed like any other, and commit c97364500 shows every surface a new Medicaid denial code touches. The WIC and CAPS plans (Plan: Dispatch WIC determinations from the orchestrator (#2364), D1; plans/caps-two-parent-activity.adoc, D1) put a fact only one program reads in that program’s service. This finding is Medicaid’s alone: the issue says it "is distinct from TANF’s IV-D cooperation (#820); do not fold the two together".

Scope

In scope:

  • canopy-medicaid records cooperation findings per person and kind (medical support, third-party liability) as an append-only, worker-recorded, effective-dated history, with a user-only POST and a GET.

  • The determination reads each subject’s finding on the run’s legal day. A penalized adult keeps only the coverage groups the pack exempts, and is denied with a coded reason when none remain. A child is never penalized. A penalized adult is left out of the MAGI household size the income limit uses, while their income still counts.

  • One [medicaid.cooperation] pack section; the federal ruleset; the denial codes through labels, notices and the worker’s determination view; a canopy-web form; the two catalogue rows bound.

Out of scope:

  • Inbound DCSS non-cooperation notices as events (the worker records the finding from Form 252 today); a follow-up issue.

  • The good-cause clock (20-day evidence deadline, 45/30-day determination, 2250 Steps 2 and 8) and its worker alerts; a follow-up issue.

  • Timely notice before a recipient’s penalty (2657: "effective the month following the expiration of timely notice"): the worker records the effective date; Medicaid’s advance-notice machinery is #2207.

  • The assignment-of-rights row medicaid.verification.record-assignment-of-rights (433.145-146): the signed application effects it (2230), and the portal’s signature text is checked against Form 138’s language in a follow-up issue.

  • Storing the good-cause circumstance (harm, rape or incest, adoption): the case record holds the evidence; canopy keeps only the status, so no such category lands in its database.

Design

D1 — The finding record (canopy-medicaid)

Migration services/canopy-medicaid/migrations/20270310000000_medicaid_cooperation_findings.sql, forward-only (ADR-016), shaped like services/canopy-wic/migrations/20270305000000_create_wic_breastfeeding_statuses.sql:

CREATE TABLE medicaid_cooperation_findings (
    id UUID PRIMARY KEY,
    person_id UUID NOT NULL,
    kind TEXT NOT NULL CHECK (kind IN ('medical_support', 'third_party_liability')),
    status TEXT NOT NULL CHECK (status IN (
        'non_cooperating', 'good_cause_claimed', 'good_cause_established',
        'hearing_requested', 'cooperating')),
    effective_date DATE NOT NULL,
    recorded_by TEXT NOT NULL,
    created_at TIMESTAMPTZ NOT NULL
);
CREATE INDEX idx_medicaid_cooperation_findings_person
    ON medicaid_cooperation_findings (person_id, kind, effective_date DESC, created_at DESC);

A person’s status for a kind on a date is the newest row of that kind with effective_date ⇐ date, ties by created_at (status_on in services/canopy-wic/src/store/breastfeeding.rs). A person refuses a kind on a date when that status is non_cooperating; every other status, and no row at all, is not a refusal. That encodes 2250 directly: a claimed good cause, an established one, and a requested hearing each hold off the penalty, and cooperating ends it (2250, "approve Medicaid for the penalized adult effective the month of compliance").

Contracts in crates/canopy-contracts-medicaid/src/cooperation.rs, after crates/canopy-contracts-wic/src/breastfeeding.rs: CooperationKind and CooperationStatus as closed snake_case enums with ALL, as_str and TryFrom<String>; CreateCooperationFinding { person_id, kind, status, effective_date } (deny_unknown_fields, no recorder); MedicaidCooperationFinding as the stored row. Path /v1/cooperation-findings in paths.rs, POST and GET (?person_id=), newest first. Admission mirrors create_breastfeeding_status (services/canopy-wic/src/api/handlers/breastfeeding.rs): Principal, WRITER (services/canopy-medicaid/src/api/mod.rs), a user-only subject helper that refuses a service bearer with 403 service_class_on_user_only and yields recorded_by; created_at is the request’s DecisionClock instant, and effective_date is refused outside the years 1900-9999 or after the legal today, with coded 422s, as the CAPS U1 creates do. The handler lives in services/canopy-medicaid/src/api/cooperation.rs. No log line carries a kind or status.

D2 — The federal ruleset and the pack section

rulesets/federal/medicaid-cooperation.json, cited in rulesets/federal/citations.toml and indexed in rulesets/federal/indexing.toml as medicaid-residency.json is. One expression node, per subject:

input:   refuses_medical_support: bool          // the subject's status on as_of (D1)
         refuses_third_party_liability: bool
         age_years: number
         eligible_groups: [coa_code]             // the cascade's eligible groups
context.thresholds: adult_age, medical_support_exempt_groups: [coa_code],
                    third_party_liability_exempt_groups: [coa_code]

adult         = input.age_years >= context.thresholds.adult_age
ms_penalized  = $.adult and input.refuses_medical_support
tpl_penalized = $.adult and input.refuses_third_party_liability
retained_groups = filter(input.eligible_groups,
    (not $.ms_penalized or # in context.thresholds.medical_support_exempt_groups)
    and (not $.tpl_penalized or # in context.thresholds.third_party_liability_exempt_groups))
medical_support_code       = $.ms_penalized ? 'medical_support_non_cooperation' : null
third_party_liability_code = $.tpl_penalized ? 'third_party_liability_non_cooperation' : null

A group survives only if it is exempt from every kind the subject refuses. x in context.thresholds.list has an in-tree precedent (input.adjunctive_program in context.thresholds.adjunctive_programs), and $.name reads an earlier expression of the same node, as expr-age-test does in rulesets/georgia/caps-eligibility.json. filter is a zen-expression 0.55 closure (ClosureFunction::Filter) with no in-tree precedent, so U2’s parity test evaluates the ruleset locally on every arm and pins it. The codes come from the ruleset, so the MedicaidDenialReasonCode vocabulary sweep (crates/canopy-reference/src/medicaid_labels.rs) reads them as it reads 'not_a_state_resident'.

[medicaid.cooperation] in each jurisdiction.toml, required (a missing section refuses boot, as copayment_tiers does in canopy-caps), loaded in services/canopy-medicaid/src/params.rs:

  • adult_age = 19: Georgia cites 2657 ("A child is never penalized"; a minor caretaker is a child) and 42 CFR 433.148(b).

  • medical_support_exempt_groups = ["pregnant_women", "pregnant_medically_needy", "newborn", "tma", "four_months_extended", "pathways"]: Georgia cites 2250 EXCEPTIONS and 435.610(a)(2)(i).

  • third_party_liability_exempt_groups = ["newborn"]: Georgia cites 2230 ("Recipients of Newborn Medicaid are not required to provide information regarding TPLs").

default and test-max carry the federal floor, cited fixture: adult_age = 19, medical support exempting pregnant_women and pregnant_medically_needy (435.116 is the pregnant-women group), TPL exempting none. A boot check refuses an unknown group code (parsed through MedicaidCategory).

D3 — The gate in the cascade (canopy-medicaid)

cascade_verdict (services/canopy-medicaid/src/determine.rs) evaluates the cooperation ruleset (a RulesClient::evaluate_cooperation_with_provenance beside evaluate_residency_with_provenance in services/canopy-medicaid/src/rules_client.rs) after cmd_cascade::run_cascade and before the served slot’s hierarchy_pick, with the subject’s refusals read from D1’s store on as_of and the cascade’s eligible_coas. The gate rewrites the cascade’s result before the slot runs: each removed group’s CoaEvaluation in cascade_result.evaluations becomes eligible: false with denial_reason set to the penalty code, and cascade_result.eligible_coas becomes retained_groups. From there nothing else changes shape: hierarchy_pick chooses among the retained groups, slot::slot_evidence (determine/slot.rs) reports the removed groups with the penalty code, persist_member_cascade writes the same evaluations to cmd_cascade_log and medicaid_eligible_categories, and denial_reasons_by_coa carries the code per removed group. The firings join subject_firings, so the snapshot carries the gate under ADR-028.

  • A penalized subject whose retained_groups is empty, while the cascade had found any eligible group, is denied: denial_reason is the medical-support code when present, else the TPL code; denial_reason_codes carries every non-null code (the slot evidence dedupes them as it does income reasons); basis reads "Did not cooperate in obtaining medical support without good cause (42 CFR 435.610(a)(2); 433.148(a))" or its TPL form.

  • A penalized subject with a retained group is approved under it, the hierarchy choosing among the retained groups.

  • A subject the cascade found ineligible everywhere keeps the cascade’s own reasons; the penalty adds nothing.

  • The residency gate still runs first: a non-resident is denied for residency, never for cooperation.

The refusals are read once per run, for every member, by store::cooperation::refusals_on(db, &person_ids, as_of), before HouseholdRun is built.

D4 — The income limit’s household size

One fpl_100 (params.fpl_100_monthly(ctx.household_size), determine.rs:765, carried on HouseholdRun) is today the base of every FPL-scaled threshold: the MAGI groups (determine.rs:1285-1292), CHIP (:1376-1377), TMA (:1481), and the non-MAGI QMB, SLMB, QI-1 and QDWI limits (:1345-1355); compute_household_magi builds its own at :561 for the 5% disregard (:587). 2657 states the size rule for MAGI AUs, so the plan adds a second base rather than replacing the first:

  • magi_size: u32 = ctx.household_size minus the members penalized at the status level (a refusal of either kind on as_of, aged adult_age or over), floored at 1.

  • HouseholdRun gains magi_fpl_100 = params.fpl_100_monthly(magi_size). The MAGI group thresholds, the CHIP thresholds, the TMA threshold and the 5% disregard (compute_household_magi takes magi_size) use it; fpl_100 stays on ctx.household_size for the non-MAGI limits, and mnil_income_limit and the resource limits are untouched.

  • net_magi is unchanged: the penalized parent’s income still counts.

  • The snapshot’s policy_params records magi_size and magi_fpl_100_monthly beside household_size and fpl_100_monthly (:1904, :2002).

D5 — The codes on every surface

Following c97364500’s surfaces: MedicaidDenialReasonCode (crates/canopy-reference/src/medicaid_labels.rs) gains medical_support_non_cooperation and third_party_liability_non_cooperation with labels, and the vocabulary-sweep test picks them up from the ruleset; services/canopy-notices/src/generator.rs renders each code’s NOA sentence, naming the right to claim good cause at any time and to a hearing (2250; 431 subpart E per 433.148(c)); services/canopy-web/src/api/case_detail/determination_wire.rs labels them; compliance/neutrality-gate.toml re-digests the enum entry.

D6 — Catalogue

tpl-noncooperation-penalty binds as an endpoint row on medicaid POST /determine (service = "medicaid", path = "/determine", verb = "post", operation_id = "post_determine", as the residency rows c97364500 bound) with the U2 penalty test as test_ref; tpl-cooperation-notice-good-cause binds to the finding POST with the U1 route test, its description trimmed to what is built (recording the claim and its determination; the notice is the application, the good-cause clock is the follow-up issue). record-assignment-of-rights stays unbound under its existing allowlist entry.

Risks

  • No finding reads as cooperating (fail-open, by policy). An adult DCSS reported but nobody recorded is approved. This is 2250’s own order: the penalty follows a recorded non-cooperation notice and a good-cause decision. The Medicaid case tab lists each adult’s current finding, or "none recorded" (U3).

  • A penalized parent shrinks the children’s income limit (fail-closed for the children, by policy). A child near the limit can lose eligibility when a parent is penalized; that is 2657’s budget rule. The children’s denial reason is the income test’s, and an integration test pins the size reduction and the floor at 1.

  • A status-level penalized adult whom the gate then approves under an exempt group is still left out of magi_size (silent, rare). 2657 removes "the penalized individual" from the size; an adult approved under, say, Pathways is arguably not penalized. D4 counts the refusal, not the gate’s outcome, so the size is decided before any subject is evaluated; the case is rare (an exempt group and a refusal together) and recorded in the code comment.

  • A new required pack section (fail-closed). A jurisdiction without [medicaid.cooperation] refuses to boot, naming the section; all four shipped packs gain it in U2.

  • Snapshot churn (silent). evaluate_member_sends_the_pinned_rules_payloads and the insta snapshots gain the cooperation call and the two new policy_params fields; U2 re-accepts them and reviews, line by line, that no other payload moved.

  • A non-MAGI adult’s limits would wrongly shrink if the wrong base were used (fail-closed, prevented). D4 keeps fpl_100 for QMB, SLMB, QI-1 and QDWI; an integration test pins that a penalized household’s QMB limit is unchanged.

Units (weights by complexity) — U1 → U2 → U3

Weights: 1 trivial · 2 small · 3 medium · 5 large · 8 very large. One unit = one independently shippable MR = one child issue.

U1 (w3) — The finding record

Files: services/canopy-medicaid/migrations/20270310000000_medicaid_cooperation_findings.sql, crates/canopy-contracts-medicaid/src/{cooperation,paths,lib}.rs, services/canopy-medicaid/src/store/cooperation.rs, services/canopy-medicaid/src/store/mod.rs, services/canopy-medicaid/src/api/{cooperation,mod}.rs, services/canopy-medicaid/src/api/cooperation_route_tests.rs, docs/modules/ROOT/pages/api/canopy-medicaid.adoc, docs/modules/ROOT/pages/data-models/canopy-medicaid.adoc.

D1. Route and contract tests: a create answers 201 with the bearer’s subject as recorded_by; a service bearer is 403; an unknown token or an extra field is 422; a date out of range or after the legal today is its coded 422; refusals_on returns a kind only when its newest effective row is non_cooperating, breaks a same-day tie by created_at, and treats each of the four other statuses and no row as no refusal; the list is newest first. cargo xtask migrations-lint clean.

U2 (w5) — The gate, the size and the codes

Files: rulesets/federal/{medicaid-cooperation.json,citations.toml,indexing.toml}, rulesets/{georgia,default,test-max}/{jurisdiction.toml,citations.toml}, services/canopy-medicaid/src/{params,determine,rules_client,derivation}.rs, services/canopy-medicaid/src/cooperation.rs, services/canopy-medicaid/src/determine/cooperation_gate_tests.rs, services/canopy-medicaid/tests/medicaid_test.rs, crates/canopy-reference/src/medicaid_labels.rs, services/canopy-notices/src/generator.rs, services/canopy-web/src/api/case_detail/determination_wire.rs, compliance/neutrality-gate.toml, crates/canopy-test-lib/fixtures/rulesets/.

D2 to D5. Integration tests through the real Georgia pack (regression, each failed by a mutation): a parent with a non_cooperating medical-support finding is denied medical_support_non_cooperation while the children are approved; the same parent with good_cause_claimed, good_cause_established, hearing_requested or cooperating is approved; a pregnant adult with the same finding is approved under pregnant_women; an 18-year-old minor caretaker with the finding is not penalized; a TPL refusal by an adult on a newborn-only path keeps newborn; a refusal recorded with an effective date after as_of does not apply; a household of four with one penalized parent tests the children against the size-three limit with the parent’s income counted, while an aged member’s QMB limit stays at size four; a one-adult household’s penalty leaves magi_size at 1; a non-resident with a refusal is denied for residency only; the removed groups appear in cmd_cascade_log with the penalty code. Parity tests evaluate the federal ruleset locally on each arm (contract). The default pack’s federal floor is covered by one test-max run. Notice and label tests cover both codes.

U3 (w3) — The worker form and the catalogue

Files: services/canopy-web/src/api/actions_medicaid/cooperation.rs, services/canopy-web/src/api/case_detail/medicaid_tab/cooperation.rs, services/canopy-web/templates/cases/ (the Medicaid tab), services/canopy-web/src/api/mock_upstream/medicaid_cooperation.rs, compliance/action-catalogue/medicaid.toml, compliance/action-coverage-allowlist.toml, docs/modules/ROOT/pages/federal-requirements.adoc, docs/modules/ROOT/pages/services.adoc.

A form on the Medicaid case tab after services/canopy-web/src/api/actions_wic/breastfeeding.rs: WritePermission and ProgramScope<Medicaid> first, the person proven on the roster (fact_editor::ensure_household_member), the write on the worker’s delegation, canopy-medicaid’s coded refusals as server-owned copy. The tab lists each adult’s current finding per kind, or "none recorded", as text. Route tests (regression, each failed by a mutation) cover the gate, the roster proof, each refusal’s copy and the listing. D6; cargo xtask policy action-coverage clean. federal-requirements.adoc gains 42 CFR 435.610 and 433.147-148 rows. This unit’s MR closes #3069.

Verification

  1. cargo xtask test — the unit and integration lanes pass (see Testing).

  2. cargo xtask dev restart (U1 adds a migration; U2 changes packs), then cargo xtask e2e.

  3. cargo xtask policy audit (medicaid), policy action-coverage, policy audit-jurisdiction-literals, neutrality-lint, migrations-lint, quality-budgets.

  4. cargo xtask validate — the pre-push battery is green.

  5. U1 and U2 close their child issues with Relates to #3069; U3 closes #3069. After U3 merges, the plan moves to plans/archive/ with Done.

Documentation Updates

  • api/canopy-medicaid.adoc (the record, the gate in the determination steps, the codes), data-models/canopy-medicaid.adoc (the table), services.adoc

  • CHANGELOG.adoc — one entry per unit under == Unreleased

  • rulesets.adoc for [medicaid.cooperation]; federal-requirements.adoc rows (U3)

Review log

round vendor resolved model verdict

1

anthropic

claude-fable-5-1 (gadhs/pi plan review at exit_plan_mode)

no-ship (fixed): two risks were unclassified; U3’s test category was unnamed; D4’s floor at 1 was unpinned; the fpl_100 call site was ambiguous

2

google

gemini-4-argon (second-vendor review)

no-ship (fixed): fpl_100 also feeds the QMB, SLMB, QI-1 and QDWI limits (D4 now adds a separate MAGI base); D3 now says how removed groups reach evaluations, the slot evidence and the persisted cascade

Edit this page · default