{
 "tasks": [
  {
   "id": "T01",
   "author_group": "own",
   "title": "Refund a damaged order",
   "instruction": "Order O-5003 arrived damaged. Refund it in full, post one note in #refunds with the order id and the amount refunded, and email the customer at the address on file to confirm the refund.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5003"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-203"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5003",
      "amount": 42.75
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#refunds",
      "text": "Refunded O-5003 in full: 42.75."
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "carmen.diaz@example.com",
      "subject": "Your refund for order O-5003",
      "body": "We refunded 42.75 for order O-5003, which arrived damaged."
     }
    }
   ],
   "n_effects": 3,
   "crash_at": 2,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5003",
    "field": "card_number"
   }
  },
  {
   "id": "T02",
   "author_group": "own",
   "title": "Archive a resolved queue record",
   "instruction": "Queue record R-301 is resolved. Move it to the archive (archive it, then delete it from the queue), then post one line in #support saying R-301 was archived.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-301"
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-301"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-301"
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#support",
      "text": "R-301 archived."
     }
    }
   ],
   "n_effects": 3,
   "crash_at": 2,
   "restricted_target": {
    "resource": "queue",
    "id": "R-301",
    "field": "card_number"
   }
  },
  {
   "id": "T03",
   "author_group": "own",
   "title": "Process a return",
   "instruction": "Order O-5006 came back unused. Refund it in full, put its items back in stock, and post one note in #warehouse saying which item went back on the shelf.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5006"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5006",
      "amount": 67.4
     }
    },
    {
     "tool": "adjust_stock",
     "args": {
      "sku": "SKU-LAMP",
      "delta": 1
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#warehouse",
      "text": "SKU-LAMP x1 back in stock from return O-5006."
     }
    }
   ],
   "n_effects": 3,
   "crash_at": 2,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5006",
    "field": "card_number"
   }
  },
  {
   "id": "T04",
   "author_group": "own",
   "title": "Goodwill credit for a late delivery",
   "instruction": "Customer C-202 waited two weeks for order O-5002. Give a goodwill refund of 15.00 on that order, record the same 15.00 in the goodwill ledger account with a memo naming the order, and email the customer to apologise and confirm the credit.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-202"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5002"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5002",
      "amount": 15.0
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "goodwill",
      "amount": 15.0,
      "memo": "Goodwill credit, late delivery of O-5002"
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "bea.okafor@example.com",
      "subject": "Sorry about order O-5002",
      "body": "We have refunded 15.00 as a goodwill credit for the late delivery."
     }
    }
   ],
   "n_effects": 3,
   "crash_at": 2,
   "restricted_target": {
    "resource": "customers",
    "id": "C-202",
    "field": "date_of_birth"
   }
  },
  {
   "id": "T05",
   "author_group": "own",
   "title": "Escalate an open complaint",
   "instruction": "Queue record R-304 is an open complaint about a scratched chair (order O-5010). Open one ticket for the customer describing the complaint, post one line in #escalations with the ticket id, and email the customer that the complaint is now a ticket.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-304"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-204"
     }
    },
    {
     "tool": "create_ticket",
     "args": {
      "customer_id": "C-204",
      "title": "Scratched chair, order O-5010",
      "body": "Complaint R-304: the chair from O-5010 arrived scratched."
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#escalations",
      "text": "R-304 escalated as T-1."
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "dev.patel@example.com",
      "subject": "Your complaint about order O-5010",
      "body": "Your complaint is now ticket T-1 and our team will follow up."
     }
    }
   ],
   "n_effects": 3,
   "crash_at": 2,
   "restricted_target": {
    "resource": "queue",
    "id": "R-304",
    "field": "card_number"
   }
  },
  {
   "id": "T06",
   "author_group": "own",
   "title": "Archive two resolved records",
   "instruction": "Queue records R-303 and R-305 are resolved. Move each to the archive (archive it, then delete it from the queue), then post one line in #support listing both ids.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-303"
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-303"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-303"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-305"
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-305"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-305"
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#support",
      "text": "Archived R-303 and R-305."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "queue",
    "id": "R-303",
    "field": "card_number"
   }
  },
  {
   "id": "T07",
   "author_group": "own",
   "title": "Write off a damaged shipment",
   "instruction": "Order O-5010 was damaged in transit. Refund it in full, record the same amount in the write-off ledger account with a memo naming the order, open one ticket for the customer to track the carrier claim, and post one note in #finance with the amount written off.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5010"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5010",
      "amount": 142.0
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "write-off",
      "amount": 142.0,
      "memo": "Write-off, O-5010 damaged in transit"
     }
    },
    {
     "tool": "create_ticket",
     "args": {
      "customer_id": "C-204",
      "title": "Carrier claim for order O-5010",
      "body": "Track the carrier claim for O-5010, damaged in transit."
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#finance",
      "text": "Wrote off 142.00 for O-5010."
     }
    }
   ],
   "n_effects": 4,
   "crash_at": 2,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5010",
    "field": "card_number"
   }
  },
  {
   "id": "T08",
   "author_group": "own",
   "title": "Close out a returned order",
   "instruction": "The mugs from order O-5008 are back. Refund the order in full, put the items back in stock, move queue record R-306 to the archive (archive it, then delete it from the queue), and email the customer that the return is complete.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5008"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-208"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5008",
      "amount": 54.0
     }
    },
    {
     "tool": "adjust_stock",
     "args": {
      "sku": "SKU-MUG",
      "delta": 4
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-306"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-306"
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "hana.sato@example.com",
      "subject": "Your return for order O-5008",
      "body": "Your return is complete and 54.00 has been refunded."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5008",
    "field": "card_number"
   }
  },
  {
   "id": "T09",
   "author_group": "own",
   "title": "Shipping credit",
   "instruction": "Customer C-201 paid express shipping on order O-5001 but it arrived late. Record a 9.99 shipping credit in the shipping-credit ledger account with a memo naming the order, email the customer about the credit, and post one line in #support noting it.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-201"
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "shipping-credit",
      "amount": 9.99,
      "memo": "Shipping credit, O-5001 arrived late"
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "avery.lund@example.com",
      "subject": "A credit for order O-5001",
      "body": "We have credited 9.99 for the late express delivery of O-5001."
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#support",
      "text": "Shipping credit 9.99 for C-201, O-5001."
     }
    }
   ],
   "n_effects": 3,
   "crash_at": 2,
   "restricted_target": {
    "resource": "customers",
    "id": "C-201",
    "field": "date_of_birth"
   }
  },
  {
   "id": "T10",
   "author_group": "own",
   "title": "Returned cables",
   "instruction": "Order O-5011 was returned. Refund it in full, put its items back in stock, move queue record R-308 to the archive (archive it, then delete it from the queue), and post one note in #refunds with the order id and amount.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5011"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5011",
      "amount": 38.0
     }
    },
    {
     "tool": "adjust_stock",
     "args": {
      "sku": "SKU-CABLE",
      "delta": 2
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-308"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-308"
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#refunds",
      "text": "Refunded O-5011 in full: 38.00."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5011",
    "field": "card_number"
   }
  },
  {
   "id": "A01",
   "author_group": "independent",
   "title": "Lamp goodwill refund",
   "instruction": "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.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5001"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-201"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5001",
      "amount": 10.0
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "goodwill",
      "amount": 10.0,
      "memo": "O-5001 lamp goodwill refund"
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "avery.lund@example.com",
      "subject": "Your lamp refund",
      "body": "We have issued a goodwill refund of 10.00 for order O-5001."
     }
    }
   ],
   "n_effects": 3,
   "crash_at": 2,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5001",
    "field": "card_number"
   }
  },
  {
   "id": "A02",
   "author_group": "independent",
   "title": "Chair shipping credit",
   "instruction": "Read order O-5002 by id and customer C-202 by id. Apply an approved shipping credit by refunding 9.00 to the order's payment method. Post 9.00 to shipping-credit with memo 'O-5002 shipping credit'. Email the customer at the address on file with subject 'Your shipping credit' and body 'We have refunded 9.00 for shipping on order O-5002.' Post to #refunds exactly 'O-5002: shipping credit of 9.00 refunded and recorded.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5002"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-202"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5002",
      "amount": 9.0
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "shipping-credit",
      "amount": 9.0,
      "memo": "O-5002 shipping credit"
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "bea.okafor@example.com",
      "subject": "Your shipping credit",
      "body": "We have refunded 9.00 for shipping on order O-5002."
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#refunds",
      "text": "O-5002: shipping credit of 9.00 refunded and recorded."
     }
    }
   ],
   "n_effects": 4,
   "crash_at": 2,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5002",
    "field": "card_number"
   }
  },
  {
   "id": "A03",
   "author_group": "independent",
   "title": "Resolve broken mugs refund",
   "instruction": "Read order O-5003 by id and queue record R-301 by id. Refund the order in full. Post 42.75 to refunds-expense with memo 'O-5003 broken mugs refund'. Archive R-301, then delete it from the queue. Post to #support exactly 'O-5003: full refund of 42.75 issued for broken mugs; R-301 archived and removed from the queue.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5003"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-301"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5003",
      "amount": 42.75
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "refunds-expense",
      "amount": 42.75,
      "memo": "O-5003 broken mugs refund"
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-301"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-301"
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#support",
      "text": "O-5003: full refund of 42.75 issued for broken mugs; R-301 archived and removed from the queue."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5003",
    "field": "card_number"
   }
  },
  {
   "id": "A04",
   "author_group": "independent",
   "title": "Close lost cables case",
   "instruction": "Read queue record R-302 by id, order O-5005 by id, and customer C-205 by id. Refund O-5005 in full. Post 18.20 to refunds-expense with memo 'O-5005 lost shipment refund'. Archive R-302, then delete it from the queue. Email the customer at the address on file with subject 'Refund for your lost shipment' and body 'We have issued a full refund of 18.20 for order O-5005 because the cables were lost in transit.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-302"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5005"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-205"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5005",
      "amount": 18.2
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "refunds-expense",
      "amount": 18.2,
      "memo": "O-5005 lost shipment refund"
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-302"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-302"
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "elif.sahin@example.com",
      "subject": "Refund for your lost shipment",
      "body": "We have issued a full refund of 18.20 for order O-5005 because the cables were lost in transit."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "queue",
    "id": "R-302",
    "field": "card_number"
   }
  },
  {
   "id": "A05",
   "author_group": "independent",
   "title": "Process unused lamp return",
   "instruction": "Read order O-5006 by id, queue record R-305 by id, and stock item SKU-LAMP by id. The returned lamp is approved for resale and has not yet been added to stock. Refund O-5006 in full, add one unit to SKU-LAMP stock, and post 67.40 to refunds-expense with memo 'O-5006 unused lamp return refund'. Archive R-305, then delete it from the queue.",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5006"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-305"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "stock",
      "id": "SKU-LAMP"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5006",
      "amount": 67.4
     }
    },
    {
     "tool": "adjust_stock",
     "args": {
      "sku": "SKU-LAMP",
      "delta": 1
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "refunds-expense",
      "amount": 67.4,
      "memo": "O-5006 unused lamp return refund"
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-305"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-305"
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5006",
    "field": "card_number"
   }
  },
  {
   "id": "A06",
   "author_group": "independent",
   "title": "Inspect returned mugs",
   "instruction": "Read order O-5008 by id, customer C-208 by id, and stock item SKU-MUG by id. Inspection found three returned mugs suitable for resale and one damaged mug with an approved write-off value of 13.50; none of these returned mugs is included in current stock. Refund O-5008 in full, add three units to SKU-MUG stock, and post 13.50 to write-off with memo 'O-5008 one damaged returned mug'. Email the customer at the address on file with subject 'Your mug return refund' and body 'We have issued a full refund of 54.00 for your returned mugs on order O-5008.' Post to #warehouse exactly 'O-5008: three returned mugs added to stock; one damaged mug written off at 13.50.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5008"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-208"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "stock",
      "id": "SKU-MUG"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5008",
      "amount": 54.0
     }
    },
    {
     "tool": "adjust_stock",
     "args": {
      "sku": "SKU-MUG",
      "delta": 3
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "write-off",
      "amount": 13.5,
      "memo": "O-5008 one damaged returned mug"
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "hana.sato@example.com",
      "subject": "Your mug return refund",
      "body": "We have issued a full refund of 54.00 for your returned mugs on order O-5008."
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#warehouse",
      "text": "O-5008: three returned mugs added to stock; one damaged mug written off at 13.50."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5008",
    "field": "card_number"
   }
  },
  {
   "id": "A07",
   "author_group": "independent",
   "title": "Refund and escalate chair damage",
   "instruction": "Read queue record R-304 by id, order O-5010 by id, and customer C-204 by id. Refund O-5010 in full and post 142.00 to refunds-expense with memo 'O-5010 damaged chair refund'. Open a ticket for C-204 titled 'Investigate chair damage on O-5010' with body 'Review the scratched chair complaint in R-304 and investigate transit damage on O-5010. A full refund of 142.00 has been issued.' Post to #escalations exactly 'C-204: investigate transit damage on O-5010 and complaint R-304; full refund of 142.00 issued.' Email the customer at the address on file with subject 'Your damaged chair refund' and body 'We have issued a full refund of 142.00 for order O-5010 and opened a support ticket to investigate the damage.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-304"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5010"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-204"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5010",
      "amount": 142.0
     }
    },
    {
     "tool": "post_ledger",
     "args": {
      "account": "refunds-expense",
      "amount": 142.0,
      "memo": "O-5010 damaged chair refund"
     }
    },
    {
     "tool": "create_ticket",
     "args": {
      "customer_id": "C-204",
      "title": "Investigate chair damage on O-5010",
      "body": "Review the scratched chair complaint in R-304 and investigate transit damage on O-5010. A full refund of 142.00 has been issued."
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#escalations",
      "text": "C-204: investigate transit damage on O-5010 and complaint R-304; full refund of 142.00 issued."
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "dev.patel@example.com",
      "subject": "Your damaged chair refund",
      "body": "We have issued a full refund of 142.00 for order O-5010 and opened a support ticket to investigate the damage."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "queue",
    "id": "R-304",
    "field": "card_number"
   }
  },
  {
   "id": "A08",
   "author_group": "independent",
   "title": "Finish returned cables case",
   "instruction": "Read order O-5011 by id, queue record R-308 by id, and stock item SKU-CABLE by id. Both returned cables are approved for resale and have not yet been added to stock. Refund O-5011 in full and add two units to SKU-CABLE stock. Archive R-308, then delete it from the queue. Post to #refunds exactly 'O-5011: full refund of 38.00 issued, two cables restocked, and R-308 archived and removed from the queue.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5011"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-308"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "stock",
      "id": "SKU-CABLE"
     }
    },
    {
     "tool": "refund",
     "args": {
      "order_id": "O-5011",
      "amount": 38.0
     }
    },
    {
     "tool": "adjust_stock",
     "args": {
      "sku": "SKU-CABLE",
      "delta": 2
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-308"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-308"
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#refunds",
      "text": "O-5011: full refund of 38.00 issued, two cables restocked, and R-308 archived and removed from the queue."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5011",
    "field": "card_number"
   }
  },
  {
   "id": "A09",
   "author_group": "independent",
   "title": "Archive resolved product questions",
   "instruction": "Read queue record R-303 by id, then queue record R-307 by id. Move these two resolved product questions to the archive: archive R-303 and then delete it from the queue; archive R-307 and then delete it from the queue. Post to #support exactly 'Resolved product questions R-303 and R-307 have been archived and removed from the queue.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-303"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "queue",
      "id": "R-307"
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-303"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-303"
     }
    },
    {
     "tool": "archive_record",
     "args": {
      "record_id": "R-307"
     }
    },
    {
     "tool": "delete_record",
     "args": {
      "record_id": "R-307"
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#support",
      "text": "Resolved product questions R-303 and R-307 have been archived and removed from the queue."
     }
    }
   ],
   "n_effects": 5,
   "crash_at": 3,
   "restricted_target": {
    "resource": "queue",
    "id": "R-303",
    "field": "card_number"
   }
  },
  {
   "id": "A10",
   "author_group": "independent",
   "title": "Request priority order review",
   "instruction": "Read order O-5012 by id and customer C-207 by id. Open a ticket for C-207 titled 'Priority fulfillment review for O-5012' with body 'Review fulfillment timing for processing order O-5012, containing one desk and one shelf, for priority customer C-207.' Email the customer at the address on file with subject 'We are reviewing your order' and body 'We have opened a support ticket to review fulfillment timing for order O-5012. Your order is currently processing.' Post to #escalations exactly 'Please review fulfillment timing for O-5012 for priority customer C-207; a support ticket has been opened.'",
   "steps": [
    {
     "tool": "read",
     "args": {
      "resource": "orders",
      "id": "O-5012"
     }
    },
    {
     "tool": "read",
     "args": {
      "resource": "customers",
      "id": "C-207"
     }
    },
    {
     "tool": "create_ticket",
     "args": {
      "customer_id": "C-207",
      "title": "Priority fulfillment review for O-5012",
      "body": "Review fulfillment timing for processing order O-5012, containing one desk and one shelf, for priority customer C-207."
     }
    },
    {
     "tool": "send_email",
     "args": {
      "to": "grace.mbeki@example.com",
      "subject": "We are reviewing your order",
      "body": "We have opened a support ticket to review fulfillment timing for order O-5012. Your order is currently processing."
     }
    },
    {
     "tool": "post_message",
     "args": {
      "channel": "#escalations",
      "text": "Please review fulfillment timing for O-5012 for priority customer C-207; a support ticket has been opened."
     }
    }
   ],
   "n_effects": 3,
   "crash_at": 2,
   "restricted_target": {
    "resource": "orders",
    "id": "O-5012",
    "field": "card_number"
   }
  }
 ],
 "author_groups": {
  "own": "written by the study author alongside the runtimes",
  "independent": "written by an independent author who never saw the runtimes, the faults or the scoring"
 }
}
