Calendar-month SNAP certification periods with jurisdiction-assigned lengths (#2005, #1703, epic &96)
- Context
- Scope
- Design
- Units (weights by complexity) — U1 → U2 → U3 ‖ U4 → U5 → U6 → U7, one MR
- U1 (w2) —
fix(common): calendar-month certification_period and the anchor-based expedited guards - U2 (w5) —
fix(snap): sign calendar-month certification periods and the 273.14(c) renewal deadline (#2005) - U3 (w2) —
fix(notices): the SNAP approval and expedited letters state when benefits begin (#2005) - U4 (w8) —
feat(snap): jurisdiction-assigned certification length from a JDM decision (#1703) - U5 (w5) —
feat(enrollment): carry the certification category through the in-cert conversion (#1703) - U6 (w3) —
fix(enrollment): consumers of the conforming pair — pins, seed, seed invariant (#2005) - U7 (w3) —
test(e2e): pins, frames, pages, CHANGELOG, Done flip (#2005, #1703)
- U1 (w2) —
- Verification
- Documentation Updates
- Review log
Status: Done (2026-09-21) — !1481
Epic: &96
Issues: #2005 (U1–U3, U6, U7) · #1703 (U4, U5) — both closed by the one MR
Branches: fix/2005-calendar-month-certification (carries this page)
Erratum (2026-09-20): U1 and U2 ship as one commit — widening certification_end to u32 changes its three call sites, so the helper and the snap arithmetic cannot be two compiling commits; their file lists and tests are unchanged.
Erratum (2026-09-20): D11/U3 say template_version bumps on three rows per pack; each pack has two changed SNAP template entries (noa-approval, expedited-postponed-approval) and two routes to them — both bumped to 2026.2.
Erratum (2026-09-21): U7 shipped as several commits rather than one — the e2e pins and Antora pages, the canopy-snap API page’s period statements, the OpenAPI snapshots, a journey fix with its frames, the CHANGELOG, and this flip; a live-only canopy-snap infra pin that still asserted effective_date == as_of was corrected to D1 on the way.
Erratum (2026-09-21): D10 — the frozen SnapPolicyBundle carries ten certification keys (the eight D7 cutoffs plus standard_certification_months and recert_timely_filing_day, so the frozen inputs explain both the signed length and the renewal date); the v8 required-keys refusal lives on canopy-snap’s stored-snapshot replay reader (recompute_handler), because the dry-run wire request carries no schema_version and the dry-run never assigns a length.
Erratum (2026-09-21): D8 — the SSI-termination journey records the survivor’s pension that ended SSI as social_security (RSDI), not ssi; the journey’s row assertions follow. D9 — certification_category is the typed canopy_contracts_snap::CertificationCategory on the event (wire-identical string token); canopy-renewals maps it through the contract enum and a total match rather than parse_certification_type (which admits expedited), the contract refuses an out-of-vocabulary token and the renewals input refuses absence on a conversion — the same DLQ outcome; desired_type returns a typed refusal for that cell instead of a bare type.
Erratum (2026-09-21): U4 live — no production route writes an abawd_tracking row yet (#2126), so the two ABAWD-row scenarios (a current tracking window → 4; an exempt aged member → 36) arrange the test’s own row directly in canopy-snap’s database, the idiom the crate’s ABAWD batch test already uses; the seed’s ABAWD rows now carry the tracking token the identification reads (they carried counting, which nothing read).
This is a Design + Scope plan: GitLab owns tracking, the two issues carry the implementer brief, and the plan freezes when U1 starts. The units are the commits of one MR (maintainer ruling 2026-09-17: related issues ship in one MR, one commit each, one battery).
Context
benefit_period in services/canopy-snap/src/determine.rs:286-320 signs a day-granular period on every basis: start = the anchor day, end = anchor + N months − 1 day (#1474), renewal = anchor + standard_renewal_months (a bare anniversary). benefit_period_for_basis (:346-391) routes the in-cert conversion through conversion_period (:413-431, start = the filing day) and the expedited basis through canopy_common::expedited_postponement::certification_end (crates/canopy-common/src/expedited_postponement.rs:122-130), which already ends on a month-end but still starts on the filing day.
The federal rule counts periods in months, not days: 7 CFR 273.10(f) (introductory text) — "the first month of the certification period will be the first month for which the household is eligible to participate" and a period "cannot exceed 12 months" except under (f)(1) (all adult members elderly or disabled, up to 24) and (f)(2); 273.10(a)(1)(i)–(ii) determine eligibility "for the entire calendar month in which the household filed its application" and prorate only the initial month’s benefit from the application day; PAMMS 3105:359 prorates "from the date of application to the end of the month of application", Chart 3105.1 assigns whole-month lengths, and 3110:120/123 ends an expedited period "at the end of the first / second month". The current CFR text no longer carries the older sentence "certification periods shall conform to calendar months"; the tree attributes that sentence to (f)(1) in three places (expedited_postponement.rs:113-118, federal-requirements.adoc:49-51, #2005’s own text) and this plan corrects them. Under the rule a 20 September filing certifies Sep 2026 – Feb 2027, not 2026-09-20 – 2027-03-19. The consequence is money: canopy-enrollment admits every benefit_month ≤ cert_end in full (api/issue_guards.rs:60-74, issuance_settlement.rs:128-133), so today’s period issues seven months, the last a full March.
The signed pair travels unchanged: envelope effective_date / expiration_date / renewal_date (crates/canopy-signing/src/envelope.rs:104-110, inside the ADR-028 bytes), event effective_date ("certification-period start", crates/canopy-contracts-snap/src/events.rs:62), expiration_date (:82), benefit_effective_date (:91, the proration anchor; DeterminationSnapshot.benefit_effective_date, crates/canopy-contracts-eligibility/src/snapshot.rs:131). canopy-enrollment reads cert_start = effective_date and prorates on benefit_effective_date (auto_enroll.rs:501-502, :806-833); canopy-renewals never reads renewal_date and keys the notice of expiration and the timely-filing test on certification_end_date (noe.rs:35-65, crates/canopy-common/src/recert.rs:88-123). The seed carries a third formula (tools/canopy-seed/src/datagen.rs:1661: anchor + N months, no −1, no month-end; renewal = end − 30 days).
The length is one flat figure ([snap.determination].standard_certification_months, params.rs:56,351-361) although Chart 3105.1 (MT-87, rulesets/georgia/.policy-cache/dfcs-snap/modules/snap/pages/3105.adoc:387-426) assigns four: AUs with ABAWDs 4 (the only period assignable to them); all other AUs 6; AUs in which ALL adult members are elderly or SNAP-disabled and there is no earned income 12; Senior SNAP 36 (3725:26-40: all members 65+ since 2026-05-01, no earned income, fixed income; a 65-year-old may still be an aged ABAWD). PAMMS 3105:40-41 defines an adult as "age 18 and over" or "head of the AU if under 18". The per-category keys already sit unread in every pack (rulesets/georgia/jurisdiction.toml:104-106). The maintainer’s ruling: the assignment is jurisdiction policy and lives in JDM per pack; canopy-snap already evaluates a second decision under the determination-wide corpus pin (se_deduction.rs:110-160), and the traced funnel that also returns firings is evaluate_pinned_with_provenance (crates/canopy-rules-client/src/lib.rs:249, used at determine.rs:1637).
Rulings in force: the recertification APPROVAL ANCHOR (services/canopy-eligibility/src/derivation.rs:459-469) belongs to #1133 and does not move here; no in-code policy fallback (#1147); no silent policy-material default (ADR-034 §3); numbers never appear as literals in JDM expressions (rules_lint.rs); every jurisdiction key carries a citations row (crates/canopy-policy/src/citation.rs); a snapshot field required at a new version is versioned, never optional-on-new (#1648, snapshot.rs:247-256); pre-1.0, forward-only, the devstack reseeds; the maintainer’s 2026-09-20 rule that related findings are fixed in the same MR.
Scope
In scope
-
U1 the shared month rule in canopy-common and the two consumer guards it re-points.
-
U2 canopy-snap: every basis conforms;
renewal_datefrom the 273.14(c) deadline;standard_renewal_monthsretired; the pins and docs that state the old arithmetic or the wrong citation. -
U3 notices: "Benefits Begin" on the approval NOA; the expedited letters' start and length keys.
-
U4 the per-jurisdiction certification-length decision (#1703): four JDM files, the facts and thresholds canopy-snap supplies, the frozen snapshot inputs (v8), the traced evaluation and its graph edge, the event fields, the income-vocabulary fixes,
senior_snap_age_floor,IncomeType::Retirement, drift gates, fixtures and per-pack tests. -
U5 the category carried through the in-cert conversion: enrollment continuation row and event, renewals adjustment row and
desired_type, the reinstatement arm. -
U6 consumers and seed: enrollment pins, every seed period producer plus a seed invariant, the portal labels by basis.
-
U7 e2e specs, walkthrough frames, Antora pages, CHANGELOG, the Done flip.
Out of scope
-
Which anchor each basis gets (#1133 part b): once it moves the recert anchor to old end + 1, that day is a first-of-month and this plan’s arithmetic conforms the period with no further change (7 CFR 273.14(e); PAMMS 3710).
-
Minting the Standard renewals certification from the approval event. Standard certifications are worker-declared over HTTP by design (
services/canopy-web/src/api/actions_snap.rs:306-338, renewalsapi/mod.rs:318-345); after U5 the signed pair andcertification_categorymake that a drop-in. Not filed. -
ABAWD identification beyond D7’s derivable cases (#2126 gains the criterion "populate
abawd_statusfrom identification; the Senior and 12-month rows then reach every eligible household"). -
The income-type vocabulary drift outside the tokens D8 touches (
employment,tips,commissions,unemployment_insurance; Medicaid/TANF earned-income sets) — recorded on #323, whose body already names theincome_typesweep. -
The TANF and CAPS
anchor + N − 1helpers (services/canopy-tanf/src/determine.rs:960-968,services/canopy-caps/src/determine.rs:512-520) answer to their own regulations. -
Backfill of already-signed rows and valid-time ABAWD history (#1331): pre-production; the devstack reseeds.
Design
Decisions
| # | Decision |
|---|---|
D1 |
Field semantics, not shape. |
D2 |
One month rule.
|
D3 |
|
D4 |
Guards re-pointed to the anchor. enrollment |
D5 |
The length is a JDM decision per pack. File
test-max copies Georgia’s rows (ESAP elected). test-min copies them WITHOUT the Senior row ( |
D6 |
Uncertainty has one disposition. A row longer than Standard fires only on facts known |
D7 |
Facts canopy-snap supplies (new module
Thresholds: the four month keys. |
D8 |
Income vocabulary the classifier can trust. |
D9 |
The category rides the conversion. Event ( |
D10 |
Provenance. (a) Frozen inputs: |
D11 |
Notices. |
D12 |
Seed and citations. Every SNAP period producer in |
Invariants
-
Period:
first_of_month(anchor) = start ≤ anchor ≤ end,endis a month-end exactlymonths − 1months afterstart's month;certification_end(x, m)is bit-identical to today form ∈ {1, 2}. -
renewal_date = renewal_deadline(end, day) ≤ endinend's month on every basis exceptexpedited_postponed, whererenewal_date = expiration_date(the verification deadline). -
The decision’s
certification_monthsequals the pack’s key for the emitted category (a fixture per row); no row longer than Standard fires on anunknowncell; the Rust facts never emit a value outside the tri-state alphabet (proptest). -
An approval carries
certification_category,assigned_certification_months, acertification_periodedge and a v8 snapshot whose bundle holds the eight keys and whose household leaf holds the ABAWD identification; a denial carries none of the event fields; an expedited-postponed approval additionally carriescertification_months ∈ {1,2}. -
A converted certification’s
certification_typeequals the approval’s category; a conversion event without one is refused.
Units (weights by complexity) — U1 → U2 → U3 ‖ U4 → U5 → U6 → U7, one MR
U1 (w2) — fix(common): calendar-month certification_period and the anchor-based expedited guards
Files: crates/canopy-common/src/expedited_postponement.rs (+ proptests: ordering, month-end, span, u8 regression; the (f)(1) doc corrected), services/canopy-enrollment/src/auto_enroll.rs (require_filing_anchor, require_postponed_period), services/canopy-renewals/src/determination_subscriber.rs (cross_check_period, :283), determine.rs:378. D2 (helper), D4.
U2 (w5) — fix(snap): sign calendar-month certification periods and the 273.14(c) renewal deadline (#2005)
Files: services/canopy-snap/src/determine.rs (D1 doc, D2 matrix, D3, D4 guards, pins :2400-2427, proptest :2853-2925, :2968-2981), services/canopy-snap/src/params.rs (D3 load, key retirement), crates/canopy-contracts-snap/src/determine.rs:289 (doc), services/canopy-snap/src/se_deduction.rs:239, services/canopy-snap/src/main.rs:1843-1852, services/canopy-snap/tests/snap_test.rs:2613-2622,3539-3545, services/canopy-snap/src/postponement_infra_tests.rs:381-382,455-458,714-716,840-843, rulesets//jurisdiction.toml + citations.toml (D3 rows out, D12 rows), crates/canopy-contracts-snap/src/events.rs (D1 doc), crates/canopy-signing/src/envelope.rs:190 (doc), services/canopy-portal/src/home.rs (D3 basis + labels; unit pins :1483-1798).
*Pins that move: Sep 20 / 6 → 2026-09-01..2027-02-28, renewal 2027-02-15; Oct 1 / 6 → Oct 1..Mar 31, renewal 2027-03-15 (was 2027-10-01); leap kept; snap_test.rs:2613 as_of 2026-06-02 → (Jun 1, Nov 30, Nov 15); conversion filed Aug 19 → (Aug 1, Jan 31, Jan 15); expedited filed Sep 20 / 1 → (Sep 1, Sep 30, Sep 30).
Deleted as obsolete (named in the commit message): benefit_period_month_end_clamps_then_takes_the_day_before (ends are month-ends; the residual no longer exists); the snap_test "renewal == as_of + 6 months" arm (renewal_date is the 273.14(c) deadline, not an anniversary); the main.rs:1843-1852 formula pin (the period comes from the shared helper).
U3 (w2) — fix(notices): the SNAP approval and expedited letters state when benefits begin (#2005)
Files: rulesets/{georgia,default}/notices/snap/{noa-approval,expedited-postponed-approval}.typ, rulesets/{georgia,default}/notices/manifest.toml (three rows each), services/canopy-notices/src/generator.rs:589, event_routing.rs forwarding tests, insta snapshots (canopy_notices__…snap_noa_approval_text_georgia.snap and the expedited ones), crates/canopy-typst/tests/render_test.rs:556 (+ the 20 September expedited case). D11 (the assigned_certification_months rename lands here on the notices side and in U4 on the producer side; the two commits are adjacent in the MR).
U4 (w8) — feat(snap): jurisdiction-assigned certification length from a JDM decision (#1703)
Files: rulesets/{georgia,default,test-min,test-max}/snap-certification-period.json (D5), services/canopy-snap/src/certification_period.rs (new, D7 facts + strict parse), determine.rs (D10 call, edge, event builders, v8), params.rs (eight keys), abawd.rs (per-member current-row query), crates/canopy-contracts-snap/src/{events.rs,determine.rs} (D9 event fields, D10 bundle), crates/canopy-contracts-eligibility/src/snapshot.rs (v8, AbawdLeaf), services/canopy-snap/src/main.rs:1621, services/canopy-eligibility/src/orchestrator.rs:354-361 (D7 ssi_recipient), crates/canopy-reference/src/enums.rs (D8), services/canopy-web/templates/cases/tab_income.html, services/canopy-web/src/format.rs (D8), the e2e ssa writer, rulesets//jurisdiction.toml + citations.toml (senior_snap_age_floor, D12 note), crates/canopy-test-lib/fixtures/rulesets/snap-certification-period{,-abawd,-senior,-elderly-disabled,-unresolved}.json (georgia; registered in crates/canopy-rules-client/tests/ruleset_happy_path_test.rs) and default-snap-certification-period{,-elderly-disabled}.json (checked by cargo xtask rules check only), services/canopy-rules/src/engine.rs:1083-1111 (name assertion) plus a new in-process test module that loads each of the four packs with NamedFilesystemLoader and evaluates the decision over the fact matrix with that pack’s jurisdiction.toml thresholds, asserting category, months and precedence per pack (test-min: no Senior), canopy-snap drift gates (a thresholds-sync test over the new file mirroring snap_eligibility_thresholds_match_ruleset_refs :3204, an input-key sync test mirroring :3263), docs/modules/ROOT/pages/api/canopy-snap.adoc (the events section documents certification_category / assigned_certification_months; the event is not an OpenAPI type, events.rs:5), the snapshot-bearing OpenAPI files regenerated for the bundle and snapshot changes (cargo xtask api-docs --update after dev refresh).
*Tests: truth table per fact (the under-18 head, the SSI recipient, the child-under-18 exclusion, an active exemption row, a superseded window); proptest category × start day (#1703 AC) asserting the signed period from the assigned months and the tri-state alphabet; fixtures exact-match each Georgia row and the default pack’s two rows; the per-pack in-process matrix. Live, all on the georgia devstack (georgia’s keys give 6/12/4/36): a mixed household signs 6; an all-elderly (70+) no-earned household 12; a household with a member in current tracking 4; an all-65+ fixed-income household with a 65-year-old signs 6 with basis abawd_unresolved_standard and the same household with an active exemption row signs 36; the event carries certification_category + assigned_certification_months on approval and neither on denial; an expedited approval carries both plus certification_months; the v8 snapshot verifies and carries the ABAWD leaf. Mutation control per new pin recorded on the MR.
U5 (w5) — feat(enrollment): carry the certification category through the in-cert conversion (#1703)
Files: services/canopy-enrollment/src/continuation/{arm.rs,store.rs,payloads.rs}, services/canopy-enrollment/migrations/<new>_continuation_certification_category.sql, services/canopy-enrollment/src/continuation/infra_tests.rs (D13 pin :422-450 if CHECKed), crates/canopy-contracts-enrollment/src/events.rs:866-945 + tests/roundtrip.rs:895-975, services/canopy-renewals/src/continuation/{adjust.rs,store.rs,rules.rs,mod.rs}, services/canopy-renewals/migrations/<new>_adjustment_certification_category.sql, services/canopy-renewals/src/continuation/infra_tests.rs, services/canopy-renewals/src/determination_subscriber.rs:479 (+ pins :1297,:1449). D9. Live: an expedited approval for an all-elderly no-earned household converts to a certification of type elderly_disabled with a month-end end; a conversion event stripped of its category (test-only mutation) is refused to the DLQ.
U6 (w3) — fix(enrollment): consumers of the conforming pair — pins, seed, seed invariant (#2005)
Files: services/canopy-enrollment/src/api/issue_guards_tests.rs:84-85 (09-01..02-28; the seventh-month assertion becomes a benefit_month_after_certification_end 409), tests/snapshots/enrollment_test__…create_enrollment_row.snap, tools/canopy-seed/src/{datagen.rs,jurisdiction.rs} and tools/canopy-seed/src/invariants/ (D12). cargo xtask seed + seed-verify green on a clean volume.
U7 (w3) — test(e2e): pins, frames, pages, CHANGELOG, Done flip (#2005, #1703)
Files: tests/e2e/specs/flow-snap-in-cert-conversion.spec.ts (NEW_CERT_END 2027-02-18 → 2027-01-31 and its five echoes), journey-snap-expedited-postponed-lapse.spec.ts:162-164,608-611 (the worker types the signed pair), flow-snap-recert-reinstatement.spec.ts:90-93,110-111 (old period re-typed to a calendar-month pair; the chain re-derived through the helper), flow-snap-expedited-postponed*.spec.ts (start = first of month), walkthrough pages + frames (journey-snap-expedited-postponed-lapse.adoc:121-122, journey-snap-pr-verification-failure.adoc:134; frames re-captured by the maintainer with cargo xtask e2e --no-refresh --devstack-profile full — specs/<spec> --project journey, selected by mtime), adrs/adr-028…adoc:304, api/canopy-snap.adoc:97-98, data-models/canopy-snap.adoc:16, federal-requirements.adoc:49-51, glossary.adoc (certification period), CHANGELOG.adoc (=== Changed: envelope semantics, retired key, standard_certification_months → assigned_certification_months, snapshot v8, the ssa form token; === Added: the decision, certification_category on two events, IncomeType::Retirement, senior_snap_age_floor), this page’s Status.
Verification
-
After
cargo xtask dev refresh: a georgia application filed 2026-09-20 signseffective_date 2026-09-01 / expiration 2027-02-28 / renewal 2027-02-15 / benefit_effective_date 2026-09-20; enrollment persists 09-01..02-28; issuances are Sep (prorated) + Oct..Feb; 2027-03 returnsbenefit_month_after_certification_end; the NOA PDF reads "Benefits Begin 2026-09-20 / Certification Period 2026-09-01 to 2027-02-28"; an expedited letter for the same filer reads a 20 September start; the DLQ is empty; the portal shows "Renew by Feb 15, 2027" and, for an expedited household, "Verification due". -
The U4 and U5 live scenarios on georgia;
cargo xtask rules checkcompiles federal/default/georgia and passes the georgia and default fixtures; the canopy-rules per-pack matrix passes for all four packs;cargo xtask policy auditreports no orphan or missing rows; the ADR-028 KATs pass untouched; a stored v7 snapshot still verifies. -
Journeys re-run:
flow-snap-in-cert-conversion,journey-snap-expedited-postponed-lapse,flow-snap-recert-reinstatement,flow-snap-expedited-postponed,journey-medicaid-ssi-termination-cmd-redetermination,applicant-portal. -
git push— the pre-push battery is the gate.
Documentation Updates
-
api/canopy-snap.adoc(events, snapshot v8),data-models/canopy-snap.adoc,data-models/canopy-enrollment.adocanddata-models/canopy-renewals.adoc(the two new columns),federal-requirements.adoc, ADR-028 example, walkthrough pages, glossary. -
CHANGELOG.adoc—== Unreleased. -
#2126gains the ABAWD-input criterion;#323gains the note on the writer/reader vocabulary drift; the #2005 AC line on the expedited arm is amended on the issue.
Review log
| round | vendor | resolved model | verdict |
|---|---|---|---|
1 (2026-09-20) |
Anthropic |
claude-fable-5-1 — a fresh subagent given only the plan and the rules |
no-ship — three blockers fixed in-plan: two commit subjects off the |
2 (2026-09-20) |
the maintainer |
maintainer review against the plan and the tree |
no-ship — sixteen findings, four P1 (historical ABAWD rows could force 4 months; an unresolved ABAWD status could reach Senior; SSI recipients were not SNAP-disabled; the conversion path dropped the category) and twelve P2/P3 (under-18 head; the |