Journey: A scheduled SNAP termination flows through notice evidence and the guarded sweep
A caseworker schedules a mid-certification termination against an approved, enrolled SNAP household. The action routes to canopy-notices, which renders and dispatches the Notice of Adverse Action; that dispatch stamps the action’s legal window. The enact sweep then runs inside the window and refuses to touch the case. The clocks advance to the noticed date, the sweep runs again, and the enrollment terminates with the date the household was told — never the day the sweep ran. That is 7 CFR 273.13(a)(1) advance-notice timing (PAMMS SNAP 3705 for Georgia), driven end to end in the browser.
Reproducibility tier: Clock-driven harness. The e2e given-library builds the household (approved, auto-enrolled, settled) and the caseworker schedules the termination through the real worker portal, but the two beats carrying the rights guarantee are API beats: a sweep pass under a system token and a fleet logical-clock advance (the ADR-033 test-clock endpoints, which only a test-clock build compiles in). A live demo therefore replays the spec, which skips — never passes vacuously — on a production-shaped stack.
Paired with the automated spec
tests/e2e/specs/journey-snap-termination-pipeline.spec.ts (scenario
snap.certification.adverse-action-advance-notice-timing, journey tier), which
captures the step-NN-… screenshots below. See Verifying the journey to run it.
Personas & credentials
Only the caseworker has a screen here: the worker portal at the origin
cargo xtask dev status prints, signed in as jane.caseworker through the AC-8
notice and Kanidm’s pages (her password and TOTP secret are in
.devstack/idp/kanidm.json; see UAT Facilitator
Guide). She schedules the termination, then observes the notice, the terminated
enrollment and the cases-list row. There is no applicant persona — a harness-built
household (SnapCaseBuilder) carries no portal credential, so no /lookup view.
Bring-up & reset
CANOPY_CARGO_FEATURES=canopy-api/test-clock cargo xtask dev start --profile full
Page-specific: the
clock offset is devstack-global, so the spec resets the fleet clocks in a finally
block — a failed run never leaves the devstack in the future. The
Demo Runbook owns seeding, reset and credentials.
Concrete precondition
All authored by the spec’s GIVEN phase, none by hand (caseload assignment included):
-
Household: one member, head
Given Head(DOB1985-06-15), monthly wages $600 — a construction input robustly inside any gross-income limit, so the builder case approves and auto-enrolls. -
Settled issuance: the current benefit month is already issued when the worker arc opens, proving the one live enrollment the termination targets.
-
Mailing address:
123 Termination Way, Atlanta, GA 30303seeded on the head so the postal NOA can dispatch — the render-time recipient gate parks a letter for a head with no usable mailing address. -
Action shape: a standard (non-exempt) termination, reason
income_exceeds_limit, effective date left empty — so the legal window is the advance-notice floor.
The walkthrough, step by step
| # | Screen | Action | Expected | Screenshot |
|---|---|---|---|---|
01 |
Caseworker |
Open the case ( |
The form explains itself above the fields: the household is noticed and may appeal with continued benefits, and nothing enacts before the legal date without dispatched notice evidence. Below it SNAP enrollment still reads Status: active. |
|
02 |
Caseworker |
Click Schedule termination. |
The tab re-renders with Scheduled adverse actions · 1 open: Termination: Income
exceeds the program limit, Effective no earlier than the notice date plus the
jurisdiction’s advance-notice days (Georgia: 14 — |
|
03 |
Caseworker |
Open the Notices tab. (The spec awaits the notices service’s action-bound row with its dispatch stamp first, then polls this tab.) |
Exactly one row — a harness-built case has no approval letter: type
|
|
04 |
Caseworker |
API beats, no screen: a sweep inside the window refuses (the action stays
|
The SNAP enrollment section now reads Status: terminated, the Scheduled adverse actions section is gone, and the issued benefit month stays on the ledger — termination is forward-looking. The header pill reads SNAP Terminated and the SNAP card quotes no monthly benefit (see Honest scope). |
|
05 |
Caseworker |
Open Cases and search the head’s last name. |
The household’s row reads Terminated in its Status column — derived from the same newest enrollment the hero reads, never from the approving determination. |
|
Expected outcome / oracle
Two invariants, read back from the enrollment service — no dollar figure, no hard-coded day count:
-
Refuse inside the window. A sweep pass while the advance-notice window is open leaves the action
scheduledeven though it is fully evidenced. Enacting inside the window is the rights violation this leg exists to catch. -
Terminate on the noticed date. Once the clocks pass the action’s
enact_not_beforethe same sweep enacts, and the enrollment’sterminated_dateequals that date — benefits end when the household was told they would.
Honest scope
-
The rights-safety half and the clock advance are API beats (step 04): the sweep is
POST /v1/adverse-actions/enact-sweep, which admits a system token from any client but the portal (Admission::system()inservices/canopy-enrollment/src/api/enact_sweep.rs); the spec sends canopy-appeals' system token for canopy-enrollment, minted through the token broker. The clocks are the ADR-033 test-clock endpoints, and no screen shows either. -
The header and the cases list follow the enrollment, not the determination. Both read the newest live enrollment through one shared derivation (
services/canopy-web/src/snap_case_status.rs): a scheduled action still reads SNAP Active (step 02), the enacted one SNAP Terminated (steps 04–05). -
No applicant view. The letter’s applicant-side appearance belongs to the fully-manual journeys, such as the lottery-winnings journey.
-
A standard action only, and the floor arithmetic is not re-derived. The operator-tier advance-notice exemption (PAMMS 3705) belongs to the
snap.certification.adverse-action-adequate-notice-exceptionsscenario, and the notice-date + advance-days sum is the scheduler’s, read back asenact_not_before.
Verifying the journey
cargo xtask e2e --devstack-profile full journey-snap-termination-pipeline.spec.ts
The selection names a journey-*.spec.ts, so cargo xtask e2e refuses it unless
the devstack carries the test-clock build the bring-up above produces
(the journey-lane gate). Fresh screenshots land in
test-results/e2e/walkthroughs/journey-snap-termination-pipeline/, committed as
docs/modules/ROOT/assets/images/walkthroughs/….
See also
-
The 3730 periodic-report calendar closes a nonfiling case (the other clock-driven enact-sweep journey)
-
Journey Walkthroughs (the pairing overview)




