Re-determination of an enrolled household: interim change, order, COLA and the recertification anchor (#1133, #806, epic &103)
- Context
- Scope
- Design
- Units (weights by complexity) — U-A → U-D → U-C → U-B → U-E, one MR
- U-A (w8) —
feat(eligibility): add interim_change in-place re-price (#1133) - U-D (w3) —
feat(eligibility): add order_continuation for live enrollments (#1133) - U-C (w8) —
feat(eligibility): re-price live enrollments in the COLA run (#806) - U-B (w8) —
feat(eligibility): anchor recert approvals at the old end + 1 (#1133) - U-E (w5) —
test(e2e): add timely-recert and interim-change flows (#1133, #806)
- U-A (w8) —
- Verification
- Documentation Updates
- Review log
Status: Done (2026-09-21) — !1482
Epic: &103
Issues: #1133 (U-A, U-B, U-D, U-E) · #806 (U-C) — both closed by the one MR
Branches: feat/1133-redetermination-adoption (carries this page)
This is a Design + Scope plan: GitLab owns tracking, the two issues carry the implementer brief, and the plan freezes when U-A starts. The units are the commits of one MR (maintainer ruling 2026-09-17: related issues ship in one MR, one commit each, one battery).
Context
U-CONT (#1658/#1659/#1660) built the general primitive: a signed determination whose basis is continuation-class (EffectiveDateBasis::continuation_class(), CONTINUATION_CLASS_KINDS in crates/canopy-common/src/effective_date_basis.rs:138) applies IN PLACE to the household’s live snap_enrollments row under the lifecycle_revision fence (services/canopy-enrollment/src/main.rs:498-540 routes the class before the enrollment classifier; continuation/arm.rs, classify.rs:54-67): increases and extensions immediately with the exactly-once 273.12(c) supplement (continuation/supplement.rs), reductions and continuation-class denials through the 7 CFR 273.13 adverse-action pipeline (adverse_actions.rs:1741 staging, :2589 enact_reduction_tail, :2508 the termination tail that emits snap.case_closed at enactment; [notices].advance_notice_days, georgia 14). The class has ONE member, in_cert_conversion. Every other approval of an already-enrolled household still meets the #1130 one-live fence and PARKS (enroll_guards.rs:164-176, auto_enroll.rs:690-714), re-offered once a minute until the prior row leaves the live set — months later, when it lands stale. That is the remaining acceptance criterion of #1133, and the repo hands this issue four callers:
-
the interactive re-run — a worker’s
POST /v1/eligibility/determineon an application of an enrolled household (services/canopy-web/src/api/applications.rs:2137), todaydetermination_dayand a park; -
the order —
determination.requested::Orderor the order self-call (services/canopy-eligibility/src/orders/mod.rs:129-171), todayorder_effective(correct only for a household with NO live row,tests/order_backdated_enrollment_test.rs); a change report IS an order (epic &103,DeterminationTrigger::ChangeReport); -
the October COLA —
bulk/store.rs:439-470 cas_claimstampsmass_change_colaand the run’sas_of; enrollment parks it "for the #1133-capable binary" (F2 D3,enroll_guards.rs:122-137) and refuses one without a live row;bulk_max_cohort_casesis capped "post-#1133" (#806,snap.mass-change.colaunbound); -
the recertification approval — F1 (#1634, SME item 18) left the in-period approval of a
recertificationrow anchored inside the OLD period (derivation.rs:456-470legal-today;AgencyFaultPendingat the filing date), colliding with months already issued; the rule it handed over: anchor atrenewal_certification_end_date + 1, a full first month (7 CFR 273.14(e)(1), (b)(4); 273.10(f); PAMMS 3710). Thesnap.certification.timely-recert-uninterrupted-benefitsscenario is fenced on it (compliance/scenario-inventory/snap.toml:1543).
The classifier ADR-002 Amendment 1 D9 named (the trigger enum / previous_determination_id) has no SNAP producer on the interactive path (crates/canopy-contracts-eligibility/src/determine.rs:371-379; the bulk arm is the only setter of previous_determination_id, bulk/arm.rs:326), so the classifier is arrival path plus fail-closed reads of the household’s live enrollment and in-force certification. canopy-eligibility has no enrollment client or URL today (config.rs:25-121; renewals_url is optional, bulk-only); enrollment’s list read admits any service-class bearer (services/canopy-enrollment/src/api/mod.rs:487-507) but returns expired rows too (store.rs:190-201). An approval-settled postponement deliberately reports no dispatch block (services/canopy-applications/src/api/postponement_support.rs:389), so the application context alone cannot tell that a household’s certification is still the provisional expedited one. canopy-snap carries no live-period input (benefit_period_for_basis, services/canopy-snap/src/determine.rs:404-450), so a continuation kind must carry the period it re-prices. The expiry sweep and the renewals scheduler are fenced once per UTC day (crates/canopy-db/src/window_fence.rs:105), which in Georgia consumes a day’s window four hours before the legal date turns.
Rulings in force: no in-code policy fallback (#1147) and no silent policy-material default (ADR-034 §3); pre-1.0, forward-only, the devstack reseeds; the maintainer’s 2026-09-20 rule that related findings are fixed in the same MR; the F1 "void or re-anchor the in-flight renewal" rule binds only a caller that CHANGES a recertifying certification’s end — every kind here keeps the end, so it stays deferred on that named trigger; F2’s rule that no basis mints a month behind its anchor — the back span is restoration (7 CFR 273.17, #1113).
Scope
In scope
-
U-A the interactive caller:
interim_change, the two fail-closed reads, the report date on the interactive path and its ruleset cutoff key, the supplement reconciliation, the adverse effective-date floor, per-kind reason codes and letter bodies, the #1130 park reason without#1133. -
U-B the recertification approval:
recert_approval,renewal_certification_end_datein the determination context, the per-renewal successor row landed by a legal-day due pass, the closure at expiry, renewals' decision record minted at period start. -
U-C the COLA caller (#806):
mass_change_colain the class carrying the live period, the universe row’s type and chain head, the attempt/freeze split, the mass-change notice exemption with continued benefits, the mass-change letters, the D3 park deleted, the catalogue row bound. -
U-D the order caller:
order_continuationfor an order against a household with a live row. -
U-E the timely-recert journey (spec + walkthrough), the interim-change flow spec, Antora, ADR-002 errata, every live
#1133token, CHANGELOG, the Done flip.
Out of scope
-
The change-report front (epic &103 decisions 1–3, 5–6): it arrives as an ORDER whose producer computes
as_of(U-D). -
Enrollment supersession by row replacement (U-CONT §11’s other remainder): ruled OUT; the #1130 fence stays only as the defect fence for a non-continuation approval that still reaches it.
-
Medicaid: the CMD 42 CFR 431.211 advance-notice gap gets ONE medicaid owner issue (U-E).
-
Cross-program mass-change machinery and batch notices (#776); the mass-change journey rows stay fenced on it. Full-caseload sharding — on #806’s closing comment.
-
Retroactive months: an anchor behind the processing month (a report processed late, a COLA enacted after its effective month) is refused typed and named a restoration candidate (#1113); the closure of a certification that simply expires unrenewed emits nothing today and is unchanged.
Design
Decisions
| # | Decision |
|---|---|
D1 |
One primitive, one classifier. Every SNAP re-determination of a household with a live, in-force enrollment applies in place through U-CONT; the classifier is arrival path + the D3 reads, never application identity, trigger or |
D2 |
Kinds.
|
D3 |
Two fail-closed reads, before the arm is chosen, on every
|
D4 |
Arm table (SNAP), in precedence order;
|
D5 |
Anchors.
|
D6 |
canopy-snap signs the carried period. |
D7 |
Enrollment continuation arm — reused, with these additions and no new apply path.
|
D8 |
COLA (U-C).
|
D9 |
Recert approval — a scheduled successor per renewal application (U-B).
|
D10 |
Renewals mints at period start (U-B). A |
D11 |
Docs, errata and tokens. ADR-002 Amendment 1 gets ONE as-built erratum line after its header (the classifier is the basis kind plus the D3 reads; the 273.13 reduction path is U-CONT-a’s, not #1002’s; the park is now the defect fence only). Every live |
Invariants
-
A continuation kind carries the live period and canopy-snap signs it unchanged; enrollment’s
classifyseesOrdering::Equalonendfor every kind here; a mismatch is a DLQ, never an apply. -
The classifier is total and pure over its inputs; the two reads are never skipped and never guessed (read error ⇒ no determination); an
expeditedcertification refuses every re-determination. -
No continuation anchor precedes the processing month or leaves the live period; an
interim_changeanchor is a function of(reported_on, key, legal_today, period)andreported_onis on the signed basis. -
A reduction or termination is never enacted before its signed anchor nor before the notice floor; a mass-change action is advance-notice exempt and keeps its continued-benefits election.
-
A supplement never pays a month above its entitlement:
owed = entitlement − already issued, over regular and supplemental rows. -
recert_approval: at most onescheduledsuccessor per renewal application; the newest decision wins; a denial lands nothing and closes the case at the old end (at once when nothing is enrolled); the first issuance of a landed successor is a full month; the successor lands on the first pass after legal midnight of its start day. -
No household ever holds two live enrollments.
Units (weights by complexity) — U-A → U-D → U-C → U-B → U-E, one MR
U-A (w8) — feat(eligibility): add interim_change in-place re-price (#1133)
Files: crates/canopy-common/src/effective_date_basis.rs (D2), services/canopy-eligibility/src/{config.rs,main.rs,orchestrator.rs,derivation.rs} (D3 reads + clients, D4, D5 loader), config/canopy-eligibility/default.yaml, crates/canopy-contracts-eligibility/src/determine.rs (change_reported_on), services/canopy-web/src/api/applications.rs + services/canopy-web/templates/cases/tab_determination.html (the date field), rulesets/{georgia,default,test-min,test-max}/{jurisdiction,citations}.toml (the key, the reason rows), services/canopy-enrollment/src/{api/mod.rs,store.rs} + crates/canopy-contracts-enrollment/src/models.rs (the live read), services/canopy-enrollment/src/continuation/{arm.rs,supplement.rs} + adverse_actions.rs (D7 integrity, effective date, reason selection, reconciliation), enroll_guards.rs + auto_enroll.rs pins (park reason), services/canopy-enrollment/migrations/<new>_continuation_basis_kinds.sql, services/canopy-applications/src/api/mod.rs (settle interim_change's episode), services/canopy-snap/src/{determine.rs,postponement_policy.rs} (D6), crates/canopy-contracts-snap/src/events.rs, rulesets//notices/manifest.toml + services/canopy-notices/src/event_routing.rs pins, rulesets//notices/snap/benefit-continuation.typ + render cases, services/canopy-web/src/{determination_view.rs,api/continuations_panel_copy.rs}, renewals continuation/{rules.rs,infra_tests.rs} docs (the "adopter" notes become as-built).
Tests: the D5 dated pins per fixture value and the clamps; the arm table as a truth table incl. the exempt arms, the expedited refusal and the missing-report-date refusal; a failed read refuses the determination; enrollment infra: increase → immediate + one reconciled supplement, decrease → reduction_staged with effective = max(anchor, floor) → noa-reduction with the change_* text, denial → termination_staged → snap.case_closed at enactment, stale end → DLQ; the D12 reconciliation pins; the D13 agreement tests over four tokens; the reopen-episode settlement under interim_change.
U-D (w3) — feat(eligibility): add order_continuation for live enrollments (#1133)
Files: derivation.rs (D4 step 5, D5 refusals), services/canopy-eligibility/tests/order_continuation_test.rs (new: an enrolled household, determine_with_order inside the period → one order_continuation row, amount in place, end unchanged; behind the processing month → 422; outside the period → 422), order_backdated_enrollment_test.rs doc, api/canopy-eligibility.adoc order section.
U-C (w8) — feat(eligibility): re-price live enrollments in the COLA run (#806)
Files: crates/canopy-contracts-renewals/src/universe_snapshots.rs, services/canopy-renewals/src/store.rs + migrations/<new>_universe_row_type_and_chain_head.sql (D8 universe row), services/canopy-eligibility/src/bulk/{worker.rs,store.rs,arm.rs} + api/bulk_runs_support.rs (admission, claim/freeze split, outcomes, enact_outside_effective_month), services/canopy-enrollment/src/enroll_guards.rs (deletions) + auto_enroll.rs pins, adverse_actions.rs (exempt, Exemption, cb_despite_exemption), rulesets//notices/snap/mass-change-{reduction,termination}.typ + manifest.toml routes + render cases, compliance/action-catalogue/snap.toml, compliance/action-coverage-allowlist.toml, docs/modules/ROOT/pages/runbooks/bulk-cola-scaling.adoc, services/canopy-eligibility/migrations/20261120000000_cohort_runs.sql comment.
*Tests: bulk infra — a universe of {live standard, expired, expedited, long certification already continued once} yields {mass_change_cola applied, no_live_enrollment_on_effective_date, excluded at admission, baseline = the chain head}; a certification change between preview and enact → certification_changed_since_preview; the enact preflight outside the effective month; enrollment — a COLA reduction stages exempt with floor today, cb_available true, the mass-change letter; an increase applies immediately with the October supplement; a denial stages an exempt termination with the mass-change termination letter.
U-B (w8) — feat(eligibility): anchor recert approvals at the old end + 1 (#1133)
Files: crates/canopy-contracts-applications/src/applications.rs + services/canopy-applications/src/api/mod.rs (context field), derivation.rs (D4 step 7), services/canopy-enrollment/src/auto_enroll.rs (recert_facts, the full first month), new services/canopy-enrollment/src/successors.rs + migrations/<new>_enrollment_successors.sql (D9), expiry_sweep.rs (land_due_successors, the closure at expiry, the legal-day window), crates/canopy-db/src/window_fence.rs (run_window_fenced), services/canopy-renewals/src/{determination_subscriber.rs,scheduler.rs} + migrations/<new>_renewal_decisions.sql (D10), enrollment services/canopy-enrollment/src/api/mod.rs + crates/canopy-contracts-enrollment (the successors read), services/canopy-web/src/api/continuations_panel_copy.rs (the scheduled line), services/canopy-snap/src/{determine.rs,postponement_policy.rs} (D6 guard + denial_closes_case; the :320-328 doc), compliance/scenario-inventory/snap.toml:1543 (fence lifted), tests/e2e/specs/flow-snap-recert-reinstatement.spec.ts:126 comment.
Tests: dated derivation tests (last day of the period, the day after, an agency-fault pend on a recert row); enrollment infra pins mirroring expiry_sweep.rs:941-1000: an approval schedules and nothing parks; the pass on end + 1 expires the old row and lands the successor in its own transaction with a full first month (a $5 allotment issues $5); a newer approval supersedes, a newer denial withdraws (closure at expiry with the denial’s reason; at once with no live row), an older arrival is stale; a terminated predecessor’s successor lands on its date; a born-expired successor is refused and the expiry stays committed; an interactive approval landed first → superseded_by_live_row; the window key is the legal date; renewals — the decision row is causal, the recertifying row stays in force to its end, mint_due_renewals mints once at start and a withdrawn decision never mints.
U-E (w5) — test(e2e): add timely-recert and interim-change flows (#1133, #806)
Files:
-
tests/e2e/specs/journey-snap-timely-recert.spec.ts(new, projectjourney:arrangeRenewalDueSoon→ file the renewal by the 15th → interview → approve in period →recert_approvalatend + 1, the successorscheduled, the old row still issuing →advanceClocksTo(end + 1)→runExpirySweep→awaitEnrollmentstartend + 1, full first month, no gap on the applicant home) bound tosnap.certification.timely-recert-uninterrupted-benefits;docs/modules/ROOT/pages/walkthroughs/journey-snap-timely-recert.adoc+ frames (captured by the maintainer,cargo xtask e2e --no-refresh --devstack-profile full — specs/<spec> --project journey, selected by mtime). -
tests/e2e/specs/flow-snap-interim-change.spec.ts(new, projectcaseworker, two arms likeflow-snap-in-cert-conversion.spec.ts: a wage decrease reported before the cutoff →immediate+ supplement +benefit-continuation; a wage increase reported after the cutoff →reduction_stagedeffective the following month +noa-reduction). -
Antora:
api/canopy-eligibility.adoc,api/canopy-enrollment.adoc,api/canopy-snap.adoc,api/canopy-applications.adoc,api/canopy-renewals.adoc,data-models/canopy-enrollment.adoc(the successors table),data-models/canopy-renewals.adoc(the decisions table, the universe row),configuration-reference.adoc,federal-requirements.adoc,adrs/adr-002-…adoc(D11), the regenerated OpenAPI files (cargo xtask api-docs --updateafterdev refresh). -
Token checklist —
grep -rn '#1133'over the live tree (archived plans and CHANGELOG stay). SNAP tokens rewritten as-built:enroll_guards.rs,auto_enroll.rs,services/canopy-enrollment/src/api/mod.rs:471,supplement.rs:23,issuance_settlement.rs:1794, renewalsrules.rs:170/infra_tests.rs:1704,snap/determine.rs:325,order_backdated_enrollment_test.rs:35,cohort_runs.sql:16,portal/home.rs:409,555,1793,bulk-cola-scaling.adoc:78,data-models/canopy-enrollment.adoc:13,scenario-inventory/snap.toml:1541-1543. Medicaid tokens → the medicaid owner issue:manifest.toml×2,action-catalogue/medicaid.toml:1837,contracts-medicaid determinations.rs:92+openapi/medicaid.json,federal-requirements.adoc:426, the CMD walkthrough:291,:311and its spec:73,:643. -
CHANGELOG.adoc(=== Added: the three continuation kinds,recert_approvaland the scheduled successor, the two enrollment reads, the cutoff key, the mass-change letters;=== Changed:mass_change_colais a struct variant in the continuation class,renewals_urlrequired, the D3 park removed, the park reason text,run_daily_fencedgains a window key;=== Fixed: the recert approval anchor, the supplement baseline, the adverse effective-date floor); this page’s Status.
Verification
-
After
cargo xtask dev refreshon georgia: a household enrolled 2026-09-01..2027-02-28 records a wage decrease reported 2026-09-10 and is re-run 2026-09-25 →interim_change { 2026-09-01, 2027-02-28, 2026-09-10, None },benefit_effective_date 2026-09-01, animmediaterow and one September supplement equal to the entitlement minus the money already issued, thebenefit-continuationletter; the same reported 2026-09-25 → October, no September supplement; a wage increase reported 2026-09-25 →reduction_staged, effectivemax(2026-10-01, today + 14),noa-reductionwith thechange_benefit_reducedtext; ineligible →termination_staged, nosnap.case_closeduntil enactment; a re-run without a report date → 422; a household whose certification is stillexpedited→ 422certification_conversion_pending; the DLQ stays empty; the continuations panel labels the kind. -
An order (
determineWithOrder,as_ofinside the period and not behind the month) against the same household →order_continuationapplied in place;as_ofin July → 422; against a household with no live row →order_effectiveand a new enrollment, as today. -
A bulk COLA run (
POST /v1/eligibility/bulk-runs, preview, enact inside the effective month) over seeded households → onemass_change_colacontinuation per live standard enrollment (increases immediate; a reduction staged exempt with floor today,cb_availabletrue, the mass-change letter), the expedited certification excluded at admission, the expired row a terminal failure, a long certification’s second COLA passing the supersession check;cargo xtask policy action-coveragereportssnap.mass-change.colacovered. -
The timely-recert journey: the renewal approved in period signs
recert_approvalanchored atend + 1; the successors read shows onescheduledrow and the enrollment count stays 1 untilend + 1; the pass expires the old row and lands the new one startingend + 1with a full first month; renewals shows therecertifyingcertification to its end and the minted one after; a second approval supersedes the scheduled one and a denial withdraws it (closure staged at the old end); nothing is parked;cargo xtask scenarios auditshows the row covered. -
cargo xtask policy auditclean (the new key and reason rows cited, no orphans);cargo xtask rules check;cargo xtask seed-verifyright after the reseed;flow-snap-in-cert-conversion,flow-snap-recert-reinstatement,journey-snap-expedited-postponed-lapse,journey-medicaid-ssi-termination-cmd-redeterminationre-run green. -
git push— the pre-push battery is the gate.
Documentation Updates
-
api/canopy-eligibility.adoc(arm table, the two reads, the URLs,change_reported_on),api/canopy-enrollment.adoc(live + successors reads, kinds, events),api/canopy-snap.adoc(kinds table),api/canopy-applications.adoc(context field),api/canopy-renewals.adoc(universe row, decisions),data-models/canopy-enrollment.adoc,data-models/canopy-renewals.adoc,configuration-reference.adoc,federal-requirements.adoc, ADR-002 erratum, the runbook, the new walkthrough page, the regenerated OpenAPI files. -
CHANGELOG.adoc—== Unreleased. -
GitLab: #806 retitled to U-C and weighted; the medicaid owner issue filed and every medicaid token pointing at it; #1133’s closing comment records the F1 deferral (void or re-anchor an in-flight renewal when a caller changes a
recertifyingcertification’s end — no caller here does) and the restoration handoffs (#1113); the full-caseload sizing note on #806.
Review log
| round | vendor | resolved model | verdict |
|---|---|---|---|
1 (2026-09-21) |
Anthropic |
claude-fable-5-1 |
no-ship — three blockers fixed in-plan: five commit subjects over 72 chars and declarative; the recert newest-wins read over |
2 (2026-09-21) |
OpenAI |
gpt-6-astra |
no-ship — 23 findings (17 P1, 6 P2), each verified against |