Calendar-month SNAP certification periods with jurisdiction-assigned lengths (#2005, #1703, epic &96)

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_date from the 273.14(c) deadline; standard_renewal_months retired; 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, renewals api/mod.rs:318-345); after U5 the signed pair and certification_category make that a drop-in. Not filed.

  • ABAWD identification beyond D7’s derivable cases (#2126 gains the criterion "populate abawd_status from 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 the income_type sweep.

  • The TANF and CAPS anchor + N − 1 helpers (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. effective_date (envelope, event, snap_determinations) is the certification START — the first day of the anchor month; benefit_effective_date stays the proration anchor on every basis; expiration_date is the last day of month (anchor month + N − 1); renewal_date is D3. No new signed envelope field; the ADR-028 KATs (envelope.rs:329-664) are untouched. Docs corrected in place: events.rs:85-87, envelope.rs:190, determine.rs:249-284, expedited_postponement.rs:113-118 (the (f)(1) attribution), the comment in rulesets/*/notices/snap/noa-approval.typ:56-65.

D2

One month rule. crates/canopy-common/src/expedited_postponement.rs: certification_end(start, months: u8) widens to u32 (callers services/canopy-renewals/src/determination_subscriber.rs:283, services/canopy-enrollment/src/auto_enroll.rs require_postponed_period, determine.rs:378 pass u32::from) and gains pub fn certification_period(anchor: NaiveDate, months: u32) → Option<(NaiveDate, NaiveDate)> = (first_of_month(anchor), certification_end(anchor, months)?). Basis matrix in benefit_period_for_basis:

  • standard class → certification_period(benefit_effective_date, months);

  • InCertConversion → certification_period(legal_filed_date, months) — start = first of the filing month, the same day the converted expedited row now starts on; the consumers that rewrite only the end (renewals continuation/store.rs:94-135, canopy-enrollment continuation/payloads.rs:50-85) stay consistent;

  • ExpeditedPostponed → (first_of_month(filed), certification_end(filed, m), renewal = end).

benefit_period keeps its #1999 refusal (no length → no signed approval). The clamp residual (:275-279) no longer exists.

D3

renewal_date = the 273.14(c) deadline. canopy_common::recert::renewal_deadline(expiration, recert_timely_filing_day) (day 15 of the last month, clamped to the end); canopy-snap loads [snap.certification].recert_timely_filing_day exactly as canopy-applications does (services/canopy-applications/src/params.rs:89-134: required, 1..=28). standard_renewal_months is removed from SnapParameters (params.rs:56-57,362-372,449,548), the SnapPolicyBundle doc comment (crates/canopy-contracts-snap/src/determine.rs:289), the se_deduction.rs:239 fixture, the four jurisdiction.toml and their four citations.toml rows (the audit fails an orphan row, citation.rs:463). Expedited keeps renewal = expiration (the verification deadline). Portal: RawDetermination (services/canopy-portal/src/home.rs:164) additionally deserialises effective_date_basis (already on the eligibility view, crates/canopy-contracts-eligibility/src/determinations.rs, kind tag); the card and timeline (:607-635) label the date "Verification due" when the kind is expedited_postponed and "Renew by" otherwise.

D4

Guards re-pointed to the anchor. enrollment require_filing_anchor (auto_enroll.rs:386-410) keeps benefit_effective_date == legal_filed_date and replaces the effective_date == legal_filed_date arm with effective_date == first_of_month(legal_filed_date); renewals cross_check_period (determination_subscriber.rs:278-300) likewise; canopy-snap’s own guard_postponement_assertions / guard_conversion_assertions re-point any effective_date == filed assertion the same way (grep legal_filed_date equalities in determine.rs). canopy-enrollment’s check_effective_window (services/canopy-enrollment/src/continuation/arm.rs:262-275) holds by construction.

D5

The length is a JDM decision per pack. File rulesets/{georgia,default,test-min,test-max}/snap-certification-period.json, embedded name = "{pack}-snap-certification-period", contentType application/vnd.gorules.decision, one decisionTableNode dt-certification-period with hitPolicy: first. Inputs are tri-state strings ("yes" | "no" | "unknown") under input. and the cited numbers under context.thresholds.; outputs certification_months (int, always a threshold reference), certification_category (token, the CertificationType::as_str vocabulary standard | elderly_disabled | senior | abawd) and certification_category_basis. Georgia rows, in order (row → category / threshold / basis):

  • abawd_status == "yes" → abawd / certification_period_abawd_months / chart_3105_1_abawd

  • abawd_status == "no" and all_members_at_or_above_senior_floor == "yes" and has_earned_income == "no" and fixed_income_only == "yes" → senior / certification_period_senior_months / chart_3105_1_senior_snap

  • abawd_status == "no" and all_adult_members_elderly_or_disabled == "yes" and has_earned_income == "no" → elderly_disabled / elderly_disabled_certification_period_months / chart_3105_1_all_adults_elderly_disabled_no_earned

  • abawd_status == "unknown" → standard / standard_certification_months / abawd_unresolved_standard

  • default → standard / standard_certification_months / chart_3105_1_all_other (seasonal and migrant farm workers are 6 = this row; the file’s description says so)

test-max copies Georgia’s rows (ESAP elected). test-min copies them WITHOUT the Senior row (rulesets/test-min/jurisdiction.toml:167: "snap.esap: not-elected — no Senior SNAP"). default carries the federal floor: all_adult_members_elderly_or_disabled == "yes" → elderly_disabled (7 CFR 273.10(f)(1), up to 24 months, no earned-income condition) and the default row.

D6

Uncertainty has one disposition. A row longer than Standard fires only on facts known "yes"/"no" as its cells state; unknown on any cell a row needs means the row does not fire, and an unknown ABAWD status lands on Standard with the basis abawd_unresolved_standard — today’s length, never a longer commitment on an unresolved fact. The derivation graph records every input value, so an unresolved fact is visible on the determination, not silent (ADR-034 §3).

D7

Facts canopy-snap supplies (new module services/canopy-snap/src/certification_period.rs, pure fns over ApplicationContext + params + the ABAWD rows, unit-tested by truth table). Vocabulary: an adult is a member with age ≥ [notices].age_of_majority (georgia jurisdiction.toml:445, reused explicitly) OR the head of the AU (canopy_common::household::select_head_by / is_head_relationship, PAMMS 3105:40-41); elderly is age ≥ [shared].elderly_age_threshold (:788); SNAP-disabled is disability_status ∈ {disabled, disabled_veteran, ssi_recipient} (PAMMS Appendix E; the orchestrator’s has_elderly_disabled_member at services/canopy-eligibility/src/orchestrator.rs:354-361 gains ssi_recipient in the same commit, with its pin).

  • all_adult_members_elderly_or_disabled — yes iff every adult is elderly or SNAP-disabled; no if any adult fails; unknown if any member’s age is None.

  • has_earned_income — yes iff any income item satisfies is_earned_income (determine.rs:2183), else no.

  • all_members_at_or_above_senior_floor — yes iff every member has age ≥ [snap].senior_snap_age_floor; no if any is below; unknown on a missing age.

  • fixed_income_only — yes iff at least one income item and every item’s type ∈ {social_security, ssi, veterans, retirement} (PAMMS 3725:36 as the vocabulary carries it); no iff every type is a recognised IncomeType token and one is outside that set; unknown iff any type is other or not an IncomeType token.

  • abawd_status — per member, from abawd_tracking rows with active = true whose [window_start_date, window_end_date] covers the evaluation day (services/canopy-snap/src/abawd.rs:29-44; never the reporting predicate at :158-160, which counts superseded windows by design): current_status ∈ {tracking, exhausted} → the member IS an ABAWD; current_status = exempt, or exemption_type set with exemption_expires null or ≥ the evaluation day → the member is NOT. A member with no such row is NOT an ABAWD when the facts exclude it — age below [snap.abawd].age_min or above age_max (18/65 in every pack), SNAP-disabled, or any household member under 18 (7 CFR 273.24(c)) — and unresolved otherwise. Household: any IS → yes; every member NOT → no; else unknown.

Thresholds: the four month keys. SnapParameters gains eight keys: elderly_disabled_certification_period_months, certification_period_abawd_months, certification_period_senior_months (all [snap], in every pack), senior_snap_age_floor (new [snap] key: georgia 65, PAMMS 3725:30, effective 2026-05-01; test-min / test-max 65; default 60 — each pack’s row cited as its certification_period_senior_months row is), [snap.abawd].age_min / age_max, [shared].elderly_age_threshold, [notices].age_of_majority and [snap.certification].recert_timely_filing_day (D3).

D8

Income vocabulary the classifier can trust. crates/canopy-reference/src/enums.rs: IncomeType::Retirement after Veterans ("Federal, State, private or Railroad Retirement pensions — fixed unearned income, PAMMS 3725:36"; unearned). The worker form (services/canopy-web/templates/cases/tab_income.html:221-232) writes enum tokens: ssa is replaced by social_security ("Social Security (RSDI)") and ssi ("SSI"), and veterans and retirement are added; humanize_income_type (services/canopy-web/src/format.rs:209-215) drops the ssa arm and labels the new tokens; the one e2e writer of ssa (tests/e2e/specs/journey-medicaid-ssi-termination-cmd-redetermination.spec.ts:357) writes ssi. No persons-side validation is added (IEVS writes unemployment_insurance, wages; #323 owns the sweep).

D9

The category rides the conversion. Event (crates/canopy-contracts-snap/src/events.rs): standard_certification_months is RENAMED assigned_certification_months and set on every approval (pre-1.0 rename; certification_months stays the expedited 1–2 figure); additive certification_category: Option<String> with builder with_certification_category (precedent with_trigger :342); both absent on a denial. canopy-enrollment: Inbound / Verdict::Approved capture it (continuation/arm.rs:165-251), Ctx::row writes it (:375-406), enrollment_continuations gains certification_category TEXT (new migration; ContinuationRow, InsertContinuation, the INSERT at continuation/store.rs:25-135), applied_payload projects it (continuation/payloads.rs:50-85), ContinuationAppliedV1 (crates/canopy-contracts-enrollment/src/events.rs:866-945) gains #[serde(default, skip_serializing_if)] certification_category: Option<String> (roundtrip test tests/roundtrip.rs:895-975); delayed enactment is row-driven and needs no code change (adverse_actions.rs:2589-2695). canopy-renewals: AdjustInput (continuation/adjust.rs:31-95) and the pending row (snap_certification_adjustments, new migration; continuation/store.rs:229-390) carry it; desired_type(basis, current, category) (continuation/rules.rs:40-48) maps the token through parse_certification_type (:21-31) for in_cert_conversion; validate refuses a conversion event without a category or with expedited / an unknown token (DLQ — there is no pre-change history in production); pins rules.rs:284-311, services/canopy-renewals/src/continuation/infra_tests.rs (the Standard sites), doc mod.rs:7-9, store.rs:106-110. The reinstatement arm mints CertificationType from the token (determination_subscriber.rs:479; pins :1297,:1449); the expedited arm stays Expedited. snap_certifications needs no new column (certification_type + [start, end] suffice).

D10

Provenance. (a) Frozen inputs: SnapPolicyBundle (crates/canopy-contracts-snap/src/determine.rs:281) gains the eight D7 keys as flat Option<u32> fields named exactly as their context.thresholds.* references (the derivation graph’s Param nodes resolve by key against policy_params), [serde(default)]; the snapshot schema_version becomes 8 (SCHEMA_VERSION_MAX 8 at snapshot.rs:207, determine.rs:2089-2092, main.rs:1621), and canopy-snap refuses to replay a v8 snapshot whose bundle lacks them (the dry-run path; a typed error, the #1648 required-at-version discipline; v5–v7 history stays verifiable). (b) HouseholdComposition (snapshot.rs:365-374) gains [serde(default)] abawd_identification: Vec<AbawdLeaf { person_id, status: "is" | "is_not" | "unresolved", tracking_id: Option, current_status: Option, exemption_type: Option, reason }> — the frozen source of abawd_status; member ages and disability already sit in MemberLeaf (:376-396), income types in IncomeFactLeaf.income_type. (c) The decision runs through evaluate_pinned_with_provenance(…, trace = true) under the determination-wide corpus pin (EvalMode from VerdictMode, verify_corpus_echo as se_deduction.rs:124-150); its firings become graph edges the way the eligibility firings do (determine.rs:1331-1354), and a certification_period edge records the five facts, the thresholds and the three outputs (in-code edge precedent utility_tier_edge, services/canopy-snap/src/derivation.rs:254-292). Evaluation happens on EVERY eligible determination; the assigned months drive the period on every basis except ExpeditedPostponed, whose signed period stays the 1–2 month one and whose event still carries the assignment for the letter. The result is parsed strictly: a missing or unknown token, or months outside 1..=36, is an internal error, never a default; a pack without the decision fails the determination (canopy-rules 404 → 500 naming the ruleset).

D11

Notices. noa-approval.typ:55 (both packs): [Effective Date:] → [Benefits Begin:], [#inputs.benefit_effective_date]; the "Certification Period" row unchanged; the approval manifest row’s program_data_keys += benefit_effective_date (rulesets/*/notices/manifest.toml:444; extract_program_data reads top-level event keys, event_routing.rs:783). Both expedited manifest rows (:469 and the default counterpart) rename standard_certification_months → assigned_certification_months and add benefit_effective_date; both expedited templates read assigned_certification_months, drop "typically" (:139-146), and take start-dt from benefit_effective_date instead of effective_date (:77), with a rendered regression case asserting a 20 September filer’s letter prints a 20 September start. default_program_data (services/canopy-notices/src/generator.rs:589) renames the placeholder key and adds benefit_effective_date: "—"; the on-demand path (on_demand_context, :513-537, no determination payload; NoticeRow has no anchor, domain.rs:31) RETAINS the placeholder explicitly — no persistence is added. template_version bumps one minor on the three rows in both packs; insta snapshots re-accepted after eyeballing; the forwarding tests in event_routing.rs follow the key lists.

D12

Seed and citations. Every SNAP period producer in tools/canopy-seed/src/datagen.rs uses certification_period (:1661, :1838, :1987, the QC generation :2678, the cast approvals :4296) and renewal_deadline(cert_end, recert_timely_filing_day) (:1687, :1761, :4300), the day loaded by tools/canopy-seed/src/jurisdiction.rs beside initial_cert_months (:186-193); months_after keeps its other callers. A new DomainInvariant in tools/canopy-seed/src/invariants/ ("every SNAP certification period starts on day 1, ends on a month-end, spans whole months, and its renewal is the filing deadline") joins all_invariants(). Citations: only Georgia’s standard_certification_months row gains section = "Chart 3105.1 — all other AUs"; the fixture packs keep their own rows (test-max is 12); the stale note on rulesets/georgia/citations.toml:176 ("all members 66+") becomes 65 since 2026-05-01 with a fresh verified_date; federal-requirements.adoc:49-51 states the rule as this Context does and drops "not read by any service".

Invariants

  • Period: first_of_month(anchor) = start ≤ anchor ≤ end, end is a month-end exactly months − 1 months after start's month; certification_end(x, m) is bit-identical to today for m ∈ {1, 2}.

  • renewal_date = renewal_deadline(end, day) ≤ end in end's month on every basis except expedited_postponed, where renewal_date = expiration_date (the verification deadline).

  • The decision’s certification_months equals the pack’s key for the emitted category (a fixture per row); no row longer than Standard fires on an unknown cell; the Rust facts never emit a value outside the tri-state alphabet (proptest).

  • An approval carries certification_category, assigned_certification_months, a certification_period edge 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 carries certification_months ∈ {1,2}.

  • A converted certification’s certification_type equals 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

  1. After cargo xtask dev refresh: a georgia application filed 2026-09-20 signs effective_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 returns benefit_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".

  2. The U4 and U5 live scenarios on georgia; cargo xtask rules check compiles federal/default/georgia and passes the georgia and default fixtures; the canopy-rules per-pack matrix passes for all four packs; cargo xtask policy audit reports no orphan or missing rows; the ADR-028 KATs pass untouched; a stored v7 snapshot still verifies.

  3. 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.

  4. 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.adoc and data-models/canopy-renewals.adoc (the two new columns), federal-requirements.adoc, ADR-028 example, walkthrough pages, glossary.

  • CHANGELOG.adoc — == Unreleased.

  • #2126 gains the ABAWD-input criterion; #323 gains 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 type(scope) shape; the adult and elderly cutoffs were unnamed keys; the per-pack live checks had no harness. Q3: the event name kept "for compatibility" cut — renamed assigned_certification_months. Q4: D2/D5/D7 bulleted.

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 ssa income token; expedited letters' start; the renamed length dropped by routing; the on-demand placeholder; frozen inputs and traced evaluation; test-min’s unelected Senior row and per-pack tests; seed producers and a policy literal; "Renew by" on expedited; the completion gate; the (f)(1) attribution; the event OpenAPI claim) — all resolved in D3, D5–D12, U5 and the GitLab section; no round 3

Edit this page · default