{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-61f88d32e0be",
    "generated_at": "2026-11-07T07:28:25.484Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "cd33e39df215aa5c9c73e5993e7db069f1d7fe54cdefaee7ffe4fd21230cfea9",
    "replay": {
      "cassette_digest": "81dd9927d3c97dfeeed51b41736971ca85d532d04011f2e7e53905e069e80b04",
      "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": "553f9d787e8c100433daf31e6d09b08891b126982a54683036fc460a293841b73887030fbc96e9bbafaaa86c34208061dc3631a4227bf52ac6b77ad73e65e40e",
      "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-61f88d32e0be",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Send today's priority notifications: customer #9725 — order shipped.",
    "output": {
      "summary": "Sent an email to customer 9725 notifying them that their order has shipped."
    },
    "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.000073,
      "sandbox_tools": true,
      "scenario_seed": "notify-customer-agent:2026-11-06:76"
    },
    "step_count": 3,
    "total_tokens": 1441,
    "started_at": "2026-11-06T14:10:55.598+00:00",
    "ended_at": "2026-11-06T14:10:57.257+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 #9725 — order shipped.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-61f88d32e0be",
      "status": "running",
      "ts_end": "2026-11-06T14:10:57.257Z",
      "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.000073,
        "sandbox_tools": true,
        "scenario_seed": "notify-customer-agent:2026-11-06:76"
      },
      "ts_start": "2026-11-06T14:10:55.598Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "2d0a7d76e8d4a088c84e54b25b950fd45f5338e5ad3a8a3504eaa7b1749bcff0"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 319,
        "total_tokens": 407,
        "output_tokens": 88
      },
      "run_id": "sbx-notify-customer-61f88d32e0be",
      "ts_end": "2026-11-06T14:10:56.013Z",
      "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 #9725 — order shipped."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 9725
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_1c0f9e27-df20-46a7-9191-32d9b5ed82ac"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T14:10:55.598Z",
      "latency_ms": 415,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "d5269a769464ae20bb712998ea08bc428efd0f2adb60bd3cff3a62ff13461088"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 9725
      },
      "output": {
        "email": "jordan.placeholder9725@example.com",
        "sms_opt_in": false,
        "customer_id": 9725
      },
      "run_id": "sbx-notify-customer-61f88d32e0be",
      "ts_end": "2026-11-06T14:10:56.092Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T14:10:56.013Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 79,
      "tool_call_id": "fc_1c0f9e27-df20-46a7-9191-32d9b5ed82ac",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "f308bcb8a0ad4e11882a6d1ccb7cef2cd8018e90faae9f601464d1c8cf8e4275"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 370,
        "total_tokens": 505,
        "output_tokens": 135
      },
      "run_id": "sbx-notify-customer-61f88d32e0be",
      "ts_end": "2026-11-06T14:10:56.790Z",
      "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 #9725 — order shipped."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 9725
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_1c0f9e27-df20-46a7-9191-32d9b5ed82ac"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "jordan.placeholder9725@example.com",
                    "sms_opt_in": false,
                    "customer_id": 9725
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_1c0f9e27-df20-46a7-9191-32d9b5ed82ac"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "body": "Hi,\n\nYour order has shipped and is on its way. Thank you for shopping with us.\n\nBest regards,\nAcme",
              "subject": "Your order has shipped!",
              "customer_id": 9725
            },
            "tool_name": "send_email",
            "tool_call_id": "fc_24f09039-2a63-4e7e-8044-7dac0d904a2d"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T14:10:56.092Z",
      "latency_ms": 698,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b746589a0ccfa3fa8e8f868d6f1ef70a3e7f52f95096163d99dc59b9d1272a43"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "body": "Hi,\n\nYour order has shipped and is on its way. Thank you for shopping with us.\n\nBest regards,\nAcme",
        "subject": "Your order has shipped!",
        "customer_id": 9725
      },
      "output": {
        "sent": true,
        "channel": "email",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-61f88d32e0be",
      "ts_end": "2026-11-06T14:10:56.811Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T14:10:56.790Z",
      "tool_name": "send_email",
      "latency_ms": 21,
      "tool_call_id": "fc_24f09039-2a63-4e7e-8044-7dac0d904a2d",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "448cd754531a8b044630b5573cedf234818d3ed6154a407958054ba3cc3de4a4"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 450,
        "total_tokens": 529,
        "output_tokens": 79
      },
      "run_id": "sbx-notify-customer-61f88d32e0be",
      "ts_end": "2026-11-06T14:10:57.256Z",
      "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 #9725 — order shipped."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 9725
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_1c0f9e27-df20-46a7-9191-32d9b5ed82ac"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "jordan.placeholder9725@example.com",
                    "sms_opt_in": false,
                    "customer_id": 9725
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_1c0f9e27-df20-46a7-9191-32d9b5ed82ac"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "body": "Hi,\n\nYour order has shipped and is on its way. Thank you for shopping with us.\n\nBest regards,\nAcme",
                  "subject": "Your order has shipped!",
                  "customer_id": 9725
                },
                "toolName": "send_email",
                "toolCallId": "fc_24f09039-2a63-4e7e-8044-7dac0d904a2d"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "email",
                    "sandbox": true
                  }
                },
                "toolName": "send_email",
                "toolCallId": "fc_24f09039-2a63-4e7e-8044-7dac0d904a2d"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Sent an email to customer 9725 notifying them that their order has shipped.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T14:10:56.811Z",
      "latency_ms": 445,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2858c6378909834bdb4273ed67e13934d6e09648a1adc95bf0e4002490873a8a"
    },
    {
      "seq": 6,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Sent an email to customer 9725 notifying them that their order has shipped."
      },
      "run_id": "sbx-notify-customer-61f88d32e0be",
      "status": "success",
      "ts_end": "2026-11-06T14:10:57.257Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T14:10:57.257Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "cd33e39df215aa5c9c73e5993e7db069f1d7fe54cdefaee7ffe4fd21230cfea9"
    }
  ]
}