{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-84f8cc23f03c",
    "generated_at": "2026-11-07T07:28:20.985Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "f3279da1a6623dc703b6fe1eac36ab526d0aa62ef562cd27221efdad711a5705",
    "replay": {
      "cassette_digest": "a7ffde5ca2aba3e5ef4b225a3dcdc5e32f5e6e1a1e9876222f4d67896efecba0",
      "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": "70cb09235cafeb584dcfdabaed8bfae6364b596c5b829f6b7826dc79438eecfe75b3db5fb880a14e62fc29b11c1a92e6ebe5de550a0c42321624295276490203",
      "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-84f8cc23f03c",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Send today's priority notifications: customer #5188 — appointment tomorrow.",
    "output": {
      "summary": "Sent an email reminder to customer #5188 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.000059,
      "sandbox_tools": true,
      "scenario_seed": "notify-customer-agent:2026-11-06:116"
    },
    "step_count": 3,
    "total_tokens": 1317,
    "started_at": "2026-11-06T22:10:48.598+00:00",
    "ended_at": "2026-11-06T22:10:49.749+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 #5188 — appointment tomorrow.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-84f8cc23f03c",
      "status": "running",
      "ts_end": "2026-11-06T22:10:49.749Z",
      "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.000059,
        "sandbox_tools": true,
        "scenario_seed": "notify-customer-agent:2026-11-06:116"
      },
      "ts_start": "2026-11-06T22:10:48.598Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "d2ce3ba8a421cd9d0383ef69d96e20be350dad35cdf5bd2306131492a3de832b"
    },
    {
      "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-84f8cc23f03c",
      "ts_end": "2026-11-06T22:10:49.149Z",
      "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 #5188 — appointment tomorrow."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 5188
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_60613656-efab-44c2-b90e-74c4132cfddb"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T22:10:48.598Z",
      "latency_ms": 551,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "29bf2f91530e7cc93152e7f8877ad09e51b0ffb4bd4d3af7d6bba0a4d680358e"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 5188
      },
      "output": {
        "email": "avery.mockridge5188@example.com",
        "sms_opt_in": false,
        "customer_id": 5188
      },
      "run_id": "sbx-notify-customer-84f8cc23f03c",
      "ts_end": "2026-11-06T22:10:49.280Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T22:10:49.149Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 131,
      "tool_call_id": "fc_60613656-efab-44c2-b90e-74c4132cfddb",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "3498915168c13cdee952d33efa1caeb13712b3f8386fc9f88ec98bb2901749fe"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 370,
        "total_tokens": 473,
        "output_tokens": 103
      },
      "run_id": "sbx-notify-customer-84f8cc23f03c",
      "ts_end": "2026-11-06T22:10:49.440Z",
      "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 #5188 — appointment tomorrow."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 5188
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_60613656-efab-44c2-b90e-74c4132cfddb"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "avery.mockridge5188@example.com",
                    "sms_opt_in": false,
                    "customer_id": 5188
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_60613656-efab-44c2-b90e-74c4132cfddb"
              }
            ]
          }
        ]
      },
      "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": 5188
            },
            "tool_name": "send_email",
            "tool_call_id": "fc_1522f47b-bfe7-41d6-9bb3-e65877e035b5"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T22:10:49.280Z",
      "latency_ms": 160,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2a185237eb1bb1b920fb13de9c586f6232ee2e1b30efc8d3d3b469df56ce1d60"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "body": "Dear Customer, you have an appointment scheduled for tomorrow. Please confirm.",
        "subject": "Appointment Reminder",
        "customer_id": 5188
      },
      "output": {
        "sent": true,
        "channel": "email",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-84f8cc23f03c",
      "ts_end": "2026-11-06T22:10:49.465Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T22:10:49.440Z",
      "tool_name": "send_email",
      "latency_ms": 25,
      "tool_call_id": "fc_1522f47b-bfe7-41d6-9bb3-e65877e035b5",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "84e5b5ba6e6d2b5b6f7c7a49a26b403f02bcbb1b6bb8024b1abf831b78be3348"
    },
    {
      "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-84f8cc23f03c",
      "ts_end": "2026-11-06T22:10:49.749Z",
      "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 #5188 — appointment tomorrow."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 5188
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_60613656-efab-44c2-b90e-74c4132cfddb"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "avery.mockridge5188@example.com",
                    "sms_opt_in": false,
                    "customer_id": 5188
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_60613656-efab-44c2-b90e-74c4132cfddb"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "body": "Dear Customer, you have an appointment scheduled for tomorrow. Please confirm.",
                  "subject": "Appointment Reminder",
                  "customer_id": 5188
                },
                "toolName": "send_email",
                "toolCallId": "fc_1522f47b-bfe7-41d6-9bb3-e65877e035b5"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "email",
                    "sandbox": true
                  }
                },
                "toolName": "send_email",
                "toolCallId": "fc_1522f47b-bfe7-41d6-9bb3-e65877e035b5"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Sent an email reminder to customer #5188 about their appointment tomorrow.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T22:10:49.465Z",
      "latency_ms": 284,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "d3f4880411b67b19583b64d80e57c2220f464e114eb0dd0899560dd1c86ff5cd"
    },
    {
      "seq": 6,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Sent an email reminder to customer #5188 about their appointment tomorrow."
      },
      "run_id": "sbx-notify-customer-84f8cc23f03c",
      "status": "success",
      "ts_end": "2026-11-06T22:10:49.749Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T22:10:49.749Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "f3279da1a6623dc703b6fe1eac36ab526d0aa62ef562cd27221efdad711a5705"
    }
  ]
}