# Design a background job retry policy — acceptance checklist

Record evidence for every checked item. Unchecked or untested is not a pass. This checklist does not execute an integration or authorise external actions.

## Required inputs

- [ ] One consumer's source, queue/client versions, message schema and current acknowledgement, timeout and retry settings at a fixed revision.

- [ ] The downstream operation's documented idempotency and status-query behaviour, redacted failure examples and any queue delivery guarantees.

- [ ] Owner-selected completion deadline, retry/load limits, retention requirements and an isolated harness or explicitly authorised staging queue.

## Output checks

- [ ] Every failure class maps to a retry, terminal or reconciliation action, with unknown remote outcomes explicitly represented.

- [ ] The recorded attempt and elapsed-time bounds include retries in every configured layer and fit the owner's stated limits.

- [ ] The duplicate and crash-window cases record side-effect counts and do not produce an unexplained repeated effect.

- [ ] Terminal and exhausted jobs leave the retry path and expose an inspectable final or quarantine state.

- [ ] The replay procedure preserves intent identity and checks its retention/reconciliation evidence before redelivery.

- [ ] Each test receipt names its target, fixture, clock/delay setup, expected state and actual result; unrun cases remain unrun.

## Deliverables

- [ ] Failure-to-action decision table and calculated retry budget

- [ ] Intent, deduplication and acknowledgement state diagram with crash windows

- [ ] Candidate policy diff and synthetic failure-test receipts

- [ ] Quarantine, reconciliation and replay runbook with named operational owner

## Evidence and decision

Evidence links: [fill in]
Untested paths: [fill in]
Unresolved findings: [fill in]
Reviewer: [fill in]
Decision and scope: [fill in]

## Boundaries

- The resilience skill's examples target Kotlin/Spring. Transfer the failure analysis, then verify settings against the actual queue and client versions. The test analyser reviews coverage; neither resource supplies or runs a failure harness.

- Reviewer hosts need source and redacted configuration reads. Grant local edits and test execution only to the implementation stage; use manually exported queue evidence if a connector is unavailable.

- Synthetic jobs must use isolated destinations. Keep production tokens and message bodies out of prompts, fixtures and logs; queue replay, acknowledgement and purge are separate operational writes requiring authority for the exact account and queue.

- Do not describe broker delivery guarantees as proof of exactly-once business effects. Keep unresolved remote outcomes in a durable reconciliation state and record irreversible effects separately from recoverable queue/configuration changes.

Workflow: https://undominated.ai/workflows/#design-a-background-job-retry-policy
