Replay terminal deliveries without mutating original event content
Support repairs a payload during replay and leaves the same event ID representing different facts.
- Focused work estimate
- 3h + prerequisites
- Priority in the scenario
- High
- Engineering practice
- Auditability · Immutability
Estimated field mix
- API design40%
- Security30%
- Data engineering30%
Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.
Review it, then add it to your workspace.
The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.
Project context
A fictional logistics platform sends shipment events to partner endpoints. Partners need stable schemas and recovery semantics despite duplicate delivery, failures, and subscription changes.
Setup prerequisites
- Create a local webhook sender and receiver doubles with synthetic shipment events and disposable signing keys.
Preceding work
Complete these dependencies, or supply their agreed outputs before taking this ticket.
- BAPIHOOK-101 · Define immutable webhook envelopes independently of database rows
- BAPIHOOK-102 · Authorize subscription creation and event scope per organization
- BAPIHOOK-103 · Validate webhook destinations through the restricted network boundary
- BAPIHOOK-104 · Sign exact webhook bytes with versioned verification metadata
- BAPIHOOK-105 · Document at-least-once delivery with stable event identities
- BAPIHOOK-106 · Bound retry scheduling and distinguish terminal receiver responses
- BAPIHOOK-107 · Expose event ordering limits without requiring global sequencing
Acceptance criteria
- Replay the original immutable event under a new attempt identity.
- Require authorized subscription scope and reason.
- Reject replay when current destination or data authority is revoked.
Implementation constraints
- Corrections require a new event identity and explicit relation.
Verification to include
- Replay a failed synthetic delivery.
- Reject changed payload bytes and revoked subscription authority.
Deliverables
- Audited replay endpoint.
Rollout and recovery
Keep replay bounded and visible to subscription owners.
Value of the work
For the engineer: Practice public event contracts, delivery guarantees, and partner recovery workflows.
For the team: Provide inspectable asynchronous integration behavior with controlled retries and clear compatibility.
Evidence boundaries
Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.
Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.