Case 02B

Orders API fails before the pivot

02B.Compensation

Orders API fails before the pivot

The replacement draft (step 4) keeps failing. Because the refund is the pivot and runs only after every reversible step, nothing irreversible has happened: label, hold and ticket are undone in reverse order.

Faults armed in your sandbox: orders.createReplacementDraft → fail_503

  • Step 4 FAILED
  • Steps 3 → 2 → 1 COMPENSATED
  • No refund row
  • Ticket ROLLED_BACK

The customer writes

“My stoneware mug set (ORD-8821) came with the box punctured and the mugs smashed. What can you do?”
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 02B

Orders API fails before the pivot

02B.Compensation

Orders API fails before the pivot

The replacement draft (step 4) keeps failing. Because the refund is the pivot and runs only after every reversible step, nothing irreversible has happened: label, hold and ticket are undone in reverse order.

Faults armed in your sandbox: orders.createReplacementDraft → fail_503

  • Step 4 FAILED
  • Steps 3 → 2 → 1 COMPENSATED
  • No refund row
  • Ticket ROLLED_BACK

The customer writes

“My stoneware mug set (ORD-8821) came with the box punctured and the mugs smashed. What can you do?”
Starting