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

canopy_rules

JDM evaluation for every program service (ADR-003); rulesets are versioned on disk, the database holds only the evaluation audit trail.

canopy-persons

8002

canopy_persons

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 */claims, and sealed pregnancy facts (#3143) written through persons/{id}/pregnancies (ADR-027), except IEVS income, held through income/proposals and accepted on canopy-snap’s ievs.discrepancy_resolved (ADR-027 Amendment 6, #2546); dated household homelessness periods written through households/{id}/homelessness (#3144); bulk export.

canopy-applications

8003

canopy_applications

ACA §1413 single-streamlined intake, per-program processing status (each program’s determination projected from canopy-eligibility’s determination.recorded.<program> verdict, #3202), authorized representatives, applicant drafts and the finalize saga (ADR-038), which holds an address to the same county rule as canopy-persons and refuses one that fails it before any canopy-persons write (#3376), upload scan quarantine (ADR-042), SNAP recertification filing.

canopy-eligibility

8004

canopy_eligibility

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 (determination.recorded.<program>, determination.disowned.<program>), on which each program service releases or drops the events it held for that determination (ADR-002 Amendment 7, #2322) and from whose determination.recorded.<program> canopy-applications projects each program’s determination onto the application (#3202); lists each program’s held determinations with their dispositions, adopts an operation’s verified, order-bound envelopes it never recorded, and drops the events of one it never will, in the held_determination_resolutions ledger (ADR-002 Amendment 8, #3065).

canopy-verification

8005

canopy_verification

Verifications, a worker’s caseload-scoped pending feed (scoped by canopy-applications' household assignments, #2336) and IEVS discrepancies on /v1; the federal adapter routes (IEVS, SAVE, SSA SOLQ) on /internal/v1, behind the same identity receiver and admitting only their callers.

canopy-enrollment

8006

canopy_enrollment

SNAP enrollment, proration, the EBT issuance pipeline, expungement under the pack’s designated approach (it consumes ebt.account_activity.observed, which restarts the inactive-account clock, #1744), the adverse-action pipeline and the enrolled-household continuation primitive.

canopy-renewals

8007

canopy_renewals

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

canopy_notices

Typst notices and forms (ADR-010) routed from events by the jurisdiction’s notices/manifest.toml; the general signed-document renderer (ADR-029); dispatch evidence.

canopy-exchange

8009

canopy_exchange

The partner-exchange seam — FFE account transfer and the ADR-045 blind broker. A stub today (see the per-service index).

canopy-appeals

8010

canopy_appeals

Fair hearings (filing, continued benefits, the hearing hold on a WIC termination, decisions, the worker queue) and IPV/ADH case management.

canopy-reporting

8011

canopy_reporting

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

canopy_security

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 identity_signing_keys and identity_key_revocations registry and its JWKS, GET /identity/jwks; the token endpoint, POST /identity/token, serving the client-credentials grant, the delegation mint by which canopy-web mints per-target delegation tokens from its web sessions and services mint them onward, and, with an upstream profile, the federation grant that opens canopy web sessions for canopy-web and approves canopy-cli’s devices, opening native sessions (both on the RFC 8693 grant type); and the native grants by which canopy-cli redeems an approved device and rotates its refresh credential with DPoP proofs (RFC 8628, RFC 6749 §6, RFC 9449); the revocation endpoint, POST /identity/revoke, by which canopy-web revokes its own sessions and native sessions, and canopy-cli its own native session (RFC 7009); the device flow’s start and code entry, POST /identity/device_authorization and POST /identity/device_verification (RFC 8628, served with an upstream profile and a verification page); and their RFC 8414 metadata, GET /.well-known/oauth-authorization-server/identity; the canopy subject and web-session stores the federation grant writes (identity_subjects, identity_sessions and their companions).

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

canopy_snap (postgres-snap)

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

canopy_tanf (postgres-tanf)

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 fti_audit_log chain (ADR-014).

canopy-medicaid

8015

canopy_medicaid (postgres-medicaid)

Medicaid/CHIP: a state-residency gate per member before the CMD cascade (the federal medicaid-residency.json, #3095), the cascade and EE15 hierarchy over the classes of assistance, TMA and Express Lane, overpayments, worker-recorded cooperation findings (#3189) and section 1115 adult demonstration qualifying-activity reports (#3203) — the medicaid-*.json and chip-eligibility.json rulesets.

FTI (IRC §6103(l)(21); its §6103(l)(7) IEVS route carries no data, ADR-004 Amendment 8), FDSH, HIPAA-scoped; the fti_audit_log chain (ADR-014).

canopy-caps

8016

canopy_caps (postgres-caps)

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). GET /v1/determinations/{id}/snapshot returns a determination's stored input snapshot, still sealed, to canopy-snap's snapshot readers (#3427).

None (state-administered CCDF).

canopy-wic

8017

canopy_wic (postgres-wic)

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 wic-adjunctive-routes.json (#3312). GET /v1/determinations/{id}/snapshot returns a determination's stored input snapshot, still sealed, to admin, quality_control and canopy-eligibility's onward delegation (#3427).

None (state-administered).

Backend-for-frontend services

Service Port Sessions Role

canopy-web

8080

canopy_web on the shared instance — canopy-web’s own store of canopy-identity web sessions, web_session / web_native_session / web_login_flow / web_session_end (ADR-009 Amendment 2, data model); served at its https public origin (Configuration Reference).

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 noeviction redis-sessions keyspace (CANOPY_PORTAL__REDIS_SESSIONS_URL, Configuration Reference).

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

—

API · Data model

canopy-applications

The ADR-038 finalize saga is the only finalize path; uploads quarantine on the clamd sidecar (ADR-042).

API · Data model · Finalize reconciler · clamd operations

canopy-eligibility

—

API · Data model

canopy-verification

Federal adapters run as deterministic Noop implementations — the default noop-adapters feature in services/canopy-verification/Cargo.toml; live connectors are externally blocked (Roadmap › Open Work).

API · Data model

canopy-enrollment

EBT issuance runs on NoopEbtAdapter (partner-blocked).

API · Data model

canopy-renewals

—

API · Data model

canopy-notices

—

API · Data model

canopy-exchange

Stub: routes() returns an empty router and a unit test pins it empty until the ADR-045 blind broker lands (services/canopy-exchange/src/api/mod.rs, #1445); it boots through canopy-api, so /livez and /readyz answer. No API or data-model page.

ADR-045 · gateway partner-interface mocks plan · Gateway partner catalog

canopy-appeals

—

API · Data model · Appeals reconciliation

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 policy_input_missing, naming the person (#2315, #3050); a determination with no recorded assistance unit ends it contract_violation (#2975).

API · Data model · Report runs runbook

canopy-security

The chain-v2 substrate is dormant and retirement-bound (above). canopy-identity’s routes are public: GET /identity/jwks, POST /identity/token, POST /identity/revoke, the device flow’s two routes and the RFC 8414 metadata are mounted at the router root, outside /v1 and the OpenAPI document, with no bearer; the token and revocation endpoints authenticate their client by a private_key_jwt assertion and share their own per-IP limit. The federation grant is served only while identity-upstream.yaml is present, to canopy-web alone; the delegation mint (canopy-web from a session, a service onward) and the revocation endpoint (canopy-web alone) are served with or without it. From outside, the token, revocation, device-authorization, JWKS and metadata routes reach canopy-security through canopy-web’s identity edge (EdgeForwarder), so the issuer is https://<web origin>/identity. The security-administration routes under /identity/admin, also outside /v1, admit only a security_admin user’s delegation for canopy-security with a recent sign-in (canopy-web’s /admin/security pages); GET /identity/admin/actions pages through the record of their changes (#2737).

API · Data model · Security Operations

canopy-snap

—

API · Data model

canopy-tanf

—

API · Data model

canopy-medicaid

—

API · Data model

canopy-caps

—

API · Data model

canopy-wic

—

API · Data model

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).

Pages + actions · Data model · Design reference

canopy-portal

Postgres-free (ADR-026); no API or data-model page.

Design reference · Fluent i18n

Developer tooling

Tool Description

canopy-seed

Deterministic seed-data generator (--seed for reproducibility, --households for size), run through cargo xtask seed. Its cast of login-capable applicants (phase14_cast in tools/canopy-seed/src/datagen.rs) is the demo surface — one seed, no separate profile.

canopy-cli

The operator CLI (tools/canopy-cli): signs a worker in by canopy-identity’s device flow (canopy login) and calls the services on that worker’s delegation. See canopy-cli.

canopy-manage

The operator's tool for work below the API (tools/canopy-manage): key material today, deploy-time database jobs as they move out of xtask. It ships in the service image and has no default target. See canopy-manage Reference.

canopy-config-fetch

The configuration fetcher (tools/canopy-config-fetch, its own image): a one-shot that fetches each git configuration source, verifies its signature against a trust root the deployment mounts, and publishes it under the policy root before any service starts (Deployment Guide › Fetching configuration, ADR-051).

canopy-token-broker

The devstack’s test-token service (tools/canopy-token-broker, compose profile e2e): serves canopy-test-lib’s token broker, which mints test tokens through canopy-identity’s production grants, to the e2e and k6 harnesses (Testing › the token broker).

cargo xtask

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.

Edit this page · default