Canopy Service Catalog
For a contributor or agent looking up what a service is and where its detail lives: this page is the index — ports, databases, one-line roles, notable status, and pointers. Endpoints live on the per-service API Reference pages, tables on the Data Model pages, topology and profiles in the Deployment Guide, variables in the Configuration Reference, and the architecture narrative with the ADR index in Architecture.
Canopy follows ADR-001 program-service isolation: each benefit program is an independent service with its own PostgreSQL database, and program services never read each other’s databases. Cross-service communication is HTTP returning signed determination objects only (ADR-002).
Ports
The port beside each service is its container-internal listen port — fixed per service (PORT_MAPPINGS in xtask/src/docker.rs; CANOPY_<SVC>__PORT in docker-compose.yml). The host port is not that number: cargo xtask dev start binds 127.0.0.1:0 per mapping, lets the OS pick, and writes the result to the gitignored .ports.env as CANOPY_PORT_<SERVICE>_<CONTAINER>; compose interpolates ${CANOPY_PORT_…:-<default>}, so the container number is only the fallback when the variable is unset. Read the live mapping with cargo xtask dev status or from .ports.env — never hardcode a host port.
Infrastructure services
These run against the shared postgres container (one logical database each) and carry no legally restricted data tenancy of their own.
| Service | Port | Database | Role |
|---|---|---|---|
canopy-rules |
8001 |
|
JDM evaluation for every program service (ADR-003); rulesets are versioned on disk, the database holds only the evaluation audit trail. |
canopy-persons |
8002 |
|
Persons, households and addresses, where a residential address names a county of its own State, one the pack serves when the State is the deployment's (#3376; Rulesets › Served counties); valid-time-versioned income, asset, expense, member and parent–child (#3047) facts written through |
canopy-applications |
8003 |
|
ACA §1413 single-streamlined intake, per-program processing status (each program’s determination projected from canopy-eligibility’s |
canopy-eligibility |
8004 |
|
Orchestrator — ADR-002 fan-out to the program services, JWS verification and the quarantined-envelope resolution ledger, the cross-program hierarchy, cohort and bulk runs; publishes each determination’s verdict ( |
canopy-verification |
8005 |
|
Verifications, a worker’s caseload-scoped pending feed (scoped by canopy-applications' household assignments, #2336) and IEVS discrepancies on |
canopy-enrollment |
8006 |
|
SNAP enrollment, proration, the EBT issuance pipeline, expungement under the pack’s designated approach (it consumes |
canopy-renewals |
8007 |
|
SNAP certification periods, interim contacts, change reports, the periodic-report calendar and the renewal scheduler; program-parameterized interim-contact and change-report routes for the other programs. |
canopy-notices |
8008 |
|
Typst notices and forms (ADR-010) routed from events by the jurisdiction’s |
canopy-exchange |
8009 |
|
The partner-exchange seam — FFE account transfer and the ADR-045 blind broker. A stub today (see the per-service index). |
canopy-appeals |
8010 |
|
Fair hearings (filing, continued benefits, the hearing hold on a WIC termination, decisions, the worker queue) and IPV/ADH case management. |
canopy-reporting |
8011 |
|
FNS-388/FNS-7176, ACF-199/ACF-196/WPR, T-MSIS/CMS-64/CMS-416 and the cross-program overpayment roll-up, assembled over HTTP from the owning services (ADR-001); the report-run job model. |
canopy-security |
8012 |
|
Audit-event sink, breach alerts, NIST control mappings, archive, chain status, the worker directory (ADR-046), scoped fact change-history; canopy-identity (ADR-049): the |
Program services (ADR-001 isolated databases)
Each program service owns a dedicated PostgreSQL container so legally restricted data is isolated with independent audit (ADR-004).
| Service | Port | Database | Role | Restricted data tenancy |
|---|---|---|---|---|
canopy-snap |
8013 |
|
SNAP determination, categorical eligibility and BBCE, work registration and the ABAWD screening, work sanctions (the member excluded on the next determination, #3219), ABAWD tracking with regained eligibility and discretionary exemptions against the State's allotment (#3220), IEVS matches and discrepancies, the parameters readout, overpayments. |
IEVS, SSA SOLQ/BENDEX (SNAP CMA). |
canopy-tanf |
8014 |
|
TANF determination and its persisted assistance unit, read per month by canopy-reporting (#3048), work requirements, time limits and the daily job that counts their months (ADR-055), personal responsibilities, supplemental payments, discrepancy resolution, overpayments. |
FTI (IRC §6103(l)(7)), SSA SOLQ/BENDEX (TANF CMA); the |
canopy-medicaid |
8015 |
|
Medicaid/CHIP: a state-residency gate per member before the CMD cascade (the federal |
FTI (IRC §6103(l)(21); its §6103(l)(7) IEVS route carries no data, ADR-004 Amendment 8), FDSH, HIPAA-scoped; the |
canopy-caps |
8016 |
|
CAPS determination, which the orchestrator dispatches with each child as a subject and the family unit's parents named from the household's parent–child relations (#3186; one signed envelope per child, each binding the dispatch's operation). It tests each parent's activity, setting aside a parent verified as unable to provide care where the pack elects it (#3183). Also authorizations, which carry the type of care; the provider registry; parent activity standings and child care needs; and each household's family asset certification (#3546), on which every determination applies the federal asset test of 45 CFR 98.20(a)(2)(ii) (#3547). |
None (state-administered CCDF). |
canopy-wic |
8017 |
|
WIC determination, which the orchestrator dispatches with every household member as a participant (#3153; one signed envelope per participant, each binding the dispatch’s operation; evaluation or income reassessment), participants and their lifecycle sweep (advance expiration notice, expiry, termination settle), mid-certification termination and its hearing hold scheduling and cancel with its 15-day notice (enactment is not built), nutritional-risk assessments, breastfeeding statuses, appointments. Adjunctive income eligibility is resolved across the household’s participants from each one’s certifications in other programs, against the federal routes in the federal layer’s |
None (state-administered). |
Backend-for-frontend services
| Service | Port | Sessions | Role |
|---|---|---|---|
canopy-web |
8080 |
|
Worker portal — Axum + Askama + htmx under a strict CSP; sign-in at the upstream through canopy-identity, every service call on the worker’s delegation (ADR-049); composition-driven dashboards and case detail (ADR-021 / ADR-022); caseworker action handlers; the audit log with "Cite for hearing". |
canopy-portal |
8090 |
No database — opaque tokens in the |
Applicant portal — Dioxus fullstack, privacy-first (ADR-008, ADR-026): lookup, client-encrypted Apply drafts and resume, recovery, letters; a Redis-backed rate-limit cascade on the write routes. |
Databases
cargo xtask migrate (xtask/src/cmd/migrate.rs) names the logical databases: one canopy_<service> per database-backed service (the Postgres-free applicant portal has none). Program databases live on their own postgres-<program> containers (compose fallback host ports 5433–5437) unless the devstack runs --shared-db (Deployment Guide › data tier). Devstack snapshot and rollback: cargo xtask migrate snapshot | rollback | list; the deploy-time job is canopy-manage migrate apply --service <svc> (Database Migrations).
Cross-cutting concerns
Health
Every canopy-api service answers GET /livez, GET /readyz and GET /version at the router root, unauthenticated (crates/canopy-api/src/lib.rs); /version is { service, build, config: [{ name, sha }], verified }, the configuration layers and commits the process booted on (ADR-051). canopy-web serves /livez, /readyz and /version; the portal serves /healthz, /readyz and /version (services/canopy-portal/src/main.rs), the same VersionInfo shape from canopy-config; it has no /metrics — metrics are OTLP push (#430). Probe semantics and the compose healthchecks: Deployment Guide › health.
Events: outbox, inbox, replay
Every database-backed service carries event_outbox and event_inbox (services/*/migrations); the schema is single-sourced in crates/canopy-mq/outbox-migrations/ and described once on the data-model index. A publisher writes the outbox row inside the caller’s transaction and the in-process OutboxDrainer flushes it to the RabbitMQ topic exchange canopy.events (ADR-018, ADR-039); the publisher’s restricted-field guard (RESTRICTED_FIELDS in crates/canopy-mq/src/publisher.rs) refuses FTI, SSA, IEVS and HIPAA field names before a row is staged (ADR-004). On the consumer side a delivery the handler cannot interpret is parked in event_inbox and re-offered until a capable binary processes it (Event-Delivery Protocol); the operator re-publish route is POST /v1/admin/events/replay, mounted per service by canopy_api::admin::AdminRoutes behind that service’s identity receiver, admitting an admin user’s delegation (ADMIN_HUMAN) — per ADR-001 there is no cross-service replay. canopy-exchange carries both tables and publishes nothing; canopy-portal has neither.
Signed determinations (ADR-002)
Program services never return raw eligibility data. Each returns a JWS-signed determination (ECDSA P-256) that the orchestrator verifies against a VerifyingKeyRegistry (ADR-002); determinations are append-only — a later determination supersedes, never edits. Each program service holds a determination’s completion events until canopy-eligibility records or disowns it (ADR-002 Amendment 7), and lists the determinations it has held past its held-row warning age at GET /v1/held-determinations (canopy_contracts_eligibility::paths::HELD_DETERMINATIONS), to canopy-eligibility’s onward delegation of a determination operator alone (#3065; canopy-snap, canopy-tanf, canopy-medicaid, canopy-caps, canopy-wic). A determination operator reads those lists, and adopts or drops a hold, through canopy-eligibility (held determination events).
Audit chains (ADR-014 → ADR-041)
canopy-security’s wildcard (#) subscriber (services/canopy-security/src/main.rs) persists every event on canopy.events as an audit_events row with a SHA-256 previous_hash/event_hash chain; canopy-tanf and canopy-medicaid keep a separate fti_audit_log chain for IRS Publication 1075 (ADR-014). That v1 chain is the live tamper-evidence mechanism. The chain-v2 substrate (crate canopy-chain, the chain_* tables in canopy-security, canopy-tanf and canopy-medicaid) landed dormant and is retirement-bound: ADR-041 (Accepted 2026-08-03) supersedes the hash-chain approach (ADR-014 Amendment 12) and the retirement is #1304 — no v1→v2 cutover is scheduled. The same ledger backs the scoped fact change-history endpoint (GET /v1/security/persons/{id}/fact-history/{resource}; canopy-security API).
Per-service index
The Status column names only what a reader would otherwise get wrong; endpoint tables live on the API page and table inventories on the data-model page.
| Service | Status | Detail |
|---|---|---|
canopy-rules |
— |
API · Data model · Rulesets |
canopy-persons |
— |
|
canopy-applications |
The ADR-038 finalize saga is the only finalize path; uploads quarantine on the |
|
canopy-eligibility |
— |
|
canopy-verification |
Federal adapters run as deterministic |
|
canopy-enrollment |
EBT issuance runs on |
|
canopy-renewals |
— |
|
canopy-notices |
— |
|
canopy-exchange |
Stub: |
ADR-045 · gateway partner-interface mocks plan · Gateway partner catalog |
canopy-appeals |
— |
|
canopy-reporting |
ACF-196 amounts, CMS-64 dollars and CMS-416 numerators are externally blocked and emit as stubs (Roadmap › Open Work). The ACF-199 extract writes one family row per household per month (#3052), types each family from its work-eligible members as canopy-tanf’s family composition answers them (45 CFR 261.24(c), #2975), and takes each work-eligible member’s average weekly hours from canopy-tanf’s work-activity summary, each determination’s coverage window, and each single-parent member’s work-standard classification from the recorded basis; the WPR counts a family assisted for part of the month in no numerator (#2316, #3049) and a single-parent family when one member meets their own standard (#2975). A member canopy-tanf cannot classify, or whose summary it refuses for a missing or undecidable work-standard basis, ends the run |
|
canopy-security |
The chain-v2 substrate is dormant and retirement-bound (above). canopy-identity’s routes are public: |
|
canopy-snap |
— |
|
canopy-tanf |
— |
|
canopy-medicaid |
— |
|
canopy-caps |
— |
|
canopy-wic |
— |
|
canopy-web |
Never writes an application's determination: after a determine it reads the application until canopy-applications shows it (#3202, Read after a determine). |
|
canopy-portal |
Postgres-free (ADR-026); no API or data-model page. |
Developer tooling
| Tool | Description |
|---|---|
|
Deterministic seed-data generator ( |
|
The operator CLI ( |
|
The operator's tool for work below the API ( |
|
The configuration fetcher ( |
|
The devstack’s test-token service ( |
|
Workspace task runner — build/test/validate, devstack lifecycle, migrations, policy audit, rules check, demo verification. See cargo xtask Subcommand Catalog. |
Currency
This catalog is an index by design: topology, cross-cutting concerns that have no per-service home, and pointers. When a feature MR changes a service’s role, tenancy or topology, update its row here in the same MR; when it only changes endpoints or tables, update the API or data-model page instead.