Medicaid ABD journey — a current SSI recipient’s automatic coverage, at SNAP-journey fidelity (#853)
- Context
- Decision
- The journey
- Units (weights by complexity) — U0 → {U1, U2, U3, U4} → U5 → U6
- U0 (w2) — this framing
- U1 (w5) —
feat(web): record disability status on the persons add/edit forms - U2 (w3) —
fix(web): the COA Categories table renders Track/Benefit Type/Basis blank for every row - U3 (w3) —
refactor(web): thread the legal as-of date into the determination roster and show subject age - U4 (w1) —
chore(e2e): expose canopy-medicaid to the e2e service config - U5 (w5) —
test(e2e): journey — a current SSI recipient is approved for Medicaid under the SSI-Medicaid COA - U6 (w3) —
docs(walkthroughs): the current-SSI-recipient Medicaid journey page + inventory row + election registry entry
- Filed separately (pre-existing, found by this recon; not children)
- Must not change
- Verification
- GitLab
- Review log
Status: Done (2026-09-13) — !1392
Epic: &83
Issues: #853 (parent stream, stays open) · #1923 U1 (w5) · #1924 U2 (w3) · #1925 U3 (w3) · #1926 U4 (w1) · #1927 U5 (w5) · #1928 U6 (w3) — children 20, with this framing 22
Branches: chore/853-medicaid-abd-journey-plan (frame) → feat/853-abd-journey-worker-ui (U1–U4, one batch) → one branch for U5 + U6
This is a Design + Scope plan: GitLab owns tracking, the child issues carry the implementer brief, and the plan freezes when U1 starts.
Erratum (2026-09-13): the Georgia conformance pack has no mechanism to instantiate a federal row — its rows are standalone georgia.* scenarios — so U6’s "instantiation" is a new journey-tier row georgia.medicaid.abd.ssi-recipient-1634-automatic-enrollment bound to the same spec and page, which the page names in its pairing block.
Erratum (2026-09-13): the framing commits merge in the U1–U4 batch MR rather than on their own — the docs-only push was refused by the pre-push battery on the pre-existing #1915 lane race (given_snap_test vs the fleet-clock pin), which is fixed in that same batch.
Context
A SNAP journey in this repository is a triple, machine-enforced: a walkthrough page under docs/modules/ROOT/pages/walkthroughs/, a journey-.spec.ts Playwright spec that drives both portals, and a tier = "journey" row in compliance/scenario-inventory/.toml binding the two (e2e-spec needs file + a describe label that appears verbatim in the spec; walkthrough needs file). cargo xtask scenarios audit (engine crates/canopy-policy/src/scenario.rs) fails on ORPHAN-SPEC, MISSING-WALKTHROUGH, DANGLING (the page must name the scenario id and reference at least one committed screenshot), UNKNOWN-PARAM, and an elections key absent from compliance/federal-options/<program>.toml. The authoring contract (Journey Walkthroughs › "Authoring a walkthrough") requires click-by-click worker steps, an equally reproducible applicant side, concrete precondition values read from the spec, and never an API step — a covered journey that outpaces its UI carries walkthrough_blocked_by instead. The page to mirror section for section is SNAP intake → determination → NOA.
Facts verified on main, 2026-09-12/13 (a read-only recon plus two live spikes that drove every beat through the real HTTP surfaces):
-
The approval is reachable today with no code change.
POST /v1/eligibility/determinewithprograms: ["medicaid"]on a household whose head haspersons.disability_status = "ssi_recipient"returnsapproved,assigned_coa ssi_medicaid, tracknon_magi,full_medicaid,benefit_amountandrenewal_datenull,signature_verified true; 38medicaid_eligible_categoriesrows, exactly one eligible; themedicaid.determinedevent produces a dispatchednotice_of_action"Medicaid Eligibility Approval". The rule isrulesets/georgia/medicaid-non-magi.jsonssi_medicaid_eligible = input.disability_status == "ssi_recipient", described there as "PAMMS 2101: SSI recipients auto-qualify for SSI Medicaid". -
What the
ssi_medicaidtoken is and is not. It is the current-SSI-recipient automatic-coverage arm (42 CFR 435.120; PAMMS Medicaid 2101 and 2111). PAMMS 2111 also governs sponsored-alien and retroactive SSI Medicaid determinations, which carry financial tests; the token does not model those. Income and resource facts are unnecessary to satisfy this predicate; the cascade still evaluates them for the other 37 classes of assistance. -
Scope is election-dependent, not universal. Under ADR-032 §1 a
universalrow is a federal floor every jurisdiction passes unchanged. Automatic Medicaid for SSI recipients is a state election: §1634 agreement states enrol SSI recipients automatically; SSI-criteria states determine them separately; §1902(f) "209(b)" states may apply stricter criteria. Georgia is a §1634 state — exactly what its rule encodes. No registry option for that election exists yet; the registry is populated when a scenario first references an option. -
The worker path works through the UI except one beat. Live-proven:
Action ▾ → File applicationwith Medicaid/CHIP ticked (303 to?program=medicaid);Action ▾ → Run Determination(the same control the SNAP page and therunDeterminatione2e helper use) with its banner "Determination recomputed. A Notice of Action (NOA) will appear in the Notices tab within a few seconds."; the roster row "Approved · COA ssi_medicaid · full_medicaid · non_magi · ✓ JWS verified" — approved rows render collapsed (tab_determination.html,<details>open only when the status is not approved), so the signature line shows only after the row is expanded; the Notices tab row (notice_of_action, "Medicaid Eligibility Approval", pilldispatched, Form #N/A, PDF link). The gating fact has no worker UI:tab_persons.htmlhas no disability field, and the only editor,/actions/medicaid/cmd-update, refusesssi_recipientby design.PUT /v1/persons/{id}accepts the field (canopy-contracts-persons), requires a service caller (a worker token is refused with 403), and canopy-web’sedit_personalready calls persons with the service token. canopy-persons updates withCOALESCE($13, disability_status), so anullnever clears the value; the INSERT binds whatever is supplied. canopy-web’sjson!bodies serialize a blank optional asnull— the documented contract inmembers.rs. -
The applicant path, honestly. The portal wizard hardcodes
programs_requested: ["snap"](services/canopy-portal/src/pages/apply.rs; #986 and #693 are T5), so Medicaid is added by the worker. The applicant sees a referenceHH-xxxxxxxxand a passcode, never the household UUID. After approval/homeshows a benefits card "Medicaid / Active" with no amount, cadence or renewal line; the hero still reads "Your interview is scheduled." because it derives from the SNAP application’s interview flag;/lettersshows "Medicaid Eligibility Approval" whose PDF printsBenefit Amount: —,Certification Period: — to —,Household Size: —(the sharednoa-approval.typplaceholders). No canopy-medicaid route carries aportal:*scope. -
Two worker-portal defects the journey would show. The COA Categories tab renders Track, Benefit Type and Basis blank for every row:
case_detail.rsreadstrack,benefit_typeandbasisfrom an untyped value while the wire rowMedicaidEligibleCategory(canopy-contracts-medicaid) carriescoa_trackand no such other fields;denial_reasonis optional and the evaluator leaves itNonefor eligible rows. The roster age issubject_age: Noneat every construction site indetermination_view.rs; nothing computes an age, thoughcanopy_common::date::age_yearsexists andclients.resolve_namealready fetches the date of birth and discards it.render_determination_tabhas three production callers — the full page, the tab fragment viaSectionContext, and the determination POST inapplications.rs, whose extractor list has noLegalTz. -
E2E plumbing.
tests/e2e/lib/given/config.tshas nomedicaidUrl; thecanopy-e2ecompose env block has noCANOPY_TEST__MEDICAID_URL(only the integration runner’s does); thejourneyPlaywright project auto-collectsspecs/journey-.spec.tsand the defaultcaseworkerproject already excludes them.fileSnapApplicationViaPortalclicks *Review then Submit application with no capture hook between;fileApplicationViaUihasonBeforeSubmit;legalToday()returns the service’s legal date. Medicaid must not joinclock.ts's fleet list: this journey has no clock beat, and canopy-medicaid runs only under themedicaid-chip,fullandisolated-dbprofiles. -
Budgets that bite. B1 counts
services//src/api/.rsover 500 lines (lock 18) —members.rsis at 479. B3a countsserde_json::Valueinsrc(lock 657) —json!literals do not count, and a typed decode of the categories response lowers it. B8 counts ambient clock reads (lock 8) —legal_today(is invisible to its regex,clock::today(is not. -
Processing standard, for the follow-up only.
rulesets/georgia/jurisdiction.tomlcarries a singlemedicaid_days = 45. PAMMS 2060 gives 90 days when a separate disability determination is required and 45 otherwise, aged applicants included; this journey’s aged current-SSI recipient is a 45-day case, so the journey shows no deadline. The tree still cannot express the 90-day arm — a separate issue.
Related: #853 (Medicaid + cross-program journeys — this is its first concrete child); #760 (the journey-harness precedent); #778 fences the LTSS/spenddown ABD rows only and does not fence this row; #858/#864 (MAGI facts) are not blockers; #986/#693 (portal multi-program filing, T5); #1915 (fleet clock vs runner-dated fixtures).
Decision
UI first. The disability-status field lands on the worker persons forms before the walkthrough, so the page ships at reproducibility tier Fully manual — both personas entirely by hand, like the SNAP intake page. The alternative the authoring contract allows (ship the page now with a harness-authored fact and walkthrough_blocked_by the UI-gap issue) is not "the same fidelity as the SNAP journeys". Five points buys the real thing.
The journey
A current SSI recipient, 72 at the time of writing, single-member household. Applicant persona Harriet Vance, DOB 1954-03-02, phone 404-555-0142, 100 Demo St, Atlanta, GA 30303. Worker persona jane.caseworker / password (carries the medicaid scope; filing, running and the roster all gate on it). No clock beat: same-day intake to letter.
| # | Who | Screen / action | Expected (what the spec asserts) |
|---|---|---|---|
1 |
Applicant |
Portal |
The confirmation reveals |
2 |
Applicant |
Save the reference and passcode |
— |
3 |
Caseworker |
Log in; the fresh case is in My queue (a top-10 worklist) — if busy, Case Search by "Harriet Vance". Open it → Persons tab |
The case opens as |
4 |
Caseworker |
Harriet’s Edit form → Disability status = SSI recipient → Save |
Redirect back to the Persons tab ( |
5 |
Caseworker |
Read the record back |
Disability status reads SSI recipient |
6 |
Caseworker |
Action ▾ → File application, tick Medicaid/CHIP, submit |
The case reloads on |
7 |
Caseworker |
Action ▾ → Run Determination |
The banner "Determination recomputed. A Notice of Action (NOA) will appear in the Notices tab within a few seconds."; the Medicaid group’s pill reads Approved |
8 |
Caseworker |
Expand Harriet’s collapsed, approved roster row |
|
9 |
Caseworker |
COA Categories tab |
38 rows; |
10 |
Caseworker |
Notices tab |
|
11 |
Applicant |
|
Benefits card Medicaid — Active with no amount, cadence or renewal line; the hero still reflects the SNAP filing |
12 |
Applicant |
|
Subject "Medicaid Eligibility Approval"; the PDF opens |
Never in this journey: the Process Application page (SNAP-hardcoded), any dollar or threshold assertion, any processing deadline.
Units (weights by complexity) — U0 → {U1, U2, U3, U4} → U5 → U6
Labels follow the documented taxonomy (Contributor Workflow): U0/U6 type::documentation, U1 type::feature, U2 type::bug, U3/U4/U5 type::chore; every child program::medicaid, priority::medium, planning::has-plan, milestone T2. U1–U4 are independent and land as one batch; U5 needs U1 (its step-3 control) and U4; U6 needs U5’s screenshots from a green run.
U0 (w2) — this framing
The plan page, its nav entry, the CHANGELOG line; the epic and six children in GitLab; #853 flipped to planning::has-plan. MR Relates to #853.
U1 (w5) — feat(web): record disability status on the persons add/edit forms
Enum label. crates/canopy-reference/src/enums.rs gains impl DisabilityStatus { pub fn label(&self) → &'static str } ("Not disabled", "Disabled", "Disabled veteran", "SSI recipient"), the impl Confidentiality precedent; the options iterate DisabilityStatus::iter(), never hand-written.
Write side (services/canopy-web/src/api/members.rs). AddMemberForm and EditPersonForm gain #[serde(default)] disability_status: Option<String>; the value is validated with DisabilityStatus::from_str before any upstream call (an out-of-enum value is a 422 with zero writes); one key joins each existing json! body: "disability_status": non_empty(..), so a blank serializes as null and COALESCE keeps the stored value. The parse-and-reject helper and the option-list builder live in a new sibling module person_demographics.rs, because members.rs sits at 479 of B1’s 500 lines.
Template (services/canopy-web/templates/cases/tab_persons.html). One <select name="disability_status"> per form after citizenship; the edit form’s blank option reads "— keep current —" (a null cannot clear), the add form’s "— not reported —"; the current value is selected.
Read side. MemberPerson gains disability_status (the /full bundle’s typed Person already carries it); MemberRow gains the token and its label; build_member_row resolves the label with the raw token as fallback; the member detail block renders the label and the edit form pre-selects the token; the MemberRow literal in the Persons-tab render test is the compile-time checklist; the persons mock fixture gains the field.
Tests (new person_editor_tests.rs, the run_case_against harness): the SSI-recipient edit reaches persons as the snake-case token on PUT /v1/persons/{id}; a blank sends "disability_status": null (deserialized None); an out-of-enum value is a 422 with writes == 0; the add form carries the field on the create; the Persons-tab render test asserts "SSI recipient" and <option value="ssi_recipient" selected>.
Acceptance. A worker with write scope sets Harriet’s disability status to SSI recipient from the Persons tab and the tab re-renders it after the redirect; an out-of-enum post is a 422 with no upstream write; a blank leaves the stored value unchanged; B1 ≤ 18, B3a ≤ 657.
U2 (w3) — fix(web): the COA Categories table renders Track/Benefit Type/Basis blank for every row
Decode GET /v1/applications/{id}/categories as Vec<MedicaidEligibleCategory> (canopy-web already depends on the contract crate; B3a falls by one). Columns: # (evaluation order), COA, Track (coa_track), Status (Eligible / Not eligible), Income / limit, Resources, Spend-down, Reason (denial_reason where the evaluator recorded one, "—" otherwise). Every optional decimal is formatted server-side into a display string (the rate_display precedent); no Decimal in Askama. The #1306 D6 arms (fetch error, categories unavailable, empty) stay exactly as they are. Tests in the spawn_router harness serve rows built from the contract struct: the ssi_medicaid row renders non_magi, Eligible and "—"; an ineligible row renders its recorded reason. Acceptance: Track populated for all 38 rows; Reason shows the recorded reason where present; B3a strictly below 657.
U3 (w3) — refactor(web): thread the legal as-of date into the determination roster and show subject age
SectionContext gains as_of: NaiveDate, set from Extension(LegalTz) with canopy_common::clock::legal_today(tz) (B8-invisible; clock::today() would regress the lock and be UTC-wrong in the evening). render_determination_tab takes as_of at all three production callers — the full page, the tab fragment, and the determination POST in applications.rs, whose handler gains the LegalTz extractor — and at the seven test call sites with a fixed date. clients.rs gains resolve_name_and_dob beside resolve_name (same fallback, no extra round-trip); subject_age = age_years(dob, as_of); the template already guards the age. Tests: a fixed as_of of 2026-09-13 with DOB 1954-03-02 renders "· age 72", the day before the birthday renders 71, and the POST response fragment carries the age. Acceptance: the Medicaid roster row reads the age on all three render paths; B8 stays 8. Droppable under pressure, but never after U6.
U4 (w1) — chore(e2e): expose canopy-medicaid to the e2e service config
ServiceConfig.medicaidUrl resolved from CANOPY_TEST__MEDICAID_URL (default http://localhost:8015), and that key added to the canopy-e2e compose env block as http://canopy-medicaid:8015. clock.ts untouched. Acceptance: npx tsc --noEmit clean in tests/e2e; the default snap-only battery unchanged.
U5 (w5) — test(e2e): journey — a current SSI recipient is approved for Medicaid under the SSI-Medicaid COA
tests/e2e/specs/journey-medicaid-ssi-recipient-automatic-coverage.spec.ts, framed exactly like the SNAP intake spec (the FULL gate at describe scope, PORTAL_BASE, the walkthroughs OUT_DIR, shot(), a 300 s budget, the worker page on tests/e2e/auth/caseworker.json, an unauthenticated applicant context). Describe label, byte-identical to the inventory row: journey: a current SSI recipient is approved for Medicaid under the SSI-Medicaid COA and receives a Notice of Action. Helpers: fileSnapApplicationViaPortal gains an onReview hook between Review and Submit application (the review screenshot); a new editPersonViaUi modelled on addIncomeViaUi with an onBeforeSubmit hook; fileApplicationViaUi and runDetermination are used unchanged (the latter is the Action ▾ → Run Determination control the page documents); tests/e2e/lib/given/medicaid.ts exposes one read, medicaidDeterminations, as an oracle only — never a precondition. Beats: file Harriet’s application; open the case by the finalize-returned household id (the page documents My queue / Case Search); set the disability status through the form and read it back; file Medicaid; run the determination, then expand the collapsed Medicaid row and assert the COA, benefit type, track, verified signature, no cash amount, and the age derived from legalToday() — never a literal; read the determination back from canopy-medicaid; the Categories row; the Notices row; the applicant’s home card and letter. Twelve screenshots, app-NN and step-NN. Relational assertions only — the shared devstack drifts and re-determination is additive. Acceptance: the targeted cargo xtask e2e --devstack-profile full … --project journey run is green with 0 skipped and all screenshots written; the journey gate counts the new spec; the spec passes on any date.
U6 (w3) — docs(walkthroughs): the current-SSI-recipient Medicaid journey page + inventory row + election registry entry
The screenshots from the green U5 run under docs/modules/ROOT/assets/images/walkthroughs/journey-medicaid-ssi-recipient-automatic-coverage/; the page docs/modules/ROOT/pages/walkthroughs/journey-medicaid-ssi-recipient-automatic-coverage.adoc with the SNAP anatomy verbatim (lede limited to current-SSI automatic coverage, Georgia as a §1634 state, and one sentence distinguishing the token from PAMMS 2111’s sponsored-alien and retroactive determinations; tier Fully manual; the pairing block; what the journey shows; the personas table; the bring-up block; the concrete precondition; the twelve-row step table with the handoff and expand-the-row beats and per-row images; the oracle; an honest-scope section — SNAP-only wizard, the hero reflects the SNAP filing, no amount, the NOA’s — placeholders, no deadline shown, current-SSI path only, a 209(b) deployment would not pass this row unchanged; the verify block; the five standard "See also" links). One "Shipped walkthroughs" bullet in the index, one row in the demo runbook’s journey table; nav.adoc unchanged. A new option in compliance/federal-options/medicaid.toml:
[[option]]
key = "medicaid.ssi-recipient-coverage"
name = "Medicaid coverage of SSI recipients (1634 agreement, SSI-criteria, or 209(b) state)"
authority = "SSA sec. 1634(a); SSA sec. 1902(a)(10)(A)(i)(II); SSA sec. 1902(f); 42 CFR 435.120-435.121"
values = ["section-1634-agreement", "ssi-criteria-state", "section-209b-state"]
and the row in compliance/scenario-inventory/medicaid.toml (Slice 2, before medicaid.abd.ssi-loss-protected-group-cascade), instantiated in the Georgia pack rulesets/georgia/scenarios/medicaid.toml with the same election key:
[[scenario]]
id = "medicaid.abd.ssi-recipient-automatic-coverage"
title = "Current SSI recipient is enrolled in Medicaid automatically under the SSI-Medicaid COA"
programs = ["medicaid"]
life_events = ["application", "determination", "notice"]
regulatory_trigger = "SSA sec. 1634(a); 42 CFR 435.120; PAMMS Medicaid 2101, 2111"
journey = "A household member who currently receives SSI is recorded as an SSI recipient on the case; the worker files a Medicaid application and runs the determination, which in a 1634-agreement state approves the SSI-Medicaid class of assistance without a separate financial test, and the household receives a written Notice of Action approving coverage"
tier = "journey"
scope = "election-dependent"
elections = ["medicaid.ssi-recipient-coverage"]
[[scenario.binding]]
kind = "e2e-spec"
file = "tests/e2e/specs/journey-medicaid-ssi-recipient-automatic-coverage.spec.ts"
describe = "journey: a current SSI recipient is approved for Medicaid under the SSI-Medicaid COA and receives a Notice of Action"
[[scenario.binding]]
kind = "walkthrough"
file = "docs/modules/ROOT/pages/walkthroughs/journey-medicaid-ssi-recipient-automatic-coverage.adoc"
No blocked_by, no jdm-fixture (the non-MAGI ruleset is on the shell-fixture deny list), and never a walkthrough binding paired with walkthrough_blocked_by. Acceptance: cargo xtask scenarios audit reports the row Covered [Journey] with no orphan, missing-walkthrough, dangling, unknown-param or unknown-election finding; asciidoctor resolves every image; the index’s "Blocked walkthroughs. None" stays true. Closes the epic; #853 stays open.
Filed separately (pre-existing, found by this recon; not children)
A fix(applications) to represent the 90-day standard for Medicaid applications that need a separate disability determination (PAMMS 2060; the tree carries only medicaid_days = 45, and aged and current-SSI applicants correctly stay at 45); a fix(notices) so a coverage-program approval NOA does not print SNAP-shaped placeholders; a fix(web) to program-parameterise the Process Application page; a feat(portal) Medicaid coverage card (T5 by the milestone rule); a chore(web) investigation of why a Medicaid NOA’s delivery pill stays dispatched where SNAP’s reads Sent; a docs note on the label taxonomy drift.
Must not change
rulesets/georgia/medicaid-non-magi.json and every other rules or parameter file (the Georgia scenario pack is a conformance artefact and does gain the row); medicaid_days; tests/e2e/lib/clock.ts; playwright.config.ts; the #1306 D6 categories arms; canopy-persons and canopy-medicaid; the portal wizard’s program list; xtask/quality-budgets.lock (U2 may lower B3a in a batch-end ratchet, never raise anything).
Verification
| Property | Layer |
|---|---|
A worker sets SSI recipient from the Persons tab; the tab re-renders it; a blank sends |
|
The Categories tab shows Track for every row and Reason where recorded, decoded through the contract type |
|
The roster row carries the age on all three render paths — fixed date in unit tests, legal date in e2e |
roster + POST-fragment tests (U3); beat 5 (U5); B8 = 8 |
The Medicaid URL resolves in the e2e container and on the host |
|
The twelve-beat journey drives both portals with 0 skipped, fresh screenshots, and the documented controls |
|
The triple is bound, the election is registered, and the row is covered |
|
Page fidelity |
Section-for-section parity with the SNAP intake page, including the handoff step; asciidoctor warning-free; check-docs |
Per commit |
fmt, clippy |
GitLab
Epic &83 in the group; children #1923, #1924, #1925, #1926 (one batch MR, Relates to #853, Closes each), then #1927 and #1928 (one MR, since the audit passes only with both present). Every MR merges by regular merge commit after the pre-push battery. Plan Status moves to In progress on the batch MR’s merge and to Done on U6’s; the page then archives.
Review log
| Round | Vendor | Resolved model | Verdict |
|---|---|---|---|
1 (2026-09-13) |
Anthropic (agent-side: a Plan subagent + a fidelity critic against two shipped SNAP walkthroughs) |
claude-opus-5 |
no-ship — fixed |
2 (2026-09-13) |
the maintainer |
maintainer review against the repository and policy sources |
no-ship as written — 14 findings (scope is election-dependent; current-SSI coverage only; the deadline follow-up narrowed; |