{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-336d47c8bf13",
    "generated_at": "2026-11-07T07:28:02.963Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "64f8ad39741c7a5bbd722d853659c4540420f808819bc31d46bf9b6a3b2a8373",
    "replay": {
      "cassette_digest": "8a828dda2255adbdc2e304a56acc8fda4810e242d77891b6860d6b4749dbde6d",
      "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": "a143995ca2df2aef65b204b6b732effdf08fdfb095c4e13653dbc9cd80fcf818299872e1cb000e327ae0ac7d54fd0fca47d54bc346395c2573e506c5a60ad809",
      "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-336d47c8bf13",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Hand-off from support-refund-agent: notify customer #6411 — refund processed, order ORD-22963. Message: Your refund of A$195.45 for order ORD-22963 has been processed due to the damaged item.",
    "output": {
      "summary": "Sent an email to customer #6411 notifying them that their refund of A$195.45 for order ORD-22963 has been processed."
    },
    "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": "openai/gpt-oss-20b",
      "scope": [
        "get_customer_contact",
        "send_email",
        "send_sms"
      ],
      "demo_agent": true,
      "est_cost_usd": 0.000072,
      "parent_run_id": "sbx-support-refund-24d91ca4e3a1",
      "sandbox_tools": true,
      "scenario_seed": "support-refund-agent:2026-11-07:8>notify-customer-agent"
    },
    "step_count": 3,
    "total_tokens": 1507,
    "started_at": "2026-11-07T01:11:07.762+00:00",
    "ended_at": "2026-11-07T01:11:09.005+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 #6411 — refund processed, order ORD-22963. Message: Your refund of A$195.45 for order ORD-22963 has been processed due to the damaged item.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-336d47c8bf13",
      "status": "running",
      "ts_end": "2026-11-07T01:11:09.005Z",
      "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": "openai/gpt-oss-20b",
        "scope": [
          "get_customer_contact",
          "send_email",
          "send_sms"
        ],
        "demo_agent": true,
        "est_cost_usd": 0.000072,
        "parent_run_id": "sbx-support-refund-24d91ca4e3a1",
        "sandbox_tools": true,
        "scenario_seed": "support-refund-agent:2026-11-07:8>notify-customer-agent"
      },
      "ts_start": "2026-11-07T01:11:07.762Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "77420c69691bf1758028d39ca0cb5a32bbbfc59f565b6f9c6c649b2c5b2157e8"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 354,
        "total_tokens": 425,
        "output_tokens": 71
      },
      "run_id": "sbx-notify-customer-336d47c8bf13",
      "ts_end": "2026-11-07T01:11:08.154Z",
      "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 #6411 — refund processed, order ORD-22963. Message: Your refund of A$195.45 for order ORD-22963 has been processed due to the damaged item."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 6411
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_1de48f7c-ba8e-4b8e-8b02-47fcd5039c4c"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T01:11:07.762Z",
      "latency_ms": 392,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "75f2384f7f834c8859241c0632d97b1ca1716f2b89a79071b3052b24216a828d"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 6411
      },
      "output": {
        "email": "sage.demoford6411@example.com",
        "sms_opt_in": false,
        "customer_id": 6411
      },
      "run_id": "sbx-notify-customer-336d47c8bf13",
      "ts_end": "2026-11-07T01:11:08.177Z",
      "span_id": "t1",
      "ts_start": "2026-11-07T01:11:08.154Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 23,
      "tool_call_id": "fc_1de48f7c-ba8e-4b8e-8b02-47fcd5039c4c",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "2112ebe952863d2b78254f89279151fc02c52b7530d19f90b6f2304e85d9a18e"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 406,
        "total_tokens": 540,
        "output_tokens": 134
      },
      "run_id": "sbx-notify-customer-336d47c8bf13",
      "ts_end": "2026-11-07T01:11:08.583Z",
      "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 #6411 — refund processed, order ORD-22963. Message: Your refund of A$195.45 for order ORD-22963 has been processed due to the damaged item."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 6411
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_1de48f7c-ba8e-4b8e-8b02-47fcd5039c4c"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "sage.demoford6411@example.com",
                    "sms_opt_in": false,
                    "customer_id": 6411
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_1de48f7c-ba8e-4b8e-8b02-47fcd5039c4c"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "body": "Your refund of A$195.45 for order ORD-22963 has been processed due to the damaged item.",
              "subject": "Refund Processed for Order ORD-22963",
              "customer_id": 6411
            },
            "tool_name": "send_email",
            "tool_call_id": "fc_3f9c1446-6aad-44fb-a736-40fe3a319871"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T01:11:08.177Z",
      "latency_ms": 406,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "4b16f7ddb2fcdc61fef5dac447f99b16e5924904a68844f950d9ca18f5fa9905"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "body": "Your refund of A$195.45 for order ORD-22963 has been processed due to the damaged item.",
        "subject": "Refund Processed for Order ORD-22963",
        "customer_id": 6411
      },
      "output": {
        "sent": true,
        "channel": "email",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-336d47c8bf13",
      "ts_end": "2026-11-07T01:11:08.605Z",
      "span_id": "t2",
      "ts_start": "2026-11-07T01:11:08.583Z",
      "tool_name": "send_email",
      "latency_ms": 22,
      "tool_call_id": "fc_3f9c1446-6aad-44fb-a736-40fe3a319871",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "de245969a7c8a509e0bf08f6321a2a1a9d24374f3714dcabd2e37f2ee5cc00a9"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 483,
        "total_tokens": 542,
        "output_tokens": 59
      },
      "run_id": "sbx-notify-customer-336d47c8bf13",
      "ts_end": "2026-11-07T01:11:09.005Z",
      "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 #6411 — refund processed, order ORD-22963. Message: Your refund of A$195.45 for order ORD-22963 has been processed due to the damaged item."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 6411
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_1de48f7c-ba8e-4b8e-8b02-47fcd5039c4c"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "sage.demoford6411@example.com",
                    "sms_opt_in": false,
                    "customer_id": 6411
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_1de48f7c-ba8e-4b8e-8b02-47fcd5039c4c"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "body": "Your refund of A$195.45 for order ORD-22963 has been processed due to the damaged item.",
                  "subject": "Refund Processed for Order ORD-22963",
                  "customer_id": 6411
                },
                "toolName": "send_email",
                "toolCallId": "fc_3f9c1446-6aad-44fb-a736-40fe3a319871"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "email",
                    "sandbox": true
                  }
                },
                "toolName": "send_email",
                "toolCallId": "fc_3f9c1446-6aad-44fb-a736-40fe3a319871"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Sent an email to customer #6411 notifying them that their refund of A$195.45 for order ORD-22963 has been processed.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-07T01:11:08.605Z",
      "latency_ms": 400,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "06b193aae836d117bb5d41ae25876b18d9902ddf6e1db81888061dda072eebb7"
    },
    {
      "seq": 6,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Sent an email to customer #6411 notifying them that their refund of A$195.45 for order ORD-22963 has been processed."
      },
      "run_id": "sbx-notify-customer-336d47c8bf13",
      "status": "success",
      "ts_end": "2026-11-07T01:11:09.005Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-07T01:11:09.005Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "64f8ad39741c7a5bbd722d853659c4540420f808819bc31d46bf9b6a3b2a8373"
    }
  ]
}