{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-88d6649b12d9",
    "generated_at": "2026-11-07T07:28:26.694Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "671661b064ddc9bc79ce722fe15cd9f09802bb469560124158da2e92cfb72090",
    "replay": {
      "cassette_digest": "5f253e5280247f4cb2224a2c1ddfd3654d4c61d0492e1f06d3edeec7f24922ed",
      "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": "3406742143dca4c829e4e1513d32e6683ce52d91c2534c9f93ae1e23ed07b39f235b6c04ee5373a2f28293554b2e529edf8ed31c7dd41ba1e46f41f928ed040b",
      "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-88d6649b12d9",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Send today's priority notifications: customer #8646 — appointment tomorrow.",
    "output": {
      "summary": "Sent an email reminder to customer #8646 about their appointment tomorrow."
    },
    "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",
      "demo_agent": true,
      "est_cost_usd": 0.000058,
      "sandbox_tools": true,
      "scenario_seed": "notify-customer-agent:2026-11-07:36"
    },
    "step_count": 3,
    "total_tokens": 1304,
    "started_at": "2026-11-07T06:11:11.601+00:00",
    "ended_at": "2026-11-07T06:11:12.733+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": "Send today's priority notifications: customer #8646 — appointment tomorrow.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-88d6649b12d9",
      "status": "running",
      "ts_end": "2026-11-07T06:11:12.733Z",
      "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",
        "demo_agent": true,
        "est_cost_usd": 0.000058,
        "sandbox_tools": true,
        "scenario_seed": "notify-customer-agent:2026-11-07:36"
      },
      "ts_start": "2026-11-07T06:11:11.601Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "ab268cbf4f9b520a6b5f25466e70981e49273ac4fd78bf645f93c7b13a59afa7"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 319,
        "total_tokens": 395,
        "output_tokens": 76
      },
      "run_id": "sbx-notify-customer-88d6649b12d9",
      "ts_end": "2026-11-07T06:11:11.933Z",
      "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": "Send today's priority notifications: customer #8646 — appointment tomorrow."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 8646
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_7276c053-0fb4-4b67-acaa-33875df6ce69"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T06:11:11.601Z",
      "latency_ms": 332,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "194f77ca11770bc76eaa7b5d301b53accf54814c7bff54e96b03721d7de933e8"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 8646
      },
      "output": {
        "email": "reese.fixture8646@example.com",
        "sms_opt_in": false,
        "customer_id": 8646
      },
      "run_id": "sbx-notify-customer-88d6649b12d9",
      "ts_end": "2026-11-07T06:11:11.955Z",
      "span_id": "t1",
      "ts_start": "2026-11-07T06:11:11.933Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 22,
      "tool_call_id": "fc_7276c053-0fb4-4b67-acaa-33875df6ce69",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "ac896f9218a8e63091f3fcca0d3e76d742eef47173a504eb2aea4b563c060545"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 370,
        "total_tokens": 460,
        "output_tokens": 90
      },
      "run_id": "sbx-notify-customer-88d6649b12d9",
      "ts_end": "2026-11-07T06:11:12.385Z",
      "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": "Send today's priority notifications: customer #8646 — appointment tomorrow."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 8646
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_7276c053-0fb4-4b67-acaa-33875df6ce69"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "reese.fixture8646@example.com",
                    "sms_opt_in": false,
                    "customer_id": 8646
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_7276c053-0fb4-4b67-acaa-33875df6ce69"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "body": "Dear customer, you have an appointment scheduled for tomorrow. Please confirm.",
              "subject": "Appointment Reminder",
              "customer_id": 8646
            },
            "tool_name": "send_email",
            "tool_call_id": "fc_0a1a0a0f-468c-4e81-9605-2610bddb838c"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T06:11:11.955Z",
      "latency_ms": 430,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "533c6ce8e7a4078f416debe799d8434f7ec50d2930454cfd0cca5b54b9d365e1"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "body": "Dear customer, you have an appointment scheduled for tomorrow. Please confirm.",
        "subject": "Appointment Reminder",
        "customer_id": 8646
      },
      "output": {
        "sent": true,
        "channel": "email",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-88d6649b12d9",
      "ts_end": "2026-11-07T06:11:12.405Z",
      "span_id": "t2",
      "ts_start": "2026-11-07T06:11:12.385Z",
      "tool_name": "send_email",
      "latency_ms": 20,
      "tool_call_id": "fc_0a1a0a0f-468c-4e81-9605-2610bddb838c",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "d3577a8bb8204c34f801b8a3a69527fc5b66729b14c65c7528c3dbc0e154352b"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 431,
        "total_tokens": 449,
        "output_tokens": 18
      },
      "run_id": "sbx-notify-customer-88d6649b12d9",
      "ts_end": "2026-11-07T06:11:12.733Z",
      "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": "Send today's priority notifications: customer #8646 — appointment tomorrow."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 8646
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_7276c053-0fb4-4b67-acaa-33875df6ce69"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "reese.fixture8646@example.com",
                    "sms_opt_in": false,
                    "customer_id": 8646
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_7276c053-0fb4-4b67-acaa-33875df6ce69"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "body": "Dear customer, you have an appointment scheduled for tomorrow. Please confirm.",
                  "subject": "Appointment Reminder",
                  "customer_id": 8646
                },
                "toolName": "send_email",
                "toolCallId": "fc_0a1a0a0f-468c-4e81-9605-2610bddb838c"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "email",
                    "sandbox": true
                  }
                },
                "toolName": "send_email",
                "toolCallId": "fc_0a1a0a0f-468c-4e81-9605-2610bddb838c"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Sent an email reminder to customer #8646 about their appointment tomorrow.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-07T06:11:12.405Z",
      "latency_ms": 327,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "03d8496c3897c17c10daa164cbd704f37afe13801da099ed030a1fe898166d8f"
    },
    {
      "seq": 6,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Sent an email reminder to customer #8646 about their appointment tomorrow."
      },
      "run_id": "sbx-notify-customer-88d6649b12d9",
      "status": "success",
      "ts_end": "2026-11-07T06:11:12.733Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-07T06:11:12.733Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "671661b064ddc9bc79ce722fe15cd9f09802bb469560124158da2e92cfb72090"
    }
  ]
}