{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-92e66e2b363f",
    "generated_at": "2026-11-07T07:28:20.342Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "489e6c42ac4470bc63c6478d1ac7265e7bd3684722e637e93a2d3c8ffad44c1e",
    "replay": {
      "cassette_digest": "75442e35d7441d16ec25f9eb5fc8cab60e31b1735250b40969cf0886317d7c22",
      "entry_count": 5,
      "algorithm": "oracle-chain/sha256",
      "note": "The run's oracle stream — every model response and tool output, hash-chained. Re-execute the agent against `events` with @runback/replay and the cassette digest must reproduce. This is proof the recording IS the deterministic input stream of the run — an audit you can re-run, not just read."
    },
    "signed": true,
    "signature": {
      "alg": "Ed25519",
      "value": "8b05c30db7415c9ac1570a04d108ae49d090238caf923013f3f17ff6407a28cef0ec7ff7445f1f4158aa46c9f29078aa3f86adf05a0d958e97833d565309930a",
      "pubkey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEArDPmR+Gvu1HawnSvM6xjZao7BVPPQ80Qq3sa1hAYvDU=\n-----END PUBLIC KEY-----\n"
    },
    "verify": "Recompute the event chain h_i = SHA-256(h_{i-1} + canonical(event_i)) over `events` → must equal content_digest. Recompute the oracle-stream digest from `events` → must equal replay.cassette_digest. The signature covers `${content_digest}:${cassette_digest}`. Ed25519: verify with the public key embedded in manifest.signature.pubkey (no server key needed — fully offline-verifiable). HMAC-SHA256 (legacy): requires AUDIT_SIGNING_KEY. POST this record to /api/audit/verify.",
    "spec_url": "https://runback.dev/spec",
    "verifier_url": "https://runback.dev/verify"
  },
  "run": {
    "run_id": "sbx-notify-customer-92e66e2b363f",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Hand-off from support-refund-agent: notify customer #9980 — refund processed, order ORD-11556. Message: Hi Parker, we've processed a refund of A$206.19 for order ORD-11556 due to the duplicate charge. The refund has been issued to your original payment method and should appear within 3-5 business days. Thank you for bringing this to our atten",
    "output": {
      "summary": "I notified customer #9980 via SMS about their processed refund for order ORD-11556."
    },
    "error": null,
    "metadata": {
      "agent": {
        "description": "Sends the day's priority notifications. Runback demo agent: real model calls and real policy decisions; its tools act on a sandbox of synthetic customers, orders and accounts.",
        "systemOfRecord": "Runback demo sandbox (synthetic data)"
      },
      "model": "gpt-4o-mini",
      "scope": [
        "get_customer_contact",
        "send_email",
        "send_sms"
      ],
      "demo_agent": true,
      "est_cost_usd": 0.000226,
      "parent_run_id": "sbx-support-refund-612431b821b0",
      "sandbox_tools": true,
      "scenario_seed": "support-refund-agent:2026-11-07:32>notify-customer-agent"
    },
    "step_count": 3,
    "total_tokens": 1166,
    "started_at": "2026-11-07T06:10:53.11+00:00",
    "ended_at": "2026-11-07T06:11:00.117+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": "Hand-off from support-refund-agent: notify customer #9980 — refund processed, order ORD-11556. Message: Hi Parker, we've processed a refund of A$206.19 for order ORD-11556 due to the duplicate charge. The refund has been issued to your original payment method and should appear within 3-5 business days. Thank you for bringing this to our atten",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-92e66e2b363f",
      "status": "running",
      "ts_end": "2026-11-07T06:11:00.117Z",
      "span_id": "r",
      "metadata": {
        "agent": {
          "description": "Sends the day's priority notifications. Runback demo agent: real model calls and real policy decisions; its tools act on a sandbox of synthetic customers, orders and accounts.",
          "systemOfRecord": "Runback demo sandbox (synthetic data)"
        },
        "model": "gpt-4o-mini",
        "scope": [
          "get_customer_contact",
          "send_email",
          "send_sms"
        ],
        "demo_agent": true,
        "est_cost_usd": 0.000226,
        "parent_run_id": "sbx-support-refund-612431b821b0",
        "sandbox_tools": true,
        "scenario_seed": "support-refund-agent:2026-11-07:32>notify-customer-agent"
      },
      "ts_start": "2026-11-07T06:10:53.110Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "fd3c63f36b6906c3b6fda176058ce055a0ad468167c4ba6da6089bf61e7acc88"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 287,
        "total_tokens": 305,
        "output_tokens": 18
      },
      "run_id": "sbx-notify-customer-92e66e2b363f",
      "ts_end": "2026-11-07T06:10:55.406Z",
      "request": {
        "tools": [
          {
            "name": "get_customer_contact",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id"
              ],
              "properties": {
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Get a customer's contact details and SMS opt-in."
          },
          {
            "name": "send_email",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id",
                "subject",
                "body"
              ],
              "properties": {
                "body": {
                  "type": "string",
                  "description": "Body"
                },
                "subject": {
                  "type": "string",
                  "description": "Subject"
                },
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Send an email."
          },
          {
            "name": "send_sms",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id",
                "message"
              ],
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Under 160 characters"
                },
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Send an SMS."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's customer notification agent. You are running in Runback's public demo sandbox: every customer, order, invoice and account is synthetic, and your tools act on test data only. For each event, look up the customer's contact preferences and send one short notification: SMS only to customers who opted in, email otherwise. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Hand-off from support-refund-agent: notify customer #9980 — refund processed, order ORD-11556. Message: Hi Parker, we've processed a refund of A$206.19 for order ORD-11556 due to the duplicate charge. The refund has been issued to your original payment method and should appear within 3-5 business days. Thank you for bringing this to our atten"
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 9980
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "call_sy6zu7KELRnJGz5m909dLAB3"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T06:10:53.110Z",
      "latency_ms": 2296,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "4a2f45ac9384b4f0f2ac21207fae5c4d8c1b2cc9713f8aec76adff3fc3dceaae"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 9980
      },
      "output": {
        "email": "parker.demoford9980@example.com",
        "sms_opt_in": true,
        "customer_id": 9980
      },
      "run_id": "sbx-notify-customer-92e66e2b363f",
      "ts_end": "2026-11-07T06:10:55.501Z",
      "span_id": "t1",
      "ts_start": "2026-11-07T06:10:55.406Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 95,
      "tool_call_id": "call_sy6zu7KELRnJGz5m909dLAB3",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "3cb54e3037fa1857fb273242d41d85d198ad3c07edadb3a8bd86f5e4ba0f176b"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 336,
        "total_tokens": 411,
        "output_tokens": 75
      },
      "run_id": "sbx-notify-customer-92e66e2b363f",
      "ts_end": "2026-11-07T06:10:58.367Z",
      "request": {
        "tools": [
          {
            "name": "get_customer_contact",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id"
              ],
              "properties": {
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Get a customer's contact details and SMS opt-in."
          },
          {
            "name": "send_email",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id",
                "subject",
                "body"
              ],
              "properties": {
                "body": {
                  "type": "string",
                  "description": "Body"
                },
                "subject": {
                  "type": "string",
                  "description": "Subject"
                },
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Send an email."
          },
          {
            "name": "send_sms",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id",
                "message"
              ],
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Under 160 characters"
                },
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Send an SMS."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's customer notification agent. You are running in Runback's public demo sandbox: every customer, order, invoice and account is synthetic, and your tools act on test data only. For each event, look up the customer's contact preferences and send one short notification: SMS only to customers who opted in, email otherwise. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Hand-off from support-refund-agent: notify customer #9980 — refund processed, order ORD-11556. Message: Hi Parker, we've processed a refund of A$206.19 for order ORD-11556 due to the duplicate charge. The refund has been issued to your original payment method and should appear within 3-5 business days. Thank you for bringing this to our atten"
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 9980
                },
                "toolName": "get_customer_contact",
                "toolCallId": "call_sy6zu7KELRnJGz5m909dLAB3"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "parker.demoford9980@example.com",
                    "sms_opt_in": true,
                    "customer_id": 9980
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "call_sy6zu7KELRnJGz5m909dLAB3"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "message": "Hi Parker, we've processed a refund of A$206.19 for order ORD-11556 due to the duplicate charge. The refund has been issued to your original payment method and should appear within 3-5 business days. Thank you for bringing this to our attention.",
              "customer_id": 9980
            },
            "tool_name": "send_sms",
            "tool_call_id": "call_mTsDJUxL97EIkalUpzwzke3B"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T06:10:55.501Z",
      "latency_ms": 2866,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "46df59a178650a97480c6909cd24a609db478fdd49ce6cee96f664a6ea3bba79"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "message": "Hi Parker, we've processed a refund of A$206.19 for order ORD-11556 due to the duplicate charge. The refund has been issued to your original payment method and should appear within 3-5 business days. Thank you for bringing this to our attention.",
        "customer_id": 9980
      },
      "output": {
        "sent": true,
        "channel": "sms",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-92e66e2b363f",
      "ts_end": "2026-11-07T06:10:58.687Z",
      "span_id": "t2",
      "ts_start": "2026-11-07T06:10:58.367Z",
      "tool_name": "send_sms",
      "latency_ms": 320,
      "tool_call_id": "call_mTsDJUxL97EIkalUpzwzke3B",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "9c248a824087b16af40229f7154d2ab24de03d0dd7bcbf0879f106811ee2cfce"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 429,
        "total_tokens": 450,
        "output_tokens": 21
      },
      "run_id": "sbx-notify-customer-92e66e2b363f",
      "ts_end": "2026-11-07T06:11:00.117Z",
      "request": {
        "tools": [
          {
            "name": "get_customer_contact",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id"
              ],
              "properties": {
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Get a customer's contact details and SMS opt-in."
          },
          {
            "name": "send_email",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id",
                "subject",
                "body"
              ],
              "properties": {
                "body": {
                  "type": "string",
                  "description": "Body"
                },
                "subject": {
                  "type": "string",
                  "description": "Subject"
                },
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Send an email."
          },
          {
            "name": "send_sms",
            "parameters": {
              "type": "object",
              "required": [
                "customer_id",
                "message"
              ],
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Under 160 characters"
                },
                "customer_id": {
                  "type": "number",
                  "description": "Customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Send an SMS."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's customer notification agent. You are running in Runback's public demo sandbox: every customer, order, invoice and account is synthetic, and your tools act on test data only. For each event, look up the customer's contact preferences and send one short notification: SMS only to customers who opted in, email otherwise. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Hand-off from support-refund-agent: notify customer #9980 — refund processed, order ORD-11556. Message: Hi Parker, we've processed a refund of A$206.19 for order ORD-11556 due to the duplicate charge. The refund has been issued to your original payment method and should appear within 3-5 business days. Thank you for bringing this to our atten"
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 9980
                },
                "toolName": "get_customer_contact",
                "toolCallId": "call_sy6zu7KELRnJGz5m909dLAB3"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "parker.demoford9980@example.com",
                    "sms_opt_in": true,
                    "customer_id": 9980
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "call_sy6zu7KELRnJGz5m909dLAB3"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "message": "Hi Parker, we've processed a refund of A$206.19 for order ORD-11556 due to the duplicate charge. The refund has been issued to your original payment method and should appear within 3-5 business days. Thank you for bringing this to our attention.",
                  "customer_id": 9980
                },
                "toolName": "send_sms",
                "toolCallId": "call_mTsDJUxL97EIkalUpzwzke3B"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "sms",
                    "sandbox": true
                  }
                },
                "toolName": "send_sms",
                "toolCallId": "call_mTsDJUxL97EIkalUpzwzke3B"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "I notified customer #9980 via SMS about their processed refund for order ORD-11556.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-07T06:10:58.687Z",
      "latency_ms": 1430,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "740ea6abfea79b6d947d7af81e2dbf9ed7e30ade916a530b3f53262ec0d4a759"
    },
    {
      "seq": 6,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "I notified customer #9980 via SMS about their processed refund for order ORD-11556."
      },
      "run_id": "sbx-notify-customer-92e66e2b363f",
      "status": "success",
      "ts_end": "2026-11-07T06:11:00.117Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-07T06:11:00.117Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "489e6c42ac4470bc63c6478d1ac7265e7bd3684722e637e93a2d3c8ffad44c1e"
    }
  ]
}