SNAP certification categories, fixed-income types and the period ceiling are pack data (#2209, epic &128)

Status: Done (2026-09-22) — !1485
Epic: &128
Issues: #2209
Branches: fix/2209-certification-vocabulary (carries this page)

This is a Design + Scope plan: GitLab owns tracking, #2209 carries the brief, the plan freezes when U-A starts. One MR — page + nav, U-A, U-B, U-C, U-D, the Done flip — one battery.

Erratum (2026-09-22): the manual POST’s period bound is the jurisdiction’s ceiling [snap.certification].max_certification_months (422 certification_period_exceeds_ceiling), not the row’s months — the row’s months is the JDM’s assignment, a worker-declared period is an operator action bounded by the jurisdiction’s maximum, and the fixture corpus certifies 12-month standard households for the periodic-reporting scenarios; the default pack’s elderly_disabled label is "Elderly or disabled" (its 273.10(f)(1) row carries no earned-income condition); the JDM description prose paraphrases the thresholds path so the sync checkers do not read it as a reference. Renewals' CategoryPolicy carries no separate convertible field — convertibility is converts_to.is_some() (the pack row still declares both; the loader enforces their agreement). Verification step 3 ran as unit pins only: the default pack does not boot canopy-renewals (no [snap.materiality], pre-existing on main — #2220); the georgia and test-max stacks ran live.

Context

#1703 (plan &96) made the certification period a jurisdiction decision — the length and the category come from each pack’s {slug}-snap-certification-period JDM decision — but pinned the VOCABULARY in Rust and SQL:

  • crates/canopy-contracts-snap/src/certification.rs:25-41 closes CertificationCategory to Chart 3105.1’s four tokens (standard, elderly_disabled, senior, abawd); crates/canopy-contracts-renewals/src/certifications.rs:171-207 re-enumerates them as CertificationType on the public certification POST.

  • services/canopy-snap/src/certification_period.rs:620 compiles MAX_CERTIFICATION_MONTHS = 36 (Georgia’s Senior SNAP ceiling; 7 CFR 273.10(f) allows 24); :559-569 compiles the PAMMS 3725:36 fixed-income set into the fixed_income_only fact.

  • Four token parsers: services/canopy-renewals/src/continuation/rules.rs:18-47, services/canopy-renewals/src/store.rs:1813-1835, services/canopy-eligibility/src/enrollment_state.rs:178-184, plus the enum’s own FromStr.

  • Six SQL CHECK lists (renewals snap_certs_type_check, snap_cert_adj_new_type_vocab_chk, snap_cert_adj_category_vocab_chk, snap_renewal_decisions_type_check, the inline CHECKs on snap_universe_snapshot_rows.certification_type and enrollment_continuations.certification_category), a DEFAULT 'standard' on snap_certifications.certification_type (services/canopy-renewals/migrations/20260401000000_create_renewals_tables.sql:12) and the D13 SQL == Rust pin (services/canopy-enrollment/src/continuation/infra_tests.rs:462-468).

  • The worker select with Georgia’s months in the labels (services/canopy-web/templates/cases/_det_action_form.html:84-90, docs/modules/ROOT/pages/guide/caseworker.adoc:247), the e2e union (tests/e2e/lib/helpers.ts:846-848), two e2e reads of the flat standard length (tests/e2e/lib/given/determine.ts:437, tests/e2e/specs/journey-snap-timely-recert.spec.ts:180) and the seed tool’s reads and emissions of the legacy keys and names (tools/canopy-seed/src/jurisdiction.rs:193-201, tools/canopy-seed/src/datagen.rs:4420).

  • Behaviour keyed on the Senior name — the periodic-reporting waiver (services/canopy-renewals/src/periodic_reports.rs:176-185), the convert endpoint (services/canopy-renewals/src/api/mod.rs:477-486, writing a hard-coded standard, services/canopy-renewals/src/store.rs:223) — and on Standard for interim contact (services/canopy-renewals/src/certification.rs:52-67); two ESAP-only inputs REQUIRED of every pack (crates/canopy-contracts-snap/src/determine.rs:428-442), so test-min carries a senior length it never uses.

The neutrality gate (#2208) holds all of this under 17 allowlist entries and six declarations that fail as stale the moment the #2209 MR lands.

What is already right stays: the assignment is a per-pack JDM decision with a row per category and a cited length; the five facts canopy-snap derives (CertificationFacts, certification_period.rs:85-100) are the inputs; the event carries certification_category beside assigned_certification_months; the token rides the in-cert conversion and the recert successor; every approval arm already prices its period from the JDM’s assigned months (services/canopy-snap/src/determine.rs:453-456,520-523), so the flat [snap.determination].standard_certification_months only rides the policy bundle (:183,217) and the seed tool.

Rulings in force: no in-code policy fallback (#1147) and no silent policy-material default (ADR-034 §3 — an absent ESAP table makes its facts unknown, never a value); pre-1.0, forward-only, the devstack reseeds; the neutrality rule (packs declare vocabularies; shared Rust validates against the pack; a CHECK never pins a pack vocabulary; a template never names a state); expedited is the ONE Rust-minted certification type (federal, 7 CFR 273.2(i)); the neutrality gate’s N3 treats a ~ / LIKE CHECK on a declared column as unsupported, so the replacement CHECKs are length-only; the seed tool under tools/ is dev fixture generation outside the gate’s shared scope.

Scope

In scope

  • The pack schema (D1) in all four packs with citations; the JDM threshold path; the fixture divergence (test-max names its ESAP row elderly_simplified).

  • canopy-snap: the table-driven CertificationPolicy, validation of the decision against the pack ROW, the ESAP table optional, policy-bundle v9 and the shared snapshot cap, the threshold-sync checker, the seed tool (D3).

  • The two contracts newtypes with validating deserialization and the enrollment contract check (D2); renewals, enrollment and eligibility write-time validation or pass-through, the flag-driven behaviour, the convert target, the manual-creation ceiling, the two migrations dropping six constraints and one default (D4); the worker select, the e2e helpers and a new relational spec (D5); the gate drain with per-entry dispositions, OpenAPI, docs, CHANGELOG (D6).

Out of scope

  • New facts or new inputs for a category a pack might want (a pack whose rows need a fact canopy-snap does not derive is the #2216 extension avenue).

  • The expedited postponed-verification lengths ([snap.expedited], 7 CFR 273.2(i)(4)) — federal, untouched.

  • The periodic-reporting model itself (#956 lineage) beyond keying the waiver on a row flag; the conversion reasons (already pack data, #1800); the ABAWD clock vocabulary (its gate entry is re-homed, D6); renaming the seed tool’s reserved rows (D3).

  • Medicaid/TANF vocabularies (#655, #2210) and the other &128 families.

Design

Decisions

# Decision

D1

Pack schema. In rulesets/<slug>/jurisdiction.toml:

  • rows — code (^[a-z][a-z0-9_]{0,63}$, unique; expedited forbidden), label (non-empty), months (1..=max_certification_months), the four REQUIRED booleans periodic_reporting_waived, interim_contact, worker_declarable, convertible, and converts_to (REQUIRED iff convertible = true, forbidden otherwise; must name a declared row with convertible = false AND periodic_reporting_waived = false — a conversion exists to restore reporting, 3730:65). Rows as (label, months, waived, interim_contact, declarable, convertible[, converts_to]):

    • georgia — standard (Standard, 6, f, t, t, f) · elderly_disabled (Elderly/disabled, no earned income, 12, f, f, t, f) · senior (Senior SNAP, 36, t, f, t, t, standard) · abawd (ABAWD, 4, f, f, t, f) — PAMMS 3105 Chart 3105.1, 3725, 3730:64; interim contact for standard only and every row declarable preserve today’s behaviour.

    • default — standard (Standard, 6, f, t, t, f) · elderly_disabled (Elderly or disabled, no earned income, 24, f, f, t, f) — 7 CFR 273.10(f)(1); no waiver, no convertible row.

    • test-min — standard (6, f, t, t, f) · elderly_disabled (12, f, f, t, f) · abawd (4, f, f, t, f).

    • test-max (its current months kept) — standard (12, f, t, t, f) · elderly_disabled (24, f, f, t, f) · elderly_simplified (Elderly Simplified, 36, t, f, t, t, standard) · abawd (6, f, f, t, f) — the fixture proves the vocabulary extends without code.

  • [snap.certification].max_certification_months — georgia 36 (PAMMS 3725), default 24 (7 CFR 273.10(f)(1)), test-min 12, test-max 36.

  • [snap.certification.esap] — ONE optional table that IS the snap.esap election (compliance/federal-options/snap.toml:28-31 registers the option; the table’s presence is the runtime election): senior_age_floor (georgia 65, test-max 65; replaces [snap].senior_snap_age_floor) and fixed_income_types (georgia and test-max ["social_security", "ssi", "veterans", "retirement"], PAMMS 3725:36; IncomeType tokens other than other), BOTH REQUIRED when the table exists. Cross-field rules at boot: a table without both keys → refusal; a row with periodic_reporting_waived = true or convertible = true in a pack without the table → refusal; the table in a pack with no waived row → refusal. Default and test-min carry no table.

  • Removed from every pack: [snap].elderly_disabled_certification_period_months, [snap].certification_period_abawd_months, [snap].certification_period_senior_months, [snap].senior_snap_age_floor, [snap.determination].standard_certification_months.

  • citations.toml: rows only for keys the pack carries — every pack: snap.certification.categories, snap.certification.max_certification_months; georgia and test-max additionally snap.certification.esap.senior_age_floor, snap.certification.esap.fixed_income_types; the rows for the five removed keys go in every pack (default :180 and test-min :308 carry the floor’s); fixtures authority = "fixture"; cargo xtask policy audit clean.

D2

Contracts.

  • canopy_contracts_snap::CertificationCategory becomes pub struct CertificationCategory(String) — the SHAPE rule (the D1 regex; expedited refused) is enforced in FromStr AND in deserialization (#[serde(try_from = "String", into = "String")]), so "", Senior and expedited are refused on the wire too; Display, as_str(), into_inner(); ALL, the four variants and UnknownCertificationCategory go (MalformedCertificationCategory { token } replaces it). SnapDeterminationCompleted.certification_category: Option<CertificationCategory> keeps its wire form (a string token).

  • canopy_contracts_renewals::CertificationType becomes pub struct CertificationType(String) with the same shape rule and the same validating serde form (here expedited is ACCEPTED), plus CertificationType::EXPEDITED = "expedited", CertificationType::expedited() and is_expedited(); it is no longer Copy (RecertVerdict, services/canopy-renewals/src/renewal_decisions.rs:62, drops the derive). CreateCertificationRequest.certification_type: CertificationType stays REQUIRED and caller-declared; the doc states the vocabulary is the booted pack’s declarable rows. certification_type_for(category) becomes the identity; the three parsers go (renewals rules.rs::parse_certification_type, store.rs::certification_type_from_token, eligibility enrollment_state.rs::parse_certification_type becomes the shape parse); every == CertificationType::Expedited comparison becomes is_expedited() — product sites services/canopy-eligibility/src/derivation.rs:665, services/canopy-eligibility/src/bulk/worker.rs:495, services/canopy-applications/src/api/mod.rs:1311, services/canopy-renewals/src/api/mod.rs:334-344; compile-revealed sites crates/canopy-test-lib/src/given/snap.rs:799, services/canopy-snap/src/se_deduction.rs, the tests under services/canopy-applications/tests, services/canopy-eligibility/tests, services/canopy-renewals/tests, crates/canopy-contracts-snap/tests/roundtrip.rs, crates/canopy-contracts-renewals/tests/roundtrip.rs. Eligibility never validates membership (it only asks "is this the provisional period?").

  • canopy_contracts_enrollment::check_certification_category validates the shape only (ContractViolation::CertificationCategory keeps its name; message "is not a certification-category token"); in its pin the former bad token senior_snap moves to the accepted list (shape-valid now) and Senior, "", expedited stay refused.

D3

canopy-snap, the shared snapshot cap, the checker and the seed tool.

  • services/canopy-snap/src/params.rs CertificationKeys::load reads the D1 table into Vec<CategoryPolicy { code, label, months, periodic_reporting_waived, interim_contact, worker_declarable, convertible, converts_to }>, max_certification_months, esap: Option<EsapInputs { senior_age_floor, fixed_income_types: Vec<IncomeType> }>; every D1 constraint and cross-field rule is a boot refusal naming the key; the four legacy month keys and the floor are no longer read and SnapParameters.certification_months (services/canopy-snap/src/determine.rs:113) goes.

  • services/canopy-snap/src/certification_period.rs: THRESHOLD_KEYS and CertificationThresholds go; build_certification_thresholds emits context.thresholds.certification_months.<code> = months for every row — ONE path everywhere: the JDM input, the bundle field and the derivation graph’s Param { key: "certification_months.<code>" } (the bundle doc at crates/canopy-contracts-snap/src/determine.rs:286-288 restates it); MAX_CERTIFICATION_MONTHS goes — parse_assignment accepts the decision only when a row with certification_category's code exists AND certification_months EQUALS that row’s months (anything else is the ruleset-defect ApiError::internal it is today, naming the code and the row’s months); is_fixed_income reads esap.fixed_income_types — no table → fixed_income_only = Unknown; all_members_at_or_above_senior_floor → Unknown without the table; CertificationAssignment.category: CertificationCategory; the AbawdStatus doc (:280) drops its Chart 3105.1 citation.

  • Policy bundle v9 (crates/canopy-contracts-snap/src/determine.rs:286-490): the four flat month fields and senior_snap_age_floor go; certification_months: Option<BTreeMap<String, u32>>, max_certification_months: Option<u32>, esap: Option<EsapBundle { senior_age_floor: u32, fixed_income_types: Vec<String> }> join — esap: None is the intentional not-elected state, and a v9 bundle whose esap is Some must carry both fields; CERTIFICATION_KEYS_REQUIRED_FROM = 9, CERTIFICATION_KEYS = certification_months, max_certification_months, abawd_age_min, abawd_age_max, elderly_age_threshold, age_of_majority, recert_timely_filing_day; the #1648 v5–v7 behaviour is untouched and no test asserts a v8 bundle without the v9 keys (the reseed leaves no v8 history). The shared cap DeterminationSnapshot::SCHEMA_VERSION_MAX (crates/canopy-contracts-eligibility/src/snapshot.rs:207) becomes 9 with its doc (retrieval, hearing views and recomputation call its guard); services/canopy-snap/src/main.rs:1629 pins schema v9; the benefit period on every approval arm — the expedited full-certification arm included — stays the JDM’s assigned months (7 CFR 273.2(i)(3)(ii): the normal period).

  • JDM: the four packs' snap-certification-period.json reference context.thresholds.certification_months.<code>; test-max's ESAP row outputs "elderly_simplified" and basis fixture_elderly_simplified; in the three fixture packs' files EVERY field the gate’s identity rule matches — node names such as Certification Period (Chart 3105.1), description and name fields — is reworded (the gate run with the entries deleted is the check); the canopy-rules fixtures (crates/canopy-test-lib/fixtures/rulesets/snap-certification-period*.json, default-snap-certification-period*.json) and services/canopy-rules/src/certification_period_tests.rs follow; the #761 boot guard unchanged. crates/canopy-reference/src/enums.rs IncomeType doc drops its PAMMS 3725:36 citation.

  • Threshold-sync checker: crates/canopy-test-lib/src/threshold_sync.rs:45 (extract_namespaced_refs) stops at the first .; it now captures dotted paths (certification_months.<code>) and the assertion resolves nested leaves against the thresholds JSON, so a typo’d code fails; a missing-category-key test pins it.

  • Seed tool (tools/canopy-seed/src/jurisdiction.rs:193-201, tools/canopy-seed/src/datagen.rs:4420): the dev seed’s scenarios need two rows it names — standard and elderly_disabled are RESERVED seed rows, read from (months from the rows; a pack without them refuses to seed, naming them). Declared here and in the tool’s module doc: the seed tool is dev fixture generation under tools/, outside the gate’s shared scope; a consumer pack that renames those rows adapts the seed tool, not the runtime.

D4

renewals, enrollment and eligibility — the token is pack-validated at write time; behaviour keys on the row’s flags.

  • services/canopy-renewals/src/params.rs loads the D1 table (load_certification); RenewalParams::category(code) → Option<&CategoryPolicy>. The manual POST (services/canopy-renewals/src/api/mod.rs:320-345): unknown or non-declarable → 422 certification_type_unknown naming the declarable codes; expedited keeps 422 certification_type_not_manual; the declared period must fit the row — certification_end_date ≤ certification_period(certification_start_date, row.months).end — else 422 certification_period_exceeds_category naming the row’s months (the default pack can no longer accept a 36-month certification).

  • periodic_reports.rs::periodic_report_required: expedited → false; a row with periodic_reporting_waived → false; else the threshold and phase-out test as today; the conversion-reason 422 text (services/canopy-renewals/src/periodic_reports.rs:120) says "the certification’s periodic-reporting waiver", not "Senior SNAP"; periodic_report_required_after_conversion (:223) keeps its shape because D1 forbids a waived conversion target — its premise is now enforced by the schema, stated in its doc. services/canopy-renewals/src/certification.rs::interim_contact_due_date: interim_contact → Some(start + interim_contact_months), else None. Convert (services/canopy-renewals/src/api/mod.rs:477-498): a row without convertible → 422 certification_not_convertible (renamed from certification_not_senior; the message names the convertible codes); the conversion writes the row’s converts_to — store::convert_certification takes the target token (services/canopy-renewals/src/store.rs:223, today a hard-coded standard); the endpoint’s utoipa description (:542) is reworded with it. continuation/rules.rs::desired_type, continuation/adjust.rs::resolve_category, determination_subscriber.rs (reinstatement and recert arms), renewal_decisions.rs, store.rs reads: the token passes through as CertificationType, membership checked once at each write (InputDefect::UnknownCategory names the pack’s codes).

  • Enrollment: services/canopy-enrollment/src/main.rs loads the category codes beside ; services/canopy-enrollment/src/continuation/arm.rs refuses an Inbound.certification_category outside them as an ArmDefect (DLQ, never an apply); services/canopy-enrollment/src/continuation/store.rs keeps Option<String>.

  • Two forward migrations (renewals <new>_certification_type_vocabulary_pack_owned.sql, enrollment <new>_continuation_category_pack_owned.sql) dropping six constraints and one default: DROP CONSTRAINT snap_certs_type_check, snap_cert_adj_new_type_vocab_chk, snap_cert_adj_category_vocab_chk, snap_renewal_decisions_type_check, and the inline constraints by PostgreSQL’s default names snap_universe_snapshot_rows_certification_type_check and enrollment_continuations_certification_category_check, each replaced by CHECK (length(<col>) BETWEEN 1 AND 64) and a column comment naming the pack key as the authority; ALTER TABLE snap_certifications ALTER COLUMN certification_type DROP DEFAULT (the column stays NOT NULL, so an INSERT omitting it fails); the D13 pin’s certification_category assertion goes (services/canopy-enrollment/src/continuation/infra_tests.rs:462-468); crates/canopy-contracts-renewals/src/universe_snapshots.rs carries the newtype.

D5

Worker portal and e2e. services/canopy-web/src/certification_categories.rs (new, the services/canopy-web/src/requestable_verification_types.rs shape): the declarable rows (code, label, months) loaded at boot (services/canopy-web/src/main.rs:110-116); _det_action_form.html renders <option value="{code}">{label} ({months} months)</option> from it and drops the PAMMS comment; services/canopy-web/src/api/actions_snap.rs::create_certification refuses a code outside the loaded rows 422 before the service call (the service’s 422 arms stay). docs/modules/ROOT/pages/guide/caseworker.adoc:247 describes the select as the jurisdiction’s declared categories. tests/e2e/lib/helpers.ts:846-848 types the field as string; tests/e2e/lib/given/determine.ts gains jurisdictionCategories() (the rows) and jurisdictionCategoryMonths(code), replacing the two jurisdictionNumber('snap.determination', 'standard_certification_months') reads (tests/e2e/lib/given/determine.ts:437, tests/e2e/specs/journey-snap-timely-recert.spec.ts:180). New tests/e2e/specs/flow-snap-certification-vocabulary.spec.ts (project caseworker, relational — every expectation read from the booted pack’s rows, so it passes on georgia in the battery and on the fixture stacks): an all-elderly, fixed-income, no-earned-income household approves with the pack’s waived row when it has one, else its elderly_disabled row, and the assigned months equal that row’s; the manual POST accepts a declarable row inside its months, refuses an undeclared token 422 certification_type_unknown, a period beyond the row 422 certification_period_exceeds_category, expedited 422 certification_type_not_manual; when the pack has a convertible row, convert succeeds and the certification’s type becomes converts_to, and convert on a non-convertible row is 422 certification_not_convertible; the periodic-report requirement on the waived row is false; the georgia specs keep their tokens.

D6

Gate drain, OpenAPI, docs. compliance/neutrality-gate.toml, per entry:

  • Delete (the site goes): the rust-vocab entries for crates/canopy-contracts-snap/src/certification.rs and crates/canopy-contracts-renewals/src/certifications.rs; the six sql-check entries and the six rows (a length-only CHECK is not tracked); the three fixture-JDM pack-identity entries (every matching field reworded, D3); the IncomeType and AbawdStatus doc entries (D3); the services/canopy-renewals/src/periodic_reports.rs entry (:120, D4).

  • Reword, then delete: rulesets/default/notices/snap/senior-conversion.typ — the default pack has no convertible row; the letter is reworded to neutral certification-conversion copy (the manifest route stays so routing completeness holds).

  • Re-home with the exact count: services/canopy-renewals/src/api/mod.rs keeps three hits after the rename (:472 PAMMS 3725:136, :2155, :2181 Chart 3730.1 periodic-report narratives) → count = 3, issue = "#2212" (state narratives); services/canopy-snap/src/store/abawd_clock.rs (AbawdMonthStatus, PAMMS 3355 — the ABAWD clock, not certification vocabulary) → issue = "#2212".

  • cargo xtask neutrality-lint clean with zero #2209 entries; cargo xtask api-docs --update regenerates docs/modules/ROOT/openapi/renewals.json (the POST body type) and docs/modules/ROOT/openapi/snap.json (the four flat bundle fields). Antora: docs/modules/ROOT/pages/api/canopy-snap.adoc (the category/period section: the table, the ceiling, the ESAP table, the refusals), docs/modules/ROOT/pages/api/canopy-renewals.adoc (POST vocabulary, the three 422 codes), docs/modules/ROOT/pages/api/canopy-enrollment.adoc:113, docs/modules/ROOT/pages/data-models/canopy-renewals.adoc and docs/modules/ROOT/pages/data-models/canopy-enrollment.adoc (length-only CHECKs, no default), docs/modules/ROOT/pages/federal-requirements.adoc (the 273.10(f) row names max_certification_months), docs/modules/ROOT/pages/rulesets.adoc (the table and the ESAP table in the pack schema), docs/modules/ROOT/pages/guide/caseworker.adoc, docs/modules/ROOT/pages/walkthroughs/journey-snap-timely-recert.adoc:94,187; compliance/federal-options/snap.toml snap.esap note: elected ⇔ [snap.certification.esap] present. CHANGELOG === Changed (the closed enums and parsers removed, the five keys replaced by the table and the ESAP table, snapshot v9 and the shared cap, certification_not_senior → certification_not_convertible, certification_type_unknown, certification_period_exceeds_category, the column default dropped).

Invariants

  • No certification-category token is enumerated in Rust or SQL; expedited is the only Rust-known certification type; a conversion writes the pack row’s converts_to, which is never a waived row.

  • A decision’s category AND months are validated against the booted pack’s row at signing; a manual certification fits its row’s months; a token reaches enrollment, renewals or the portal only after membership in THEIR booted pack; an unknown token is a typed refusal that names the pack’s codes, never a default — on the wire, in the database column (no default) or in code.

  • The ESAP election is one table: absent → the ESAP facts are unknown and no row may waive or convert; present → both inputs exist and at least one row is waived.

  • The bundle a snapshot freezes carries exactly the keys the decision read (v9, accepted by the shared cap); replaying v5–v7 history reads none of them.

  • The neutrality gate is clean with zero #2209 entries.

Units (weights by complexity) — U-A → U-B → U-C → U-D, one MR

U-A (w8) — fix(snap): read the certification categories from the pack (#2209)

Files: rulesets/georgia/jurisdiction.toml, rulesets/default/jurisdiction.toml, rulesets/test-min/jurisdiction.toml, rulesets/test-max/jurisdiction.toml and the four citations.toml, the four snap-certification-period.json, crates/canopy-test-lib/fixtures/rulesets/certification-period.json, crates/canopy-test-lib/src/threshold_sync.rs, services/canopy-rules/src/certification_period_tests.rs, crates/canopy-contracts-snap/src/certification.rs, crates/canopy-contracts-snap/src/determine.rs, crates/canopy-contracts-snap/src/events.rs, crates/canopy-contracts-snap/src/lib.rs, crates/canopy-contracts-snap/tests/roundtrip.rs, crates/canopy-contracts-eligibility/src/snapshot.rs, crates/canopy-reference/src/enums.rs (doc), services/canopy-snap/src/params.rs, services/canopy-snap/src/certification_period.rs, services/canopy-snap/src/determine.rs, services/canopy-snap/src/derivation.rs, services/canopy-snap/src/main.rs, services/canopy-snap/src/se_deduction.rs, services/canopy-snap/tests/snap_test.rs, services/canopy-eligibility/tests/dry_run_degradation_test.rs, tools/canopy-seed/src/jurisdiction.rs, tools/canopy-seed/src/datagen.rs. Tests: the loader refuses an empty table, a duplicate code, expedited, months above the ceiling, an unknown or other income type, a converts_to naming an undeclared, convertible or waived row, a convertible row without converts_to, an ESAP table missing a key, a waived row without the table, the table without a waived row; georgia’s four rows and default’s two round-trip; parse_assignment accepts every declared (code, months) pair and refuses senior under default, abawd / 36 under georgia (row says 4), standard / 24 under default (row says 6), standard / 25 under default; fixed_income_only and the senior-floor fact are Unknown without the table and unchanged with it; the thresholds JSON carries exactly certification_months.<code> for the rows; the threshold-sync checker resolves the nested leaves and fails on a missing category key; bundle v9 pins (CERTIFICATION_KEYS; verify_certification_keys_at refuses an incomplete v9 and a Some ESAP missing a field, leaves v5–v7 as today); SCHEMA_VERSION_MAX accepts 9 and refuses 10; the thresholds and input-key drift gates (services/canopy-snap/src/determine.rs:3899-3979) restated per pack; the test-max decision assigns elderly_simplified / 36 to an all-elderly fixed-income household; the proptest table (:3445-3456) reads the pack; the seed tool reads the two reserved rows and refuses a pack without them. Property tests (proptest): for any String, CertificationCategory::from_str and its Deserialize never panic and accept iff the D1 regex matches and the token is not expedited; every accepted token round-trips through serde and Display; CertificationKeys::load never panics on an arbitrary TOML table and accepts iff every row satisfies the D1 constraints.

U-B (w5) — fix(renewals): validate the category token against the pack (#2209)

Files: crates/canopy-contracts-renewals/src/certifications.rs, crates/canopy-contracts-renewals/src/universe_snapshots.rs, crates/canopy-contracts-renewals/tests/roundtrip.rs, crates/canopy-contracts-enrollment/src/events.rs, crates/canopy-contracts-enrollment/tests/roundtrip.rs, crates/canopy-test-lib/src/given/snap.rs, services/canopy-renewals/src/params.rs, services/canopy-renewals/src/periodic_reports.rs, services/canopy-renewals/src/certification.rs, services/canopy-renewals/src/cert_create.rs, services/canopy-renewals/src/store.rs, services/canopy-renewals/src/api/mod.rs, services/canopy-renewals/src/continuation/rules.rs, services/canopy-renewals/src/continuation/adjust.rs, services/canopy-renewals/src/continuation/infra_tests.rs, services/canopy-renewals/src/determination_subscriber.rs, services/canopy-renewals/src/renewal_decisions.rs, services/canopy-renewals/migrations/<new>, services/canopy-renewals/tests/renewals_test.rs, services/canopy-enrollment/src/main.rs, services/canopy-enrollment/src/continuation/arm.rs, services/canopy-enrollment/src/continuation/payloads.rs, services/canopy-enrollment/src/continuation/infra_tests.rs, services/canopy-enrollment/migrations/<new>, services/canopy-eligibility/src/enrollment_state.rs, services/canopy-eligibility/src/derivation.rs, services/canopy-eligibility/src/bulk/worker.rs, services/canopy-eligibility/tests/bulk_pipeline_test.rs, services/canopy-applications/src/api/mod.rs, the tests under services/canopy-applications/tests. Tests: manual POST with elderly_simplified under test-max inside its months → 201; with senior under test-max → 422 certification_type_unknown naming the codes; a period beyond the row’s months → 422 certification_period_exceeds_category; expedited → 422 certification_type_not_manual; a non-declarable row → 422; an INSERT omitting certification_type fails; the waiver follows periodic_reporting_waived (a waived non-senior token waives; senior under a pack whose row is not waived reports); interim contact follows interim_contact; convert refuses a non-convertible row 422 certification_not_convertible and writes the row’s converts_to; the reinstatement and recert arms mint the event’s token; enrollment DLQs an undeclared token and applies a declared one; eligibility’s expedited refusal and the COLA admission exclusion hold on is_expedited() and pass any other token; the infra test asserts the six constraints and the default are gone and the length checks present; certification_category absent from the D13 pin. Property test: for any String, CertificationType::from_str and its Deserialize never panic, accept iff the shape regex matches, round-trip through serde, and is_expedited() holds iff the token is expedited; rejected JSON values ("", "Senior") fail deserialization.

U-C (w3) — fix(web): render the certification select from the pack (#2209)

Files: services/canopy-web/src/certification_categories.rs (new), services/canopy-web/src/main.rs, services/canopy-web/src/api/actions_snap.rs, services/canopy-web/templates/cases/_det_action_form.html, docs/modules/ROOT/pages/guide/caseworker.adoc, tests/e2e/lib/helpers.ts, tests/e2e/lib/given/determine.ts, tests/e2e/specs/journey-snap-timely-recert.spec.ts, tests/e2e/specs/flow-snap-certification-vocabulary.spec.ts (new). Tests: the loader refuses a missing table and keeps declarable rows only; the rendered select carries each declarable row’s label and months (georgia four; a fixture with one row renders one option); an undeclared code posts 422; the route test pins no month figure; the timely-recert journey’s expected period comes from jurisdictionCategoryMonths('standard'); the new relational spec passes on georgia in the container.

U-D (w2) — chore(compliance): drain the #2209 neutrality-gate entries (#2209)

Files: compliance/neutrality-gate.toml, rulesets/default/notices/snap/senior-conversion.typ, docs/modules/ROOT/openapi/renewals.json, docs/modules/ROOT/openapi/snap.json, the Antora pages in D6, compliance/federal-options/snap.toml, CHANGELOG.adoc, this page’s Status. Tests: cargo xtask neutrality-lint clean with zero #2209 entries and declarations and the two re-homed entries at their exact counts; cargo xtask policy audit clean; the OpenAPI drift stage clean.

Verification

  1. After cargo xtask dev refresh (georgia): an all-elderly, fixed-income, no-earned-income household approves with certification_category = senior, 36 months; a household with earned income → elderly_disabled 12 or standard 6 per the facts; the letter and the enrollment row carry the token; cargo xtask seed-verify clean; the new relational spec passes (cargo xtask e2e --no-refresh --devstack-profile full — specs/flow-snap-certification-vocabulary.spec.ts --project caseworker).

  2. Fixture stack (the fixture-smoke CI lane’s recipe, .gitlab-ci.yml:825-888): CANOPY_JURISDICTION=test-max cargo xtask e2e --devstack-profile full --jurisdiction test-max — specs/fixture-smoke.spec.ts specs/flow-snap-certification-vocabulary.spec.ts --project caseworker (the refresh boots every service on test-max from the exported variable; the seed follows the flag) — the relational spec proves elderly_simplified / 36, the manual refusals, the waiver and the conversion to standard on the fixture; then the same under CANOPY_JURISDICTION=default with --jurisdiction default (elderly_disabled 24, no waived row, no convertible row); then cargo xtask dev refresh restores georgia.

  3. cargo xtask neutrality-lint clean; cargo xtask policy audit clean; git push — the battery is the gate.

Documentation Updates

  • docs/modules/ROOT/pages/api/canopy-snap.adoc, api/canopy-renewals.adoc, api/canopy-enrollment.adoc, data-models/canopy-renewals.adoc, data-models/canopy-enrollment.adoc, federal-requirements.adoc, rulesets.adoc, guide/caseworker.adoc, walkthroughs/journey-snap-timely-recert.adoc, openapi/renewals.json, openapi/snap.json; compliance/federal-options/snap.toml.

  • CHANGELOG.adoc — == Unreleased === Changed.

  • GitLab: #2209’s closing comment names the drained and re-homed gate entries; #1703 gets the one-line pointer.

Review log

round vendor resolved model verdict

1 (2026-09-22)

Anthropic

claude-fable-5-1

no-ship — eight blockers fixed in-plan: two commit subjects over 72 chars; no proptests for the two new shape parsers and the table loader; convertible had no target while store.rs:223 hard-codes standard (converts_to); test-max’s months were misstated (12 / 24 kept); the seed tool reads two removed keys; two e2e helpers read the removed flat length; the inline constraints are dropped by PostgreSQL’s default names, not a pg_constraint read; the gate entries need per-entry dispositions. Q3: the "v8 passes" pin cut. Q4: the Context site list bulleted.

2 (2026-09-22)

OpenAI

gpt-6-astra

no-ship — 15 findings (2 P1, 12 P2, 1 P3), each verified against af5ded9b3 and resolved in-plan: the shared SCHEMA_VERSION_MAX cap (D3); months must equal the selected row’s (D3); validating serde on the newtypes (D2); the ESAP election as one table with cross-field rules and a bundle shape that distinguishes absence (D1/D3); the manual-creation ceiling (D4); the DEFAULT 'standard' dropped (D4); waived conversion targets forbidden (D1/D4); the seed tool’s reserved rows declared (D3); orphan floor citations removed and citation rows pack-conditional (D1); every matching JDM field incl. node names reworded (D3); the ABAWD entry’s real path (D6); the threshold-sync checker taught nested leaves (D3); the fixture-stack recipe and a new relational spec (D5, Verification); ambiguous short path cites replaced; complete rows per pack (D1). No round 3.

Edit this page · default