Jurisdiction Onboarding Runbook

For an operator or policy analyst standing up a new jurisdiction. Everything a jurisdiction sets lives in one configuration layer, its pack, which is a git repository of its own (canopy-config-{slug}), stacked over the federal layer's repository (ADR-006, ADR-051; layers: Rulesets › Layers). This checkout holds no jurisdiction's pack. Each step below points at the page that owns its detail.

A pack changes policy without a Rust change wherever the policy is pack data. Where a policy cannot be expressed in the pack, that is a platform gap to raise as an issue, not a fork. One such gap is known and open: parts of TANF and some intake lists are still Georgia's vocabulary in shared code (#2210, #2211), so a second jurisdiction can author SNAP, child care, WIC, Medicaid and CHIP today and waits on those issues for TANF. A pack declares its own Medicaid and CHIP classes of assistance (Medicaid and CHIP classes).

Prerequisites

  • The programs to deploy are chosen — they select the deployment profile (Deployment Guide › Profiles).

  • The jurisdiction's current policy manual for each program, with the citations you will record.

  • A clone of this repository (for the reference pack and, until a release ships the binary, to run canopy) and a clone of canopy-config-federal beside it.

  • Infrastructure per Deployment Guide › Prerequisites: PostgreSQL, RabbitMQ, an upstream OpenID Connect provider for workers' sign-in (Kanidm by default), a TLS ingress at canopy-web's public origin, Redis, an S3-compatible store, ClamAV.

  • Data-sharing agreements (IEVS MOUs, SSA SOLQ/BINDEX CMAs, FDSH onboarding) as applicable.

Step 1 — Create the configuration repository

fixtures/config/default/ in this repository is the neutral starter every jurisdiction copies: identity values are [ALL CAPS] placeholders, fips_state_code is a real code with no population, and its citations carry only federal or fixture authority (Rulesets › the default reference ruleset). Do not hand-write a jurisdiction.toml from a template. Copy the tree into a new repository and edit it:

git init ../canopy-config-{slug}
cp -r fixtures/config/default/. ../canopy-config-{slug}/
cp -r devstack/config-repo-ci/. ../canopy-config-{slug}/
  • The manifest. Set canopy-config.toml to jurisdiction = "{slug}" and keep schema = 1 and layer = "jurisdiction". The deployment's jurisdiction is the name its pack's manifest gives; there is no other jurisdiction setting.

  • The pipeline. devstack/config-repo-ci/ is the repository's pipeline: every JSON and TOML file parses, and gitleaks finds no secret in the history. It does not judge the pack's meaning; Step 3 and the pin do.

  • Signed commits. A deployment, and this repository's car, fetch a pack only at a commit signed by a key on the pack's trust root (Deployment Guide › Fetching configuration). Sign every commit, merge fast-forward only, and protect main (Contributor Workflow › A policy change).

The copy is the whole directory contract, and every part is loaded by code: the pack's own decisions (snap-certification-period.json, tanf-.json, medicaid-.json, chip-eligibility.json, caps-eligibility.json), canopy-config.toml, jurisdiction.toml, citations.toml, idp.toml, theme.toml, composition/ (worker-portal layouts) and workflows/. The SNAP and WIC eligibility decisions are federal and come from the federal layer; a pack does not carry a copy (where a decision lives). The reference pack ships no notices/: its neutral templates are the notices-neutral base layer (Step 2).

Step 2 — Fill in the pack

Edit jurisdiction.toml in place (Rulesets › jurisdiction.toml shows its shape; the canopy-config-georgia repository's file is a complete worked example). The services' loaders refuse to boot on a missing key, so keep every table the reference file has for the programs you enable and change values, starting with:

  • [jurisdiction] — name, fips_state_code (validated against the canopy-reference FIPS table), timezone, enabled_programs; fips_county_codes, empty to serve the whole State, and admin_unit_label, the word the address forms use for a county (Rulesets › Served counties).

  • [appeals.program.<program>] — for every enabled program, its appeal filing window, the citation a late refusal names, and its hearing office (Rulesets › appeals program rows).

  • [jurisdiction.holidays] — the observed working-day holidays for every covered year (the workday calendar consumes them).

  • [snap.sua] — heating_cooling_monthly_cents, telephone_monthly_cents, limited_monthly_cents; and [snap.deductions] — standard_medical_deduction_monthly_cents. canopy-snap's parameter loader names each of these in its boot error when absent (services/canopy-snap/src/params.rs).

  • [[intake.document_types]] — the kinds of document the jurisdiction files at intake, each with its worker label and the applicant portal's title and example line (Rulesets › Intake document types). Three services refuse to boot without it. Removing a code later does not change stored documents: they keep it and show it bare, and it is no longer offered or accepted.

  • [[intake.reported_income_sources]] — the kinds of other income the application asks about, each a code and a label (Rulesets › Reported income sources). Required and stored in the same way as the document types.

  • [[tanf.denial_reasons]] and [[tanf.personal_responsibilities]], for a pack that enables TANF — the sentence the denial letter prints for each reason code, time_limit among them, and the requirement types a personal-responsibility record may name (Rulesets › TANF denial reasons, TANF personal-responsibility types). canopy-tanf refuses to boot without either, or without [[tanf.sanction_steps]], the steps of the work-sanction ladder (TANF sanction steps); a pack that makes payments beside the grant also declares [[tanf.supplemental_payments]] (TANF standards and supplemental payments); a pack that counts months in a way of its own declares each count in [[tanf.counters]] (TANF counters); a pack whose workers record months that do not count toward a time limit declares the reasons in [[tanf.count_exclusions]] (TANF count exclusions); and the denied tanf.determined route of notices/manifest.toml forwards denial_reason_texts.

  • The four TANF decisions, [tanf.standards] and [tanf.values], for a pack that enables TANF (#3507) — tanf-dependent-child.json, tanf-unit-member.json, tanf-eligibility.json and tanf-benefit-calculation.json decide the assistance unit, the counted income, eligibility and the grant against standards and values the pack names; canopy-tanf refuses to start without all four (the decisions and tables, ADR-054).

  • [caps].asset_certification_valid_days, for a pack that enables CAPS (#3547) — how many days old a family's asset certification may be when a determination reads it (Rulesets › CAPS asset certification age). canopy-caps refuses to boot without it. The asset test itself is the federal layer's caps-family-assets decision; a pack does not carry it.

  • [notices.claims].repayment_due_days, for a pack that enables SNAP (#2228) — the days a claim's demand letter gives the household to repay or arrange repayment, 1 to 30 (Rulesets › the claim letter's due date). A pack that ships its own SNAP claim letter prints the inputs listed under the claim letter and routes the same six program_data_keys.

  • [snap], [snap.issuance], [shared.timing], [notices], [appeals] and the tables of each enabled program — every value the jurisdiction's manual sets.

Seven rules the check in Step 3 holds the pack to:

  • Every value is cited. Each key traces to a row in citations.toml (ADR-011); replace the reference file's fixture rows with the jurisdiction's authority.

  • No federal value is restated. A figure federal law fixes and a State cannot vary (the SNAP expedited-service screen, the initial-month floor, the IPV periods, the 60-month TANF limit) lives in the federal layer, and a pack that declares its key is refused (Rulesets › Federal constants). The federal tables (allotments, income limits, poverty guidelines) are federal-layer files too, looked up by name, never copied. The annual families and their cutovers are the federal layer's indexing.toml (Policy currency runbook).

  • A TANF pack carries its four decisions, and they read only what it declares. The four decisions exist in the stack, each context.standards and context.values name one reads is declared in [tanf.standards] or [tanf.values], and neither per-member decision reads a standard, and each .counters.<code> or .supplemental_payments.<code> one reads is declared in [[tanf.counters]] or [[tanf.supplemental_payments]] (check tanf-decisions).

  • Appeal windows hold together. Every enabled program has an [appeals.program.<p>] row, its filing_window_days is within the federal bound, and its letters print the same number of days (check appeal-windows; Rulesets › the federal bounds).

  • Every TANF denial code has a sentence. Each code the pack's tanf-eligibility.json can answer, and time_limit, has a [[tanf.denial_reasons]] row (check tanf-denial-reasons).

  • An intake anchor names a cited source. Each [[intake.section_citations]] row's source_ref is a source_ref in the pack's citations.toml (Rulesets › Intake section citations). The table is optional.

  • A federal decision is replaced only by declaration. A pack file carrying the name of a federal decision must be listed under overrides in canopy-config.toml, or canopy-rules refuses the stack (Rulesets › Overrides).

Decisions:

  • A decision's JSON "name" is its file's name without .json; the loader resolves by that embedded name.

  • "version" is free-form change tracking for humans; nothing parses it, and the version a determination records is the corpus content hash (ADR-006 Amendment 2).

  • Put a threshold in jurisdiction.toml, not in a decision table; change a decision's graph only for a structural provision (a state-specific exemption, an extra deduction type).

  • Fixtures: a fixtures/rulesets/ directory in the pack holds worked cases, each naming a decision as ruleset with an input and an expect block. They may name a federal decision, which is then evaluated under the pack's values.

Notices: notices/manifest.toml maps template keys to versioned .typ files. Author the jurisdiction's own under the pack's notices/ (copy fixtures/config/notices-neutral/notices/ as a start); a file the pack ships replaces the neutral one of the same path. Until the pack ships a manifest, the neutral templates render only from a base layer listed below the pack, and only in development or under the CANOPY_NOTICES__ALLOW_DEFAULT_TEMPLATE_FALLBACK override (accountable overrides).

Decisions load at service start and are reloaded only on restart; canopy-rules has no write route.

A waiver that needs records, checks or outcomes a pack cannot express is delivered as an extension module under extensions/<name>/ (ADR-052). canopy config check reports a bundle whose files a service would refuse; it does not check a manifest against the points and decisions a service offers, which the service does at boot. canopy-medicaid is the one service that loads a module (Extension modules).

Step 3 — Check the pack

canopy config check runs canopy's pack checks on the working copy, over the federal clone. It needs no devstack, login, network or pin (canopy CLI › Offline commands). Canopy builds the binary, so a pack author, or the pack repository's own pipeline, builds nothing: each merge to main keeps it for a week as a job artifact (#3634), and each release from 0.4.0 publishes it as a package under its version (#3435). The newest build of main:

P=https://gitlab.com/api/v4/projects/gadhs%2Fapplication%2Feligibility%2Fcanopy
PIPELINE=$(curl -fsS "$P/pipelines?ref=main&source=push&status=success&per_page=1" | jq -r '.[0].id')
JOB=$(curl -fsS "$P/pipelines/$PIPELINE/jobs" | jq -r '.[] | select(.name == "canopy-cli") | .id')
curl -fsSL -o canopy-cli.zip "$P/jobs/$JOB/artifacts" && unzip -o canopy-cli.zip
sha256sum -c canopy-x86_64-unknown-linux-musl.sha256 && chmod +x canopy-x86_64-unknown-linux-musl
./canopy-x86_64-unknown-linux-musl config check ../canopy-config-{slug} --federal ../canopy-config-federal

The lookup goes through the pipeline, not GitLab's latest-artifact address for a branch: the newest successful pipeline on main is at times a scan pipeline that has no such job. $JOB names one build, so a pipeline that records it repeats its run for the week the build is kept; add &sha=<commit> to the first request for the build of one merge commit (canopy CLI › Getting the binary says which commits have one). A release's package does not expire. The release job began publishing it after 0.3.0, so the first release to have one is the next:

V=0.4.0   # the canopy release to check against
P=https://gitlab.com/api/v4/projects/gadhs%2Fapplication%2Feligibility%2Fcanopy
B=$P/packages/generic/canopy-cli/$V
curl -fsSLO "$B/canopy-x86_64-unknown-linux-musl" -O "$B/canopy-x86_64-unknown-linux-musl.sha256"
sha256sum -c canopy-x86_64-unknown-linux-musl.sha256 && chmod +x canopy-x86_64-unknown-linux-musl

A merge request's change is never built for download; to check against one, run the CLI from a canopy checkout of that branch:

git -C ../canopy-config-federal pull --ff-only
cargo run -p canopy-cli -- config check ../canopy-config-{slug} --federal ../canopy-config-federal

It checks that every decision compiles and is named after its file, that a replaced federal decision is declared, that no federal constant is restated, that every key is cited, that the paired SNAP processing clocks agree, that every Medicaid or CHIP class the pack names is declared, and that the pack's fixtures replay. Every finding is printed with its file; edit and run it again until it exits 0.

Exit status Meaning

0

No finding. Read the notes all the same: a note says what was not covered, such as a pack with no fixtures.

1

At least one finding.

2

Nothing was checked: a directory is not the layer its argument asks for, or a pack file does not parse.

A clean check is not a boot proof. It reads both directories as plain files, verifies no signature, and does not run the services' parameter loaders, which can still refuse a pack that is missing a key (#3404). The first line of its output names the federal commit it checked against; an old federal clone gives an old answer. The proof is the pin, below.

Step 4 — Identity: the upstream, roles and the sign-in notice

canopy-identity, hosted in canopy-security, is canopy’s only token issuer. Workers sign in at canopy-web, which federates to the deployment’s one upstream OpenID Connect provider (ADR-049, ADR-050). The upstream is deployment configuration, not part of the ruleset pack.

  • Stand up the upstream: Kanidm by default (ADR-050), or any OpenID Connect provider. canopy terminates no SAML or LDAP itself: the jurisdiction’s SAML, LDAP or AD sources federate into the upstream (ADR-048). Register canopy-web there as a confidential client whose redirect is canopy-web’s public origin plus /auth/callback; its client secret is canopy-web’s CANOPY_WEB__UPSTREAM_CLIENT_SECRET.

  • What it must deliver: each worker’s roles, from canopy’s vocabulary (admin, analyst, auditor, caseworker, data_steward, eligibility_specialist, fti_auditor, quality_control, security_admin, studio_admin, supervisor; ROLE_VOCABULARY in crates/canopy-auth/src/roles.rs, RBAC Matrix), and their programs (ADR-044). canopy-identity grants no role outside the vocabulary and refuses a sign-in that carries no program (missing_primary_programs).

  • Register it with canopy-identity’s upstream profile, identity-upstream.yaml at the config root of canopy-security and canopy-web, which holds no secret (crates/canopy-auth/src/upstream/profile.rs; IdP Integration › canopy-identity’s upstream profile). A profile: kanidm file states only issuer, client_id and the optional tls_trust_anchors and endpoints, the preset reading roles from /roles, programs from /primary_programs and the username from /preferred_username. A profile: oidc-generic file states every field, its claim pointers (claims.roles, claims.programs, claims.username) included. canopy-manage identity check gates a deploy against the running issuer (IdP Integration › Gating a deploy).

  • The pack's idp.toml holds only [roles.*], the composition role catalog (ADR-022). Its eligibility_worker is a composition slug, not an upstream role.

  • The sign-in notice: the pack's jurisdiction.toml carries a required [sign_in] system_use_notice, a list of paragraphs: the NIST AC-8 system-use notice canopy-web’s /login shows before a worker continues to the upstream. canopy-composition refuses a notice that is absent, empty or holds a blank paragraph (crates/canopy-composition/src/sign_in.rs). The reference ruleset’s is the DoD Notice and Consent Banner; name the jurisdiction’s own authority in place of "U.S. Government", as the georgia pack’s jurisdiction.toml names the State of Georgia.

  • Provision workers, roles and programs in the upstream’s own tooling; canopy ships no provisioning command. A worker holding security_admin manages canopy-identity’s subjects, links, sessions, signing keys and clients at canopy-web’s /admin/security (Administrator Guide).

Step 5 — Configure the deployment

  • Configuration source: set CANOPY_CONFIG_SOURCE in the deployment’s environment (or CANOPY_<SVC>__CONFIG_SOURCE per service, or a YAML tier your deployment mounts) to the layers, lowest first: federal, notices-neutral while the pack ships no notices, then the pack. In production each is a git+https:// or git+ssh:// source naming a branch or tag, which canopy-config-fetch fetches and verifies against the trust root the deployment mounts (Deployment Guide › Fetching configuration). The shipped default.yaml files name none, so a service started without one refuses to boot (#2627). A path: source loads only with CANOPY_CONFIG_ALLOW_UNVERIFIED=true, and only when every source is path: (Configuration Reference › Configuration source).

  • Profile, databases and migrations: Deployment Guide. Services create their schemas at boot; the eighteen-database inventory and the deploy-time job form are there.

  • Every variable, including the issuer pair CANOPY_<SVC>IDENTITY_ISSUER (canopy-web’s public origin plus /identity) / IDENTITY_INTERNAL_URL (canopy-security’s /identity) and the fail-closed production set: Configuration Reference. Every service, canopy-web and canopy-portal included, names the same issuer.

  • Each service that calls another, canopy-web and canopy-portal included, holds its own canopy-identity client key, CANOPY_<SVC>IDENTITY_CLIENT_PRIVATE_KEY, whose public half canopy-security’s client registry (canopy-security/identity-clients.yaml under the config root) names; a service without its key refuses to boot. There is no CANOPY_AUTH* namespace.

  • Secrets: Secret Management.

Step 6 — Validate

On a working copy. Boot the devstack on the clones as unverified path: sources (Local Development › Switching packs):

export CANOPY_CONFIG_SOURCE=federal=path:../canopy-config-federal,notices-neutral=path:fixtures/config/notices-neutral,{slug}=path:../canopy-config-{slug}
export CANOPY_CONFIG_ALLOW_UNVERIFIED=true
cargo xtask dev start --profile snap-only        # or the chosen profile

A service that refuses the pack says so in its boot error, naming the key. Never run cargo nextest or docker compose directly against the devstack (Local Development).

Verify:

  • Only the profile's services start, and every /readyz answers 200 (health).

  • Applications route to the intended program services and determinations use the pack's values.

  • Determinations are signed and verifiable (ADR-002) and events carry no restricted data (ADR-004).

Under a pin. A pack is tested by this repository only once config-sources.lock pins it: the lock names the repository, its branch and a commit, and ci/config-trust/ holds the public key its commits are signed with. Adding a pack there is a merge request to this repository, and its car fetches the commit and runs the whole battery against it: the citation and scenario audits, the input lint, and the services' loaders (Contributor Workflow › A policy change). The tools that take --jurisdiction (cargo xtask seed, cargo xtask e2e, cargo xtask policy audit) read the layers this checkout knows, so they accept a jurisdiction only after it is pinned and fetched with cargo xtask config fetch.

Step 7 — Seed and UAT

cargo xtask seed --jurisdiction {slug} --seed 42 --households 50
cargo xtask seed-verify

These need the pack pinned (Step 6).

cargo xtask seed runs canopy-seed and loads the SQL into the devstack; --seed makes the dataset reproducible and --households defaults to 50 (xtask/src/cmd/seed.rs). Cover households below, at and above each threshold, every composition, and the program-specific scenarios (ABAWD, categorical eligibility, simplified reporting). Create upstream accounts for UAT participants with the roles and programs from Step 4; the facilitator guide is User Testing Guide.

Step 8 — Go-live checklist

  • canopy config check exits 0 on the commit to be deployed, and the car of the merge request that pins it passed; the pack reviewed against the policy manual.

  • Integration and e2e lanes pass with the jurisdiction configuration; UAT scenarios signed off.

  • Data-sharing agreements in place; workers, roles and programs provisioned in the production upstream; production secrets, the client keys included, encrypted and delivered.

  • Backups and PITR configured (Database Backup & Restore); OTLP metrics and log shipping wired (Deployment Guide › Observability).

  • Incident response owners named (Security Operations).

  • Federal reporting validated for the deployed programs (Report Runs — Operations Runbook).

  • IRS Pub 1075 safeguard documentation prepared if TANF or Medicaid handle FTI.

Ongoing maintenance

  • Federal parameters update annually (FPL in January; the SNAP COLA effective October 1). The annual cycle, the drift and staleness audits, and the indexing.toml families are Policy currency runbook; the October cutover check is in Rolling deploy & rollback.

  • Policy changes: in the pack's repository, edit jurisdiction.toml or the decision, update citations.toml, run canopy config check (Step 3), and merge a signed commit. Then move the pin here with cargo xtask config bump {slug} main and merge that; its car tests the change. Redeploy or restart the services: a pack is not hot-reloaded (Contributor Workflow › A policy change).

  • FTI audit preparation (TANF, Medicaid): the FTI audit logs live in canopy_tanf and canopy_medicaid (fti_audit_log); verify every access carries worker, timestamp, purpose and data elements, export the review period, and check the compliance::irs-pub-1075-audit issues for open findings.

Edit this page · default