Case 02C

The refund commits, the response is lost

02C.Idempotency

The refund commits, the response is lost

Billing commits the refund, then times out before answering. The retry carries the same idempotency key, so the ledger returns the stored result instead of paying twice.

Faults armed in your sandbox: billing.refund → commit_then_timeout

  • Refund attempt 1 times out
  • Attempt 2 replays the stored result
  • Exactly one refund in the ledger

The customer writes

“The cast iron skillet I got in order ORD-8822 has a cracked handle. It was clearly damaged in shipping.”
Starting

LangGraph.js · Postgres checkpoints

Agent graph

unclearautoover limitapprovedeniedN1 · Triagegpt-oss-20bAskclarify · end turnN2 · Context4 mock APIs · parallelN3 · Retrievedate filter · BM25 · dense · RRFN4a · Plangpt-oss-120bN4b · Policy gatecode decides · tokensN5 · Humaninterrupt()N6 · Sagapivot · compensateN7 · RespondLLM + verifier

Send a message and watch each node light up. Click any node to see what it produced.

Mock services · this sandbox only

Saga & chaos

MOCK SERVICE

healthy · no calls yet

healthy · no calls yet

healthy · no calls yet

healthy · no calls yet

healthy · no calls yet

healthy · no calls yet

Saga ledger

The saga log appears once an approved plan executes.

Case 02C

The refund commits, the response is lost

02C.Idempotency

The refund commits, the response is lost

Billing commits the refund, then times out before answering. The retry carries the same idempotency key, so the ledger returns the stored result instead of paying twice.

Faults armed in your sandbox: billing.refund → commit_then_timeout

  • Refund attempt 1 times out
  • Attempt 2 replays the stored result
  • Exactly one refund in the ledger

The customer writes

“The cast iron skillet I got in order ORD-8822 has a cracked handle. It was clearly damaged in shipping.”
Starting