ADR-004: Legally-Scoped Data Tenancy
Status
Accepted
canopy-reporting authorized as a restricted-data consumer for the T-MSIS / CMS-416 federal extracts, scale audit epic &73, #1250) — which adds canopy-reporting to the isolation map (person-level T-MSIS HIPAA PHI, minimum-necessary; CMS-416 held de-identified) with its own IRS Pub 1075 §4 / HIPAA access-audit log + ADR-014 chain-v2 retention. The Decision text and isolation map are byte-unchanged; see Amendment 1.
income_as_pct_fpl is not FTI-derived as-built, conditional on the IEVS estate staying IRS-free and no #785/#810 FTI write-back (#1257); snap_qc_universe confirmed non-restricted as held, with the sourcing boundary for any future population made normative (#1258)). See Amendment 4.
persist_hit writes every populated IEVS adapter record into ievs_hits.payload (JSONB) in the canopy_verification database, one row per record per dispatch since #522, no purge exists, and canopy-verification is an authorised class.ievs service; the persistence is confirmed as intended (the row is the worker’s evidence). See Amendment 7.
fti_tax_data holds IRS return information, and all three Medicaid/CHIP purpose codes cite IRC §6103(l)(21), the §6103 paragraph that names titles XIX and XXI. (A) runs from the IRS to HHS, and (B) gives a State agency only inconsistencies; whether any provision delivers the values to a State agency is open (#2238). Medicaid’s §6103(l)(7) route is IEVS data: SSA-held earnings and IRS unearned income, with Medicaid listed at (l)(7)(D)(ii). canopy-medicaid holds none of that data today, and no purpose code cites it for Medicaid. The §6103(l)(12) cite in §Context, §Decision and Amendment 1 is superseded; (l)(12) is Medicare-beneficiary employment-status verification. TANF keeps §6103(l)(7), with a corrected rationale (#2236). See Amendment 8.
fti_tax_data keeps only the items §6103(l)(21)(A) and 26 CFR 301.6103(l)(21)-1(a) name (taxable year, filing status, AGI, the section 86 taxable Social Security amount); wages, self-employment income, total Social Security benefits, and tax-exempt interest and foreign earned income on their own are dropped. Amendment 8’s item-by-item question is resolved; its delivery question stays open (#2936). See Amendment 11.
fti_tax_data is unchanged. See Amendment 12.
fti_tax_data drops filing_status and adjusted_gross_income, which no §6103(l)(7) clause discloses to a TANF agency; the table keeps the tax year and the (l)(7)(A) wages and self-employment items. Amendment 8’s TANF open question is resolved. See Amendment 10.
fti_tax_data readers and writers are deleted until wired. Neither canopy-medicaid nor canopy-tanf reads or writes fti_tax_data; #785 and #810 add the readers and the TANF writer. The audited element lists that #2238 and #2236 rest on are preserved on those issues and at the parent of the deletion commit. Amendment 4’s and Amendment 8’s sentences describing the dormant readers are superseded; the §6103(l)(21) / §6103(l)(7) authority ruling is unchanged. See Amendment 9.
Context
Eligibility systems depend on automated data matches from federal sources to verify applicant-reported information. These data sources are not interchangeable: each is authorized by a specific statute for specific programs and purposes, and each carries enforcement mechanisms — including criminal penalties — for unauthorized use.
The relevant sources for Canopy are:
| Source | Authorizing Statute | Authorized Programs | Governing Compliance Framework |
|---|---|---|---|
IRS Federal Tax Information (FTI) |
IRC §6103(l) |
TANF (§6103(l)(7)), Medicaid (§6103(l)(12)), CHIP (§6103(l)(12)) |
IRS Publication 1075; on-site IRS audit |
SSA SOLQ/BINDEX |
Social Security Act §1137 |
SNAP, TANF, Medicaid, CHIP |
Computer Matching Agreement (CMA); CMPPA oversight |
USDA IEVS (state wage, UI, SSA income) |
Food and Nutrition Act §11(e)(8) |
SNAP |
FNS audit; 7 USC §2020(e)(8) |
DHS SAVE (immigration status) |
PRWORA §121 |
All programs (immigration screening) |
DHS data use agreement |
SSA Death Master File |
Social Security Act §205(r) |
All programs |
SSA data use agreement |
FDSH (Federal Data Services Hub) |
ACA §1413 |
Medicaid, CHIP, Marketplace |
CMS data use agreement |
The question is how to structure data storage and access controls to satisfy all of these frameworks simultaneously within a single system.
Decision
Each federal data source is isolated to the program service(s) statutorily authorized to use it. No data from a restricted source is replicated to, queried by, or visible to any service that is not an authorized consumer.
The isolation map:
| Service | Restricted sources held |
|---|---|
|
FTI (IRC §6103(l)(7)), SSA SOLQ/BINDEX (TANF CMA) |
|
FTI (IRC §6103(l)(12)), FDSH hub data, HIPAA-scoped clinical data |
|
IEVS data (state wage, UI, SSA income via IEVS), SSA SOLQ/BINDEX (SNAP CMA) |
|
SAVE (shared, all programs), SSA Death Master File (shared, all programs); raw match responses held transiently, not persisted beyond the verification request lifecycle |
Each program service with FTI exposure implements independent FTI audit logging that satisfies IRS Publication 1075 §4 requirements:
-
Every FTI access is logged with: user ID, timestamp, purpose code, data elements accessed, originating system
-
FTI audit logs are stored in a separate schema within the program service database, not in the shared
canopy-securityaudit log -
FTI audit logs are retained for the period specified in the applicable SORN and Pub 1075 (minimum 5 years; corrected to 7 years, Pub 1075 AU-11 — see the ADR-041-era retention amendment; #1363)
-
FTI audit log access is restricted to authorized personnel and IRS auditors
-
canopy-security's wildcard event subscriber does NOT receive events containing FTI fields; program services scrub FTI from event payloads before publishing tocanopy.events
Rationale
IRS Publication 1075 is non-negotiable
IRS Pub 1075 requires that FTI be:
-
Stored in systems with documented access controls
-
Accessed only for authorized purposes
-
Logged at the individual access level
-
Protected by physical or logical isolation from non-authorized systems
-
Subject to IRS on-site inspection
A shared database or shared audit log containing FTI alongside non-FTI data is not prohibited per se, but it requires the entire shared system to be subject to Pub 1075 controls — including IRS audit authority over the entire system.
By isolating FTI to canopy-tanf and canopy-medicaid, Canopy limits IRS audit scope to those two services.
The SNAP service, the worker portal, and the applicant portal are outside Pub 1075 scope by design.
Computer Matching Agreements require demonstrable isolation
CMAs under the CMPPA require that matched data be used only for the authorized purpose stated in the agreement. SSA audits CMA compliance. If SNAP-authorized SSA data and TANF-authorized SSA data share a database, demonstrating compliance with both CMAs simultaneously becomes complex. Per-program isolation makes each CMA independently auditable.
IEVS data cannot commingle with non-SNAP uses
7 USC §2025(e) prohibits use of IEVS data for purposes other than SNAP administration.
If IEVS data resides in a shared database accessible to Medicaid or TANF program logic, even incidentally, this creates a compliance exposure.
canopy-snap's isolated database ensures IEVS data is physically unavailable to non-SNAP services.
Event bus scrubbing
The canopy.events RabbitMQ exchange is subscribed to by canopy-security via wildcard.
This means every event published to the exchange is captured for audit purposes.
Program services must therefore ensure that events published to canopy.events contain no restricted data fields — only IDs, status codes, timestamps, and non-restricted metadata.
The determination object (per ADR-002) satisfies this requirement: it contains the outcome of restricted data processing, not the restricted data itself.
Alternatives considered
Alternative 1: Unified compliance database with column-level encryption All program data in one database; FTI columns encrypted with program-specific keys. Rejected because column-level encryption does not satisfy Pub 1075’s access logging requirement at the granularity IRS expects, and a DBA with key access defeats the isolation.
Alternative 2: Shared compliance database with separate FTI schema One PostgreSQL instance, FTI in a separate schema with separate roles. Rejected because a single PostgreSQL instance means a single superuser can access all schemas. IRS auditors are not satisfied by role-based controls at the schema level when the underlying server is shared.
Alternative 3: Hardware Security Module (HSM) for FTI encryption
HSM-encrypted FTI in a shared database.
Not rejected outright — this approach can satisfy Pub 1075 but at significant infrastructure cost and complexity.
Per-service isolation achieves equivalent compliance posture with lower operational overhead.
HSM integration may be revisited for canopy-tanf if required by a future Pub 1075 audit finding.
Consequences
-
Each program service with FTI exposure maintains a second audit log table alongside the main application tables. This table is populated directly by the service, not via the event bus.
-
canopy-security's wildcard subscriber remains the system of record for non-restricted audit events. FTI audit logs are separate and reported separately to IRS. -
Event payloads must be reviewed before publication to ensure no restricted fields leak to the event bus. This is a documented coding convention enforced in code review.
-
Federal audits (IRS, FNS, SSA, CMS) are conducted per-service. Canopy’s architecture enables this; coordinating simultaneous multi-agency audits is an operational concern, not an architectural one.
-
New federal data sources added to Canopy must be accompanied by an assessment of authorized use and assigned to the correct service before implementation begins.
Amendment 1 — canopy-reporting authorized as a restricted-data consumer (T-MSIS / CMS-416) (scale audit epic &73, #1250, 2026-07-27)
Status unchanged (still Accepted; amendments extend, they do not supersede). The 2026-07-25 scale-readiness
audit (epic &73) and ADR-001 Amendment 1 §B8
surfaced a shipped compliance gap: canopy-reporting already persists person-level T-MSIS PHI at rest
(services/canopy-reporting/migrations/20260409000000_tanf_medicaid_reporting_tables.sql,
medicaid_tmsis_eligibility_extracts.person_id) yet is entirely absent from this ADR’s isolation map (§Decision),
which forbids restricted data being "replicated to, queried by, or visible to any service that is not an authorized
consumer" (§Decision). ADR-001 Amendment 1 §B8 named this amendment the hard prerequisite (blocker) for the
T-MSIS + CMS-416 PHI-extract children (#1250). This amendment closes the gap by authorizing canopy-reporting as a
mapped restricted-data consumer, scoped to those two federal extracts and minimum-necessary, with its own Pub 1075
§4 / HIPAA audit log, chain-v2 retention, encryption at rest, and a least-privilege role.
This amendment governs data tenancy only. The Decision section (the isolation-map table and the FTI-audit-logging
bullets, §Decision) and the Context source table (§Context) remain byte-immutable — the amendment extends the map,
it does not edit it; the canopy-reporting entry below is a mirror row. Every control clause is normative
(MUST/SHALL), not as-built: canopy-reporting today has no access-audit log (only API-layer JWT RBAC), no
encryption at rest, and a broad shared DB role. The implementation (the audit-log schema + chain-v2 family
attachment, the restricted role, encryption at rest, the audited export path) is a filed implementation child, not
this doc.
Settled decisions
-
The person-level T-MSIS extract is HIPAA PHI; CMS-416 as held is de-identified aggregate (not PHI). All Medicaid program data is HIPAA PHI (ADR-001 A1 §B8), so the person-level
medicaid_tmsis_eligibility_extractstable is a PHI holding; the CMS-416 extract, by contrast, persists only de-identified aggregate age-band counts (noperson_id, no income — 45 CFR 164.514), reading person-level DOB only transiently at extract time.canopy-reportingis authorized to hold the persisted T-MSIS extract snapshot (not merely transient reads) because a federal submission is a point-in-time record that must stay reproducible and auditable, and the ADR-001 A1 §B7report_runsmodel is inherently snapshot-based. -
Governed under the stronger IRS Pub 1075 §4 control set (FTI-derived-or-PHI). Medicaid is a §6103(l)(12) FTI consumer and the persisted row carries
income_as_pct_fpl(a MAGI-methodology figure that is potentially FTI-derived — MAGI can draw on IRS income; Pub 1075 treats FTI-derived data as FTI), so — fail-safe pending the #1257 provenance determination — reporting’s holdings are governed under Pub 1075 §4, which subsumes HIPAA minimum-necessary + audit. Classification relaxes to PHI-only only if #1257 confirms no exported T-MSIS field is FTI-derived; the mandated controls are identical either way. (Resolved 2026-08-25: #1257 confirmed no exported field is FTI-derived as-built — relaxed to PHI-only, conditionally; see Amendment 4.) (Citation superseded 2026-09-23: Medicaid’s FTI purpose codes cite §6103(l)(21), not §6103(l)(12); see Amendment 8.) -
The controls are normative, not as-built — the byte-level (audit-log schema, chain-v2 family, restricted role, encryption, export audit) is a filed implementation child cross-linking the ADR-014 chain-v2 substrate (#1246).
-
Scoped strictly to T-MSIS / CMS-416 (the #1250 fix direction). The ADR-001 A1 §B8 non-PHI extracts (FNS-388 / ACF-199 / FNS-7176-QC, over non-restricted derived data) are unchanged; the
snap_qc_universeIEVS-touchpoint classification is tracked as a separate issue, not folded in here. (Resolved 2026-08-25: #1258 confirmed non-restricted as held — Amendment 4.)
The reporting restricted-data tenancy contract (children own the byte-level)
The isolation-map entry this amendment adds (a mirror of the §Decision table structure; that table itself is unchanged):
| Service | Restricted sources held |
|---|---|
|
HIPAA PHI — person-level Medicaid eligibility/enrollment extract for the T-MSIS federal universe
( |
A1 — Isolation-map entry (the authorization). canopy-reporting is an authorized restricted-data consumer for
the T-MSIS and CMS-416 federal extracts, per the mirror row above. This closes the ADR-001 A1 §B8 gap (a shipped
person-level PHI table held by an unmapped service).
A2 — HIPAA PHI is an explicit restricted class. The person-level T-MSIS extract is HIPAA PHI (all Medicaid
program data is HIPAA PHI, ADR-001 A1 §B8); this makes explicit what §Decision holds only implicitly via
canopy-medicaid's "HIPAA-scoped clinical data". CMS-416 as held is de-identified aggregate (45 CFR 164.514),
named for extract-scope completeness, not as a PHI holding. The §Context source table is not edited — HIPAA is a
compliance framework, not a new data source.
A3 — Governing framework: Pub 1075 §4 (FTI-derived-or-PHI). Because Medicaid is a §6103(l)(12) FTI consumer and
income_as_pct_fpl is MAGI-methodology-based and potentially FTI-derived (provenance pending #1257), reporting’s
holdings are — fail-safe — governed under the Pub 1075 §4 control set (the superset of HIPAA’s
minimum-necessary + audit obligations), authorizing reporting as a downstream holder of FTI-derived Medicaid data.
#1257’s provenance determination MAY relax the classification to PHI-only; the mandated controls (A6–A8) do not
change. (Resolved 2026-08-25: relaxed to PHI-only per Amendment 4, conditional on the IEVS
estate staying IRS-free and on #785/#810 not writing FTI back into the persons fact corpus.) (Citation
superseded 2026-09-23: Medicaid’s FTI purpose codes cite §6103(l)(21), not §6103(l)(12); see
Amendment 8.)
A4 — Minimum-necessary scope. The authorization covers EXACTLY the fields the T-MSIS / CMS-416 federal layouts
require — the enumerated medicaid_tmsis_eligibility_extracts columns (identifiers, eligibility/coverage status
dates, income_as_pct_fpl, the citizenship / disability / dual-eligible / managed-care / CHIP / restricted-benefit
indicators). NO SSN and NO raw FTI are authorized or held. CMS-416 is authorized only as aggregate counts.
Enforcement is projection (ADR-001 A1 §B4): unprojected restricted fields are never fetched, decrypted, or audited.
A5 — Sanctioned access path. canopy-reporting MUST acquire restricted data ONLY over internal HTTP (never
cross-program DB — this half is the shipped reality) and MUST use the ADR-001 A1 §B7 async report_runs job model
(itself not yet built), the §B1/§B2/§B3 keyset + total_in_scope completeness contract, and §B4 first-class
projection (minimum-necessary). report_runs and its cursors live only in the reporting database (isolation
preserved).
A6 — Independent Pub 1075 §4 / HIPAA access-audit log (MUST; not as-built). canopy-reporting MUST implement its
own independent access-audit log satisfying IRS Pub 1075 §4, mirroring §Decision’s FTI-audit-logging requirements:
every restricted-data persist (extract) AND every read/export is logged with user/service id, timestamp, purpose
code, data elements accessed, and originating system; the log is stored in reporting’s own database, NOT the shared
canopy-security audit log; and restricted fields are scrubbed from canopy.events payloads before publication.
None of this exists today — this clause is normative.
A7 — Chain-v2 retention attachment (MUST; not as-built). Reporting’s restricted-holdings audit log is a NEW
ADR-014 chain-v2 chain family (a new family under the C1
chain identity model), minted with a non-reusable chain_instance_id and attached via the #1246 substrate under
the full C1–C8 apparatus. Retention is the per-jurisdiction ruleset value (ADR-014 A5 §C7), legal-hold aware,
bounded below by the maximum of the applicable federal floors — the Pub 1075 §4 five-year floor (corrected to 7 years, Pub 1075 AU-11 — see the ADR-041-era retention amendment below; #1363) and the HIPAA
45 CFR 164.316(b)(2) six-year documentation-retention floor for the audit log.
A8 — Storage controls (MUST; not as-built). Reporting’s restricted holdings MUST be (a) encrypted at rest (an
ADR-036 crypto-shred envelope or equivalent — not a reporting
dependency today); (b) owned by a least-privilege restricted DB role, not the shared broad canopy role; and
(c) exported only through an audited path (the current T-MSIS CSV export emits full person-level PHI rows unlogged;
the QC / FNS-7176 export’s restricted classification is pending #1258 and is not authorized here — resolved
2026-08-25: non-restricted as held, Amendment 4).
A9 — Scope boundary. This amendment governs data tenancy only. The implementation (A6–A8 code + the chain-v2 family attachment) is a filed child, cross-linking the ADR-014 #1246 substrate. It does NOT re-classify the non-PHI extracts (FNS-388 / ACF-199 / FNS-7176-QC — ADR-001 A1 §B8) and does NOT touch bulk determinations (ADR-002 / #1237). Landing this amendment UNBLOCKS the T-MSIS + CMS-416 PHI-extract children (#1250).
Consequences
-
canopy-reportingis now a mapped authorized restricted-data consumer; the ADR-001 A1 §B8 PHI-tenancy gap is closed at the tenancy layer, and the shippedmedicaid_tmsis_eligibility_extractstable is brought into policy. -
The T-MSIS + CMS-416 PHI-extract children (#1250) are unblocked; the non-PHI extracts already proceeded per ADR-001 A1 §B8 and are untouched.
-
A reporting storage-controls / audit-log implementation child is filed (#1256: encryption at rest, restricted DB role, the Pub 1075 §4 / HIPAA audit-log table + append-guard, and an audited export path), cross-linking the ADR-014 chain-v2 substrate (#1246) for the new family.
-
The
income_as_pct_fplFTI-provenance determination is filed as a separate issue (#1257 — it may relax A3 to PHI-only); thesnap_qc_universeIEVS-touchpoint classification question is filed separately (#1258, per the "bug found mid-implementation → separate issue" rule) — this amendment does not silently expand to cover it. (Both resolved 2026-08-25 — Amendment 4.)
Amendment 2 — audit tamper-evidence + retention re-homed to ADR-041; retention corrected to 7 years (epic &74, #1299, 2026-08-03)
ADR-041 supersedes ADR-014's hash-chain approach. This amendment carries the consequences for ADR-004; the §Decision isolation mandates themselves are re-affirmed byte-unchanged.
What changes
-
Tamper-evidence mechanism. The FTI audit log’s tamper-evidence no longer comes from an in-app SHA-256 hash chain. canopy emits a complete, integrity-checkable audit record (a complete-row digest + policy version) via the ADR-041 unfilterable audit-export channel; external tamper-evidence + retention of the exported copy are the deployment logging facility’s responsibility. Where the §Status NOTE and Amendment 1 reference "ADR-014 chain-v2 retention," read "the ADR-041 facility
the general audit-retention lifecycle (#1303)." -
Retention floor. §Decision states FTI audit logs are retained "minimum 5 years." That figure is corrected to 7 years (IRS Pub 1075 AU-11). The 45 CFR 164.316(b)(2) six-year HIPAA documentation floor for the reporting audit log (Amendment 1 A6) is unchanged; the effective floor is the greater of the applicable requirements.
-
Amendment 1 dispositions. A6 (reporting-owned Pub 1075 §4 / HIPAA audit rows in reporting’s own DB) is preserved — reporting keeps its rows as system-of-record and additionally exports via the ADR-041 facility. A7 (chain-v2 retention attachment) is withdrawn (no hash chain). A8 (encryption-at-rest, restricted role, audited export) is unchanged and remains tracked by #1256.
What is re-affirmed (byte-unchanged)
The §Decision isolation mandates stand exactly as written: FTI audit logs live in
a separate schema within the program-service DB (not the shared canopy-security
log); every FTI access is logged with user/timestamp/purpose/elements/system;
access is restricted to authorized personnel + IRS auditors; and the wildcard
subscriber does NOT receive FTI — program services scrub FTI from event payloads
before publishing (the scrub_fti_fields bus control + the publisher fail-closed
guard remain distinct from the ADR-041 log-redaction facility and are unaffected).
Amendment 3 — storage classification rule for the sealed reporting stores (A8a, #1256, 2026-08-11)
Amendment 1’s A8(a) requires canopy-reporting's restricted holdings encrypted
at rest. This amendment records the classification rule the #1256 implementation
applies, and corrects one factual premise Amendment 1 stated about what reporting
holds. The §Decision isolation mandates are unchanged.
The rule
Plaintext is permitted only for values the database engine itself must evaluate (filter / join / order / unique / group keys); every such column is enumerated with its justifying query. All other restricted-table content is sealed — an ADR-036 context-bound envelope (AAD = table tag + generation + row id, so a relocated ciphertext fails the tag), under a per-report-generation DEK.
Applied to the one restricted-as-held table,
medicaid_tmsis_eligibility_extracts:
-
Plaintext (engine-evaluated):
person_id(the CMS-416 universeDISTINCT/keyset/COUNT+ the person index),enrollment_id(the generation-month-enrollment unique index + the export keyset),report_month(window predicates),generation_id,chip_indicator(universeWHERE),coverage_group(CMS-64GROUP BY), and the timestamps. -
Sealed (one
restricted_payloadenvelope per row): eligibility status
start/end dates,income_as_pct_fpl, citizenship status, the disability/dual/managed-care fields, andrestricted_benefits_indicator.
Threat model for the plaintext person/enrollment UUIDs: bare UUIDs are
pseudonymous references — the linkage data (name/SSN/DOB) lives sealed in the
other legally-scoped service databases. ADR-004 tenancy isolation is the linkage
control; envelope encryption is the content control. The same pseudonymous UUIDs
are therefore not sealed where they recur as engine keys — including in the
shared report_run_universe / report_runs.progress run substrate.
Accepted residual — report_run_universe.aux. The scope of #1256 is the
extract OUTPUT table only; the shared run substrate is left plaintext. Its
per-row aux for the tmsis drain (TmsisDetAux) holds the covered
person_id/household_id (pseudonymous keys), the assigned_coa
assigned_coa_track (identical to the coverage_group/chip_indicator this
table already keeps plaintext as engine keys), AND the raw determination
status (approved / filtered) — the one field of the same class as the sealed
eligibility_status that is NOT sealed at rest. This is an accepted residual,
not "no attribute content": the universe is transient, generation-scoped drain
scratch (janitor-reaped with its generation), and sealing it would reintroduce
per-kind branching across the SNAP/TANF/QC-shared substrate — the cost #1256
deliberately avoided. Tracked as follow-up #1459; a
threat review decides whether the determination-status residual warrants sealing
the aux or narrowing what the drain persists.
Redaction unit
Reporting’s restricted rows are derived federal extracts. Person-level redaction happens at the source of record, after which the affected report regenerates — so the per-generation DEK is the correct granularity, not a compromise. When the generation janitor deletes a superseded generation’s ciphertext rows, its DEK becomes an orphaned live key; that lifecycle is owned by the general audit/retention work (#1303), not #1256.
Premise correction
Amendment 1 A2 states "CMS-416 as held is de-identified aggregate." That holds for
the medicaid_cms416_reports OUTPUT table (age-band counts, no person id). It does
not describe the shared report_run_universe working state, which durably holds
person ids AND (for the tmsis drain) determination status + class-of-assistance
in its aux (see the accepted-residual note above). Those stay plaintext in
#1256 as janitor-bounded transient drain scratch, not a published holding; the
determination-status residual is tracked as a follow-up.
Amendment 4 — provenance + classification determinations (#1257 / #1258, 2026-08-25)
Amendment 1 left two classifications pending evidence: A3’s governing
framework (fail-safe Pub 1075, pending the #1257 provenance trace) and the
snap_qc_universe classification (pending #1258). This amendment records
both determinations. The mandated controls (A6–A8) change in neither case.
A3 resolved: income_as_pct_fpl is not FTI-derived as-built — PHI-only (#1257)
Determination. No exported T-MSIS field is FTI-derived in the shipped codebase. A3’s governing framework relaxes from the Pub 1075 §4 fail-safe to HIPAA PHI (PHI-only). The provenance chain (all four hops verified 2026-08-25):
-
canopy-reporting computes
income_as_pct_fpllocally — the T-MSIS drain captures no income (TmsisDetAux), and a separate persons-service batch leg (tmsis_enrich→persons:batchGet [Income]) feedssum_monthly_income/income_pct_of_fpl(services/canopy-reporting/src/worker/medicaid.rs,src/reporting/medicaid.rs). The medicaid MAGI result is never an input. -
canopy-medicaid’s MAGI reads the same canopy-persons fact corpus. The dedicated FTI-for-MAGI readers are
dead_code-gated pending #785 (services/canopy-medicaid/src/store/fti.rs; TANF likewise, #810) — nothing populates or readsfti_tax_dataon a production path. -
Persons income facts originate from applicant attestation and worker authorship. The IEVS discrepancy accept flow authors a worker-verified fact whose amount defaults to the IEVS figure (ADR-027 §2 human-transformation;
services/canopy-web/src/api/ievs.rs) — so the FTI question reduces to the IEVS source list. -
The IEVS estate has no IRS component: the adapter set is exactly
georgia_dol_swr/georgia_dol_ui/ssa_sdx/ssa_bendex(services/canopy-verification/src/api/ievs.rs), and only wage + UI hits can even become acceptable discrepancies (services/canopy-snap/src/verification.rs). No IRS / BEER / 1099 record type exists in any wire contract or adapter — BEER appears only as a catalogued legacy-gateway interface and a reserved ADR-045 evidence source (documentation, not code; that is precisely the tripwire below).
Effect. Reporting’s T-MSIS holdings are governed as HIPAA PHI. Audit-log
labelling is PHI; the retention floor is unchanged in practice (A7 already
takes the maximum of the applicable floors, and ADR-041 governs retention since
Amendment 2). canopy-reporting remains ABSENT from class.fti in
compliance/data-tenancy-authorisation.toml — correctly, as it holds no FTI.
The condition (tripwire — this relaxation is not unconditional). PHI-only holds only while BOTH stay true:
-
No IEVS/exchange source is IRS-derived. The glossary defines FTI as IRS data including data received through IEVS matching; IRS BEER exists as a catalogued legacy-gateway interface and a reserved ADR-045 evidence source. The MR that enables any IRS-derived source MUST reopen A3 to the Pub 1075 §4 fail-safe in the same change — the accept flow’s authored facts are not source-segregated on read (the persons read filter is claim-status-only), so an IRS-sourced IEVS value would reach
income_as_pct_fplthrough the exact chain above. -
#785/#810 FTI verification wiring does not write back into the persons fact corpus. If FTI income verification ever authors or amends persons facts, the same reopening applies.
The isolation between IEVS values and non-SNAP uses rests on the ADR-027 human-transformation doctrine, not on data-flow segregation — Amendment 4 records that explicitly so a future source addition cannot assume a structural barrier that does not exist.
QC universe resolved: snap_qc_universe is non-restricted as held (#1258)
Determination. snap_qc_universe holds no IEVS-derived or otherwise
restricted data. The ADR-001 A1 §B8 "non-restricted derived data" framing for
the FNS-7176-QC extract is CONFIRMED, and A8(c)'s pending question resolves the
same way: the QC export is non-restricted as held. Evidence (verified
2026-08-25):
-
The populated columns are exactly §B8’s enumerated non-restricted classes: certification window/type (renewals cert roll), household member count (persons memberships), issued benefit total (enrollment issuances server-side sum), and one ABAWD boolean whose batch contract is bool-only by construction (
crates/canopy-contracts-snap/src/batch.rs). The run-pipeline INSERT binds nothing else (services/canopy-reporting/src/store.rs,insert_qc_rows_in; the enrichment legs insrc/worker/snap.rsfetch no application, determination, or verification data). -
Every contested column is NULL in every row ever written — the full income/deduction stack,
net_income,head_of_household_age,categorical_eligibility,expedited_service,work_registration_exempt_count, andievs_match_completed. The current pipeline omits them; the deleted stub assembler never sourced them; the #1155 and #1202-D8 migrations NULLed the stub-era constant values. -
ievs_match_completedis a process flag, never match content — a boolean "was the match run", with an existing scanner-allowlist row citing 7 CFR 275.12 (compliance/data-tenancy-authorisation.toml); its only designed upstream is a status indicator from canopy-snap’s API, which returns no IEVS data.
The boundary (normative, so a future populater cannot drift). If the
income/deduction stack is ever populated, its values MUST source from the
canopy-persons fact corpus (attestation and ADR-027 worker-verified facts —
the same non-restricted derivation the determination pipeline consumes).
Values MUST NOT source from canopy-snap’s sealed IEVS stores
(ievs_discrepancies, the sealed IevsReconstruction) — no code path exists
today, and none may be added absent the Amendment-1-shaped authorization
landing FIRST: an isolation-map row, a
compliance/data-tenancy-authorisation.toml grant, and the sealing /
least-privilege / audited-export controls the T-MSIS store carries. Absent
that, canopy-reporting remains correctly absent from class.ievs.
Amendment 5 (2026-09-17) — as built
Status unchanged (still Accepted). This amendment records three as-built findings; the Decision, its isolation map and the Consequences are not edited.
FTI audit log storage: tables in the program database, not a separate schema
§Decision states that FTI audit logs are "stored in a separate schema within the program service database", and Amendment 2 re-affirmed that sentence byte-unchanged. As built, the log is a dedicated table set in each program database’s default schema: fti_audit_log and fti_audit_log_archive (services/canopy-tanf/migrations/20260325000001_create_fti_audit_log.sql, services/canopy-medicaid/migrations/20260326000001_create_fti_audit_log.sql) and fti_audit_log_v2 (20260910000000_chain_v2_substrate.sql in both services). No migration under services/*/migrations issues CREATE SCHEMA. The isolating boundary the Decision relies on — the log lives in the program database, apart from the shared canopy-security log — holds through the per-program database of ADR-001; the schema split itself was not built. Whether one is wanted is a maintainer decision; this amendment records the state, it does not choose.
IEVS statute citation: an open question, not a resolution
The tree cites the IEVS authority three ways. The §Context source table cites "Food and Nutrition Act §11(e)(8)" with "7 USC §2020(e)(8)"; §Rationale, ADR-001 §Rationale, compliance/data-tenancy-authorisation.toml (legal_basis of the IEVS class) and rulesets/georgia/jurisdiction.toml ([snap.verification]) cite "7 USC §2025(e)", the last alongside "7 CFR 272.8"; Federal Requirements, as revised by the 2026-09 documentation pass (#2089), cites 7 CFR 272.8 for the IEVS mandate. The Social Security Act §1137 (42 USC §1320b-7) appears in the §Context table only on the SSA SOLQ/BINDEX row. Which citation this ADR and the authorisation file should carry is a policy-owner determination outside a documentation change; no citation is altered here.
Amendment 4 adapter-set citation repointed
Amendment 4 cites services/canopy-verification/src/api/ievs.rs for "the adapter set is exactly georgia_dol_swr / georgia_dol_ui / ssa_sdx / ssa_bendex"; that handler routes on IevsSourceClass through the four adapter methods and names no source identifier; the enumeration lives in the adapter contract and jurisdiction.toml. The enumeration lives in crates/canopy-contracts-verification/src/ievs.rs — IevsSourceClass (StateWage, StateUi, SsaSdx, SsaBendex) routed by IevsSourceSpec.source — with the state identifiers set in rulesets/georgia/jurisdiction.toml [snap.verification] (wage_match_source = "georgia_dol_swr", unemployment_match_source = "georgia_dol_ui") and the SSA pair fixed; the adapter trait is IevsAdapter in services/canopy-verification/src/ievs.rs (query_state_wage_records, query_unemployment_insurance, query_ssa_sdx, query_ssa_bendex). Amendment 4’s finding — no IRS component in the IEVS estate — is unchanged.
Amendment 6 (2026-09-17) — the IEVS statute ruling (#2129)
Status unchanged (still Accepted). This amendment records the ruling posted on #2129 (2026-09-17, under the pre-production best-effort-verification rule; reversible by the maintainer) that closes the open question Amendment 5 left; the Decision, its isolation map, the §Context table and §Rationale are not edited. The §Context table’s "Food and Nutrition Act §11(e)(8) / 7 USC §2020(e)(8)" is the SNAP use-and-disclosure safeguard for information obtained from applicant households and stands, while §Rationale’s "7 USC §2025(e) prohibits use of IEVS data for purposes other than SNAP administration" cited the wrong section — §2025(e) ("Use of social security account numbers; access to information") is the SSN requirement and contains no income-and-eligibility-verification language — and the IEVS mandate is Social Security Act §1137, 42 USC §1320b-7 (SNAP is listed at §1320b-7(b)(4); the SNAP state-plan hook is 7 USC §2020(e)(17); the regulation is 7 CFR 272.8(a)(1)). The use restriction on IEVS-received data is §1320b-7(a)(5): exchanged information is "made available only to the extent necessary to assist in the valid administrative needs of the program receiving such information" and "adequately protected against unauthorized disclosure for other purposes", with §2020(e)(8) / 7 CFR 272.1(c)(1) governing information obtained from SNAP applicant households and each source’s own regime on top (the Computer Matching Agreement for the SSA-sourced matches; IRC §6103(l)(7) and Pub 1075 would govern an IRS-sourced match, of which the estate has none — Amendment 4). "IEVS data is prohibited from use for other programs" therefore overstates the law: a match received for SNAP is usable only for the valid administrative needs of the program that received it, and another program’s IEVS use is its own §1137 request, not a read of SNAP’s matches — which is what §Decision’s siting of the IEVS class in canopy-snap implements. compliance/data-tenancy-authorisation.toml class.ievs.legal_basis carries the ruled cite, 42 USC §1320b-7(a)(5); 7 USC §2020(e)(8), (e)(17); 7 CFR 272.8, 272.1(c); "Pub 1075 §9.4" leaves that row because the IEVS estate has no IRS component (Amendment 4) and Pub 1075 already governs class.fti. §2025(e) remains the correct cite for the SSN requirement only. Sources read 2026-09-17 (recorded on #2129): 7 USC §2020 and §2025 and 42 USC §1320b-7 at uscode.house.gov (preliminary edition); 7 CFR 272.1 and 272.8 at law.cornell.edu.
Amendment 7 (2026-09-17) — as built: canopy-verification persists IEVS hit payloads (#2144)
Status unchanged (still Accepted). This amendment records the decision posted on #2144 (2026-09-17): the persistence described below is intended — canopy-verification is an authorised IEVS service and the hit row is the worker’s evidence — and the published prose is corrected to the build; the Decision, its isolation map, the §Context table, §Rationale and the Consequences are not edited. The §Decision isolation map’s canopy-verification row, "raw match responses held transiently, not persisted beyond the verification request lifecycle", describes the design, not the build; this amendment supersedes that clause for IEVS matches.
What is written. The internal POST /internal/v1/ievs/match handler (handle_ievs_match, services/canopy-verification/src/api/ievs.rs) calls persist_hit once per populated record the adapter returns — every element of a wage_records response and each present ui_record, sdx_record and bendex_record (the hit_type values) — and persist_hit serialises the record with serde_json::to_value and hands it to store::record_ievs_hit (services/canopy-verification/src/store.rs), whose INSERT stores it as the payload column of ievs_hits (JSONB, nullable; services/canopy-verification/migrations/20260526001500_create_verification_tables.sql) in the canopy_verification database, beside application_id, household_id, person_id, the denormalised member_name, the requested source identifier verbatim and hit_type. Persistence is per dispatch: a request that repeats a class persists rows for every dispatch even though the wire response keeps only the last one’s records (the persist_hit doc comment). The write is best-effort — a database error logs a warning and does not fail the match. The table, the write, the read endpoint and the panel feed landed together in #522 (2026-05-25); the behaviour is unchanged since.
Who reads it. GET /v1/verifications/ievs/discrepancies (list_ievs_discrepancies, services/canopy-verification/src/api/ievs_discrepancies.rs; caseworker-or-above or a service token, require_service_or_caseworker_or_above) returns the status = 'unreviewed' rows newest-first through store::list_recent_ievs_hits, and the worker dashboard’s "IEVS alerts" panel (services/canopy-web/src/dashboard/panels/ievs_alerts.rs, template dashboard/panels/ievs_alerts.html) renders member_name, source, hit_type, hit_at, the household_id and a case number derived from it. The payload column is write-only as built: the reader’s row mirror IevsHitRow (store.rs) maps no payload field, the IevsHit contract (crates/canopy-contracts-verification/src/ievs_hits.rs) declares none, and the only other FROM ievs_hits queries in the tree are cargo xtask seed-verify's two cross-service FK checks (xtask/src/cmd/seed_verify.rs), which select ids. The serialised record is at rest for forensic review; it is on no wire.
Under which class. compliance/data-tenancy-authorisation.toml sites the holding under class.ievs — authorised_services = ["canopy-snap", "canopy-verification", "canopy-security"] — so the row is held under that class’s legal_basis (42 USC §1320b-7(a)(5); 7 USC §2020(e)(8), (e)(17); 7 CFR 272.8, 272.1(c), Amendment 6) exactly as canopy-snap’s ievs_match_results is, and cargo xtask compliance audit-data-tenancy (xtask/src/cmd/compliance.rs: an identifier scan of services//src/*/.rs and services//migrations/.sql against each class’s protected_field_patterns) matches the ievs_hits identifier to the class’s ievs_ pattern inside a service the class authorises. The matrix has been consistent with the code throughout; only the prose was not.
How long it lives. No purge exists; the row lives for the life of the database. No DELETE, TRUNCATE or UPDATE against ievs_hits appears under services/, crates/, xtask/ or config/; the only statements that touch the table are record_ievs_hit's INSERT, list_recent_ievs_hits's SELECT, the two seed-verify FK checks and the seed harness’s truncate-then-insert reset (render_verification, tools/canopy-seed/src/sql.rs), which is development tooling, not a retention control. Nothing writes status, reviewed_at, reviewed_by or notes after the insert either — the review lifecycle the schema’s CHECK declares has no writer as built, so a row stays 'unreviewed' (the column default) unless the seed stamped it otherwise. Whether a retention period or a review writer is wanted is a maintainer decision; this amendment records the state, it does not choose. The data-model page’s Retention section for this database (canopy-verification data model: operator-driven; no Pub 1075 floor because the IEVS estate is IRS-free, Amendment 4) is unchanged by this amendment.
What this amendment changes in the published pages. security-operations.adoc §"IEVS Flow" and the IEVS data-isolation row of ato-readiness.adoc ("canopy-verification is transient — does not persist IEVS data") and the api/canopy-verification.adoc overview and notes ("does not persist the adapter wire payloads"; "only a lightweight ievs_hits audit row (member name + source + hit type)") now state the build; the data-model page’s ievs_hits row already named "the raw adapter payload JSONB". The SAVE and SSA SOLQ handlers (services/canopy-verification/src/api/save.rs, src/api/ssa.rs) issue no database write; their responses are returned to the caller only.
Amendment 8 (2026-09-23) — the Medicaid/CHIP FTI authority ruling (#2200)
Status unchanged (still Accepted). This amendment records the maintainer ruling on #2200 (2026-09-23) on which paragraph of IRC §6103(l) authorises canopy-medicaid’s FTI. The Decision, its isolation map and the §Context table are not edited, and no service gains or loses a class. Three passages are superseded: the §Context table’s "Medicaid (§6103(l)(12)), CHIP (§6103(l)(12))", the §Decision isolation map’s "FTI (IRC §6103(l)(12))" on the canopy-medicaid row, and "Medicaid is a §6103(l)(12) FTI consumer" in Amendment 1’s settled decision 2 and A3. The TANF cite, §6103(l)(7), stands with a corrected rationale (see TANF below).
The ruling: authority follows the data source, applied to the data the code reads.
-
What canopy-medicaid logs: §6103(l)(21).
MEDICAID_ELIG,MEDICAID_MAGIandCHIP_ELIGall citeIRC 6103(l)(21), the §6103 paragraph that names titles XIX and XXI. Two kinds of path log under these codes:-
The FTI read paths in
services/canopy-medicaid/src/store/fti.rs, dormant until #785, readfti_tax_data, which holds IRS return information.read_fti_tax_data, audited underMedicaidEligibility, namesadjusted_gross_income,filing_status,wages_salaries_tips,social_security_benefits,tax_exempt_interestandforeign_earned_income.read_fti_for_magi, audited underMedicaidMagi, reads the same table. -
The only live
MedicaidEligibilitywrite ismedicaid_snapshot_chain_entry(services/canopy-medicaid/src/determine.rs). It writesresource_type = determination_snapshotwith elementsincome,expenses,household_compositionand, when present,solq, and it reads nofti_tax_data. It logs because the service treats its determination snapshot as FTI-bearing.
-
-
What §6103(l)(21) says.
-
Subparagraph (A) has the Secretary disclose to HHS "return information of any taxpayer whose income is relevant in determining … eligibility for participation in a State medicaid program under title XIX of the Social Security Act, a State’s children’s health insurance program under title XXI of the Social Security Act".
-
It limits that information to (i) "taxpayer identity information with respect to such taxpayer", (ii) "the filing status of such taxpayer", (iii) "the number of individuals for whom a deduction is allowed under section 151 with respect to the taxpayer (including the taxpayer and the taxpayer’s spouse)", (iv) "the modified adjusted gross income (as defined in section 36B) of such taxpayer and each of the other individuals included under clause (iii) who are required to file a return of tax imposed by chapter 1 for the taxable year", (v) "such other information as is prescribed by the Secretary by regulation as might indicate whether the taxpayer is eligible for such credit or reduction (and the amount thereof)", and (vi) "the taxable year with respect to which the preceding information relates or, if applicable, the fact that such information is not available".
-
Subparagraph (B) lets HHS disclose to "a State agency administering a State program described in subparagraph (A) or its contractors, any inconsistency between the information provided by the Exchange or State agency to the Secretary and the information provided to the Secretary under subparagraph (A)".
-
Subparagraph © provides that "Return information disclosed under subparagraph (A) or (B) may be used by officers, employees, and contractors of the Department of Health and Human Services, an Exchange, or a State agency only for the purposes of, and to the extent necessary in—", in clause (ii), "determining eligibility for participation in the State programs described in subparagraph (A)".
-
-
Open questions (#2238), which this amendment does not resolve.
-
Delivery of values to the State agency. (A) discloses to "officers, employees, and contractors of the Department of Health and Human Services". (B) gives a State agency only "any inconsistency". © limits a State agency’s use of information "disclosed under subparagraph (A) or (B)", but it authorises no release of the values from HHS to a State. The clause-(v) regulation, 26 CFR 301.6103(l)(21)-1, adds no such release: its paragraph (a) runs from IRS officers and employees "to officers, employees, and contractors of the Department of Health and Human Services", and paragraph (d) says it "applies to disclosures to the Department of Health and Human Services". No quoted text therefore authorises the return-information values that
fti_tax_datawould hold (AGI, filing status, …) to reach a State agency. -
Item by item, the match is not exact. The clause-(v) regulation, 26 CFR 301.6103(l)(21)-1(a), adds adjusted gross income, an aggregate of adjusted gross income, the section 911 exclusion and tax-exempt interest, and the social security benefits included in gross income under section 86. Neither it nor (A)(i)–(vi) names wages, self-employment income, total social security benefits, or tax-exempt interest and foreign earned income on their own. Yet
read_fti_tax_datanameswages_salaries_tips,social_security_benefits,tax_exempt_interestandforeign_earned_income, andfti_tax_datahas aself_employment_incomecolumn. Tracked as #2238, the Medicaid sibling of TANF’s #2236.
-
-
Medicaid’s §6103(l)(7) route: unused. Subparagraph (A) has the Commissioner of Social Security disclose "return information from returns with respect to net earnings from self-employment (as defined in section 1402), wages (as defined in section 3121(a) or 3401(a)), and payments of retirement income". Subparagraph (B) has the Secretary disclose "current return information from returns with respect to unearned income from the Internal Revenue Service files". Both go "to any Federal, State, or local agency administering a program listed in subparagraph (D)". Clause (D)(ii) lists "medical assistance provided under a State plan approved under title XIX of the Social Security Act", and © limits disclosure to "determining eligibility for, or the correct amount of, benefits under a program listed in subparagraph (D)". These are IEVS sources: 42 USC §1320b-7(a)(2) requires "wage, income, and other information from the Social Security Administration and the Internal Revenue Service available pursuant to section 6103(l)(7)" to be requested and used. canopy-medicaid holds no data of that kind. No canopy-medicaid path reads return information disclosed under (l)(7)(A) or (B), and the IEVS estate has no IRS component (Amendment 4). No purpose code cites (l)(7) for Medicaid. A feed of that kind would add its own purpose code citing
IRC 6103(l)(7)when it lands. -
CHIP has no §6103(l)(7) route. No clause of (l)(7)(D), and no paragraph of 42 USC §1320b-7(b), names title XXI.
-
Not §6103(l)(12). That paragraph is "Disclosure of certain taxpayer identity information for verification of employment status of medicare beneficiary and spouse of medicare beneficiary". Information runs from the IRS to SSA and from SSA to CMS, which may pass it on to employers, group health plans and its own agents. Clause (D)(i) confines it to "determining the extent to which any medicare beneficiary is covered under any group health plan". It names no State agency and no Medicaid or CHIP determination.
-
Safeguards unchanged. §6103(p)(4) binds agencies described in "(l)(6), (7), (8), (9), (12), (15), or (16)" and "any entity described in subsection (l)(21)", so the Pub 1075 controls of §Decision apply under both paragraphs as they did before.
TANF. The three TANF purpose codes now cite the whole paragraph, IRC 6103(l)(7), in place of IRC 6103(l)(7)(A). (l)(7)(D)(i), "a State program funded under part A of title IV of the Social Security Act", is the only place §6103 names TANF, so (l)(7) is TANF’s only disclosure authority. Its two sources are both IEVS sources: (A) SSA-held wages, self-employment earnings and retirement income, and (B) IRS unearned income. The code cites the paragraph because a TANF purpose may read either. adjusted_gross_income and filing_status fall under no (l)(7) clause, yet both appear in TANF’s audited element lists (read_fti_tax_data and store_fti_tax_data, services/canopy-tanf/src/store/fti.rs). That defect is #2236, and this amendment does not resolve it.
As built. Neither program ingests FTI yet: the fti_tax_data readers and writers are dormant (#785, #810), and the IEVS estate has no IRS component (Amendment 4). The ruling fixes the authority those paths will log under. Today’s only FTI audit writes are the determination-snapshot chain entries. They carry MEDICAID_ELIG and TANF_ELIG because each service treats its determination snapshot as FTI-bearing (the determine.rs of each).
What changes in the tree.
-
FtiPurposeCode::irc_section()(crates/canopy-db/src/fti_audit.rs) returnsIRC 6103(l)(7)for the three TANF codes, which used to returnIRC 6103(l)(7)(A). It returnsIRC 6103(l)(21)forMedicaidEligibility,MedicaidMagiandChipEligibility, which all used to returnIRC 6103(l)(12)(A). -
compliance/data-tenancy-authorisation.tomlclass.fti.legal_basisreadsIRC §6103(l)(7), §6103(l)(21); Pub 1075. The class covers canopy-tanf, whose purpose codes cite (l)(7), and canopy-medicaid, whose purpose codes cite (l)(21). -
The canopy-medicaid Service Catalog row, API page and data-model page cite (l)(21) and record the unused (l)(7) route. Federal Requirements carries the canopy-medicaid implementation on its (l)(21) row; its Medicaid (l)(7) row records the unused route.
No data migration. No stored row carries the old string, because irc_section() is never persisted. fti_audited writes FtiPurposeCode::as_str() (MEDICAID_ELIG, MEDICAID_MAGI, CHIP_ELIG, …) to fti_audit_log.purpose_code and hashes that same value into the ADR-014 chain. canopy-medicaid’s snapshot entry (medicaid_snapshot_chain_entry, services/canopy-medicaid/src/determine.rs) also takes purpose_code from as_str(). The only callers of irc_section() are fti_audit.rs's own unit tests. The purpose codes themselves are unchanged, so every existing fti_audit_log, fti_audit_log_archive and fti_audit_log_v2 row, and its chain hash, stands as written.
Sources, read 2026-09-23. 26 USC §6103(l)(7), (l)(12), (l)(21) and (p)(4) at uscode.house.gov (preliminary edition, "laws in effect on September 22, 2026"), cross-checked against law.cornell.edu; 42 USC §1320b-7(a)(2) and (b) and 26 CFR 301.6103(l)(21)-1 at law.cornell.edu.
Amendment 9 (2026-09-24) — as built: the dormant FTI readers and writers are deleted (#2286)
Status unchanged (still Accepted). This amendment records a deletion under the parked-code sweep of #744 (#2286): the unwired fti_tax_data access paths of both services are removed until the issues that wire them land. The Decision, its isolation map, the §Context table, the authority ruling of Amendment 8 and the open questions #2238 and #2236 are not edited. Five passages that describe the deleted code as present are superseded:
-
Amendment 4’s "The dedicated FTI-for-MAGI readers are
dead_code-gated pending #785 (services/canopy-medicaid/src/store/fti.rs; TANF likewise, #810)"; -
Amendment 8’s "The FTI read paths in
services/canopy-medicaid/src/store/fti.rs, dormant until #785, readfti_tax_data, which holds IRS return information", with the two sentences after it that nameread_fti_tax_dataandread_fti_for_magi; -
Amendment 8’s "Yet
read_fti_tax_datanameswages_salaries_tips,social_security_benefits,tax_exempt_interestandforeign_earned_income"; -
Amendment 8’s "both appear in TANF’s audited element lists (
read_fti_tax_dataandstore_fti_tax_data,services/canopy-tanf/src/store/fti.rs)"; -
Amendment 8’s "the
fti_tax_datareaders and writers are dormant (#785, #810)".
As built. Neither service has an fti_tax_data reader or writer. services/canopy-medicaid/src/store/fti.rs and services/canopy-tanf/src/store/fti.rs are deleted with their pub mod fti; lines, and so is each service’s FtiTaxData row mirror. The table stays: 20260407000000_create_medicaid_tables.sql and 20260325000000_create_tanf_tables.sql create it, and nothing reads or writes it. #785 adds the Medicaid reader and #810 the TANF reader and writer. §Decision’s rule that every FTI access is logged applies to each; fti_audited (crates/canopy-db/src/fti_audit.rs) is the wrapper that writes that log. Amendment 4’s finding stands unchanged: nothing populates or reads fti_tax_data on a production path. Today’s only FTI audit writes are still the determination-snapshot chain entries (Amendment 8, As built).
The element lists #2238 and #2236 rest on. The deleted paths named these audited elements:
-
canopy-medicaid
read_fti_tax_data, underMedicaidEligibility:adjusted_gross_income,filing_status,wages_salaries_tips,social_security_benefits,tax_exempt_interest,foreign_earned_income; -
canopy-medicaid
read_fti_for_magi, underMedicaidMagi:adjusted_gross_income,tax_exempt_interest,foreign_earned_income,social_security_benefits,taxable_social_security; -
canopy-tanf
read_fti_tax_data, underTanfEligibility:adjusted_gross_income,filing_status,wages_salaries_tips; -
canopy-tanf
store_fti_tax_data, a write underTanfEligibility:adjusted_gross_income,filing_status,wages_salaries_tips,self_employment_income.
The lists are preserved on #2238 and #2236 and at the parent of the deletion commit (git log -1 -S read_fti_for_magi — services/canopy-medicaid/src/store/fti.rs names it). Both issues ask which elements the governing paragraph lets a State agency hold; the question now attaches to the reader #785 or #810 adds.
The authority ruling is unchanged. The purpose codes and their citations stay as Amendment 8 set them: MedicaidEligibility, MedicaidMagi and ChipEligibility cite IRC 6103(l)(21), and the three TANF codes cite IRC 6103(l)(7) (FtiPurposeCode::irc_section(), crates/canopy-db/src/fti_audit.rs). compliance/data-tenancy-authorisation.toml class.fti is unchanged.
Amendment 10 (2026-10-20) — canopy-tanf’s FTI table holds §6103(l)(7) items alone (#2236)
Status unchanged (still Accepted). Amendment 8 left one TANF question open: adjusted_gross_income and filing_status fall under no §6103(l)(7) clause, yet TANF’s FTI schema held them (#2236). Amendment 9 deleted the element lists that named them; the table still carried both columns.
Authority. §6103(l)(7)(D)(i), "a State program funded under part A of title IV of the Social Security Act", is the only place §6103 names TANF (Amendment 8). (l)(7) discloses (26 USC 6103, retrieved 2026-10-20), to an agency administering a listed program, (A) from the Social Security Administration "return information from returns with respect to net earnings from self-employment (as defined in section 1402), wages (as defined in section 3121(a) or 3401(a)), and payments of retirement income", and (B) from the Internal Revenue Service "current return information from returns with respect to unearned income". Neither names filing status or adjusted gross income.
As built. 20270204000000_fti_tax_data_l7_items.sql drops both columns. No code reads or writes the table (Amendment 9), and the migration refuses to drop a column that holds a value. The return-information columns that stay are wages_salaries_tips, (A) wages, and self_employment_income, (A) net earnings from self-employment; tax_year is no return-information item but the period the disclosed information covers, and the rest are row keys and stamps. store::fti_schema_infra_tests pins the column set. When #810 adds the TANF reader and writer, their audited element lists name only these items, or (A)'s payments of retirement income or (B) unearned income, each with a column added under the same rule. The authority ruling and the purpose codes are unchanged; Medicaid’s open question (#2238) is not addressed here.
Amendment 11 (2026-10-20) — canopy-medicaid’s FTI table holds §6103(l)(21) items alone (#2238)
Status unchanged (still Accepted). Amendment 8 left two Medicaid questions open. This amendment settles the second, item by item, the match is not exact; the first, delivery of values to the State agency, stays open and is now tracked as #2936.
Authority. §6103(l)(21)(A) limits the return information it discloses to "(i) taxpayer identity information …, (ii) the filing status of such taxpayer, (iii) the number of individuals for whom a deduction is allowed under section 151 …, (iv) the modified adjusted gross income (as defined in section 36B) …, (v) such other information as is prescribed by the Secretary by regulation …, and (vi) the taxable year with respect to which the preceding information relates" (26 USC 6103, retrieved 2026-10-20). The clause-(v) regulation, 26 CFR 301.6103(l)(21)-1(a) (eCFR, retrieved 2026-10-20), adds (1) one aggregate of adjusted gross income, any section 911 exclusion and tax-exempt interest, (2) adjusted gross income where MAGI is unavailable, (3) "the amount of social security benefits … that is included in gross income under section 86", and (4)–(7) notices that information is unavailable.
As built. 20270205000000_fti_tax_data_l21_items.sql drops wages_salaries_tips, self_employment_income and social_security_benefits, which neither text names, and tax_exempt_interest and foreign_earned_income, which (a)(1) discloses only inside its single aggregate. A guard refuses the drop when any row holds a value in them; no code reads or writes the table (Amendment 9). The columns that stay: tax_year A)(vi, filing_status A)(ii, adjusted_gross_income a)(2), where MAGI is unavailable) and taxable_social_security ((a)(3; the rest are row keys and stamps. store::fti_schema_infra_tests pins the column set. When #785 adds the reader, its audited element lists name only these items, or another (l)(21)(A) or (a) item — MAGI, the dependents count, the (a)(1) aggregate — each with a column added under the same rule.
Amendment 12 (2026-10-26) — how a State agency holds the §6103(l)(21) values (#2936)
Status unchanged (still Accepted). Amendment 8 left open whether any provision delivers §6103(l)(21) return-information values to a State Medicaid or CHIP agency; Amendment 11 carried the question as #2936. This amendment settles it under the pre-1.0 best-effort direction. The Decision, its isolation map, the purpose codes, class.fti and the fti_tax_data column set of Amendment 11 are not edited. One passage is superseded: Amendment 8’s open question Delivery of values to the State agency, and Amendment 11’s "the first, delivery of values to the State agency, stays open and is now tracked as #2936".
What the law says. The statute and its regulation name HHS as the only recipient of the values:
-
§6103(l)(21)(A) discloses to "officers, employees, and contractors of the Department of Health and Human Services". (B) lets HHS disclose to "a State agency administering a State program described in subparagraph (A) or its contractors, any inconsistency between the information provided by the Exchange or State agency to the Secretary and the information provided to the Secretary under subparagraph (A)". © limits a State agency’s use of "Return information disclosed under subparagraph (A) or (B)" to, in clause (ii), "determining eligibility for participation in the State programs described in subparagraph (A)".
-
(B) and © stand as Pub. L. 111-148 §1414(a)(1) enacted them; the only later amendment to the paragraph, Pub. L. 111-152 §1004(a)(1)(B), changed "modified gross" to "modified adjusted gross" in (A)(iv).
-
26 CFR 301.6103(l)(21)-1(a) runs from IRS officers and employees "to officers, employees, and contractors of the Department of Health and Human Services", and nothing in the section authorises a further release.
What the administering documents say. The IRS and CMS treat the State agency as a lawful holder of the values themselves:
-
IRS Publication 1075 (Rev. 11-2021) §2.C.11.6, Disclosures under IRC § 6103(l)(21): "HHS may release FTI to an Exchange established under the Affordable Care Act or a state agency administering eligibility determinations for Medicaid or Children’s Health Insurance Programs for the purpose of establishing eligibility for participation in the Exchange, verifying the appropriate amount of any credits and determining eligibility for participation in the state program."
-
The IRS’s IRC Section 6103(l)(21) Questions and Answers, A3: "The IRS will disclose this information only to designated officers, employees, and contractors of HHS. HHS, in turn, may disclose this information to the Marketplace and state agencies." A8 applies the §6103(p)(4) safeguards "to all entities that will receive information under section 6103(l)(21), including HHS, the Marketplace and the state agencies administering certain state health subsidy programs".
-
The CMS–IRS matching program notice (89 FR 104544, 2024-12-23, doc. 2024-30522) provides "CMS with IRS Federal tax information which CMS and State-based administering entities (AEs) will use to verify household income and family size", for determinations that include "enrollment in Medicaid and the Children’s Health Insurance Program (CHIP)". The items are "1. SSN; 2. family size; 3. filing status; 4. modified adjusted gross income (MAGI); 5. taxable Social Security benefits; 6. adjusted gross income (AGI) for adjusted tax returns; 7. taxable year …; and 8. any other specified item of Federal tax information (FTI) authorized pursuant to 26 U.S.C. 6103[(l)](21) and its implementing regulations". The agreement it announces runs 2025-04-05 to 2026-10-04 and may be renewed for one year.
-
42 CFR 435.949(a) has the Secretary "establish an electronic service through which States may verify certain information with, or obtain such information from, Federal agencies", and (b) requires that "States must obtain the information through such service". 42 CFR 435.948(a)(1) and (b) require the agency to request income information from "the Internal Revenue Service (IRS)" and, where the service offers it, to "obtain the information through such service".
The ruling. canopy-medicaid holds §6103(l)(21) values as a State-based administering entity that receives them from HHS through the Data Services Hub, under the CMS–IRS computer matching agreement and the State’s own agreement with CMS. The audit authority stays IRC 6103(l)(21) (Amendment 8). No source read states the statutory step from (B)'s "any inconsistency" to the values. The ruling rests on the IRS’s and CMS’s administration of the paragraph, quoted above, not on a provision. If the IRS or CMS withdraws that reading, fti_tax_data holds nothing, and the Hub’s inconsistency signal becomes the State’s only (l)(21) input.
What it means for #785. The reader #785 adds stores only Hub-delivered items that the statute or regulation names (Amendment 11’s rule); the matching-notice list falls inside it. Filing status, AGI for adjusted returns, taxable Social Security benefits and the taxable year have columns; family size (the (A)(iii) count) and MAGI A)(iv gain one each when the reader needs them. A deployment ingests these values only once the State holds its CMS agreement and an IRS-approved Safeguard Procedures Report (Q&A A9); that is an operating precondition, not a code gate. The IRS’s integrated-eligibility guidance requires FTI to "be segregated by IRC 6103 code authority". Canopy already does this: (l)(21) data stays in canopy-medicaid, and TANF’s (l)(7) data in canopy-tanf (§Decision, Amendment 10).
Medicaid’s §6103(l)(7) route is unchanged. It remains the one route by which the statute itself delivers return-information values to a State Medicaid agency: SSA-held wages, self-employment earnings and retirement income, and IRS unearned income. canopy-medicaid still holds none of that data (Amendment 8).
Sources, read 2026-10-26.
-
26 USC §6103(l)(21), at govinfo.gov (2023 edition), with the amendment notes at law.cornell.edu.
-
26 CFR 301.6103(l)(21)-1, and 42 CFR 435.948 and 435.949, at law.cornell.edu.
-
IRS Publication 1075 (Rev. 11-2021) §2.C.11.6, at irs.gov.
-
IRS, IRC Section 6103(l)(21) Questions and Answers, A3, A8 and A9, at irs.gov.
-
89 FR 104544, at federalregister.gov.
-
IRS, Protecting FTI in Integrated Eligibility Systems, at irs.gov.