Rulesets: JDM Format, Jurisdiction Config, and Authoring

Table of Contents

For a policy analyst or contributor authoring JDM rulesets and jurisdiction.toml: all eligibility logic lives in versioned JDM rulesets and jurisdiction.toml, never in Rust (ADR-003). This page is the authoring reference; the traceability rules are in ADR-011 and the onboarding recipe in Jurisdiction Onboarding.

Directory structure

A deployment’s policy is a stack of configuration layers, each a directory with a canopy-config.toml manifest at its root (ADR-051; Layers and the manifest). There are two kinds. The federal and Georgia layers live in their own signed repositories (canopy-config-federal, canopy-config-georgia); config-sources.lock pins the commit of each this source tree is tested against, and cargo xtask config fetch publishes them under target/config/<layer>/current (local development). The synthetic fixture layers under fixtures/config/ are part of this repository. A change to a federal or Georgia value is made in its repository, then the pin moves here. The tree below shows the two real layers as their repositories hold them; every jurisdiction layer carries the same file set (abridged; run find target/config/*/current fixtures/config -maxdepth 2 for the full tree).

(their own repositories; fetched to target/config/<layer>/current)
├── federal/                          # Base layer: federal parameters; effective-dated families declared in indexing.toml (ADR-031 §1)
│   ├── canopy-config.toml            # layer = "base"
│   ├── README.adoc · citations.toml · indexing.toml
│   ├── fpl-2026.json · smi-{2026,2027}.json · cms-416-2026.json
│   ├── snap-allotments-{2026,2027}.json · snap-deductions-{2026,2027}.json · snap-income-limits-{2026,2027}.json
│   ├── snap-budgeting-factors.json · snap-alien-eligibility.json · tmsis-eligibility-groups.json
│   ├── wic-food-packages-2026.json · wic-certification-periods.json
│   ├── hearing-request-windows.json  # The federal floor or ceiling on each program's hearing-request window (#2389, #3394)
│   ├── snap-procedure.json · tanf-time-limit.json  # Federal constants a State cannot vary (#3302)
│   ├── wic-lifecycle.json            # The federal floors under the WIC notices of expiration (#2390) and termination (#2391)
│   ├── snap-{eligibility,benefit-calculation,self-employment-deduction}.json · wic-eligibility.json  # The decisions every jurisdiction shares (#3371)
│   ├── caps-family-assets.json       # The CCDF family asset limit, 45 CFR 98.20(a)(2)(ii) (#3547)
│   └── cross-program-2026.json · ele-{grant,lapse,renewal}-2026.json
└── georgia/                          # The reference jurisdiction layer
    ├── canopy-config.toml            # layer = "jurisdiction", jurisdiction = "georgia"
    ├── jurisdiction.toml             # Thresholds and policy options (every value cited in citations.toml)
    ├── citations.toml                # ADR-011 traceability rows
    ├── idp.toml · theme.toml         # trusted-issuer claim contract + sign-in chooser; worker/applicant theme
    ├── snap-certification-period.json  # The pack's own SNAP policy; the other SNAP decisions are federal
    ├── tanf-{eligibility,benefit-calculation,work-requirements}.json
    ├── medicaid-{magi,non-magi,cmd-cascade-priority,denial-reasons,eligibility-hierarchy,tma-phase}.json
    ├── chip-eligibility.json · caps-eligibility.json
    ├── composition/                  # Worker-portal jurisdiction-baseline layouts (ADR-022)
    ├── workflows/                    # Caseworker step-guidance templates (canopy-policy schema)
    ├── scenarios/                    # Per-program conformance packs (ADR-032)
    └── notices/                      # Typst templates: manifest.toml, snap/, shared/, components/, audit/, fonts/
fixtures/config/
├── default/                          # The reference pack a deployment copies (see below): georgia's file set minus scenarios/ and notices/
├── notices-neutral/                  # Base layer: the neutral notice templates (notices/), for a pack that ships none
├── test-federal/                     # Base layer: the federal layer's files with made-up figures, for the fixture packs
├── test-min/                         # SNAP-only fixture jurisdiction (FIPS 69); no notices/
└── test-max/                         # All-program fixture jurisdiction (FIPS 60); no notices/

test-min and test-max are fixture jurisdictions for the scheduled fixture-smoke lane and the scenario tooling; they are the other trees where a citations.toml row may carry fixture authority (see the default section below). A stack boots on a fixture pack through its layer stack, federal, then notices-neutral (the pack ships no notices/), then the pack, passed as CANOPY_CONFIG_SOURCE (docker-compose.yml shows the value).

Layers and the manifest

CANOPY_CONFIG_SOURCE lists the layers a deployment runs on, lowest precedence first: a federal base, optionally other base layers, one jurisdiction layer, optionally a deployment layer (Configuration Reference › Configuration source). The devstack’s is the federal and georgia repositories at the commits config-sources.lock pins. Each layer’s root holds its manifest:

schema = 1                  # the config schema major; a loader refuses one it does not know
layer = "jurisdiction"      # base | jurisdiction | deployment
jurisdiction = "georgia"    # jurisdiction layers only, and required there
overrides = []              # decisions of a lower layer this layer replaces; see below

The deployment’s jurisdiction is the slug its jurisdiction layer names; a source list with no jurisdiction layer, or two naming different slugs, refuses boot. The slug is lowercase letters, digits, - and _ (crates/canopy-config/src/manifest.rs).

Resolution is by file, never inside one (ConfigSnapshot, crates/canopy-config/src/snapshot.rs): a path resolves to the highest-precedence layer that holds it, and listing a directory is the union of the layers' entries, each resolved the same way. So a jurisdiction layer’s snap-alien-eligibility.json replaces the federal one whole, a pack without a notices/manifest.toml takes the one from a base layer below it, and jurisdiction.toml is read whole from the one layer that holds it. canopy-rules builds its corpus from every layer’s top-level *.json, lowest layer first (services/canopy-rules/src/engine.rs).

Where a decision lives (#3371). A decision is federal when its only variation between States is options federal law enumerates (canopy's registry of them is compliance/federal-options/), and those options reach it as pack data. Such a decision lives once, in the federal layer, and no pack carries a copy: snap-eligibility, snap-benefit-calculation, snap-self-employment-deduction and wic-eligibility. caps-family-assets (#3547) is federal for a plainer reason: 45 CFR 98.20(a)(2)(ii) leaves a State nothing to vary in the limit, and canopy-caps evaluates it beside each pack's own caps-eligibility. A State's broad-based categorical eligibility, for instance, is the [snap] bbce_* keys of its pack, which canopy-snap sends as thresholds; they are null when the pack elects none, and the decision's BBCE arm is then never taken. A decision that embodies a State's own design stays in its pack: snap-certification-period, and for now every Medicaid, CHIP, TANF and CAPS decision (#3373). That decisions are identical across packs does not make them federal; the packs were copied from one another.

A decision is replaced only by declaration (#3372). A layer that ships a decision with the name of a lower layer’s must list that name under overrides in its manifest; then its file is the one canopy-rules evaluates. An undeclared collision refuses canopy-rules' start, naming both files, as do two files of one layer carrying one name. Without the declaration, a pack’s leftover copy of a federal decision would shadow the federal one, and every later federal correction, with nobody having chosen that.

An override is the pack’s own decision from then on: nothing keeps it in step with the federal decision it replaces. cargo xtask rules check prints each declared override on every run (override: <layer> replaces a lower layer’s <names>), so a reviewer bumping the federal pin sees what the pack no longer inherits. No layer in this repository declares one. Parameter files (fpl-2026.json and the like) and every other file still resolve by path without a declaration.

The fixture packs stack on fixtures/config/test-federal/, not on the federal layer (#3365). It has the federal layer's files and shapes. Its annual dollar tables (the poverty guidelines, the median incomes, the SNAP allotments, deductions and income limits) hold made-up round figures on the real editions' effective dates; its regulation constants, code tables and federal decisions are copies. Nothing in it is a citable federal figure, and it carries no citations.toml. It exists so that a fixture pack is complete without real configuration: canopy's unit tests run on the fixture packs, and a change to a real federal table cannot break them. It is never a deployment's base layer; a real jurisdiction stacks on the federal layer.

The neutral notice templates are their own base layer, fixtures/config/notices-neutral/, listed below a pack that ships no notices/ (default, test-min, test-max). canopy-notices renders from templates a base layer supplies only in development, or with the accountable override CANOPY_NOTICES__ALLOW_DEFAULT_TEMPLATE_FALLBACK=true, warning at every boot (services/canopy-notices/src/notice_tree.rs; accountable overrides): a partially deployed jurisdiction must not mail legal notices from another tree.

JDM format

JDM (JSON Decision Model) is the format the zen-engine rules library evaluates. Each ruleset is a JSON file with nodes and edges.

Node types

  • inputNode — entry point, receives input JSON.

  • outputNode — exit point, emits output JSON.

  • decisionTableNode — rows of input conditions → output values (most common).

  • expressionNode — key/value expressions for computed fields.

  • switchNode — conditional branching.

Hit policies

  • "first" — returns the first matching rule (most common; order matters).

  • "collect" — returns all matching rules (aggregation).

Decision table structure

{
  "id": "dt-example",
  "type": "decisionTableNode",
  "content": {
    "hitPolicy": "first",
    "inputs":  [{"id": "in-1",  "name": "Household Size", "field": "household_size"}],
    "outputs": [{"id": "out-1", "name": "Limit", "field": "gross_income_limit", "type": "number"}],
    "rules": [
      {"in-1": "<= 3", "out-1": "1696"},
      {"in-1": "4",    "out-1": "3481"},
      {"in-1": "",     "out-1": "0"}
    ]
  }
}

An empty string in an input cell is the default/catch-all (always matches).

NOTE

One zen-engine behaviour catches authors out: a decision table or an expression node passes on only what it produces unless its content sets passThrough: true. It is in Troubleshooting › JDM Rulesets — read it before authoring.

jurisdiction.toml

All jurisdiction-specific thresholds live here; each service resolves jurisdiction.toml through its configuration layers at startup, from the one layer that holds it (Layers and the manifest). The deployment names the layers — CANOPY_CONFIG_SOURCE for the whole stack, CANOPY_{SERVICE}__CONFIG_SOURCE for one service; the shipped default.yaml names none, and only the devstack’s development overlay (config/{service}/dev.yaml) does (#2627; Configuration Reference). Abbreviated shape, values as in the georgia pack’s jurisdiction.toml:

Served counties (#3376). A residential address names a county of its own State, chosen from a list and never derived from the ZIP. The list is canopy-reference’s county table for the State [jurisdiction].fips_state_code names, narrowed to [jurisdiction].fips_county_codes (three-digit codes) when that list is not empty; an empty list serves the whole State. [jurisdiction].admin_unit_label is the word the forms use for a county ("County", "Parish", "Borough"). canopy_reference::residence_county::JurisdictionCounties is the one loader, and canopy-applications, canopy-web and the applicant portal each read it at boot: a fips_county_codes entry that names no county of the State, or names one twice, refuses startup, and canopy-web and the portal also refuse a pack with no admin_unit_label. An address in another State is held to that State’s whole table and to no narrowing.

SNAP FNS table set (#3296). canopy-snap reads the FNS figures for the pack’s [jurisdiction].fips_state_code, with no pack key:

  • Hawaii (15), Guam (66) and the Virgin Islands (78) get their own maximum allotments (and 18+ figure), standard deductions, excess shelter cap and minimum benefit, from the federal files' by-region entries.

  • Hawaii also gets its own income limits. Guam and the Virgin Islands use the standard income rows, as FNS publishes them.

  • Every other code uses the 48 States and DC tables.

  • Alaska (02) is refused at boot: its allotment and minimum benefit depend on the household’s urban / rural I / rural II area, which the determination does not carry yet (#3314).

[snap] BBCE keys (#3303) — the pack’s broad-based categorical eligibility election (7 CFR 273.2(j)(2)(ii)). bbce_enabled is required. When it is true, these keys are all required: bbce_gross_income_limit_pct_fpl and bbce_elderly_disabled_gross_pct_fpl (each 100–200), bbce_asset_test_eliminated, bbce_net_income_test_waived and bbce_elderly_disabled_screen (any_member or all_adults; any other value refuses the boot). bbce_resource_limit_cents is required when the resource test is kept. canopy-snap supplies these to the pack’s snap-eligibility decision as four thresholds, each null when the pack elects no BBCE:

  • context.thresholds.bbce_gross_income_limit and bbce_elderly_disabled_gross_income_limit: the FNS income-eligibility row at 130 % or 165 %. Any other percentage is ceil(100 % row × pct / 100) until the poverty-guideline edition is read directly (#3300).

  • bbce_asset_limit: null when the test is waived.

  • bbce_net_income_test_waived.

  • bbce_elderly_disabled_screen (#3362): which households the elderly/disabled screen covers. any_member is a household with at least one elderly or disabled member; all_adults is one whose adult members are all elderly or disabled, which the decision reads as input.all_adult_members_elderly_or_disabled. canopy-snap sends that input as true only when it is established: a member with no age, or a request with no roster, leaves the household on the regular ceiling. The gross-test exemption, the medical deduction and the shelter cap read input.has_elderly_disabled_member under either value (7 CFR 273.9).

The decision chooses which households are BBCE (#1160). Georgia’s and the neutral pack’s route a household through the BBCE arm when its gross income is at or under the ceiling (the elderly/disabled screen for a household bbce_elderly_disabled_screen covers) and its assets are under the resource ceiling, where there is one. The BBCE arm bypasses the asset test, applies the gross test at the BBCE ceiling, and bypasses the net test where the pack waives it (7 CFR 273.9(a)); georgia waives it (PAMMS 3210), the neutral pack does not. A household that skips the net limit, on the BBCE arm or as a standard categorically eligible household, still has its benefit computed from net income: one or two members get the minimum benefit, and three or more whose net income leaves no benefit are denied on the net income ground (7 CFR 273.10(e)(2)(ii)©, (iii)(A)). An elderly or disabled household over its screen is not BBCE and takes the regular resource test.

[jurisdiction]
name = "State of Georgia"
fips_state_code = "13"
timezone = "America/New_York"
enabled_programs = ["snap", "tanf", "medicaid", "chip", "caps", "wic"]

# #1158: OBSERVED working-day holidays per covered year — consumed by the
# shared canopy-common workday calendar (Chart B2 "5 working days",
# Chart 3730.1 month-end closure + reopen SOP). Weekend-date entries are
# refused at boot (the list is observed dates by definition); beyond
# coverage_years the arithmetic degrades to the weekend-only floor
# (household-favorable at every consuming site).
[jurisdiction.holidays]
coverage_years = [2026, 2027]        # every covered year must list holidays
dates = ["2026-01-01", "2026-01-19"] # … the full observed list, cited

[snap]
bbce_enabled = true                        # Georgia uses BBCE via TCOS (PAMMS 3210)
bbce_gross_income_limit_pct_fpl = 130      # TCOS does NOT raise the gross limit
bbce_elderly_disabled_gross_pct_fpl = 200  # all-elderly/disabled AUs screened at 200% FPL
bbce_asset_test_eliminated = true
bbce_net_income_test_waived = true         # PAMMS 3210: TCOS AUs are not subject to the net income limit
bbce_elderly_disabled_screen = "all_adults" # PAMMS 3210: the 200% screen is for AUs whose adults are all elderly or disabled
# bbce_resource_limit_cents = 500000       # required when bbce_asset_test_eliminated = false (#3303)

[snap.abawd]
qualifying_hours_per_month = 80        # Required — no silent defaults
time_limit_months = 3
window_months = 36
age_min = 18                           # PAMMS 3355 (eff. July 2025)
age_max = 65                           # inclusive: through age 65, until the month of the 66th birthday (#2126)
dependent_child_age = 14               # PAMMS 3355: a household member under 14 is a dependent child
aged_abawd_age_min = 60                # PAMMS 3355: an Aged ABAWD (60-65) owes no time-limit months (&94); age_max + 1 names none
regain_hours = 80                      # PAMMS 3355: 80 hours in any 30 consecutive days regains eligibility (#3220)
regain_days = 30
second_period_months = 3               # PAMMS 3355: a second three-month period after a regaining
discretionary_exemptions_per_year = { 2026 = 38844 }  # FNS FY 2026 allocation, by federal fiscal year

[snap.expedited]
postponed_cert_months_through_cutoff = 1  # filed on/before the cutoff → one month
postponed_cert_months_after_cutoff = 2    # filed after it → two months

[snap.certification]
interim_contact_months = 6
recert_timely_filing_day = 15             # 7 CFR 273.14(c)
max_certification_months = 36             # the ceiling every row's months must fit (#2209)

[[snap.certification.categories]]         # one row per category — see below (#2209)
code = "standard"
label = "Standard"
months = 6
periodic_reporting_waived = false
elderly_disabled_no_earned_income = false  # true on 7 CFR 273.12(a)(5)(iii)(A)'s row (#3336)
reporting = "simplified"                  # 7 CFR 273.12(a)(5); "change" is 273.12(a)(1) (#3298)
interim_contact = true
worker_declarable = true
convertible = false

[[snap.certification.categories]]
code = "senior"
label = "Senior SNAP"
months = 36
periodic_reporting_waived = true
elderly_disabled_no_earned_income = false
reporting = "simplified"
interim_contact = false
worker_declarable = true
convertible = true
converts_to = "standard"

[snap.certification.esap]                 # present ⇔ the snap.esap option is elected
senior_age_floor = 65
fixed_income_types = ["social_security", "ssi", "veterans", "retirement"]
conversion_reasons = ["abawd_member", "earned_income", "member_under_age_floor"]

# The IPV periods (7 CFR 273.16(b)(1)) are federal: no [snap.ipv] table.

[notices]
hearing_phone = "1-877-423-4746"
appeal_deadline_days = 90
advance_notice_days = 14

# One program's complete notice identity, in place of [notices] (#2389)
[notices.program.wic]
agency_name = "Georgia Department of Public Health"
agency_address = "200 Piedmont Avenue SE, Atlanta, GA 30334"
agency_phone = "1-800-228-9173"
hearing_phone = "(404) 657-2900"
hearing_address = "Georgia Department of Public Health, c/o Office of General Counsel, Request for Participant Fair Hearing, 200 Piedmont Avenue SE, Atlanta, GA 30334"
appeal_deadline_days = 60     # the 7 CFR 246.9(e) floor, federal/hearing-request-windows.json

[appeals]
appeal_window_days = 90
# per program (#3288): SNAP 7 CFR 273.15(c)(1); Medicaid 42 CFR 431.244(f)(1); WIC 7 CFR 246.9
decision_clock_days = { snap = 60, tanf = 60, medicaid = 90, chip = 90, caps = 60, wic = 45 }
adh_notice_advance_days = 30

# Cross-program application processing, consumed by canopy-applications.
[shared.application_processing]
snap_standard_days = 30                    # 7 CFR 273.2(g)(1); PAMMS 3205
snap_expedited_days = 7                    # 7 CFR 273.2(i)(3); PAMMS 3215
# #1853: how a receipt on a NON-business day (weekend or observed holiday)
# becomes a legal FILING day — the value that moves the benefit anchor for a
# weekend e-filing (#1826). 7 CFR 273.2(c)(1) keys the filing date to receipt
# by the agency and does not provide for a weekend/holiday shift, so the shift
# is a jurisdiction election, never code. "next_business_day" files the next business day (georgia, PAMMS
# 3105:484-485); "calendar_day" files the calendar day of receipt (the
# `default` ruleset's federal reading). Missing or unknown → the service
# refuses to boot.
filing_receipt_rule = "next_business_day"
# #1670: optional. The hour the filing office closes, as a 24-hour "HH:MM"
# wall-clock time in [jurisdiction].timezone. A receipt on a business day at
# or after it files on the next business day (basis after_hours_shift); a
# weekend or holiday receipt follows filing_receipt_rule whatever its hour.
# Absent → no filing hours: a business-day receipt files that day at any
# hour. Anything but "HH:MM" ("5pm", "17:00:00", "25:00", a number), or the
# key beside filing_receipt_rule = "calendar_day" → the service refuses to
# boot. The value below is an example, not a pack's.
# filing_close_of_business = "17:00"
# #3169: optional per-program refinements of a tanf, medicaid or chip
# standard deadline (canopy-applications `domain::program_deadline`).
# <program>_count_from: "filing_day" (the legal filing day above; the default)
# or "receipt_day" (the day the agency received it, never shifted).
# <program>_non_workday_deadline: what becomes of a deadline that lands on a
# weekend or [jurisdiction.holidays] date — "as_is" (the default),
# "prior_workday" or "next_workday". An unknown token, a non-string value, or
# either key for any other program (snap, wic, caps) → the service refuses to
# boot. A pack that omits them runs every clock unrefined.
tanf_count_from = "receipt_day"            # PAMMS TANF 1105:79, 1105:283
tanf_non_workday_deadline = "prior_workday"  # PAMMS TANF 1105:289

[tanf]
# ... full TANF/Medicaid/CAPS/WIC sections live in the file itself

[jurisdiction].enabled_programs lists the programs the deployment runs, by slug (chip counts as Medicaid/CHIP). It is required, and an empty list means no program is deployed. canopy-web refuses to boot on a missing or malformed list or on a slug that names no canopy program (#3287); it shows every unlisted program as "Not configured" and lets a worker file only for listed ones. Before #3287 a missing, unreadable or empty list was read as every program deployed.

[appeals.decision_clock_days] is the hearing-decision deadline per program, in days from the request (#3288): federal law sets SNAP at 60 (7 CFR 273.15(c)(1)), Medicaid at 90 (42 CFR 431.244(f)(1)) and WIC at 45 (7 CFR 246.9), and TANF and child care by state plan. canopy-appeals refuses to boot when a program in [jurisdiction].enabled_programs has no clock, when a key is not a program, or when a clock is outside 1..=366, and it refuses to file an appeal for a program the table does not name (program_not_deployed). Each program’s clock is cited as appeals.decision_clock_days.<program>. A clock counts calendar days unless [appeals.decision_clock_unit] says otherwise (#3466): the optional table maps a program to calendar_days or business_days, and a business-day clock counts the pack's own workdays, weekdays outside [jurisdiction.holidays]. The request day is day 0 under either. An unknown unit, a key that is not a program, or a unit for a program with no clock refuses boot. A pack that sets a unit cites it as appeals.decision_clock_unit.<program>.

[shared.application_processing].filing_close_of_business is the hour a jurisdiction's filing office closes (#1670). It is optional, and is read with filing_receipt_rule as one filing policy by canopy-applications and by the seed tool. The workdays it applies to are the pack's own: a day is a business day when it is a weekday outside [jurisdiction.holidays], so no key names the days of the week. There is no opening hour. A pack that sets the key cites it as shared.application_processing.filing_close_of_business, like every other value.

A program's standard deadline is the day it counts from plus its day count (standard_deadline, services/canopy-applications/src/domain.rs): the counted-from day is day 0, so a 45-day window from a 2026-03-03 receipt is due 2026-04-17. No key sets the count's origin. A manual that says the count "begins on" the receipt day can also be read as making that day 1; a pack that follows the day-0 reading says so in the notes of its day-count citations (#3177).

Every value here must trace to an authoritative source via citations.toml (ADR-011); cargo xtask policy audit enforces completeness as a validate stage. The federal source family is audited too (ADR-031 §1): every *.json data file of the federal layer must carry a file-level citation in the federal layer’s citations.toml, and key-level citations are consistency-checked against the JSON values (--source all|jurisdiction|federal selects a family). See Configuration Reference for the full layered-config model.

Certification categories, the period ceiling and the ESAP election (#2209)

The SNAP certification VOCABULARY is pack data (ADR-003): a pack declares the categories its snap-certification-period decision may assign and a worker may declare, and every consumer — canopy-snap at signing, canopy-renewals, canopy-enrollment and the worker portal at their writes — validates a token against ITS booted pack. No Rust enum, SQL CHECK or template enumerates the tokens; expedited (7 CFR 273.2(i)) is the one certification type Rust mints itself and is never a row. Three keys under [snap.certification]:

[[snap.certification.categories]] — a non-empty array of tables, one row per category. services/canopy-snap/src/params.rs (CertificationKeys::load) refuses the pack at boot, naming the key, on any breach:

Field Required Constraint and meaning

code

yes

the token: ^[a-z][a-z0-9_]{0,63}$, unique within the pack, never expedited. What the decision outputs as certification_category, what snap_certifications.certification_type and enrollment_continuations.certification_category store, what the manual POST /v1/renewals/snap/certifications accepts

label

yes

non-empty; the worker portal renders the select option as {label} ({months} months)

months

yes

1..=max_certification_months; the decision references it as context.thresholds.certification_months.<code> and its assigned certification_months must EQUAL it; a manually declared certification is bounded by max_certification_months, not by the row (422 certification_period_exceeds_ceiling)

periodic_reporting_waived

yes

true — the row never files a periodic report (canopy-renewals periodic_report_required is false); legal only in a pack with the [snap.certification.esap] table

elderly_disabled_no_earned_income

yes

true — the row’s households are 7 CFR 273.12(a)(5)(iii)(A)'s population, all members elderly or disabled with no earned income (#3336). A period of 12 months or less files no periodic report, and a longer one files (B)'s annual report; a row of 12 months or less marked so does not by itself require [snap.periodic_reporting]. Not a waiver: a periodic_reporting_waived row would also waive (B)'s longer periods

reporting

yes

simplified (7 CFR 273.12(a)(5)) or change (273.12(a)(1)): how the row’s households report between certifications (#3298). A change row never files a periodic report. [snap.periodic_reporting] is required when a row could owe one: absent, canopy-renewals refuses to boot if any simplified row that does not waive the report is longer than the federal six months (273.12(a)(5)(iii)(B)); present, it refuses the table if no row could owe a report under its own extended_certification_threshold_months and none converts. A converting row does not by itself require the table (#3356): a pack that converts and runs no periodic report re-types the certification and restores no report. A pack with no table runs no periodic report: no cohort, and the periodic-report routes answer 409 periodic_report_not_applicable (canopy-renewals). georgia, default and test-max mark every row simplified; test-min marks every row change and carries no table

interim_contact

yes

true — canopy-renewals schedules the [snap.certification].interim_contact_months mid-period contact for the row

worker_declarable

yes

true — the manual POST accepts the code and the worker portal offers it; a row a worker may not declare is still assignable by the decision

convertible

yes

true — the mid-period conversion (POST …/{id}/convert) is open to the row; legal only in a pack with the ESAP table

converts_to

iff convertible = true

the code of a declared simplified row the conversion writes as the new type; it must itself be neither convertible nor periodic_reporting_waived (a conversion leaves the waiver). Forbidden on a non-convertible row

[snap.certification].max_certification_months — the ceiling, ≥ 1; every row’s months must fit it. georgia 36 (PAMMS 3725, the ESAP demonstration), default 24 (7 CFR 273.10(f)(1) — the federal ceiling outside a demonstration), test-min 12, test-max 36.

[snap.certification.esap] — ONE optional table that IS the snap.esap federal option (compliance/federal-options/snap.toml): present ⇔ elected. Both keys are required when it exists — senior_age_floor (the age every member must reach for the decision’s all_members_at_or_above_senior_floor fact) and fixed_income_types (a non-empty, duplicate-free list of IncomeType tokens other than other, the set the fixed_income_only fact accepts). One key is optional: admit_disabled_members (#3304), a boolean. With true a SNAP-disabled member meets the senior-floor fact whatever their age, for a state whose extended period admits households that are elderly or disabled (Texas’s TSAP); absent or false keeps the fact age-only. canopy-snap refuses a value that is not a boolean, and the frozen policy bundle records the election only when it is true, so a pack that does not elect it keeps its parameter digest. conversion_reasons is the closed list of reported changes a mid-period conversion may cite (canopy-renewals; 422 conversion_reason_unknown otherwise): required, non-empty and duplicate-free exactly when a row is convertible, and refused when none is. It moved here from [snap.periodic_reporting].senior_conversion_reasons (#3356) so a pack that runs no periodic report can convert. Cross-field rules, each a boot refusal: the table missing either key; a row with periodic_reporting_waived = true or convertible = true in a pack without the table; the table in a pack with no waived row. Without the table both ESAP facts are unknown (ADR-034 §3 — never a value), so no extended, reporting-waived period can be assigned. georgia and test-max elect it (65; social_security, ssi, veterans, retirement); default and test-min do not.

Every pack’s citations.toml cites snap.certification.categories and snap.certification.max_certification_months; a pack with the ESAP table cites snap.certification.esap.senior_age_floor and snap.certification.esap.fixed_income_types too, and snap.certification.esap.admit_disabled_members and snap.certification.esap.conversion_reasons when it carries those keys. Five keys left every pack with #2209 and no service reads them any more: [snap].elderly_disabled_certification_period_months, [snap].certification_period_abawd_months, [snap].certification_period_senior_months, [snap].senior_snap_age_floor and [snap.determination].standard_certification_months — a row’s months and the ESAP table replace them.

The rows per pack (label, months, waived, interim contact, declarable, convertible → target): georgia standard (Standard, 6, no, yes, yes, no) · elderly_disabled (Elderly/disabled, no earned income, 12, no, no, yes, no) · senior (Senior SNAP, 36, yes, no, yes, yes → standard) · abawd (ABAWD, 4, no, no, yes, no); default standard (6) and elderly_disabled (Elderly or disabled, 24), neither waived nor convertible; test-min standard (6), elderly_disabled (12), abawd (4). test-max keeps its own month figures — standard 12, elderly_disabled 24, abawd 6 — and names its waived, convertible row elderly_simplified (Elderly Simplified, 36 → standard; decision basis fixture_elderly_simplified): the corpus’s proof that a pack extends the vocabulary without a code change, and that the waiver, the interim contact and the conversion key on a row’s flags, never on a token’s name. The neutrality gate (cargo xtask neutrality-lint, below) holds the vocabulary to the pack: a category token enumerated in shared Rust, a SQL CHECK or a template is a finding.

WIC certification periods from anchor dates (#2358)

A WIC certification ends on a date canopy-wic computes from the participant’s category and anchor dates. 7 CFR 246.7(g)(1) sets each category’s maximum period, and 7 CFR 246.2 defines each category. A State may certify for less, so the federal bounds and each State’s shorter periods are both data. The federal layer’s wic-certification-periods.json holds the loosest lawful bounds. Each pack’s [wic.certification] tables elect the federal options, shorten the period and narrow the category windows, each with a cited authority. Nothing a pack declares widens a federal bound. services/canopy-wic/src/certification_period.rs evaluates the closed vocabulary below in Rust. It holds no policy number and cites 7 CFR only in doc comments (the jurisdiction-neutrality rule). The engine lives in canopy-policy (wic_certification_periods), and canopy-seed computes every seeded certification end through it, from the seeded date of birth and, for a pregnant participant, a synthesized expected delivery date.

The vocabulary.

  • Anchor: certification_date, date_of_birth, expected_delivery_date or pregnancy_end_date (a birth or a loss). certification_date is the request’s as_of, the day the certification begins. The other three arrive on the wire, and each federal category’s anchors list names the ones it requires (canopy-wic API › Anchor dates). certification_date is never a required anchor.

  • Term: { anchor, months = M | days = D, align }, a date offset from the anchor date a, with exactly one of months (at most 120) or days (at most 3660). align is one of:

    align with months = M with days = D

    exact

    a + M months, on chrono’s month clamp (2025-08-31 + 6 months is 2026-02-28)

    a + D days

    day_before

    exact − 1 day

    refused at boot

    month_end

    the last day of the month M months after a’s month

    the last day of the month containing a + D

  • Rule: { authority, under_age_months?, ends = [term, …] }. A rule ends at its earliest term. A list of rules is first-match. Every rule but the last carries an under_age_months, strictly ascending down the list, and a rule matches a participant whose age_months(date_of_birth, certification_date) is below it. The last rule carries none and matches the rest. under_age_months is legal only in a category whose anchors include date_of_birth.

  • Window: { authority, from?, through? }, the category’s span as inclusive terms over the category’s anchors, never over certification_date. A certification date outside the window is outside the category.

  • authority: a non-empty citation string. A denial names the controlling one (canopy-wic API › Date-window denial).

The federal file holds the loosest lawful bounds. categories is keyed by the category tokens, and boot refuses a key set other than the food-package vocabulary (canopy_policy::wic_food_packages::CATEGORY_VOCABULARY). Each category carries its required anchors, its authority, an optional window, its maximum rule list and, where the regulation gives the State agency a choice, an option: the registered election key and the option’s own maximum. Every federal window cites the top-level window_authority (7 CFR 246.2; 7 CFR 246.7(g)(1)(v)), and a federal arm cites its category’s authority. The file has no nodes, so canopy-rules skips it. It sits in [families.static] in the federal layer’s indexing.toml. Its file-level citation in the federal layer’s citations.toml has authority federal_register, source_ref "7 CFR 246.2; 7 CFR 246.7(g)(1), (g)(1)(v) as revised at 76 FR 59885" and effective_date 2011-10-28. A test checks each option key, and the election values, against compliance/federal-options/wic.toml. The bounds:

Category (anchors) Window (7 CFR 246.2) maximum: not elected option: elected Authority

pregnant (expected_delivery_date)

none

the last day of the month containing the expected delivery date + 42 days

no option

7 CFR 246.7(g)(1)(i)

postpartum (pregnancy_end_date)

the pregnancy end through the day six months after it

the last day of the sixth month after the pregnancy-end month

no option

7 CFR 246.7(g)(1)(ii)

breastfeeding (pregnancy_end_date)

the pregnancy end through the day twelve months after it

the earlier of the last day of the sixth month after the certification month and the day twelve months after the pregnancy end

wic.breastfeeding-cert-one-year: the last day of the month twelve months after the pregnancy-end month

7 CFR 246.7(g)(1)(iii)

infant (date_of_birth)

birth through the day before the first birthday

the last day of the sixth month after the certification month

wic.infant-cert-to-first-birthday: under six months of age, the last day of the first-birthday month; otherwise as not elected

7 CFR 246.7(g)(1)(iv)

child (date_of_birth)

the first birthday through the last day of the fifth-birthday month

the earlier of the last day of the sixth month after the certification month and the last day of the fifth-birthday month

wic.child-annual-certification: the earlier of the day before the certification date’s first anniversary and the last day of the fifth-birthday month

7 CFR 246.7(g)(1)(v)

Each bound takes the loosest lawful reading. "Approximately every six months" ends on the last day of the sixth month after the certification month. "Up to" six months or one year after the pregnancy ends includes that day. A child’s window runs to the end of the fifth-birthday month, as (g)(1)(v) says. The pregnant maximum is a projection from the expected delivery date, and nothing revises the pregnant record in place. A delivery is a new postpartum or breastfeeding determination (POST /v1/determine), which supersedes the pregnant record; a postpartum end runs from the actual pregnancy end date (#2394).

Packs elect, shorten and narrow. A pack declares, per category:

  • [wic.certification.<category>].election: "elected" or "not-elected", required exactly where the federal category has an option;

  • [[wic.certification.<category>.rules]]: a first-match rule list, which shortens;

  • [[wic.certification.<category>.windows]]: windows, which narrow.

canopy-wic evaluates a category as follows:

  • federal_end is the end of the arm in force: option.maximum when the pack elects the option, else maximum.

  • rule_end is the end of the pack’s first matching rule. A category with no pack rules has none.

  • end = min(federal_end, rule_end). The minimum is structural rather than a load-time proof: a rule on one anchor cannot be proven shorter than a bound on another, and such cross-anchor rules are lawful. A pack rule that would run past the federal maximum is held to it.

  • The effective window is the latest from and the earliest through of the federal window and every pack window.

  • The certification is valid when the certification date lies inside the effective window and end is on or after the certification date; otherwise the participant is denied. The controlling bound is, for an out-of-window claim, the window edge that excludes it; otherwise it is whichever of the federal arm and the pack rule produced end (the pack rule, on a tie). A denial names the controlling bound’s authority and its anchor: the excluding edge’s anchor, or the anchor of the term that set the end.

Conventions.

  • end is inclusive: it is the last day of the certification. It is persisted as certification_end and end_date, and signed as expiration_date.

  • Months use chrono’s month clamp, as TANF and CAPS do (#1488). canopy_types::date::age_months(dob, on) is the largest n with dob + n months on or before on. A 29 February birth therefore reaches 12 months on 28 February of the next year, a day before canopy_types::date::age_years counts the first birthday (on 1 March). A test pins the divergence. The demo seed counts its WIC infants' ages with the same function.

  • An infant’s band (under_age_months) is read from its age on this certification’s date.

  • The supported date domain is the years 1900–9999, for as_of and every anchor. The request preflight refuses a date outside it (422 wic_date_out_of_range). With the offset bounds above, every evaluation then stays inside chrono’s range, so a period error after preflight is a broken invariant and answers 500 internal.

Boot refuses, naming the key: an unknown field or value; a federal category whose anchors list is empty or names certification_date; a [wic.certification.<category>] table naming no participant category; both or neither of months and days, or an offset past its bound; day_before with days; a term anchor other than certification_date and the category’s anchors; a window on certification_date; a misplaced or unordered under_age_months; an empty ends, maximum or option maximum; an empty authority; and an election missing where the federal category has an option, or present where it has none.

Per pack. Georgia elects all three options, shortens every category and narrows the child window under DPH WIC CT-840.01, read day-anchored per the maintainer’s rulings (the georgia pack’s jurisdiction.toml, after [wic]):

[[wic.certification.pregnant.rules]]
authority = "DPH WIC CT-840.01 IV"
ends = [{ anchor = "expected_delivery_date", days = 42, align = "exact" }]
[[wic.certification.postpartum.rules]]
authority = "DPH WIC CT-840.01 V"                  # ruling: pregnancy end (birth or loss) + 6 months
ends = [{ anchor = "pregnancy_end_date", months = 6, align = "exact" }]
[wic.certification.breastfeeding]
election = "elected"
[[wic.certification.breastfeeding.rules]]
authority = "DPH WIC CT-840.01 VI"                 # ruling: the day before the infant's first birthday
ends = [{ anchor = "pregnancy_end_date", months = 12, align = "day_before" }]
[wic.certification.infant]
election = "elected"
[[wic.certification.infant.rules]]
authority = "DPH WIC CT-840.01 VIII"
under_age_months = 6
ends = [{ anchor = "date_of_birth", months = 12, align = "day_before" }]
[[wic.certification.infant.rules]]
authority = "DPH WIC CT-840.01 IX"                 # six months or older: last day of the 6th month, cert month = 1
ends = [{ anchor = "certification_date", months = 5, align = "month_end" }]
[wic.certification.child]
election = "elected"
[[wic.certification.child.windows]]
authority = "DPH WIC CT-840.01 VII"                # certified before the fifth birthday
through = { anchor = "date_of_birth", months = 60, align = "day_before" }
[[wic.certification.child.rules]]
authority = "DPH WIC CT-840.01 VII"                # ruling: last day of the 11th month after the cert month
ends = [{ anchor = "certification_date", months = 11, align = "month_end" }, { anchor = "date_of_birth", months = 60, align = "month_end" }]

Worked through it: a Georgia infant born 2018-11-22 and certified 2019-04-10 is under six months old, so its certification ends 2019-11-21, the day before its first birthday; certified 2019-07-11, it ends 2019-12-31. A Georgia breastfeeding woman whose pregnancy ended 2025-01-01 is still in the category on 2026-01-01, but CT-840.01 VI ended her period on 2025-12-31, so a certification that day is denied citing CT-840.01 VI.

default elects nothing ("not-elected"). It gives breastfeeding, infant and child one rule each, { anchor = "certification_date", months = 6, align = "day_before" }, which reads "approximately every six months" as six calendar months and cites 7 CFR 246.7(g)(1)(iii)–(v). It narrows the child window to the day before the fifth birthday, citing 7 CFR 246.2. pregnant and postpartum run to the federal maximum. test-max elects all three options and declares no rules or windows, so it runs the federal bounds. test-min does not enable WIC.

Another jurisdiction’s reading is data, not code. A State that rounds an older infant’s six months to month-end writes { anchor = "certification_date", months = 6, align = "month_end" }, or no rule at all, since that is the federal arm. A State that admits a child through the fifth-birthday month declares no child window, so the federal window stands.

Citations (ADR-011; an array of tables is one leaf). Georgia cites each rules and windows key with authority = "manual" and source_ref = "Georgia DPH WIC Procedures Manual CT-840.01 (Certification Period)", with each ruling in notes. Every election cites option_registry. default cites its keys to 7 CFR.

WIC certification lifecycle: the advance notice of expiration (#2390)

7 CFR 246.7(j)(8) requires that each participant, parent or caretaker be notified not less than 15 days before each certification period expires. canopy-wic’s lifecycle sweep stages that notice a pack-set number of days before a certification’s end, and expires the certification after it (canopy-wic API › Certification lifecycle). The lead is pack data held to a federal floor.

The pack table. [wic.lifecycle] holds exactly two keys, both required, both day counts, and the termination subtable (WIC mid-certification termination: the notice lead and the reasons (#2391)):

  • expiration_notice_lead_days: the ordinary lead;

  • expiration_notice_lead_days_homeless: the lead for a participant whose certification record is homeless (a homeless individual, 7 CFR 246.2, as the determine request stated it).

services/canopy-wic/src/lifecycle.rs parses it strictly (deny_unknown_fields) when WicParameterTable::load runs, after the certification periods. It sits beside [wic.certification], never inside it, since [wic.certification] admits only participant categories.

The federal floor. The federal layer’s wic-lifecycle.json holds "expiration_notice": {"min_lead_days": 15, "authority": "7 CFR 246.7(j)(8)"} and the termination floor (WIC mid-certification termination: the notice lead and the reasons (#2391)), parsed strictly. It has no nodes, so canopy-rules skips it; it sits in [families.static] in the federal layer’s indexing.toml and carries a file-level federal_register citation. The regulation sets one floor for everyone, so a longer homeless lead is a State’s own choice.

Boot refuses, naming the key: a pack with no [wic.lifecycle] table; an unknown key; a lead below min_lead_days; a lead above canopy_types::date::MAX_POLICY_DAY_COUNT (a year, a unit or typing error); a homeless lead shorter than the ordinary one; and a floor file whose min_lead_days is outside that range or whose authority is empty.

Per pack.

Pack Ordinary Homeless Citation

georgia

15

30

manual, "Georgia DPH WIC Procedures Manual CT-840.01 (Certification Period)"

default

15

15

federal_register, 7 CFR 246.7(j)(8): the floor for everyone

test-max

15

30

fixture: the longer homeless lead makes the two arms distinguishable in tests

test-min

—

—

no [wic] table: test-min does not enable WIC

Each key is cited in the pack’s citations.toml as wic.lifecycle.expiration_notice_lead_days and wic.lifecycle.expiration_notice_lead_days_homeless.

WIC mid-certification termination: the notice lead and the reasons (#2391)

7 CFR 246.7(h) lets a State agency disqualify a participant during a certification period only for the reasons it lists; (h)(1)(ii) names the members a mid-certification income reassessment finds ineligible. (j)(6) requires written notice not less than 15 days before the disqualification, with the reasons and the right to a fair hearing. canopy-wic schedules a household’s terminations from an income reassessment run no earlier than the legal today plus the pack’s lead plus two days of dispatch slack (canopy-wic API › Mid-certification termination).

The pack table. [wic.lifecycle.termination] holds advance_notice_days (a day count) and one or more [[wic.lifecycle.termination.reasons]], each {code, basis}: code is the reason code the schedule request names and the letter’s template keys its reason sentence on (canopy-notices refuses to render an unknown code), and basis is the 7 CFR 246.7(h) paragraph it rests on. services/canopy-wic/src/lifecycle/termination.rs parses it strictly into TerminationParams, shared behind an Arc. canopy-web reads the same reasons at boot when WIC is enabled (services/canopy-web/src/wic_termination_reasons.rs, #2450): they are its termination form’s only options and the allowlist it checks the posted reason against (canopy-web API › POST /actions/wic/schedule-terminations).

The federal floor. The federal layer’s wic-lifecycle.json's "termination": {"min_advance_notice_days": 15, "authority": "7 CFR 246.7(j)(6)", "permitted_bases": ["7 CFR 246.7(h)(1)(ii)"]}. Each permitted basis maps in code to the evidence a termination on it requires: 7 CFR 246.7(h)(1)(ii) to an income reassessment run that found the member income- and adjunctive-ineligible and covered the whole household.

Boot refuses, naming what it refused: a pack with no [wic.lifecycle.termination] table; an unknown key; a lead below min_advance_notice_days or above canopy_types::date::MAX_POLICY_DAY_COUNT; no reason; a duplicate or empty code; a basis outside permitted_bases; and a floor whose lead is outside that range, whose authority is empty, which permits no basis, or which permits a basis canopy-wic has no evidence rule for.

Per pack.

Pack Lead Reasons Citation

georgia

15

income_ineligible_at_reassessment (7 CFR 246.7(h)(1)(ii))

manual, CT-840.01 II (a certification is shortened on a later disqualification, e.g. increased income) and 7 CFR 246.7(j)(6); DPH’s Termination policy CT-860.06 was never published and is recorded lost in the corpus manifest

default

15

income_ineligible_at_reassessment (7 CFR 246.7(h)(1)(ii))

federal_register, 7 CFR 246.7(j)(6) and (h)(1)(ii)

test-max

20

income_ineligible_at_reassessment (7 CFR 246.7(h)(1)(ii))

fixture: a lead above the floor; the one reason the default template tree, which test-max’s letters render from, can print

test-min

—

—

no [wic] table

Each is cited in the pack’s citations.toml as wic.lifecycle.termination.advance_notice_days and wic.lifecycle.termination.reasons (an array of tables is one leaf).

WIC nutrition risk criteria (#2337)

7 CFR 246.7(e) has a competent professional authority assign each WIC applicant’s nutritional risk at certification, from criteria the State agency uses within FNS’s Index of Allowable Nutrition Risk Criteria (WIC Policy Memorandum 2011-5). A State agency may rename or regroup the criteria but cross-references the federal codes. Which codes a jurisdiction offers, and their titles, are pack data.

The pack table. [[wic.nutrition_risk_criteria]] is an array of tables with exactly two keys per row: code, the token the worker’s nutritional-risk form posts as one risk_codes value and canopy-wic stores, and title, the text printed beside the box ("code — title"). canopy-web loads it at boot (services/canopy-web/src/wic_risk_criteria.rs) when [jurisdiction].enabled_programs includes wic, and does not read it otherwise. The rows are the form’s only source of boxes and the handler’s only allowlist: canopy-wic requires a non-empty risk_codes list but holds no vocabulary (canopy-web API › POST /actions/wic/nutritional-risk).

Boot refuses, naming the table: a missing or malformed enabled_programs list; and, with WIC enabled, a missing or empty table, a row with a key other than code and title, a row missing either, a blank code or title, or a code listed twice.

Per pack.

Pack Rows Source and citation

georgia

76

The criterion headings of the DPH Nutrition Risk Criteria Handbook (FFY 2020, effective August 2019; compliance/policy-sources/dph-wic-manifest.toml, docs."nutrition-risk-criteria-handbook"), one row per code, sorted by code. The handbook keeps one heading each for 352 (Infectious Diseases) and 400 (Inappropriate Nutrition Practices), which the federal index splits into 352a/352b and 411/425/427. manual, with federal citation 7 CFR 246.7(e).

default

80

The federal index’s codes and short titles. fns_memo, WIC Policy Memorandum 2011-5.

test-max

80

The federal index kept exact, as in default. fixture.

test-min

—

No [wic] table; WIC is not enabled.

Each pack that carries the table cites it in its citations.toml as wic.nutrition_risk_criteria (an array of tables is one leaf, whose value is the whole array).

Notice identity per program and the hearing-request floor (#2389)

[notices] holds the jurisdiction’s notice identity: agency_name, agency_address, agency_phone, hearing_phone, hearing_address (optional) and appeal_deadline_days. [notices.program.<program>] is one program’s complete identity, which that program’s letters print and store in place of [notices]:

  • It has the same six fields and the same requiredness. Only hearing_address is optional; a table without one prints no hearing address, never the jurisdiction’s.

  • Unknown keys, a missing required field, and a slug that is not a program each refuse the boot. No field is inherited from [notices]. An unknown key elsewhere in [notices] refuses the boot too (#2399), so a misspelled sub-table such as [notices.programs.wic] fails loudly instead of leaving the program on [notices].

  • Each key is a pack key like any other, so it needs its own citation (notices.program.<program>.<field>) with a matching value.

  • It serves that program’s letters only. The applicant portal’s helpline and agency line are program-neutral and always read [notices] itself; the help page names the agency the line belongs to. A letter the portal withholds online names the agency and phone the letter itself printed, from canopy-notices' recorded letterhead (#2400).

Georgia configures [notices.program.wic] with DPH’s letterhead and hearing contacts and the 60-day window of CT-860.04 V. default configures the same table as [WIC …] placeholders with 60 days, cited to 7 CFR 246.9(e). test-max configures a distinct fixture identity. test-min, which has no WIC, has no table and exercises the fallback.

The claim letter's due date (#2228). [notices.claims].repayment_due_days is the number of days after its date by which a SNAP claim's initial demand letter tells the household to repay or arrange repayment (7 CFR 273.18(e)(3)(iv)(N)). A pack that enables SNAP must state it, with its citation (notices.claims.repayment_due_days); canopy-notices refuses to boot without it, on an unknown key in the table, or on a figure below 1 or above the federal layer's snap-procedure.json claims.demand_due_days_max (30, 273.18(e)(3)(v)). The bound binds the initial letter only: later demand letters are left to the State e)(3)(vi. A pack without SNAP states no figure.

Federal constants are not pack keys (#3302). Values federal law fixes and a State cannot vary live once in the federal layer and are read by canopy_common::federal_constants: snap-procedure.json holds the expedited-service screen ($150 gross income, $100 liquid resources, 7 CFR 273.2(i)(1)(i)), the filing day after which a postponed-verification household is certified for two months (the 15th, 273.2(i)(4)(iii)), the $10 initial-month floor (273.10(a)(1)(iii)©) the IPV periods (12 and 24 months, 273.16(b)(1)) and the cap on the due date of a claim's initial demand letter (claims.demand_due_days_max, 30 days, 273.18(e)(3)(v), which bounds the pack's own due-date figure); tanf-time-limit.json holds the 60-month federal TANF limit (42 USC 608(a)(7)). A pack that declares one of the old keys ([snap.expedited] low_income_limit_cents, liquid_assets_limit_cents, postponed_filing_day_cutoff; [snap.issuance] initial_proration_minimum_cents; [snap.ipv]; [tanf] federal_time_limit_months) is refused at boot, naming the key and the federal file. The State's choices beside them stay in the pack: the postponed-verification month counts, and a State's own TANF time limit, a [tanf.values] name its eligibility decision reads (TANF decisions, standards and values: the four decisions, [tanf.standards], [tanf.values] (#3507)). canopy-tanf does not bound that value: it enforces the federal limit itself, so a State value above it never extends assistance.

The federal bounds. The federal layer’s hearing-request-windows.json is {"programs": {"<program>": {"min_days": N, "max_days": N, "authority": "<citation>"}}}. min_days is a floor (a State’s window may not be shorter) and max_days a ceiling (it may not be longer); a row states one or both, and a row with neither, with a floor above its ceiling, or with an unknown key, refuses the load. Today: WIC at least 60 days (7 CFR 246.9(e)), SNAP at least 90 (7 CFR 273.15(g)), Medicaid at most 90 (42 CFR 431.221(d)). The file has no nodes, so canopy-rules skips it; it sits in [families.static] in the federal layer’s indexing.toml. One loader reads it, canopy_reference::hearing_request_windows. At boot canopy-notices holds the deadline each enabled program’s letters print, from its table or else [notices], to the program’s bound, and canopy-appeals holds each enabled program’s [appeals.program.<p>].filing_window_days to it; either refuses to start on a figure outside the bound, naming the key, the days, the bound and its authority. A bound for a program the pack does not enable binds nothing, and a program the file does not list is unbounded; bounding another program is a data edit.

The letter and the window agree (#3394). For every enabled program, the deadline its letters print must equal [appeals.program.<p>].filing_window_days. canopy-notices and canopy-appeals each refuse to start on a pack where they differ, naming both keys and both values, so a household is never told one deadline and held to another. canopy config check reports a missing row, a window outside its bound and a letter that differs, as appeal-windows. How the identity reaches a letter and a re-rendered letter: canopy-notices › Notice identity.

Accessibility barrier-report contact: [portal.accessibility] (#2235)

[portal.accessibility].barrier_report_phone is the number the applicant portal’s accessibility statement (/accessibility) gives for reporting an accessibility barrier, printed as the pack spells it and dialled from its digits. It is its own key, not [notices].agency_phone, so a jurisdiction can name a different contact. canopy-portal refuses to start when it is missing or blank. Values per pack: georgia 1-877-423-4746, the DHS helpline, cited operational because the pinned manual names no dedicated accessibility contact; default [ACCESSIBILITY CONTACT PHONE]; test-max 1-555-0105, distinct from its helpline; test-min 1-555-0101. Each pack cites it as portal.accessibility.barrier_report_phone, default and the test packs as fixture.

Intake section citations: [[intake.section_citations]] (#3496)

[[intake.section_citations]] — one { program, section, label, source_ref } row for each intake section a pack cites a manual for. program is a program slug and section an intake section slug (identity, household_composition, …); a pair has at most one row. canopy-web shows the row's label beside the section on the worker's intake page and as the tooltip of its status pill; a pair with no row shows nothing. The table is optional: a pack that cites no manual declares none. canopy-web loads it at boot and refuses to start on a row that names an unknown program or section, repeats a pair, or has a blank label. canopy config check reports a row whose source_ref names no source_ref of the pack's own citations.toml: the two are the same text, or the cited one is the row's text followed by a space and a qualifier. The table as a whole takes one row in citations.toml, as every array of tables but medicaid.classes does. Values per pack: default cites federal text for three sections; test-min declares none; test-max declares four rows that differ from default.

Intake document types: [[intake.document_types]] (#3497)

[[intake.document_types]] — one { code, label, applicant_label, applicant_hint } row for each kind of document the jurisdiction files at intake, in the order offered. code is stored on the document and sent on the wire; label is what a worker sees; applicant_label and applicant_hint are the title and example line of the applicant portal's choice, whose first row is pre-selected. The table is required: canopy-applications, canopy-web and canopy-portal each load it at boot and refuse to start when it is missing or empty, a code repeats, has outer whitespace or is longer than 64 bytes, or a field is blank. canopy-applications refuses an upload whose document_type the pack does not declare (422, naming it). The schema lists no codes. A stored document keeps its code: a code a pack later removes is still read from old rows and shown as the bare code, and is no longer offered or accepted. Values per pack: default declares identity, income, residency, citizenship and other; test-min identity and other; test-max the default list and tribal_enrollment.

Reported income sources: [[intake.reported_income_sources]] (#3498)

[[intake.reported_income_sources]] — one { code, label } row for each kind of other income the apply wizard asks a household about, in the order offered. They tell a caseworker what to ask about and carry no amounts. The table is required, under the same rules as the document types: canopy-applications, canopy-web and canopy-portal refuse to start when it is missing or empty, a code repeats, has outer whitespace or is longer than 64 bytes, or a field is blank. The applicant portal offers the rows; canopy-applications refuses a filing that reports a source the pack does not declare, or one twice (422, naming it); canopy-web shows a stored answer by the pack's label. The schema lists no codes. A stored answer keeps its code: one a pack later removes is still read and shown as the bare code. Values per pack: default declares unemployment, social_security, child_support, disability and family_support; test-min unemployment only; test-max the default list and veterans_benefits.

IEVS source labels (#2213)

[[snap.verification.match_source_labels]] — one { code, label } row per IEVS match source the pack routes to, covering at least its own [snap.verification].wage_match_source and unemployment_match_source. Like [[snap.verification.requestable_types]], canopy-web loads it at boot; a pack without the table, with an empty one, or with a row whose code or label is blank refuses to start. The worker dashboard’s IEVS Alerts panel prints a hit’s source from it. The federal SSA sources (ssa_sdx, ssa_bendex) keep their labels in code; any other unlisted code prints as the code with its underscores spaced. Rows per pack: georgia georgia_dol_swr (DOL Wage) and georgia_dol_ui (DOL UI); default reference_swr (State wage match) and reference_ui (Unemployment insurance match); test-min and test-max test_fixture_swr (Fixture wage match) and test_fixture_ui (Fixture UI match). Every pack cites snap.verification.match_source_labels in its citations.toml (default and the test packs as fixture).

Values beside their keys: IEVS, adverse actions, periodic reports (#2212)

Five Georgia values and sentences that services compiled beside a pack key now come from the pack:

  • [snap.verification].ievs_discrepancy_threshold_cents: the distance past which an IEVS-verified income flags a discrepancy against the self-reported income. Georgia 10000, authority = "operational" (PAMMS 3035 states no match threshold); the other packs mirror it as fixture.

  • [[snap.adverse_action.reasons]] gains periodic_report_verification_failure (cb_available = false), the lapsed-VCL termination’s row. A periodic-report action’s continued benefits are its row’s; there is no override on the source.

  • [snap.adverse_action]: mass_change_cb_rule and mass_change_exemption_authority, the texts a 7 CFR 273.12(e) mass-change action freezes. Georgia cites 273.12(e)(6) and 273.13(b)(1) with PAMMS 3705; default cites the CFR alone.

  • [snap.periodic_reporting]: nonfiling_exemption_authority and verification_failure_exemption_authority, the exemption authorities the two pipeline terminations record.

  • [appeals].cb_adequate_reinstate_workdays now also feeds the appeals timeline notes; test-max sets 7 so a note that ignored it would show.

Each is cited in the pack’s citations.toml; the text keys refuse a blank value at boot.

The hearing office and the final appeal (#3281)

[appeals] names the hearing process without naming one state’s offices:

  • hearing_office_forwarding_workdays (optional): the working days within which a withdrawal filed after the hearing was scheduled is forwarded to the hearing office. Absent means the jurisdiction has no forwarding step; the withdrawal is finalized on the office’s acknowledgment. When present it is refused at boot outside 1..=366. It replaces osah_forwarding_workdays. georgia 8; test-min 5; test-max 7; default absent.

  • final_appeal_body: the body that decides a final appeal, as timeline and API text names it. Required and non-blank. georgia: "the Superior Court"; default: a bracketed placeholder.

  • [appeals.program.<program>] (#3394): one complete row per program, with filing_window_days (days from the notice date within which an appeal of that program is filed), filing_window_citation (the authority a late refusal names) and hearing_office_name (the office timeline text names). All three are required, an unknown key refuses the load, and no row inherits from another. A row is required for every program in [jurisdiction].enabled_programs; a pack keeps the row of a program it disables until that program's open appeals close, since an appeal whose program has no row can be neither filed nor withdrawn (422 program_not_deployed). [appeals].appeal_window_days and [appeals].hearing_office_name are no longer read. The window is held to its federal bound and to the deadline the program's letters print (the federal bounds).

  • final_appeal_continues_benefits (required): whether a timely final appeal may extend continued benefits pending its decision. When false, a final-appeal filing carrying continue_benefits is refused. georgia true (PAMMS Appendix B Chart B3); default false, the federal reading (7 CFR 273.15(k) continues benefits only to the hearing decision); test-min false; test-max true.

The authority a resumed action records after an agency-favorable hearing decision is the federal hearing rule, "7 CFR 273.15 — post-decision adequate notice"; it named Georgia’s Chart B1 before #3281.

Logging redaction policy: [[logging.sensitive_fields]] (ADR-041, #1300)

Which field values never leave a canopy process in clear is pack data, not code (ADR-041). Every service reads it at boot — right after its configuration, before any read through a secret API (the KEK boot requirement, the audited secret provider) — through one contract — canopy_common::telemetry::init_for_pack(level, service, &snapshot) over the configuration snapshot it boots on, loaded first from the baseline CANOPY_<SVC>CONFIG_SOURCE (required; Configuration Reference) or the portal’s CANOPY_PORTALCONFIG_SOURCE. The policy lives in the deployment’s jurisdiction.toml:

[[logging.sensitive_fields]]
path = "*ssn"            # dotted segments; `*` matches any run of characters
action = "redact"        # or "drop"
citation = "42 U.S.C. 405(c)(2)(C)(viii)"   # the authority; required, non-empty
The pack… Result

declares no [logging] table

The canopy default applies (below). This is the only "missing policy" case.

cannot be read, is not TOML, or has a malformed [logging] table

Boot fails. Malformed: [logging] without sensitive_fields, an unknown key, an action other than redact / drop, an empty or invalid path, an empty citation, two records normalizing to one path.

declares [logging]

Its records are the policy and replace the default whole — a weaker list, or sensitive_fields = [], is honored. canopy enforces no floor; the override is the deployment’s accountable choice.

The boot line logging redaction policy installed (ADR-041) carries policy.source (canopy-default or pack:<file>) and policy.rules; a policy with no rules is announced as a WARN.

Matching. A key path is a field name split at ., [ and ] (applicant[ssn] is applicant.ssn), extended by every key the redactor descends through (JSON objects, Debug structs; array elements are transparent). Keys and pattern segments compare normalized — letters and digits only, ASCII-lowercased — so date_of_birth also matches dateOfBirth, date-of-birth and the display label Date of Birth. A rule matches when its segments equal the trailing segments of the path or of any ancestor of it: ssn matches ssn, applicant.ssn and ssn.last4 (everything under a sensitive key is sensitive); applicant.email matches case.applicant.email but not a bare email. When several rules match, drop beats redact.

Actions. redact replaces the value with [REDACTED] and keeps the key; drop removes the event field or OTEL attribute. Inside free text there is no field to remove, so drop redacts there — as it does for an OTEL span name, event name or status description.

What is covered. Stdout: every event field by name (any type), and every rendered string — the message, Debug / Display values, an error’s Display — scanned for keyed values; span fields and their record() updates are stored redacted and, as since 1908, never joined onto a line. OTEL (when trace export is wired): the span name, every attribute (span fields and their updates; <field>.chain, an error’s source() chain, falls under <field>), event names and attributes, link attributes and the status description, at the exporter — with tracing-opentelemetry's exception conventions off, so no value is copied under a foreign key. OTLP metrics (when metric export is wired): every attribute of every data point and exemplar, and the resource’s and each scope’s, by key and with the free-text scan, at the exporter (SanitizingMetricExporter, which owns the OTLP/HTTP transport because the SDK gives no attribute hook; ADR-041 Amendment 1, #2248). The free-text scan recognizes key=value, key: value, key := value, key ⇒ value (logfmt, prose, query strings, YAML) with the key bare, quoted ("key", 'key', key ), bracketed (applicant[ssn], data["ssn"], [ssn]:, (ssn) =) or angle-bracketed (<password>=); JSON (nested in strings at any depth); Debug structs, tuple variants, char literals and pair lists ([("key", value), …]); XML element content keyed by its tag (<SSN>…</SSN>); URL userinfo (scheme://user:secret@ — the secret matched as password); and Bearer / Basic credentials in prose (matched as authorization; as the value of a matched key, every scheme in the IANA HTTP Authentication Scheme Registry — Basic through SCRAM-SHA-256 and vapid — plus Token and AWS4-HMAC-SHA256 carries its credential and its parameter list, Digest username="u", response="…"). A matched unquoted value is taken generously — to whitespace, with glued groups and strings (b"…") and closers glued between words; on through , ; & unless a new key follows (password=hunter,2 is one value, a=1&ssn=2 two keys); over the value it keys when it is itself a key; over the pairs after it when it is itself a pair (cookie: theme=dark; session=…) — and a stray " that breaks quote parity does not strand a value outside it. Limits: an unkeyed value in prose names no field and is outside the per-field contract (so is a spaced label in prose, Date of Birth: …, whose key reads as Birth); an unquoted value with a space in it is covered only up to the space (quote it); a multi-segment rule matches only a contiguous key path, which a bare key chain (a: b: 1) or a wrapper struct does not build; a malformed URL (a raw / ? in the password), a percent-encoded separator and key==value are not keyed shapes; text nested deeper than 32 levels is emitted as [REDACTED] whole. The policy governs logs only — scrub_fti_fields, the publisher’s restricted-field guard and the tenancy matrix stay separate controls.

The canopy default (crates/canopy-common/src/telemetry/default_policy.rs) redacts canopy’s own sensitive vocabulary and cites federal authority only, so it names no jurisdiction:

Class Paths (normalized matching) Citation

SSN / TIN

ssn, ssn (a partial SSN such as ssn_last_four is treated as the SSN), *social_security_number, tin, itin, ein, tax_id, *taxpayer_identification_number

42 U.S.C. 405(c)(2)©(viii); 45 CFR 164.514(b)(2)(i)(G); 26 U.S.C. 6103(b)(6)

Names, address, birth date, phone, email

first_name … surname, address, street*, zip*, postal_code, date_of_birth, dob, birth_date, phone, fax*, email

45 CFR 164.514(b)(2)(i)(A)–(F); 7 CFR 272.1(c); 42 CFR 431.305(b)

Record, beneficiary, account, license numbers

mrn, medical_record_number, medicaid_id, medicaid_number, *beneficiary_number, *account_number, routing_number, *card_number, *drivers_license, driver_license, license_number, passport

45 CFR 164.514(b)(2)(i)(H)–(K)

Clinical

diagnosis*, treatment_history

45 CFR 160.103; 42 CFR 431.305(b)

FTI

fti*, federal_tax*, tax_return*, irs_data, adjusted_gross_income, agi, filing_status, taxable_income, tax_liability, w2_wages, 1099_income, wages_salaries_tips, self_employment_income, social_security_benefits, tax_exempt_interest, foreign_earned_income

26 U.S.C. 6103(b)(2); IRS Publication 1075

IEVS match data

wage_records, quarterly_wages, weekly_benefit_amount, benefit_amount_history, ui_record, sdx_record, bendex_record, monthly_ssi_amount, monthly_benefit_amount

7 CFR 272.8; 42 CFR 435.940–435.965

Credentials

password, passwd, pwd, jwt, passcode, secret, token, credential, session_id, sid, authorization, proxy_authorization, cookie, set_cookie, api_key, *private_key, signing_key

NIST SP 800-53 Rev. 5 IA-5

Per pack. georgia, default and test-min declare no [logging] table and run the canopy default. test-max declares an explicit thirteen-record list (SSN, birth date, names, address, phone, credentials redacted; email and fti* dropped), so a boot against it runs the pack-override arm. A declared list is cited like any array of records: each record’s citation names its authority, and citations.toml pins the whole array under [citations."logging.sensitive_fields"] (ADR-011; cargo xtask policy audit).

SNAP utility allowances and the standard medical deduction (#3279)

[[snap.sua.tiers]]: one { code, monthly_cents } row per standard utility allowance the State sets (7 CFR 273.9(d)(6)(iii)), as many tiers as it has. The rows come last in [snap.sua], after allow_actual_utility_costs. canopy-snap loads them at boot. It refuses to start on a missing or empty table, a blank or repeated code, or an amount that is not an integer of at least 0. A household’s claimed utility tier selects its row, and a tier the pack does not declare earns no allowance. georgia carries PAMMS 3617’s three tiers (heating_cooling $405, limited $358, telephone $47). The fixture packs carry three demo tiers. Each pack cites snap.sua.tiers; the three per-tier keys (heating_cooling_monthly_cents, limited_monthly_cents, telephone_monthly_cents) are gone.

[snap.deductions].standard_medical_deduction_monthly_cents: the State's standard medical deduction, a state option (7 CFR 273.9(d)(3)). It is optional. Absent, the pack elects none and the decision's medical deduction is the household's actual costs over the threshold alone. Present, it must be an integer of at least 0. georgia ($161, PAMMS 3614) and test-max elect it; default and test-min do not.

SNAP work registration: the exemptions and the ABAWD exceptions (#3218)

[[snap.work_registration.exemptions]] — one { code, label, temporary } row per exemption from the work requirements a registration may record (7 CFR 273.7(b)(1)); temporary marks one with an end the worker can date, so the form asks when. [[snap.abawd.exceptions]] — one { code, label } row per exception to the ABAWD time limit a screening may record (7 U.S.C. 2015(o)(3)); a registrant meeting one is not an ABAWD. canopy-snap and canopy-web load both at boot and refuse to start on a missing or empty table, a code that is not snake_case or repeats, or a blank label. The create refuses a code the booted pack does not list.

Values per pack: georgia carries Chart 3350.1's sixteen rows, each cited to its line, and 3355's three exceptions (unfit, pregnant, responsible for a household member under 14) with the statute's Indian exception, which the pinned 3355 does not yet state. P.L. 119-21 struck the homeless, veteran and former-foster-youth exceptions, so no pack carries them. The Aged ABAWD is a screening value, not an exception row. default mirrors georgia's rows as fixture; test-min and test-max carry minimal fixture rows.

SNAP ABAWD: regaining and discretionary exemptions (#3220)

Four [snap.abawd] keys, each required:

  • regain_hours and regain_days — an exhausted ABAWD regains eligibility by completing at least regain_hours hours of work, a work program or workfare within at most regain_days consecutive days, both ends counted (7 CFR 273.24(d)(1)). Each must be a positive whole number, or canopy-snap refuses to start.

  • second_period_months — the countable months a tracking window's first regaining allows before the window is exhausted again (7 CFR 273.24(e)); a later regaining allows none. A positive whole number.

  • discretionary_exemptions_per_year — a table of federal fiscal year (the year the October-to-September year ends in) to the number of discretionary exemptions FNS allotted the State that year (7 USC 2015(o)(6); 7 CFR 273.24(g)). Each exemption covers one ABAWD for one month. canopy-snap counts the year's recorded exemptions against it and refuses a month of a year the table does not name (snap_exemption_allotment_unknown). An empty table names no year. canopy-snap refuses to start on a missing table, a key that is not a year or a value that is not a whole number.

Values per pack: georgia carries 80, 30 and 3 (PAMMS 3355, cited to its lines with the pinned page's hash) and FY 2026's 38,844, the figure FNS's memorandum of 2025-12-22 allots Georgia before carryover. The memorandum does not count unused FY 2025 exemptions, which FNS publishes later, so the cap errs low. FNS had published no FY 2027 figure by 2026-11-04, so georgia names no 2027 key, and an FY 2027 month is refused until the figure is added. default cites 7 CFR 273.24(d)-(e) for the first three keys and carries fixture allotments for FY 2026 and FY 2027. test-min carries an empty table (it elects no discretionary exemptions); test-max carries 50 for each of the two years. The pack's discretionary_exemption_pct is a separate key, which canopy-snap does not read.

SNAP work sanction: the minimum periods (#3219)

[snap.work_sanction] minimum_months — the minimum work-sanction period in months by violation number: the first entry for a first violation, the second for a second, and the last entry for every later one (7 CFR 273.7(f)(2)). canopy-snap loads it at boot and refuses to start on a missing or empty list or a month count below 1. The sanction begins the first of the month after the timely-notice period, which is the shared [notices].advance_notice_days, and runs for the minimum or until compliance, whichever is later. georgia carries [1, 3, 6] (PAMMS 3380:104-106, cited with the pinned page's hash), default mirrors it as fixture, test-min carries [1] and test-max [1, 3, 6, 12]. [[snap.adverse_action.reasons]] gains work_sanction_member_excluded (a member's sanction re-prices the allotment) and work_sanction_ineligible (every member sanctioned), both cb_available = true, in every pack.

T-MSIS eligibility groups: a class row's tmsis_group (#3293, #3421)

Each [[medicaid.classes]] row (Medicaid and CHIP classes) states the CMS T-MSIS ELIGIBILITY-GROUP code (ELG.005.087) its statutory group carries, for example tmsis_group = "05" on pregnant_women. A class outside Title XIX and XXI states outside_tmsis_reason instead: ORR's Refugee Medical Assistance is one (#3318). The valid values are federal data, the federal layer's tmsis-eligibility-groups.json, which also names the codes that set the extract's dual-eligible indicator (23-26, the Medicare Savings Programs) and its disability indicator.

canopy-reporting loads the class catalogue at boot and refuses to start when it does not load: a group outside the federal list, a row with both or neither of the two keys, or no class at all in a pack whose [jurisdiction].enabled_programs names medicaid or chip. A pack deploying neither program declares no class. A determination whose class states outside_tmsis_reason, whose class the pack does not declare, or that records no class, is left out of the extract and counted with the out-of-scope rows (filtered_not_in_scope).

[reporting.tmsis.eligibility_groups], the table that held this map before, is no longer read: a pack that still carries it loads, and its values change nothing. default and test-max no longer carry it. Each group is cited to ELG.005.087 at medicaid.classes.<code>.tmsis_group. A row whose group depends on facts one code per class cannot carry (member age, IV-E status, the HCBS income path) has the alternative in its comment.

CAPS SMI adoption schedule (#1669)

[caps.smi_adoptions] — when the pack’s state put each federal State Median Income edition in force. The federal smi family holds one smi-*.json file per edition in the federal layer, identified by its _effective_date; the state’s own chart, not the federal date, decides when an edition applies. Each key is an edition’s _effective_date and each value the day the state adopted it, both as quoted YYYY-MM-DD strings (the pack date encoding, as in [jurisdiction.holidays]):

[caps.smi_adoptions]
"2025-10-01" = "2026-03-02"   # FFY2026 edition — adopted 2026-03-02

canopy-caps (services/canopy-caps/src/smi_editions.rs) scores a determination with the edition adopted most recently on or before the determination date, and refuses an earlier date with 422 params_unstaged — never another edition (canopy-caps API › Which SMI edition a determination uses). A pack with [caps] refuses to boot, naming the defect, when the table is missing or empty; a key or a value is not a canonical YYYY-MM-DD string; two editions share an adoption date, or adoption dates do not rise with the editions' _effective_dates; a row names an edition no family file carries; [jurisdiction].fips_state_code is not a two-digit string; or an adopted edition’s file has no four_person_median row for the pack’s FIPS code and the pack gives no [caps.smi_override] base for it. Every family file must carry _effective_date and household_size_ladder (whose 4-person percentage is 100), and no two may share an _effective_date, adopted or not. canopy-caps reads the pack’s row wherever a family file carries one, adopted or not, and a figure that is not whole non-negative dollars refuses boot; other states' rows are skipped without type-checking (the file as a whole must still be valid JSON). Each household size’s SMI is the ladder’s percentage of the 4-person estimate, rounded to the nearest dollar (#3279).

[caps.smi_override] — the pack’s own 4-person base for an edition whose federal file publishes no row for its FIPS code: a territory ACF does not publish, or a synthetic fixture. Each key is an adopted edition’s _effective_date, holding four_person_median, a positive whole-dollar integer. canopy-caps refuses an override for an edition the pack does not adopt, and one where the federal file does publish the pack’s row. default (80000) and test-max (100000) carry one for the FFY2026 edition, cited as fixture; georgia reads its federal row.

Rows per pack: georgia "2025-10-01" = "2026-03-02" and "2026-10-01" = "2026-10-05" (the FFY2026 and FFY2027 editions, each from the effective date of DECAL’s CAPS Appendix A chart); default and test-max "2025-10-01" = "2025-10-01" (fixtures adopting it on its federal date, on their [caps.smi_override] bases); test-min has no [caps]. Each row is cited on its own as caps.smi_adoptions.<edition> — georgia to DECAL Appendix A (policy-sources pin appendix-A), default and test-max as fixture. A new edition is data only: its smi-*.json file and file-level citation, plus one cited row in each adopting pack (the federal layer’s README.adoc › SMI editions and pack adoption).

CAPS family fee: [caps.family_fee] (#2226)

[caps.family_fee] — the family fee as the pack's lead agency publishes it: dated editions of income bands. canopy-caps prices one fee per determination from the edition in force and caps it at [caps] copay_income_ceiling_pct of income (canopy-caps API › Which SMI edition a determination uses). The keys:

  • rounding — how a rate becomes a weekly fee. weekly_floor_whole_dollar: the annual charge over 52 weeks, rounded down to a whole dollar. monthly_half_up_whole_dollar (#3391): the monthly income times the rate, rounded half-up to a whole dollar, and the weekly fee that monthly fee × days_per_week / days_per_month, rounded half-up to a whole dollar; both day counts are then required keys of the table (at least 1, the week no longer than the month) and are refused under the other value. A flat weekly_cents band is charged as written under either.

  • allocation — who pays when several children are in care: divide_evenly (each eligible child an even share, the remainder cents to the lowest child_person_id values) or youngest_child (the youngest eligible child the whole fee, the lower id on a tie; the others 0) (#3321).

  • [[caps.family_fee.editions]] — one per published schedule, effective_date (a quoted YYYY-MM-DD, strictly ascending) and edge_basis, annual_dollars_by_family_size or pct_smi. The edition in force is the latest effective on or before the determination date; an earlier date is refused 422 params_unstaged.

  • [[caps.family_fee.editions.bands]] — ascending. Every band but the last carries an inclusive upper edge: upper_annual_by_family_size (annual dollars for sizes 1, 2, …) with upper_each_additional (added per member past the list), or upper_pct_smi (1 to 100, a percentage of the monthly SMI for the family's size under the SMI edition in force). The last band has no edge and charges above every edge.

  • Each band charges rate_thousandths_pct (0 to 100,000: 3000 is 3 %) of annual income, or weekly_cents, a flat amount. The income ceiling caps a flat band too, so a family with no income pays nothing (#3326). Beside a rate, rate_thousandths_pct_at_upper makes it rise linearly to that rate at the band's upper edge, rounded half-up to a whole thousandth, and add_on_thousandths_pct (with an optional add_on_thousandths_pct_at_upper) adds a rate per eligible child beyond the first.

[caps.family_fee]
rounding = "weekly_floor_whole_dollar"
allocation = "divide_evenly"

[[caps.family_fee.editions]]
effective_date = "2026-03-02"
edge_basis = "annual_dollars_by_family_size"

[[caps.family_fee.editions.bands]]
upper_annual_by_family_size = [1596, 2164, 2732]   # through size 14 in the pack
upper_each_additional = 568
rate_thousandths_pct = 0
[[caps.family_fee.editions.bands]]                 # the last band: no edge
rate_thousandths_pct = 7000

Under weekly_floor_whole_dollar the weekly fee is floor(annual income × (rate + add-on × (children − 1)) / 100,000 / 52) whole dollars, where annual income is the monthly income × 12. Under monthly_half_up_whole_dollar it is round(round(monthly income × min(rate + add-on × (children − 1), ceiling) / 100,000) × days_per_week / days_per_month): the income ceiling (copay_income_ceiling_pct) caps the total rate before the monthly fee is rounded, and the weekly ceiling is not applied to that fee (#3463). The two roundings can therefore put a whole-dollar fee slightly above the percentage, as the State calculator does. Under weekly_floor_whole_dollar, and for a flat weekly_cents band under either, the ceiling caps the weekly fee at floor(income × pct × 12 / 52) cents. An income at an edge is in the band below it. canopy-caps refuses boot, naming the key, on any other rounding or allocation, no edition, dates out of order, an unknown basis, an edition with no band, a missing edge on a middle band or an edge on the last, an edge of the other basis, edges that do not strictly ascend at every listed size, a band with both charges or neither, a rate over 100 %, an interpolation or add-on key beside weekly_cents, an _at_upper key on the last band, an upper add-on without a lower one, or an unknown key (FamilyFeeSchedule::parse, services/canopy-caps/src/family_fee.rs).

Per pack:

  • georgia: divide_evenly (DECAL CAPS/00-9 §9.4.3), and the 2026-03-02 edition: DECAL Appendix D's four bands for family sizes 1-14, at 10, 50 and 100 % of the 2026 HHS poverty guidelines, charging no fee, then 3, 5 and 7 %. Each key is cited to Appendix D (policy-sources pin appendix-D). DECAL republishes the chart each March; each new chart is a new edition.

  • default: divide_evenly, one dollar-edged edition dated 2026-01-13: no fee up to 150 % of the 2026 guidelines, then 7 %, cited as fixture.

  • test-max: youngest_child, one pct_smi edition dated 2025-10-01 in the Texas-shaped forms: a flat $5 a week to 15 % SMI, rates interpolated with add-ons to 50 % and 85 % SMI, then 7 %, cited as fixture.

  • test-min has no [caps].

CAPS care waiver (#3183)

[caps].disabled_parent_care_waiver — whether a parent verified as unable to provide care is set aside from the CAPS activity test. That test is federal and per parent (45 CFR 98.20(a)(3)(i)): every parent must meet it, and the waiver is the state’s option on it. With true, a parent whose record claims the inability and names its verification is not tested, and at least one other parent must remain to meet the requirement; with false, every parent is tested. A claim without its verification never waives. The key is required: a pack with [caps] and no boolean here refuses boot (CapsParameterTable::load, services/canopy-caps/src/params.rs).

[caps]
disabled_parent_care_waiver = true

canopy-caps passes the value to each pack’s caps-eligibility.json as context.thresholds.disabled_parent_care_waiver, where expr-activity-test chooses which parents it tests (canopy-caps API › The per-parent activity test); the determination snapshot’s policy_params records it. Per pack: georgia true, cited to DECAL CAPS/00-6 §6.8.1.8 (policy-sources pin policy-06); default and test-max true, cited as fixture; test-min has no [caps].

CAPS asset certification age (#3547)

[caps].asset_certification_valid_days — how many days old a family's asset certification may be on the day a determination reads it. The asset limit and the test are federal (45 CFR 98.20(a)(2)(ii)) and live in the federal layer's caps-family-assets decision; 98.20(a) applies them "at the time of eligibility determination or redetermination", and how early a family may certify is the lead agency's. A certification older than this reads as none, and the child is denied until a worker records a new one.

[caps]
asset_certification_valid_days = 60

Required: a whole number of at least 1. canopy-caps refuses to start without it (CapsParameterTable::load). canopy-caps applies the test on every run, a mid-period one included, so the value must cover the longest a certification stays good within one eligibility period. Per pack: georgia 425, cited to DECAL CAPS/00-8 §8.9 and CAPS/00-14 §14.3 in its own repository; default 60 and test-max 365, fixture values that differ so a test proves the pack is read.

Medicaid and CHIP classes: [[medicaid.classes]] (#3420)

A pack declares every class of assistance it runs as a row; canopy names none.

[[medicaid.classes]]
code = "pregnant_women"          # [a-z0-9_]{1,64}, unique in the pack
label = "Pregnant Women"
track = "magi"                   # magi | non_magi | chip
benefit_type = "full_medicaid"
tmsis_group = "05"               # or outside_tmsis_reason = "…"

[medicaid.classes.limits]
income = { pct_fpl = 220 }       # also by_household_size, amount, individual/couple

[medicaid.classes.values]
max_age = 19
  • Limits. canopy-medicaid resolves each limit to monthly dollars and passes it to the pack's decisions as context.classes.<code>.limits.<name>; values pass through as context.classes.<code>.values.<name>. A limit sized by household uses the MAGI household for the magi and chip tracks and the full household for non_magi, unless it states household = "magi" or "full". A flat amount takes no household.

  • Decisions. medicaid-magi, medicaid-non-magi and chip-eligibility each return eligible_classes (class codes) and spend_down (class code to monthly amount). canopy-medicaid unions them. A decision may answer a class of any track: the class row's track, not the decision that answered, decides whether the Medicaid or the CHIP slot assigns it, and the Medicaid-first screen applies to every subject. So a CHIP class whose subject is an adult is answered by medicaid-magi, which holds the adult's facts (#3438; test-max carries one, chip_expectant). A code no row declares, or an eligible class the cascade order does not list, fails the determination naming it.

  • Inputs a pack may read (#3438). medicaid-magi is given input.parents_in_household, the parents living in the subject's household, for a pack whose parent and caretaker limits differ for one parent and two. For a subject who is a parent of a household member it counts the members who are a parent of any of that subject's children, the subject included; for anyone else, the subject's own parents in the household; 0 when the caller sends no parent–child relations. It is also given input.is_enrolled_in_higher_education, which no intake surface records yet: only a direct caller can state it, and it is otherwise false. Two more facts of the same kind (#3448), input.has_icpc_agreement (an Interstate Compact on the Placement of Children agreement covers the subject) and input.has_adequate_health_coverage (the subject has other coverage the State treats as adequate), are true, false, or null when nobody stated them: a decision that qualifies a person for having no coverage must test == false, so silence does not qualify anyone. input.is_former_foster_care stands for both foster-care conditions of the federal former-foster-care group (42 USC 1396a(a)(10)(A)(i)(IX)): in foster care under a State's responsibility on turning 18, and enrolled in Medicaid while in that care. input.was_in_foster_care_at_18 is the first condition alone, also true, false or null, for a class that reaches youth the federal group does not (#3465). input.foster_care_state_at_18 is the USPS code of the State that held that responsibility, or null, and input.jurisdiction_state is the jurisdiction's own, so a class that turns on "this State" compares the two (#3472). medicaid-tma-phase is given context.classes beside context.thresholds.phase_1_months, so a pack whose transitional period differs from the federal six months states it as a value of its own class. The prior coverage transitional medical assistance follows is one neutral fact (#3447): medicaid-magi and medicaid-denial-reasons are given input.tma_prior_coverage_met, true when the applicant received the coverage the pack's rule requires in at least 3 of the 6 months before it ended (42 USC 1396r-6(a)(1)(A)), and medicaid-magi is given input.tma_prior_coverage_end_date, the day it ended, from which canopy-medicaid counts the transitional period. Which coverage that is (cash assistance, or the low-income-families Medicaid group of 42 USC 1396u-1) is the pack's to say in its decision and its reason text; canopy-medicaid does not interpret it. Both are worker-stated facts with no intake surface yet (#858). For a test the law puts on earnings, medicaid-magi is also given input.gross_earned_income, the household's gross monthly earnings (income rows of type employment, wages, self_employment, self_employment_net, tips or commissions, before any deduction), and input.dependent_care_expenses, the sum of its dependent_care expense rows, 0 when none (#3458). The second six months of transitional coverage are tested on earnings less necessary child care (42 USC 1396r-6(b)(3)(A)(iii)(III)); a pack's decision chooses what to compare. Both are the current month's figures, not a three-month average, and every member's earnings count (#864).

  • Citations. Each limit, value and T-MSIS group is cited at its own key, medicaid.classes.<code>.limits.<name>, .values.<name>, .tmsis_group or .outside_tmsis_reason, with the row's value as the cited value. code, label, track and benefit_type need none, and a citation of the whole array targets nothing.

  • Pack check. canopy config check reads the class codes a decision can answer from the string literals of its output expressions and output cells. A literal the expression only compares against is not read as a class (#3440): one directly beside ==, !=, <, ⇐, >, >=, in or not in, or in a list on the right of in. So input.track == 'abd' ? […​] : […​] reports only the listed classes. A literal passed to a function, as in contains(input.track, 'abd'), is read as a class; compare with an operator or branch in a switch node instead.

  • Boot. canopy-medicaid refuses to start on a catalogue that does not load, and on a [medicaid.cooperation] list naming an undeclared class. canopy-reporting refuses to start on a catalogue that does not load.

  • T-MSIS. canopy-reporting reports a class under its row's tmsis_group and leaves a class stating outside_tmsis_reason out of the extract (#3421).

The flat per-class [medicaid] keys and [medicaid.tma] no longer exist.

Denial reasons: [[medicaid.denial_reasons]] (#3422)

A pack states the sentence a denial letter prints for each reason code, beside its classes:

[[medicaid.denial_reasons]]
code = "not_pregnant"                    # [a-z0-9_]{1,64}; unique in the pack
display_text = "You are not pregnant."   # printed on the denial letter
  • Which codes. Every code the pack's medicaid-denial-reasons.json can answer in its o-reason column, and the four canopy-medicaid can put on a denial itself: medicaid_eligible, not_a_state_resident, medical_support_non_cooperation and third_party_liability_non_cooperation.

  • Boot. canopy-medicaid refuses to start on a duplicate or malformed code, a row with no text or an unknown key (naming the row), and on a pack that gives one of those four codes no text.

  • Determination. canopy-medicaid reads a class's label and a reason's display_text when it decides and carries both on medicaid.determined, so a letter printed later says what the pack said then. A reason code with no row refuses the determination.

  • Pack check. canopy config check and cargo xtask rules check report each o-reason code with no row. For a pack whose enabled_programs names medicaid or chip they also report each of the four canopy-medicaid codes with no row, which refuses that service's boot, and each decision canopy-medicaid evaluates that no layer of the stack holds (#3446). The decision names live in canopy_reference::medicaid_decisions, which the service reads too.

  • Citation. The array is cited as one value, medicaid.denial_reasons.

Medicaid cooperation: [medicaid.cooperation] (#3190)

[medicaid.cooperation] — whom canopy-medicaid penalizes for refusing, without good cause, to cooperate in obtaining medical support or in pursuing liable third parties (42 CFR 435.610(a)(2)-(3); 433.148(a)), and which coverage groups each refusal leaves standing. canopy-medicaid passes the section to the federal layer’s medicaid-cooperation.json as context.thresholds.*, and the MAGI household size reads adult_age (canopy-medicaid API › Cooperation).

[medicaid.cooperation]
adult_age = 19
medical_support_exempt_groups = ["pregnant_women", "pregnant_medically_needy"]
third_party_liability_exempt_groups = []
Key Meaning

adult_age

the age from which a refusing person is penalized; a younger person never is (433.148(b))

medical_support_exempt_groups

the COA codes a medical-support refusal leaves standing

third_party_liability_exempt_groups

the COA codes a third-party-liability refusal leaves standing

A penalized adult keeps only the groups exempt from every kind they refuse. The section is required: a pack with [medicaid] and no [medicaid.cooperation] refuses boot, and so does an unknown key, a non-positive adult_age, or a group code no [[medicaid.classes]] row declares (parse_cooperation, services/canopy-medicaid/src/params.rs).

Values per pack:

  • georgia: adult_age = 19 (PAMMS 2657: "A child is never penalized"; a minor caretaker is a child). Medical support exempts pregnant_women, pregnant_medically_needy, newborn, tma, four_months_extended and pathways (PAMMS 2250 EXCEPTIONS). Third-party liability exempts newborn (PAMMS 2230).

  • default and test-max: the federal floor, cited as fixture. adult_age = 19; medical support exempts the two pregnancy groups (435.610(a)(2)(i)); third-party liability exempts none.

  • test-min has no [medicaid].

Medicaid section 1115 adult demonstration: [medicaid.adult_demonstration] (#3201)

[medicaid.adult_demonstration] — whether the jurisdiction’s section 1115 adult demonstration (42 USC 1315) conditions coverage on hours of qualifying activity at application, the hours it asks for, the window they are counted in, and the activities a report may carry. canopy-medicaid’s activity-report create validates each report against it (canopy-medicaid API › Demonstration activity reports), and the determination’s hours gate counts the reports over the window against the threshold, the decision itself in medicaid-magi's ex-pathways rule (canopy-medicaid API › Section 1115 adult demonstration hours, #3204).

[medicaid.adult_demonstration]
enabled = true
hours_per_month = 80
window_weeks = 4
lookback_weeks = 8
max_hours_per_report = 744
class = "adult_demo"
activities = [
    { code = "unsubsidized_employment", counts_as = "hours", label = "Unsubsidized employment" },
    { code = "higher_education_full_time", counts_as = "threshold", label = "Higher education, full time" },
]
Key Meaning

enabled

whether the demonstration’s qualifying-activity condition applies; false never admits the demonstration group through it

hours_per_month

the counted hours that meet the condition, compared over the window, not scaled to a calendar month

window_weeks

the counted window: this many weeks ending on the determination’s legal day

lookback_weeks

the look-back the window is chosen within; at least window_weeks

max_hours_per_report

the most hours one report may carry: a sanity bound on a keying error, not a policy figure

class

optional: the [[medicaid.classes]] code of the class the demonstration grants. The pack's decision admits adults to it; this key tells a tool that works per class which one it is. The dev seed approves childless adults under it, and under a pack that names none seeds no demonstration adult. A code the pack does not declare refuses boot and is a canopy config check finding

activities

the qualifying activities, each { code, counts_as, label }: hours counts a report’s hours, threshold meets the condition by status; label is the worker-facing name canopy-web’s Medicaid tab offers and lists the activity by (#3205)

The section is optional (#3420): a pack with no [medicaid.adult_demonstration] runs no demonstration, so no hours are counted, input.demonstration_activity_met is false, a report is refused 422 medicaid_unknown_activity and the count read answers 404. A present section refuses boot on an unknown key, a zero threshold or report bound, a zero window or one longer than the look-back, a counts_as other than the two values, a blank label, an activity code that is not lowercase snake_case or appears twice, or an empty activities list while enabled (parse_adult_demonstration, services/canopy-medicaid/src/demonstration_activity.rs). The activity codes are pack vocabulary: no Rust enum lists them. canopy-web reads the same rows at boot (demonstration_activities::DemonstrationActivities) when [jurisdiction].enabled_programs includes medicaid; it offers no activity when the section is absent and refuses to boot when it is malformed.

Values per pack:

  • georgia: enabled = true (PAMMS 2195, Georgia Pathways); 80 hours in the most recent four weeks within the eight before an application (PAMMS 2256). activities is Chart 2256.2: nine hours rows (employment of each kind, self-employment, on-the-job training, job readiness, community service, vocational training, part-time higher education) and four threshold rows (full-time higher education, the vocational rehabilitation program, SNAP ABAWD compliance, the parent or legal guardian of a child under six).

  • default: enabled = true, the same figures and codes cited as fixture; the neutral pack elects the demonstration.

  • test-max: enabled = false, the no-demonstration arm of medicaid.section-1115-demonstration (adult expansion supersedes it); the other keys are schema-populated and inert.

  • test-min has no [medicaid].

Medicaid Express Lane: [medicaid.express_lane] (#3423)

[medicaid.express_lane] — the two income thresholds, as percentages of the poverty line, that sort a child approved for SNAP or TANF into an Express Lane tier (42 USC 1396a(e)(13)). canopy-medicaid sends them, beside the federal age ceiling, to the federal layer's ele-grant-2026 and ele-renewal-2026 decisions at context.thresholds.medicaid_income_limit_pct_fpl, context.thresholds.chip_income_limit_pct_fpl and context.thresholds.max_age. The decisions answer with the tier medicaid, chip or none: the tier names the federal program, and a State's name for its CHIP program stays in its pack.

[medicaid.express_lane]
medicaid_income_limit_pct_fpl = 133
chip_income_limit_pct_fpl = 200
Key Meaning

medicaid_income_limit_pct_fpl

at or below this percentage a child is granted, or renewed at, the medicaid tier

chip_income_limit_pct_fpl

above the Medicaid threshold and at or below this percentage, the chip tier; above it, no flag at grant and a lapse at renewal

The age ceiling (max_age) and the grant length (grant_months) are federal and stay in the federal layer's cross-program-2026.json express_lane; the two thresholds are no longer read from there.

The table is optional: a pack with no [medicaid.express_lane] runs no Express Lane, so an approval grants no flag and the sweep renews nothing. canopy-medicaid refuses to start without the table while an active flag exists, so a pack that removes it first revokes its flags or lets them lapse (canopy-medicaid API › Express Lane Eligibility). A present table refuses boot on a missing or unknown key, a value that is not a positive whole number, or a chip_income_limit_pct_fpl below medicaid_income_limit_pct_fpl, which would leave the chip tier unreachable (ExpressLaneLimits::parse, crates/canopy-reference/src/cross_program.rs). Equal thresholds load: the State grants the medicaid tier alone.

Values per pack:

  • georgia: 235 and 247 (PAMMS Appendix A2, the "235% ELE/CU19" and "247% PCK" columns).

  • default: 133 and 200, the pack's own children_under_19 and child_health limits.

  • test-max: 135 and 250, its own children_under_19 (ages 6 to 18) and chip_children limits, deliberately not the default pack's.

  • test-min has no [medicaid].

TANF denial reasons: [[tanf.denial_reasons]] (#3505)

Which reasons a State denies TANF for, and how it words each, is the State's plan. A pack that enables TANF states the sentence its denial letter prints for each reason code, in the shape Medicaid's rows have (Denial reasons: [[medicaid.denial_reasons]] (#3422)):

[[tanf.denial_reasons]]
code = "earned_income"                                   # [a-z0-9_]{1,64}; unique in the table
display_text = "Your household's income is above the TANF income limit for a household of your size."
  • Which codes. Every code the pack's tanf-eligibility.json can answer in denial_reason_code, and time_limit, which canopy-tanf puts on a denial itself at the federal lifetime limit (42 USC 608(a)(7)) without asking the pack's decision. A row no decision answers is allowed.

  • Boot. canopy-tanf refuses to start on a duplicate or malformed code, a row with no text or a key other than these two (naming the row), and on a pack that gives time_limit no text.

  • Determination. A decision's code with no row refuses the determination with 502 before anything is signed or stored. canopy-tanf reads the code's display_text when it decides and carries it on tanf.determined as denial_reason_texts, so a letter printed later says what the pack said then. canopy-notices holds no TANF reason table: the pack's denied tanf.determined route in notices/manifest.toml must forward denial_reason_codes and denial_reason_texts. A TANF denial that reaches canopy-notices with no sentence (the route does not forward the key, or the event predates it) is refused, as a wordless Medicaid denial is: the notice is not generated, and the work item fails naming the key.

  • Closure reason. A TANF denial code is also the reason of tanf.case_closed, which the federal layer's TSNAP and TMA trigger_reasons match as text. A pack that renames its earnings reason stops matching them.

  • Pack check. canopy config check reports, as tanf-denial-reasons, each code the pack's tanf-eligibility.json can yield in its denial_reason_code output that has no row, and, for a pack whose enabled_programs names tanf, a missing time_limit row. The check reads the decision's string literals and evaluates nothing.

  • Citation. The array is cited as one value, tanf.denial_reasons.

  • Fixture packs. default words the eight reasons its decision answers; test-max words those and residency_not_verified; test-min runs no TANF and has no rows.

TANF personal-responsibility types: [[tanf.personal_responsibilities]] (#3505)

The requirements a State conditions assistance on (42 USC 608(b)) are its own. A pack that enables TANF declares each type a personal-responsibility record may name:

[[tanf.personal_responsibilities]]
code = "school_attendance"     # [a-z0-9_]{1,64}; unique in the table
label = "School attendance"    # what a worker reads
  • Boot. canopy-tanf refuses to start on a missing or empty table, a row with a key other than these two, a malformed or repeated code, and a blank label, naming the key and the row.

  • Write. POST /v1/personal-responsibilities/{application_id} answers 422 unknown_requirement_type for a type the pack does not declare. The stored column lists no values, so a record keeps a code the pack later drops.

  • Citation. The array is cited as one value, tanf.personal_responsibilities.

  • Fixture packs. default declares five types; test-max declares those and work_orientation.

TANF sanction steps: [[tanf.sanction_steps]] (#3506)

A State's work-sanction ladder is its own: how many steps, what each does and for how long. A pack that enables TANF declares one row per step:

[[tanf.sanction_steps]]
level = 1                   # integer from 1; unique; the level stored for a person on this step
code = "first"              # [a-z0-9_]{1,64}; unique
label = "First sanction"    # what a worker reads on the roll-up
months = 3                  # any further keys are the pack's own
  • The pack's own keys. canopy-tanf reads level, code and label and interprets nothing else. It hands the whole row of the applicant's stored level to tanf-eligibility as context.sanction_step (null for an applicant on no step), so a decision can read whatever the pack wrote there. A date or time value is refused: a decision cannot read one, so write it as a string.

  • Boot. canopy-tanf refuses to start on a missing or empty table, a level that is not an integer from 1 or is repeated, a malformed or repeated code, and a blank label, naming the key and the row.

  • Determination. A person stored at a level the pack declares no step for is refused with 502 before the decision is asked. Dropping a step people are still on therefore stops their determinations; the roll-up counts them as undeclared_level_count.

  • Roll-up. GET /v1/tanf/sanctions/rollup and the supervisor panel count people per declared step and show each step's label.

  • What it does not do. Nothing in canopy imposes, cures or lifts a sanction yet (#3512): the rows describe the ladder and do not move anyone along it.

  • Citation. The array is cited as one value, tanf.sanction_steps. [tanf.sanctions], which no code read, is gone from every pack.

  • Fixture packs. default declares levels 1 to 3; test-max declares a fourth.

TANF standards and supplemental payments: [tanf.standards], [[tanf.supplemental_payments]] (#3508)

A pack names its own financial standards and may declare payments it makes beside the grant:

[tanf.standards.family_maximum]          # any name of [a-z0-9_]{1,64}
by_household_size = [155, 235, 280]      # whole dollars for 1, 2, 3 people
each_additional = 17                     # per person past the table
# or: amount = 100

[[tanf.supplemental_payments]]
code = "crisis_payment"                  # [a-z0-9_]{1,64}; unique; the stored payment_type
label = "Crisis payment"
amount = { standard = "family_maximum", multiplier = 4 }   # or { cents = 10000 }
  • Standards. A standard is amount or by_household_size with each_additional. canopy-tanf refuses pct_fpl and individual/couple at boot, naming the standard: it loads no poverty guideline. Every named standard is also resolved for the unit's size and handed to the determination's decisions (TANF decisions, standards and values: the four decisions, [tanf.standards], [tanf.values] (#3507)).

  • Payments. The table is optional. A pack that makes no such payment declares none, and the create route then answers 422 unknown_payment_type for every code. An amount is exactly one of the two forms, with whole numbers from 0; a standard it names must be declared. canopy-tanf refuses to start on a malformed row, a repeated code, a blank label or an undeclared standard, naming the key and the row.

  • Recording. POST /v1/supplemental-payments prices the payment from the row: the flat cents, or the multiple of the standard read at the request's unit_size (at 1 when absent). The stored payment_type lists no values in SQL, so a row keeps a code the pack later drops.

  • What the eligibility decision reads (#3522). tanf-eligibility is handed, on each of input.members[], supplemental_payments.<code> for every declared code: count (payments recorded with the member as payee and effective on or before the evaluation day) and months_since_last (whole calendar months from the newest of them to the evaluation month, 0 for one in that month; null when there is none). A code the member was paid that the pack has since dropped is handed too. canopy-tanf compares neither to anything: a rule such as one payment in a lifetime, or a wait after one, is the decision's, against a value the pack names. canopy-tanf refuses to start on a decision that reads .supplemental_payments.<code> for a code the pack does not declare, and canopy config check reports the same as tanf-decisions; a read written with brackets is not seen by either. The create route still records a payment whatever the decision would say (#3515).

  • Citation. The payments array is cited as one value, tanf.supplemental_payments; a standard's keys are cited as any table's.

  • Fixture packs. default declares one flat type and no standard; test-max declares a family_maximum standard, a flat type and a type priced at four times that standard, and its eligibility decision denies within crisis_payment_wait_months of a crisis_payment to a member.

TANF count exclusions: [[tanf.count_exclusions]] (#3518)

The reasons a worker may give when recording months that do not count toward a time limit for a person. Federal law names one such case (45 CFR 264.1(b)(1)(ii)) and a State may have its own, so the reasons are the pack's:

[[tanf.count_exclusions]]
code = "hardship_area"                   # [a-z0-9_]{1,64}; unique; the stored reason
label = "Lived in a hardship area"       # what a worker reads
  • The table is optional. On a pack that declares none, POST /v1/time-limits/{person_id}/exclusions answers 422 unknown_exclusion_reason for every reason.

  • A row takes code and label and nothing else. canopy-tanf refuses to start on any other key, a malformed or repeated code, or a blank label, naming the key and the row.

  • The stored reason lists no values in SQL, so a row keeps a code the pack later drops.

  • Citation. The array is cited as one value, tanf.count_exclusions.

  • Fixture packs. default declares one reason; test-max declares two others.

TANF counters: [[tanf.counters]] (#3519)

canopy-tanf counts months toward the federal limit itself (ADR-055). A pack whose State counts months in another way declares a counter for each:

[[tanf.counters]]
code = "recent_months"                   # [a-z0-9_]{1,64}; unique; never "federal"
label = "Months in the last twelve"      # what a worker reads
window_months = 12                       # optional: a whole number from 1
  • The table is optional. canopy-tanf refuses to start on a key other than these three, a malformed or repeated code, the code federal, a blank label, or a window that is not a whole number from 1, naming the key and the row.

  • Who counts. tanf-unit-member may return counted_toward, a list of counter codes, for a member; a decision that returns none counts none. The answer is kept on the member's unit row. A code the pack does not declare refuses the determination (502, nothing stored).

  • When. For each month the determination counts (approved, in effect at the month's end, a benefit issued), the job writes one ledger row per member and code. The federal counter's own tests (head or spouse, federal funds, an exempt clock) do not apply to a pack's counter. An exclusion recorded for the counter does: POST /v1/time-limits/{person_id}/exclusions accepts a declared code as its counter.

  • What the decision reads. tanf-eligibility is handed, on each of input.members[], federal_months (the member's clock's opening months plus their federal ledger months) and counters.<code> for every declared code: total (months counted, up to the evaluation month), in_window (how many of them fall in the window_months calendar months that end with the evaluation month; null for a counter with no window) and months_since_last (whole months since the last counted month, 0 when the evaluation month is counted; null when none is). canopy-tanf compares none of them to anything: the limit is the decision's, against a value the pack names.

  • Checked. canopy-tanf refuses to start on a decision that reads .counters.<code> for a code the pack does not declare, and canopy config check reports the same as tanf-decisions. A read written with brackets (counters["code"]) is not seen by either.

  • Citation. The array is cited as one value, tanf.counters.

  • Fixture packs. test-max declares recent_months with a twelve-month window, counts every included member toward it, and denies at its recent_months_limit value; default declares none.

TANF decisions, standards and values: the four decisions, [tanf.standards], [tanf.values] (#3507)

A pack that runs TANF carries four decisions, and canopy-tanf refuses to start on a stack that lacks one, naming the file. ADR-054 states what each reads and returns.

File Decides

tanf-dependent-child.json

whether one member is a dependent child

tanf-unit-member.json

one member's place in the unit, whether they count toward its size and their income counts, and which of the pack's counters their months count toward (TANF counters: [[tanf.counters]] (#3519))

tanf-eligibility.json

the counted income, the tests and the verdict

tanf-benefit-calculation.json

the grant, and whether it is issued

[tanf.values]                            # whole numbers; names of [a-z0-9_]{1,64}
dependent_child_age_limit = 18
earned_income_disregard_dollars = 250
minimum_benefit_dollars = 10
  • Standards. The decisions read context.standards.<name>: every standard of [tanf.standards], in dollars for the unit's size. The names are the pack's; canopy-tanf reads none of them by name for a determination.

  • Values. The decisions read context.values.<name>. canopy-tanf passes the table as written and refuses to start on a value that is not a whole number or a malformed name. State a value in the unit a decision uses it in: a decision expression carries no numeric literal (cargo xtask rules lint-inputs), so it cannot convert cents to dollars.

  • Deprivation basis (#3509). tanf-eligibility returns deprivation_basis (the basis it judged the unit on, or null) and deprivation_provisional (true when the pack's own rule supplied it and no recorded fact did). deprivation_provisional is required of every output: canopy-tanf refuses a determination without it (502, nothing stored). canopy-tanf signs both into the determination's program_extension and marks the basis provisional in the derivation graph. canopy-eligibility sends no basis until one is captured, so a pack that wants a unit approved without a recorded basis states that rule in this decision. default gives a provisional basis to a unit with a dependent child and at most one other member; test-max infers none.

  • Checked at boot. canopy-tanf refuses to start, naming the file and every name, on a decision that reads a context.standards or context.values name the pack does not declare, any context.standards name in a per-member decision (those two are sent the values only), any context.thresholds name (no TANF determination decision is sent a threshold), or an input name canopy-tanf does not send it. The engine would hand the decision null for any of these, and a needs test against null passes. Keys that start with _ (_comment, _description) are notes and are not checked; context.sanction_step.<key> is the pack's own row and is not checked.

  • Pack check (#3510). canopy config check reports, as tanf-decisions, a pack that enables TANF without one of the four decisions, a decision that reads a standard or value the pack does not declare, and a per-member decision that reads a standard. What a build sends as input is the build's to say, so only canopy-tanf's boot check holds a decision to it.

  • The State's time limit (#3520). canopy-tanf enforces the federal limit itself and knows no other. A State with a shorter limit names it in [tanf.values] and compares input.time_limit_months_used (the applicant's federal count) with it in tanf-eligibility; [tanf].time_limit_months is no longer read. A decision reads the pack's current value, so a changed limit applies to everyone at their next determination: no clock keeps the limit it began under. The fixture packs differ: default names 60 months, test-max 36.

  • Period and review (#3521). tanf-benefit-calculation returns review_months, a whole number from 1: the months from the evaluation day to the day the case is due for review, which canopy-tanf signs as the determination's renewal_date. It is required: canopy-tanf refuses a determination without it (502). The decision may return certification_months, a whole number from 1, for an approval that ends (its last day is the day before that anniversary); absent or null, the approval has no end and no expiration_date is stored or signed. A fractional or zero count is 502. [tanf].certification_months is no longer read, and the decision is no longer sent effective_date and expiration_date: one that reads either refuses boot. Nothing schedules or acts on a review day yet (#824). The fixture packs differ: default certifies six months and reviews at six; test-max's approvals have no end and are reviewed yearly.

  • Funding. tanf-benefit-calculation returns federally_funded, true or false, on every evaluation: whether federal TANF funds pay the grant in whole or part. canopy-tanf refuses a determination without it (502). Only a month of a federally funded grant counts toward the federal time limit (45 CFR 264.1(b)(2); ADR-055). The fixture packs differ: default answers true, test-max false.

  • Removed keys. [tanf.financial_standards], [tanf.earned_income].disregard_amount_cents and [tanf].minimum_benefit_cents are no longer read.

  • Text. A non-ASCII character in a decision's string literal is written as the character itself: the engine does not un-escape \uXXXX inside an expression.

  • Fixture packs. default and test-max answer differently on purpose: test-max leaves a member outside the unit out of its size and its income and sets the dependent-child age limit to 19, so a test on both proves canopy-tanf follows the pack's answer.

TANF work-activity limits: limit_role and [tanf.participation] (#2193)

Two federal limits decide which TANF work-activity hours count: job search and job readiness assistance (45 CFR 261.34) and vocational educational training (42 USC 607(d)(8)). Every number they apply — the 12-month lookback, six weeks or twelve in a needy State, the 20- or 30-hour week and its 72-month under-six cutoff, the four-week bar, the three-to-four-day partial week prorated to five days once per lookback, and twelve lifetime months of vocational training — is federal data in the federal layer’s tanf-work-activity-limits.json, cited key by key in the federal layer’s citations.toml. A pack declares only what is the State’s:

limit_role on [[tanf.work_activities]] — "job_search_job_readiness" or "vocational_educational_training" on the one row that carries each limit. services/canopy-tanf/src/participation/pack.rs refuses the pack at boot, naming the key, on any breach: rows parse strictly, so a removed cap_weeks_per_year / cap_months_lifetime key is refused by name; every code is unique and non-blank and every label non-blank; at most one row carries each role, and a role row is core = true.

[tanf.participation] — required when a row carries the job-search role and refused otherwise, every key required:

Key Constraint and meaning

week_starts_on

where each 261.34(d) seven-day week begins — the week the bar counts, the week a partial-week credit covers and the week the summary’s scope reads. "sunday" … "saturday", lower case: every week begins on that weekday. "first_participation_day": a week begins on the first day with job-search hours; weeks then run back-to-back, seven days each, while each has hours; when the seven days after a week hold none the run ends, and the next day with hours begins a new week (so the days between runs are no week at all, and a new run starts the bar’s count afresh). Month segments and each month’s 12-month limit window are the same under either anchor

partial_week_credit

true or false, no default: the 261.34(e) election, the tanf.job-search-partial-week option (compliance/federal-options/tanf.toml). canopy records no attended days yet, so an elected credit reports unavailable in the summary’s cap_usage

[[tanf.participation.needy_state_periods]]

a non-empty list of { start, end_exclusive, needy }: half-open periods whose bounds are first-of-month dates (YYYY-MM-01, as a quoted string or a TOML date), ascending and contiguous (no overlap, no gap), each declaring needy explicitly — the 261.34(b) designation for every month it covers. A month the job-search limit reads outside every period is refused with 422 needy_state_undesignated, never assumed; extend the periods before they run out. The limit reads back to the start of a person’s unbroken job-search history (the replay starts after 12 months without job search), so a history continuous from before the first period is refused the same way until the pack declares earlier periods

canopy-tanf also refuses to boot when the federal file’s child_under_six_cutoff_months differs from [tanf.wpr].young_child_months_max — two statements of one "child under six" (until #2210 moves the WPR constants). The week itself is not pack data: a caseworker records a dated work-standard basis (canopy-tanf API › work-standard basis), and the summary refuses a month with none (422 work_standard_unrecorded).

Values per pack (week start, credit, needy periods): georgia first_participation_day, false, not needy 2020-10-01 to 2027-10-01; default sunday and otherwise the same; test-max monday, true, not needy 2020-10-01 to 2026-07-01, then needy to 2027-10-01; test-min has no role row and no table. georgia cites its week anchor to PAMMS TANF 1820 (Guidelines for Job Search and Job Readiness, MT 80): "In determining the 4-week consecutive participation, a week consists of seven consecutive days. Any hours of participation in JS/JR during the course of a 7-day period triggers a week of the 4-week limit" — a participation-triggered week, per the maintainer’s ruling on #2193 — and its election and periods as operational (the maintainer’s confirmation on #2193, 2026-09-25); default and test-max cite the week anchor and the periods as fixture and the election as option_registry (source_ref = "tanf.job-search-partial-week").

TANF WPR retroactive period: [tanf.wpr].count_retroactive_assistance_period (#3194)

The 45 CFR 261.22(d)(2) / 261.24(d)(2) option: a State that pays benefits retroactively, for the period between application and approval, may consider the family to be receiving assistance during it. canopy-reporting reads the flag when it builds each TANF determination's assisted period for the ACF-199 extract (canopy-reporting API). When true, the period starts on the determination's effective_date; when false, on the later of that date and the legal day the determination was decided. A family assisted for only part of the month counts in a WPR numerator when it meets the standard in each full week of that period (#3195). The key is required: a pack with [tanf.wpr] and no flag refuses to boot canopy-reporting.

Values per pack: georgia false, cited to 261.22(d)(2) (no State Plan election is pinned, though PAMMS TANF 1105 pays a retroactive stretch); default false and test-min false, the federal default; test-max true, a fixture election.

The default reference ruleset: no jurisdiction, no borrowed authority

fixtures/config/default/ is the reference pack a deployment copies until it authors its own, so an operator can start the stack and run Studio’s onboarding wizard. It began as a deep copy of the georgia pack, which meant an unconfigured deployment mailed letters signed by another state’s department and cited that state’s manual as its authority; #1856 removed both halves. Two rules hold, and cargo xtask policy audit enforces the second:

Identity is a placeholder, never a jurisdiction. Every agency-identity value in fixtures/config/default/ and the neutral templates of fixtures/config/notices-neutral/ — jurisdiction name, agency name, agency and hearing-office addresses and phones, the [notices.acp] substitute address, theme.toml branding — is a bracketed [ALL CAPS] placeholder an adopting jurisdiction replaces. A rendered notice or portal page showing [AGENCY NAME] is a deployment that was never configured, which is the honest outcome. Three carve-outs, because a bracketed string in a machine-consumed field would be worse than a neutral one:

  • Routing slugs an adapter consumes take a neutral slug — wage_match_source = "reference_swr", not a placeholder.

  • Domain- and URL-shaped fields take RFC 2606 reserved names (idp.toml domain_match = ["@example.org"]), so they can never match a real agency mailbox.

  • fips_state_code is validated against the canopy-reference FIPS table and cannot hold a placeholder: it is 74 (U.S. Minor Outlying Islands), a real code with no population and no SNAP/NAP program — the same device fixtures/config/test-min (69) and fixtures/config/test-max (60) use.

  • form_number (#1868) prints bare in a notice footer, so every entry in the neutral fixtures/config/notices-neutral/notices/manifest.toml is the route-derived placeholder FORM-<PROGRAM>-<TEMPLATE-KEY> (FORM-SNAP-NOA-APPROVAL); the test no_jurisdiction_ruleset_renders_a_reference_placeholder derives every form_number from its [templates.<program>.<key>] section and rejects a real jurisdiction’s tree that carries one. The real codes stay in the georgia pack’s notices/manifest.toml.

Authority is federal or fixture, never a jurisdiction’s. A citations.toml row in fixtures/config/default/ may carry only an authority from canopy_policy::citation::DEFAULT_RULESET_AUTHORITIES — federal, federal_register, fns_memo, acf_guidance, option_registry (federal by reference; validate_option_registry_refs proves the registry row exists), or fixture (a demo value with no external legal authority; staleness-exempt, value drift still caught by ValueMismatch). A state manual (pamms), state law (state_statute) or the authority-free manual / operational raises NonFederalAuthorityInDefaultRuleset; the mirror rule (#761) is that fixture is legal only in fixtures/config/default and fixtures/config/test-*, and FixtureAuthorityInJurisdictionRuleset rejects it in a real jurisdiction’s tree. Each converted row keeps its pre-#1856 authority and source_ref in notes as provenance and points source_ref at this section; an adopting jurisdiction replaces the value and cites its own authority.

Values are the federal reading, or neutral (#3280). Where federal law sets a value, default carries that value and cites the statute or regulation with a federal authority. Examples: the 60-month TANF limit (42 USC 608(a)(7)), the 133% FPL Medicaid floors for infants, children and pregnant women (42 USC 1396a(l)(2)), and the Medicare Savings Program resource limits. Where the value is a state choice, default carries a neutral demo value cited as fixture, not another state's figure: the SUA amounts, no periodic-report phase-out, and the pack's own form-kind vocabulary. Where the choice is an optional election, default elects none: it carries no standard medical deduction (#3279). A key that names one state's program stays in the pack only while a loader requires it. Today those are canopy-medicaid's demonstration and waiver keys (#3279, #655); canopy-tanf's [tanf.grg] left with #3508. Its value is inert where that is possible, and it leaves when the loader stops requiring it. A key that no code reads is not carried. Workflow templates cite the CFR or this section, never another state's manual page.

Neutrality is gated. The rule is one sentence — packs declare vocabularies and values; shared Rust validates against the pack; a CHECK never pins a pack vocabulary; a template never names a state — and the neutrality stage of the battery (cargo xtask neutrality-lint, #2208) enforces it over the shared tree and over every configuration layer but Georgia’s (the fetched federal layer and every layer under fixtures/config/; never the georgia layer). In those layers a finding is an identity token in content — a Georgia, PAMMS or PeachCare value in a .toml, .json, .typ or .txt file outside comments and notes — a state_citation key or a non-neutral authority (one outside DEFAULT_RULESET_AUTHORITIES) in a citations.toml table, or a .json under fixtures/config/default whose top-level "name" starts georgia-; each is absorbed only by an owned, exact-count entry in compliance/neutrality-gate.toml, which the family fix that removes the site drains. The detectors, the config schema and the count rule: the xtask catalog.

Adding a ruleset

  1. Create {program}-{name}.json in the layer that owns the decision.

  2. Set the JSON "name" field to the file’s name without .json (snap-eligibility.json is named "snap-eligibility"). canopy-rules registers a decision under this field and every service asks for the file’s name, whatever the jurisdiction, so the two must agree: cargo xtask rules check fails a file whose name is not its file stem (#3369).

  3. Set "version" to whatever string helps a reader of the diff (v2.1 and 2026.1.2 both occur in the tree): canopy-rules never parses it (GET /v1/rule-sets/{name} returns the parsed file in full, version included), and the version a determination records — and a ?corpus_hash= replay resolves — is the corpus content hash (ADR-006 Amendment 2).

  4. canopy-rules reads every configuration layer’s top-level *.json at startup, federal first and the jurisdiction layer overriding (Layers and the manifest); rulesets are versioned in git and reloaded only on service restart (no runtime mutation path).

  5. Test: POST /v1/evaluate to canopy-rules with {"rule_set_name": "snap-eligibility", …​} (add ?trace=true for a node-by-node execution trace).

The decision contract, checked at boot

A decision reads policy values at context.thresholds.<path> and per-applicant data at input.<name>, and the service that evaluates it sends both. The two are versioned apart: the decision comes from a configuration layer, the service from a canopy release. The expression engine evaluates a reference the service does not send as null, without an error, so a decision ahead of the running build would decide wrongly in silence.

canopy-snap and canopy-wic therefore check, at boot, each decision they evaluate, on the file the configuration resolves (#3370):

A decision that reads a threshold or an input the build does not send refuses the start, naming the file, the decision and every such value; so does a configuration that ships no file for the decision. A service may send more than a decision reads, and a threshold sent as null (an option the pack did not elect, such as the BBCE limits) counts as sent. The check is canopy_rules_client::contract::check; it reads the decision's text and evaluates nothing.

Adding a reference to a decision is therefore a two-step change: the canopy release that sends the value first, then the configuration that reads it.

ADR-003 compliance

All eligibility logic must live in JDM rulesets or jurisdiction.toml, not Rust.

  • Federal regulation values (FPL, thresholds, penalty periods, qualifying hours) → jurisdiction.toml or the federal layer’s *.json.

  • Eligibility decision logic (income tests, categorical eligibility, alien eligibility) → JDM rulesets.

  • Rust only assembles input, calls the rules engine, and parses output.

  • Policy changes are data changes — no code deployment for threshold updates.

  • A missing required jurisdiction.toml key refuses to boot and names the key; nothing silently defaults. The cargo xtask policy audit-unwraps gate fails on .unwrap_or(<numeric literal>) in any params.rs (xtask/src/cmd/policy.rs).

Extension modules

A waiver that needs records, checks or outcomes of its own is not pack data: it is an extension module (ADR-052), a bundle under extensions/<name>/ holding extension.toml, module.wasm and migrations/*.sql. A layer ships at most one. Today one service offers one extension point, canopy-medicaid's admission gate (the determine route), and lets a module answer its determination decisions (decision interception, unsupported).

[extension]
name = "enrollment-cap"
version = "0.1.0"
contract = "1.0"              # the major version of canopy-extension.wit

[limits]                      # per call; each is required and has a ceiling
fuel = 5000000
memory_bytes = 16777216
statement_timeout_ms = 2000
lock_timeout_ms = 2000
max_statements = 16

[[extends]]
service = "medicaid"
points = ["admission"]
# decisions = ["medicaid-residency"]   # unsupported: the module answers these in the rules engine's place

[settings]                    # text values the module reads through the host
cap = "2"

A pack whose module withholds must route a letter for it: a medicaid.determined entry with status = "withheld" in the notices manifest, forwarding outcome_label and outcome_reason. canopy-notices fails a withheld determination that has no route.

Edit this page · default