Plan: FFE/SBM Account Transfer (canopy-exchange)
Status: Deferred (superseded by ADR-045, #1540)
Epic: &27
Issues: #189–#195 (workflow::blocked, T4) — the register row in Roadmap › Open Work
Erratum (2026-09-23): superseded by ADR-045 — #189/#190 closed obsolete, #191–#195 moved to &79 behind #1540/#1548/#1539
Context
Regulatory basis
42 CFR 435.1200 requires a state Medicaid agency to accept and send electronic account transfers with the health insurance exchange (ACA §1413, "No Wrong Door"): an exchange applicant who may be Medicaid/CHIP-eligible is transferred to the state agency, and a Medicaid-ineligible applicant is transferred to the exchange for QHP/APTC screening. §435.1200(c) lists the data a transfer carries — application, demographics, household composition, income, citizenship/immigration status, verifications already obtained, enrollment and MEC status — and §435.1200(d) sets the timeliness obligations on inbound transfers; 45 CFR 155.345 states the exchange side. Georgia Access is a State-Based Marketplace on the Federal Platform (SBM-FP) and speaks the federal hub’s Account Transfer (ACPT) XML; the Gateway interface catalog lists "FFM / marketplace account transfer (ATX)" as a partner family (Gateway partner interfaces).
What exists in canopy-exchange
services/canopy-exchange is still the stub: FfeAccountTransferAdapter in services/canopy-exchange/src/adapters.rs is a method-less trait; api::routes() returns an empty router, and the routes_is_an_empty_router test (#1445) fails the moment a route lands without its conformance-manifest rows; ExchangeConfig in services/canopy-exchange/src/config.rs has no tunables; the migrations are only the shared outbox / inbox tables. There is no account-transfer table, no ACPT code, and no api/canopy-exchange.adoc or data-models/canopy-exchange.adoc page — the implementing MR creates both.
What ADR-045 changed
ADR-045 (Accepted 2026-08-22) makes canopy-exchange the single partner-integration service — a blind broker in three layers: L1 canonical contracts (account_transfer is a named command kind), L2 grant-checked aggregation and routing (exactly one connector per kind, jurisdiction, direction and operation), and L3 per-partner wire connectors. Command routing is origin-durable: the origin program service owns the durable command record and resubmits attempts; exchange transforms in memory per attempt; every command carries a UUIDv7 id, an idempotency key and an actor, and moves submitted → accepted | rejected | unknown → confirmed, where unknown demands reconciliation and never resolves silently. Outbound wire files are partner-encrypted when real and regenerable from the origin outbox in simulation. Person matching is program-local, through canopy-persons' identity projection and match tokens, never a raw-SSN fan-out from exchange. The gateway plan’s children build the shared pieces this plan needs: the partner-simulator scaffold (child 9), the command-routing core (child 10) and the partner ingress layer (child 18).
This plan predates ADR-045. Its original design — exchange assembling ACPT payloads itself from persons / applications / medicaid reads, an account_transfers table in the exchange database as the system of record, and a NoopFfeAccountTransferAdapter selected by deployment profile — is superseded by it.
Scope
In scope:
-
An L1
account_transfercommand contract for outbound transfers, and the L1 shape an inbound ATX parses into. -
The ATX L3 connector: ACPT XML serialization for outbound transfers and parsing for inbound ones, plus a simulator personality for the devstack.
-
Origin-side durable command records and the state-machine transitions above, in the origin program service.
-
Inbound processing: ingress → parse → application creation in canopy-applications → Medicaid/CHIP determination through canopy-eligibility.
-
Timeliness tracking for inbound transfers under §435.1200(d); which service owns the clock is a re-plan decision.
-
Data restrictions, consistent with ADR-004 and ADR-045: payloads carry MAGI-based income (applicant-attested or calculated) and coverage status, never FTI, IEVS, SSA SOLQ/BINDEX or clinical data; events carry identifiers and timestamps only.
-
Tests: a cross-process connector ↔ simulator test per the gateway plan’s universal criteria; database tests on the canopy-test-lib
EphemeralSchemaprimitive (Testing). -
Docs: create
api/canopy-exchange.adocanddata-models/canopy-exchange.adoc; add the conformance-manifest rows for the new routes (#1445); CHANGELOG entry.
Out of scope:
-
Live Georgia Access / CMS FFE connectivity — the blocker (onboarding, credentials, SOC-2 review).
-
FDSH queries (canopy-verification); Medicaid/CHIP eligibility logic (canopy-medicaid); QHP/APTC determination (exchange-side); batch transfer processing.
Design
Fixed points only; the wire detail (ACPT field mappings, Georgia Access endpoints) is filled in at re-plan when the partner documentation exists.
Outbound — Canopy → exchange
-
canopy-medicaid records a Medicaid/CHIP denial. Whether the applicant may qualify for QHP/APTC is the origin’s decision; the re-plan names the origin service (canopy-medicaid or the canopy-eligibility orchestrator).
-
The origin assembles the §435.1200(c) data elements into the L1
account_transfercommand, writes its durable command record (UUIDv7 id, idempotency key, actor) and submits it to canopy-exchange. -
Exchange’s L2 routing resolves the single (
account_transfer, jurisdiction, outbound, send) connector; the ATX L3 connector transforms the L1 payload into ACPT XML in memory and sends it — partner-encrypted when real, to the simulator personality in development. -
The partner’s acknowledgement drives the command’s state machine;
unknownsurfaces for reconciliation; the origin resubmits on failure.
Inbound — exchange → Canopy
-
Georgia Access delivers an ACPT transfer to the partner ingress layer (authenticated, replay-protected, correlated to its originating command where one exists).
-
The ATX connector parses it into the L1 inbound shape; match tokens are computed transiently at parse so programs match against their own caseloads.
-
canopy-applications creates the application; canopy-eligibility triggers the Medicaid/CHIP determination; the owning service starts the §435.1200(d) clock.
-
A duplicate transfer is rejected on its idempotency key; a malformed payload is recorded as rejected with a reason and creates no application.
Ruled out
-
An account-transfer table in the exchange database as the system of record — the durable command record lives with the origin (ADR-045, command routing).
-
A
Noop…Adapterselected by deployment profile — ADR-045 retires adapter-selection configuration (it amends ADR-012), the gateway plan’s child 17 deletes the noop / scripted adapters, and the simulator personality takes their place. -
testcontainers— not a workspace dependency; the canopy-test-lib primitives are the harness.
Verification (at re-plan)
-
Outbound: a denied applicant produces exactly one
account_transfercommand whose ACPT payload carries the §435.1200(c) elements and no restricted field; a replayed submission is idempotent; anunknownacknowledgement never auto-resolves. -
Inbound: a valid ACPT creates one application and one determination request; a duplicate creates none; a malformed payload creates none and is rejected with a reason.
-
A payload test asserts that no FTI, IEVS, SOLQ / BINDEX or clinical field appears in any transfer payload or event.
-
cargo xtask validategreen;cargo xtask api-docsdrift-clean for the new routes; the conformance manifest carries the service’s rows.