Policy Currency Runbook
The moving parts
|
Deterministic, blocking. Validates both citation families — jurisdiction (the pack’s |
|
Clones/pulls the PAMMS source repos into |
|
Advisory, never edits values. Re-syncs (unless |
When drift fires
A CHANGED: finding means the upstream manual section changed since the
value was last verified — it does not mean the value is wrong. For each
drifted source file:
-
Re-read the section in the policy cache (
target/policy-cache/{j}/<source_ref>, anchor in the citation’ssectionfield). The drift report lists every affected citation with itsmanual_transmittal/effective_date/verified_datecontext. -
If the value changed upstream: update
jurisdiction.toml, then the citation (value,effective_date,manual_transmittal,notes), and setverified_dateto today. -
If the value is unchanged (editorial churn, unrelated edits in the same file): bump the citation’s
verified_dateto today. -
Re-pin:
cargo xtask policy sync-cache --jurisdiction {j} --pin— the new hashes commit with your MR, and drift returns to clean.
A MISSING UPSTREAM: finding means the cited file no longer exists in the
refreshed cache (moved or deleted upstream): find the section’s new home,
update the citation’s source_ref, re-verify, re-pin.
When the audit fires
-
ORPHAN:— a citation targets a key/value that no longer exists. Fix the key, remove the citation, or (only when the value genuinely lives in JDM rule content / service code) allowlist it with a written reason incompliance/adr-031-citation-orphan-allowlist.toml. -
ALLOWLIST-STALE:— an entry in that orphan allowlist matches no citation (crates/canopy-policy/src/citation.rs, #1168). It is an error, not a warning: restore the citation the entry was written for, or retire the entry. -
OUT-OF-WINDOW:— an indexed federal family’s newest table predates the current annual window (warning inside the family’s publication grace, error after). Transcribe the new federal tables (FNS COLA / HHS FPL / ACF SMI / CMS-416 instructions) into a new*-{year}.jsonin the federal layer, cite it, and assign it inindexing.tomlif the pattern doesn’t already match. Step-by-step: The annual federal cycle. -
UNINDEXED:— a new federal data file has noindexing.tomlfamily. Declare its cutover cadence or add it to thestaticfamily. -
MISSING:/MISMATCH:/SCHEMA:— forward completeness, value consistency, and citation-schema findings per ADR-011; fix the cited value or the citation. -
STALE:(warning) —verified_dateolder than--max-staleness-days(default 365): re-verify the value against its source and bump the date (re-pin while you’re there). Citations withauthority = "fixture"— the syntheticfixtures/config/test-*andfixtures/config/defaultvalues — are exempt, because their source is versioned in this repo rather than upstream (#761).
The annual federal cycle
The federal layer’s indexing.toml declares each family’s cutover and grace
window, and the audit flags an out-of-window family automatically, so the
calendar enforces itself. Four indexed families ship today; everything else
belongs to static.
| Family | Cutover | Grace | What to do, and when |
|---|---|---|---|
|
Oct 1 |
0 days |
FNS publishes the SNAP COLA memo in August, effective at the federal fiscal-year start — publication precedes the cutover, so the family carries no grace (#1839). Stage the three new |
|
Jan 1 |
90 days |
HHS publishes the poverty guidelines in mid-to-late January; programs adopt on publication. Add |
|
Oct 1 |
30 days |
ACF publishes the SMI estimates on the LIHEAP cycle (45 CFR 96.85 — "by October 1 of each year, or by the beginning of the State fiscal year, whichever is later"); the IM lands around April and adoption is mandatory at the federal fiscal-year start. Add the new edition as |
|
Oct 1 |
90 days |
CMS-416 EPSDT reporting constants track the federal fiscal year; the instructions update ahead of the reporting cycle. |
Gate a new federal file with cargo xtask policy audit --source federal
(citation, indexing window, schema — CI job adr-031-federal-audit) and
cargo xtask rules check (JDM compile). A table carried forward unchanged
because its successor has not published yet is marked PROVISIONAL: in its
source_ref, with the replacement issue named in notes.
How canopy-snap selects a SNAP COLA set
canopy-snap discovers every snap-{allotments,deductions,income-limits}-*.json
at boot, groups them into complete triples by their _effective_date header,
and selects the set in force at each determination’s evaluation date
(services/canopy-snap/src/param_sets.rs). A set’s validity is intrinsic:
[_effective_date, first-Oct-1-after). Consequences when staging a fiscal year:
-
Drop the three new files beside the old ones — never replace or delete them. Old sets keep replay and audit identity; git is the byte retention (ADR-003).
-
A triple must be complete for its date and its
_fiscal_yearvalues must agree, or the service refuses to boot. -
Each set reads its minimum benefit and homeless shelter deduction from its own files, so the October COLA moves them with the rest (#3229). The earned-income percentage is still duplicated in
snap-budgeting-factors.jsonand must agree — a divergent edit is a boot error, not silently inert (single-sourcing the rest is #1478). -
After the old set’s October 1 expiry with no successor staged, determinations fail closed (422).
CANOPY_SNAP__ALLOW_EXPIRED_PARAM_SET=trueis the accountable override (services/canopy-snap/src/config.rs; error-logged per use). -
A staged set is previewable before its window opens (#1472): restart, read its digest from
GET /v1/params/provenance?as_of=<cutover date>, then dry-run a case withtarget_policy {corpus_hash, params_digest}. The preview is write-free and echoes the resolved window.
The directory’s own conventions — the file index, the citation and indexing
model, and the synthetic test-min / test-max fixture blocks — are in
the federal layer’s README.adoc, next to the data.
New jurisdictions
A jurisdiction with a git-backed, PAMMS-like manual system gets the full
loop (sync → pin → drift) via [policy_source] in its jurisdiction.toml
(canopy_policy::source::GitPolicySource). A jurisdiction without one uses
type = "manual": citations carry authority = "manual", every resolution
answers manual-verification-required (ManualSource), and currency rests on
the staleness check + the jurisdiction’s own verification process.