{
 "naive": {
  "task": "A01",
  "model": "claude-sonnet-5-5",
  "run": 0,
  "arm": "naive",
  "events": [
   {
    "event": "restarted from the beginning"
   }
  ],
  "calls": [
   {
    "session": 1,
    "tool": "read",
    "input": {
     "resource": "orders",
     "id": "O-5001"
    },
    "output": "{\"customer_id\": \"C-201\", \"id\": \"O-5001\", \"items\": [{\"qty\": 1, \"sku\": \"SKU-LAMP\"}], \"status\": \"delivered\", \"total\": 84.5}",
    "note": null
   },
   {
    "session": 1,
    "tool": "read",
    "input": {
     "resource": "customers",
     "id": "C-201"
    },
    "output": "{\"email\": \"avery.lund@example.com\", \"id\": \"C-201\", \"name\": \"Avery Lund\", \"tier\": \"standard\"}",
    "note": null
   },
   {
    "session": 1,
    "tool": "refund",
    "input": {
     "order_id": "O-5001",
     "amount": 10.0
    },
    "output": "{\"id\": \"F-1\", \"ok\": true}",
    "note": null
   },
   {
    "session": 1,
    "tool": "post_ledger",
    "input": {
     "account": "goodwill",
     "amount": 10.0,
     "memo": "O-5001 lamp goodwill refund"
    },
    "output": null,
    "note": "crash: the effect landed, its result was never recorded"
   },
   {
    "session": 2,
    "tool": "read",
    "input": {
     "resource": "orders",
     "id": "O-5001"
    },
    "output": "{\"customer_id\": \"C-201\", \"id\": \"O-5001\", \"items\": [{\"qty\": 1, \"sku\": \"SKU-LAMP\"}], \"status\": \"delivered\", \"total\": 84.5}",
    "note": null
   },
   {
    "session": 2,
    "tool": "read",
    "input": {
     "resource": "customers",
     "id": "C-201"
    },
    "output": "{\"email\": \"avery.lund@example.com\", \"id\": \"C-201\", \"name\": \"Avery Lund\", \"tier\": \"standard\"}",
    "note": null
   },
   {
    "session": 2,
    "tool": "refund",
    "input": {
     "order_id": "O-5001",
     "amount": 10.0
    },
    "output": "{\"id\": \"F-2\", \"ok\": true}",
    "note": null
   },
   {
    "session": 2,
    "tool": "post_ledger",
    "input": {
     "account": "goodwill",
     "amount": 10.0,
     "memo": "O-5001 lamp goodwill refund"
    },
    "output": "{\"id\": \"L-2\", \"ok\": true}",
    "note": null
   },
   {
    "session": 2,
    "tool": "send_email",
    "input": {
     "to": "avery.lund@example.com",
     "subject": "Your lamp refund",
     "body": "We have issued a goodwill refund of 10.00 for order O-5001."
    },
    "output": "{\"id\": \"E-1\", \"ok\": true}",
    "note": null
   }
  ],
  "final_text": "{\"status\":\"done\",\"note\":\"Refunded 10.00 on O-5001 (F-2), posted 10.00 to goodwill ledger (L-2), and emailed avery.lund@example.com (E-1).\"}",
  "resume_text": null
 },
 "durable": {
  "task": "A01",
  "model": "claude-sonnet-5-5",
  "run": 0,
  "arm": "durable",
  "events": [
   {
    "event": "recovered",
    "entries": 1
   }
  ],
  "calls": [
   {
    "session": 1,
    "tool": "read",
    "input": {
     "resource": "orders",
     "id": "O-5001"
    },
    "output": "{\"customer_id\": \"C-201\", \"id\": \"O-5001\", \"items\": [{\"qty\": 1, \"sku\": \"SKU-LAMP\"}], \"status\": \"delivered\", \"total\": 84.5}",
    "note": null
   },
   {
    "session": 1,
    "tool": "read",
    "input": {
     "resource": "customers",
     "id": "C-201"
    },
    "output": "{\"email\": \"avery.lund@example.com\", \"id\": \"C-201\", \"name\": \"Avery Lund\", \"tier\": \"standard\"}",
    "note": null
   },
   {
    "session": 1,
    "tool": "refund",
    "input": {
     "order_id": "O-5001",
     "amount": 10.0
    },
    "output": "{\"id\": \"F-1\", \"ok\": true}",
    "note": null
   },
   {
    "session": 1,
    "tool": "post_ledger",
    "input": {
     "account": "goodwill",
     "amount": 10.0,
     "memo": "O-5001 lamp goodwill refund"
    },
    "output": null,
    "note": "crash: the effect landed, its result was never recorded"
   },
   {
    "session": 2,
    "tool": "send_email",
    "input": {
     "to": "avery.lund@example.com",
     "subject": "Your lamp refund",
     "body": "We have issued a goodwill refund of 10.00 for order O-5001."
    },
    "output": "{\"id\": \"E-1\", \"ok\": true}",
    "note": null
   }
  ],
  "final_text": "{\"status\":\"done\",\"note\":\"Refund F-1 and ledger entry L-1 were already done before the interruption. I sent the customer email to avery.lund@example.com, which completes the task.\"}",
  "resume_text": "Read order O-5001 by id and customer C-201 by id. Issue a goodwill refund of 10.00 to the order's payment method. Post 10.00 to the goodwill ledger account with memo 'O-5001 lamp goodwill refund'. Email the customer at the address on file with subject 'Your lamp refund' and body 'We have issued a goodwill refund of 10.00 for order O-5001.'\n\nThis task was interrupted and is being resumed. The runtime's journal of the calls already made in this task, with their results, in order:\n1. read {\"id\": \"O-5001\", \"resource\": \"orders\"} -> {\"customer_id\": \"C-201\", \"id\": \"O-5001\", \"items\": [{\"qty\": 1, \"sku\": \"SKU-LAMP\"}], \"status\": \"delivered\", \"total\": 84.5}\n2. read {\"id\": \"C-201\", \"resource\": \"customers\"} -> {\"email\": \"avery.lund@example.com\", \"id\": \"C-201\", \"name\": \"Avery Lund\", \"tier\": \"standard\"}\n3. refund {\"amount\": 10.0, \"order_id\": \"O-5001\"} -> {\"id\": \"F-1\", \"ok\": true}\n4. post_ledger {\"account\": \"goodwill\", \"amount\": 10.0, \"memo\": \"O-5001 lamp goodwill refund\"} -> {\"id\": \"L-1\", \"ok\": true}\n\nContinue the task from where it stopped."
 }
}
