SSA Screening Operations Runbook
E3 (#1566, plan Plan::SSA): the operator surface for the SSA screening
pipeline’s health, retention, and UD10 legal holds. Companion pages:
SSN Digest Rotation (which no longer
touches screening runs, #3175) and the deployment guide’s worker-heartbeat table
(staleness thresholds). All signals are PII-free: ids, counts, categories.
What the screening sends (#3175)
Each screened household member is bound, at staging, to their live person
identifier of the jurisdiction’s screening_identifier_kind (Georgia: the EMPI,
the DHR client number); a jurisdiction that names no kind refuses every request
409 screening-unconfigured, and a member without a live identifier refuses the
request 409 screening-identifier-missing. At dispatch the worker releases that
identifier’s value from craig-cases
(POST /v1/cases/persons/{id}/screening-identifier-release, craig-exchange
only, audited case.person_pii_exported with purpose
income_inquiry_screening) and sends Gateway’s income inquiry for the
jurisdiction’s business date. No SSN travels. The member ends:
-
identifier_stale(jobidentifier-stale) when the identifier was ended or retracted after staging, at the release or at the outcome record — re-screen; -
failed(jobidentifier-unusable) when the released value is no client number Gateway would accept; -
failed(jobpartner-refused) when Gateway refuses the request as malformed (R001–R004), never retried — a defect in what was sent; -
otherwise as the outcome below says.
R007, a missing return code and a SOAP fault are the retriedpartner-error/partner-faultclasses.
The #3175 migration deleted every screening run staged under SSN digests (none was ever sent under a send authority); cases re-screen on their next request.
Signals overview
| Signal | Kind | Meaning |
|---|---|---|
|
gauge |
Age of the oldest |
|
gauges |
The H16 pause depths by categorical token ( |
|
counter |
Per-attempt failures by categorical class ( |
|
counter |
Jobs terminally failed at the retry cap (member + job + run finalized in one transaction; counted post-commit). |
|
histogram |
Gateway inquiry round-trip wall time, |
|
gauge |
Rows past their retention window still present: |
|
gauge |
Runs under a UD10 legal hold (deliberate stops — excluded from the lag classes above). Same recorder as the lag gauge: absent while the sweep is disabled. |
|
gauge |
1 = the gate knob is ON and every live dispatch precondition holds; 0 =
enabled-but-unready (the probe logs the held token on transitions). ABSENT
while the gate is off. This is deliberately a metrics-plane signal, not
|
Threshold-alert interpretation
ssa_screening_oldest_pending_seconds > 360(3 × the 120 s claim lease)-
The typed worker is not draining. Check the
ssa-workerheartbeat (worker_last_success_timestamp_seconds{worker="ssa-worker"}) and the craig-exchange log forssa drain failed. ADisabledworker with the gate ON meansWORKER_POLL_SECONDS=0— the devstack posture leaking into a real deployment. ssa_screening_ready == 0(sustained)-
The gate is on but every dispatch will pause. The transition warn names the held token; remedy per token —
contract-pendingis Phase-P-remediable ONLY,partner-unavailable/dsa-not-activeare partner-row/DSA fixes,auth-not-appliedmeans thegateway_incomepartner row’sauth_typeis notnone: the SSA worker sends with no credential, so it holds instead of sending unauthenticated to a partner whose row declares one (set the row tonone, or wait for the worker to apply credentials, #2448),egress-refusedisEGRESS_ALLOWED_HOSTSconfig. After remedying, re-admit paused jobs via the #1469 resume endpoint (never automatic). ssa_retry_exhaustion_totalmoving-
Members are terminally failing at the cap. Inspect
ssa_screening_job_errors_total{class}for the dominant class; the affected members readfailedand their runs complete (a re-screen is a NEW run). ssa_retention_lag_rows{class="transport"}not draining-
Check the
ssa-transport-sweepheartbeat FIRST: a mismatch-aborted pass deliberately withholds its beat, so a persistent count-mismatch wedge (the log shows repeatedcount mismatch) alarms as heartbeat staleness — a transient hold race retries clean next cycle; persistence is a bug, file it. The report-only invariantssa_transport_retention_overrunis the devstack/CI twin, and it is WIDER than the sweep (it also catches window-0 postures and unsweepable family shapes the gauge cannot report when the sweep is off). ssa_retention_lag_rows{class="provenance"}growing with archive consent ON-
Check the
retention-archiveheartbeat andarchive_last_success_timestamp; quarantines surface onretention_quarantined_total. With consent OFF this gauge is the expected accumulation curve (the D11 posture).
What an outcome does to benefit facts
The screening answer is Gateway’s income inquiry
(Gateway Income and Resource Inquiry (IncomeResourceService)), which lists only a
client’s active rows. craig-cases reads a member’s outcome accordingly (#3175,
ADR-066 § Amendment #3175):
screened-
The answer’s entries are the person’s whole set of active benefits for its month. Every
activebenefit fact the answer leaves out is ended: aterminatedfact dated the answer’s month, which also opens or bumps thefacts_recordedscreening-review item on each case already determined over the person. A Gateway data gap therefore ends a benefit that is still paid; the facts are append-only, and the next screening whose answer lists the row records it active again. Nothing for an operator to repair by hand. no_gateway_record(member status and outcome;no_matchbefore #3175)-
Gateway holds no record for the person in the month. No fact is written or ended, so the person’s
activefacts are whatever an earlier screening left. The screening-review itemno_gateway_recordopens on each case already determined over the person, and on the case of a determination whose witness run holds such a member; the worker confirms the benefits another way.
A screening outcome never verifies a person’s SSN: verification is the human attestation alone.
UD10 legal holds
A hold stops EVERY retention path for one run’s whole family (members, jobs, transaction rows, handoffs) — the flag joins every destructive statement’s predicate AND its delete re-assert, so a hold landing mid-sweep rolls that batch back whole.
-
Set:
POST /v1/exchange/ssa-screening-runs/{run_id}/holdwith{"reason": "…"}. -
Clear:
DELETE /v1/exchange/ssa-screening-runs/{run_id}/holdwith{"reason": "…"}— the reason rides a JSON body on BOTH verbs (a deliberate deviation from the D2?reason=precedent: hold rationales can carry case narrative, and query strings land in access logs and proxies). -
Both are HUMAN-ADMIN-only (service identities and non-admin humans are refused), reason-required, idempotent (
changed: false= the no-op replay), and writes-gate-EXEMPT — a hold is settable even after the screening feature is disabled. -
Each genuine transition stages
exchange.screening_hold_set/_cleared(actor + reason) — the audit log is the hold’s narrative; the run row carries only the boolean.ssa_screening_held_runscarries the live count. -
Batch-granularity holds (SDX/BENDEX imports) land with the C1 import tables.
Retention knobs
| Knob | Default | Semantics |
|---|---|---|
|
90 |
The UD4 transport window — a CEILING, |
|
false |
The D11 consent knob for the provenance archiver (handoffs → members → runs,
FK-ordered). Enabling requires an S3-class store (the D10 boot probe refuses
Local) and the exchange floor |
Purge |
— |
No purge tooling exists — refused until DFCS names a records-retention schedule (#1480). Archived objects are held indefinitely. |
Archived rows stay addressable: craig-manage archive-fetch craig-exchange
ssa_screening_runs --id <run-id> resolves the batch via the exchange
archive_ledger and emits the exact NDJSON bytes (D17). Cases-side pointers
(ssa_screening_outcomes.run_id, ive_determinations.screening_run_id)
resolve through the same path once their run is cold.