# Replay a late and duplicate event stream — 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

- [ ] An existing event-oriented system's sanitised event fixtures with event identity, entity, schema version, event time, arrival order and correction references where applicable.

- [ ] A fixed projection revision, state/checkpoint format, authorised disposable replay environment and an existing runner or a reviewable local harness plan.

- [ ] Domain rules for ordering, duplicate identity, deduplication retention, allowed lateness, corrections and expected business state, with a responsible data owner.

## Output checks

- [ ] Expected states and convergence claims were derived from domain rules and frozen before implementation results were observed.

- [ ] Every sequence records identity, arrival order, relevant time/watermark controls and expected intermediate/final state.

- [ ] Duplicate delivery, conflicting payloads, late events and corrections have observed or explicitly unrun results against their separate policies.

- [ ] Valid reordered sequences converge only where promised; order-dependent outcomes are checked against their own expected states.

- [ ] Restart from a matched state/checkpoint pair agrees with the uninterrupted reference, including deduplication state, or records a failure.

- [ ] Target/sink isolation is evidenced and the baseline sequence passes after disposable recovery; no production recovery claim is inferred.

## Deliverables

- [ ] Event projection contract with identities, time, ordering, lateness and correction semantics.

- [ ] Independent domain expectations, sequence proposals and state/checkpoint map.

- [ ] Frozen replay sequences and expected intermediate/final states.

- [ ] Per-sequence result ledger with snapshots, offsets, failures and unrun cases.

- [ ] Disposable recovery receipt and a separately scoped change/backfill handoff.

## Evidence and decision

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

## Boundaries

- This recipe examines projection state and data correctness in an existing event-oriented system. It does not choose event sourcing for a new product or design background-job retry side effects.

- Both profiles target Claude Code. Verify frontmatter/tool mappings and restrict host grants to the approved fixtures and disposable stores. They provide instructions, not an event broker, replay runner or permission boundary; use manual file handoffs and leave unsupported cases unrun.

- Confirm sinks and callbacks cannot publish events, send notifications or call production services during replay. Use credentials limited to the disposable target if credentials are needed, and retain no live tokens or unnecessary personal data in receipts.

- Ordering and exactly-once behaviour are not assumed. An event-time watermark, where used, expresses the engine's progress estimate; record the actual late-data rule and runner capability instead of borrowing a different engine's guarantees.

- Stop on unknown event identity, undefined correction semantics, an unconfirmed target or a failed invariant. Retention/deletion policy takes precedence over the profile's blanket never-delete-event advice; do not modify retained source events as a test repair.

- Recovery needs a matched projection state and checkpoint, including deduplication state. A tested disposable restore does not prove production recovery; retain that limitation and the exact production action/owner in the handoff.

Workflow: https://undominated.ai/workflows/#replay-a-late-and-duplicate-event-stream
