{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-450c850e2e5a",
    "generated_at": "2026-11-07T07:28:21.441Z",
    "event_count": 10,
    "algorithm": "sha256-chain",
    "content_digest": "43c3e7864bde4feb82f9569abe38c52ff9ded3a11de556b8baf98206d44ce98f",
    "replay": {
      "cassette_digest": "f1cb7dd043375fd3659d5c03fd55771042e9e0f89d46d44121f00603cd60433e",
      "entry_count": 8,
      "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": "c73cc850b79f5d37d0baf291f13f60191de9721fcb1d2200b71ee1c4ae3c4f3a5b7887d4cc18b4eeafeeffd00247371f41f85f292d851751ed228fcc10df4305",
      "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-450c850e2e5a",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Send today's priority notifications: customer #1880 — password changed; customer #6383 — delivery delayed.",
    "output": {
      "stopped": "step limit",
      "summary": null
    },
    "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.000098,
      "sandbox_tools": true,
      "scenario_seed": "notify-customer-agent:2026-11-06:100"
    },
    "step_count": 4,
    "total_tokens": 1999,
    "started_at": "2026-11-06T19:10:48.7+00:00",
    "ended_at": "2026-11-06T19:10:50.539+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 #1880 — password changed; customer #6383 — delivery delayed.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "status": "running",
      "ts_end": "2026-11-06T19:10:50.539Z",
      "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.000098,
        "sandbox_tools": true,
        "scenario_seed": "notify-customer-agent:2026-11-06:100"
      },
      "ts_start": "2026-11-06T19:10:48.700Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "678c13bae0b73cffac073e697d3af27d5fe80be4a0f7faebfd504136c97e4f17"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 327,
        "total_tokens": 508,
        "output_tokens": 181
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "ts_end": "2026-11-06T19:10:49.165Z",
      "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 #1880 — password changed; customer #6383 — delivery delayed."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 1880
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_bcdbe466-5bf5-478c-8c43-82afc35a74bd"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T19:10:48.700Z",
      "latency_ms": 464,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c64508f70d570f297de5fe224a01b0c259ab0653672a7625da82a468187b7152"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 1880
      },
      "output": {
        "email": "finley.synthwood1880@example.com",
        "sms_opt_in": true,
        "customer_id": 1880
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "ts_end": "2026-11-06T19:10:49.293Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T19:10:49.165Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 128,
      "tool_call_id": "fc_bcdbe466-5bf5-478c-8c43-82afc35a74bd",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "64c5c32a6ce9aa398d0d80da542dd9f65a991fe8a0171933ea870792d252c264"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 380,
        "total_tokens": 444,
        "output_tokens": 64
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "ts_end": "2026-11-06T19:10:49.665Z",
      "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 #1880 — password changed; customer #6383 — delivery delayed."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 1880
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_bcdbe466-5bf5-478c-8c43-82afc35a74bd"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "finley.synthwood1880@example.com",
                    "sms_opt_in": true,
                    "customer_id": 1880
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_bcdbe466-5bf5-478c-8c43-82afc35a74bd"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "message": "Your password has been changed successfully.",
              "customer_id": 1880
            },
            "tool_name": "send_sms",
            "tool_call_id": "fc_fe13f5f9-8596-4e10-9fc4-2838039b82da"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T19:10:49.293Z",
      "latency_ms": 371,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "5476b57acfc77223d2ca5e947716123aa93a3643f7f8735198b202c1095c2115"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "message": "Your password has been changed successfully.",
        "customer_id": 1880
      },
      "output": {
        "sent": true,
        "channel": "sms",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "ts_end": "2026-11-06T19:10:49.690Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T19:10:49.665Z",
      "tool_name": "send_sms",
      "latency_ms": 25,
      "tool_call_id": "fc_fe13f5f9-8596-4e10-9fc4-2838039b82da",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "935613348e7857f7e849c2dde5ae3af1cb156b4d719dffa487a77882c0cdd6ac"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 430,
        "total_tokens": 468,
        "output_tokens": 38
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "ts_end": "2026-11-06T19:10:50.045Z",
      "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 #1880 — password changed; customer #6383 — delivery delayed."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 1880
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_bcdbe466-5bf5-478c-8c43-82afc35a74bd"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "finley.synthwood1880@example.com",
                    "sms_opt_in": true,
                    "customer_id": 1880
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_bcdbe466-5bf5-478c-8c43-82afc35a74bd"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "message": "Your password has been changed successfully.",
                  "customer_id": 1880
                },
                "toolName": "send_sms",
                "toolCallId": "fc_fe13f5f9-8596-4e10-9fc4-2838039b82da"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "sms",
                    "sandbox": true
                  }
                },
                "toolName": "send_sms",
                "toolCallId": "fc_fe13f5f9-8596-4e10-9fc4-2838039b82da"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 6383
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_784437d8-8b7f-4837-a074-34576a6124bc"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T19:10:49.690Z",
      "latency_ms": 355,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "fa72335bf1964c5307bf3df0e2ee91bb3886cdbca634648f6b2972ee51cff631"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 6383
      },
      "output": {
        "email": "rowan.demoford6383@example.com",
        "sms_opt_in": false,
        "customer_id": 6383
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "ts_end": "2026-11-06T19:10:50.067Z",
      "span_id": "t3",
      "ts_start": "2026-11-06T19:10:50.045Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 22,
      "tool_call_id": "fc_784437d8-8b7f-4837-a074-34576a6124bc",
      "parent_span_id": "l3",
      "schema_version": 1,
      "_hash": "07a3437b60fcbcbf584951781d61e9ba8f3364965545bcd9631d33a95b5c1b38"
    },
    {
      "seq": 7,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 483,
        "total_tokens": 579,
        "output_tokens": 96
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "ts_end": "2026-11-06T19:10:50.514Z",
      "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 #1880 — password changed; customer #6383 — delivery delayed."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 1880
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_bcdbe466-5bf5-478c-8c43-82afc35a74bd"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "finley.synthwood1880@example.com",
                    "sms_opt_in": true,
                    "customer_id": 1880
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_bcdbe466-5bf5-478c-8c43-82afc35a74bd"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "message": "Your password has been changed successfully.",
                  "customer_id": 1880
                },
                "toolName": "send_sms",
                "toolCallId": "fc_fe13f5f9-8596-4e10-9fc4-2838039b82da"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "sms",
                    "sandbox": true
                  }
                },
                "toolName": "send_sms",
                "toolCallId": "fc_fe13f5f9-8596-4e10-9fc4-2838039b82da"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 6383
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_784437d8-8b7f-4837-a074-34576a6124bc"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "rowan.demoford6383@example.com",
                    "sms_opt_in": false,
                    "customer_id": 6383
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_784437d8-8b7f-4837-a074-34576a6124bc"
              }
            ]
          }
        ]
      },
      "span_id": "l4",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "body": "Dear Customer,\n\nWe regret to inform you that your delivery has been delayed. We are working to resolve the issue and will keep you updated.\n\nThank you for your patience.",
              "subject": "Delivery Delay Notice",
              "customer_id": 6383
            },
            "tool_name": "send_email",
            "tool_call_id": "fc_268c3ac4-0e1f-4f50-919d-f47a5b18b046"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T19:10:50.067Z",
      "latency_ms": 447,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9e8e7a749dd7fde1b348ddf67d081d6c6790f3b1981971fee1e35a3472afd228"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "body": "Dear Customer,\n\nWe regret to inform you that your delivery has been delayed. We are working to resolve the issue and will keep you updated.\n\nThank you for your patience.",
        "subject": "Delivery Delay Notice",
        "customer_id": 6383
      },
      "output": {
        "sent": true,
        "channel": "email",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "ts_end": "2026-11-06T19:10:50.539Z",
      "span_id": "t4",
      "ts_start": "2026-11-06T19:10:50.514Z",
      "tool_name": "send_email",
      "latency_ms": 25,
      "tool_call_id": "fc_268c3ac4-0e1f-4f50-919d-f47a5b18b046",
      "parent_span_id": "l4",
      "schema_version": 1,
      "_hash": "9f2343e54760f99fca19e720fd840470d7efe9315b63bc47533e204394744e67"
    },
    {
      "seq": 9,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "stopped": "step limit",
        "summary": null
      },
      "run_id": "sbx-notify-customer-450c850e2e5a",
      "status": "success",
      "ts_end": "2026-11-06T19:10:50.539Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T19:10:50.539Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "43c3e7864bde4feb82f9569abe38c52ff9ded3a11de556b8baf98206d44ce98f"
    }
  ]
}