Plan: ACF-196 Expenditures Pipeline (Issue #378)
Status: Blocked (Georgia state-accounting system exposes no read feed for categorized expenditures, #378)
Issue: #378 — the externally-blocked (T4) register in Roadmap › Open Work
For a future implementer: this page names the seam that already ships and what the partner feed must supply. It is not a build order; it is re-planned when #378 unblocks.
Context
The ACF-196 path is not empty. generate_acf196(db, fiscal_year, fiscal_quarter, pins) in services/canopy-reporting/src/reporting/tanf.rs inserts one row per expenditure category into tanf_acf196_reports for the quarter, with federal_amount, state_amount and total_amount at zero and families_served counted from the quarter’s three PUBLISHED ACF-199 generations (the pins). The handler’s published-input guard answers 422 naming any month without a published generation, so the generator never sees a partial quarter. The category list is the twelve categories of 45 CFR 265.9, basic_assistance through systems.
The route is /v1/reporting/tanf/acf-196 (ACF_196 in crates/canopy-contracts-reporting/src/paths.rs): POST generates the quarter (201, Acf196Generated; categories_generated is rows_affected()-honest, so a rerun whose rows already exist reports 0) and GET lists the stored quarters. Both handlers (generate_tanf_acf196, list_tanf_acf196 in services/canopy-reporting/src/api/mod.rs) require a supervisor-or-above user token. The endpoint page is canopy-reporting API, the table page is canopy-reporting data model, and the plan that built this is TANF Federal Reporting.
What is missing is the expenditure data itself. Georgia’s state-accounting system exposes no read feed for categorized TANF expenditures, so every amount column is zero. Building that feed is the partner’s work, and no Canopy-side design can be fixed before its shape is known.
Scope
In scope (once the feed exists):
-
Decide the entry point first: ADR-045 makes canopy-exchange the single partner-integration service, so the feed’s connector and its L1 kind are the first decision of the re-plan.
-
Map the feed’s categories onto the twelve categories
generate_acf196encodes; reject anything outside that set. -
Populate
federal_amount,state_amountandtotal_amountintanf_acf196_reports, keeping the published-input guard and therows_affected()-honest response. -
Tests: all twelve categories populated; a quarter with no feed rows; an unknown category. Flip the zero-amount disposition on the API page; CHANGELOG entry.
Out of scope:
-
The state-accounting bridge itself (partner-owned).
-
ACF-196 amendment / correction workflow; TANF MOE reporting.
-
Medicaid expenditures — CMS-64 (#379) has the same shape of blocker on the MMIS side.
Design
Not designed: the feed’s shape is unknown. What is fixed is the seam the re-plan extends rather than duplicates — the tanf_acf196_reports table (services/canopy-reporting/migrations/20260409000000_tanf_medicaid_reporting_tables.sql), the generate_acf196 generator, the /v1/reporting/tanf/acf-196 route, and the conventions of generation-published report runs (published-input pinning, honest counts). A parallel table, generator or route is the one design this plan rules out.