{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-525e15c481cf",
    "generated_at": "2026-11-07T07:28:19.622Z",
    "event_count": 10,
    "algorithm": "sha256-chain",
    "content_digest": "e14a5b31f80ba1dd396246ddf00a23ee6488eabadd64caed0577b7dd89aae663",
    "replay": {
      "cassette_digest": "11e7cc9c99e6a080b858d471741a83ab9a0318b78fbd1a054c18219fd524dfad",
      "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": "a0f711e3ee0443ed5016e19b9d08a859c26f1f64921b82a553732f31f23c35adc5a0668d0dbab5364b8b5c3b16466d24175a2b9abe7b01ed1fe1d64c359a520c",
      "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-525e15c481cf",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Send today's priority notifications: customer #2561 — payment failed; customer #1102 — password changed.",
    "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.000157,
      "sandbox_tools": true,
      "scenario_seed": "notify-customer-agent:2026-11-07:28"
    },
    "step_count": 4,
    "total_tokens": 2461,
    "started_at": "2026-11-07T05:10:52.95+00:00",
    "ended_at": "2026-11-07T05:10:55.122+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 #2561 — payment failed; customer #1102 — password changed.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-525e15c481cf",
      "status": "running",
      "ts_end": "2026-11-07T05:10:55.122Z",
      "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.000157,
        "sandbox_tools": true,
        "scenario_seed": "notify-customer-agent:2026-11-07:28"
      },
      "ts_start": "2026-11-07T05:10:52.950Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "1471b1b023ebe36be9f79f80d740988e1603d39d6d522b96d466046661410b9e"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 327,
        "total_tokens": 447,
        "output_tokens": 120
      },
      "run_id": "sbx-notify-customer-525e15c481cf",
      "ts_end": "2026-11-07T05:10:53.405Z",
      "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 #2561 — payment failed; customer #1102 — password changed."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 2561
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_d3bae18e-ea31-4981-9c31-14f0d4873d34"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T05:10:52.950Z",
      "latency_ms": 454,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "ae3aef401113bbe8e51bc8363655684fe2db978f1d6a77675282b4476e7494dd"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 2561
      },
      "output": {
        "email": "reese.testwell2561@example.com",
        "sms_opt_in": false,
        "customer_id": 2561
      },
      "run_id": "sbx-notify-customer-525e15c481cf",
      "ts_end": "2026-11-07T05:10:53.431Z",
      "span_id": "t1",
      "ts_start": "2026-11-07T05:10:53.405Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 26,
      "tool_call_id": "fc_d3bae18e-ea31-4981-9c31-14f0d4873d34",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "26afa138506e5981b78476e8310c0235c3bc6ad09f48c80c6ca30dacb4a8138a"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 379,
        "total_tokens": 460,
        "output_tokens": 81
      },
      "run_id": "sbx-notify-customer-525e15c481cf",
      "ts_end": "2026-11-07T05:10:53.864Z",
      "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 #2561 — payment failed; customer #1102 — password changed."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 2561
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_d3bae18e-ea31-4981-9c31-14f0d4873d34"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "reese.testwell2561@example.com",
                    "sms_opt_in": false,
                    "customer_id": 2561
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_d3bae18e-ea31-4981-9c31-14f0d4873d34"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 1102
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_54aa7981-1a73-46da-a21c-2401ca8b22b3"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T05:10:53.431Z",
      "latency_ms": 433,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "197aa37b21fc4d84b2b0dc30c272bb830ed43a1880f251f4e9ac9dcf640d19cc"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 1102
      },
      "output": {
        "email": "parker.mockridge1102@example.com",
        "sms_opt_in": true,
        "customer_id": 1102
      },
      "run_id": "sbx-notify-customer-525e15c481cf",
      "ts_end": "2026-11-07T05:10:53.888Z",
      "span_id": "t2",
      "ts_start": "2026-11-07T05:10:53.864Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 24,
      "tool_call_id": "fc_54aa7981-1a73-46da-a21c-2401ca8b22b3",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "e7db8ac113d81852ad2b347c8818759a5837f4cdecf072566fed83f2155c706d"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 431,
        "total_tokens": 908,
        "output_tokens": 477
      },
      "run_id": "sbx-notify-customer-525e15c481cf",
      "ts_end": "2026-11-07T05:10:54.766Z",
      "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 #2561 — payment failed; customer #1102 — password changed."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 2561
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_d3bae18e-ea31-4981-9c31-14f0d4873d34"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "reese.testwell2561@example.com",
                    "sms_opt_in": false,
                    "customer_id": 2561
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_d3bae18e-ea31-4981-9c31-14f0d4873d34"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 1102
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_54aa7981-1a73-46da-a21c-2401ca8b22b3"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "parker.mockridge1102@example.com",
                    "sms_opt_in": true,
                    "customer_id": 1102
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_54aa7981-1a73-46da-a21c-2401ca8b22b3"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "body": "Your recent payment failed. Please update your payment information to avoid service interruption.",
              "subject": "Payment Failed",
              "customer_id": 2561
            },
            "tool_name": "send_email",
            "tool_call_id": "fc_4f2c27db-2da5-4307-a221-944e65356a69"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T05:10:53.888Z",
      "latency_ms": 878,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "29a78040dcc32e60b6365cd54b2748984f59c28df71634e7c348a4e1526eb0fa"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "body": "Your recent payment failed. Please update your payment information to avoid service interruption.",
        "subject": "Payment Failed",
        "customer_id": 2561
      },
      "output": {
        "sent": true,
        "channel": "email",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-525e15c481cf",
      "ts_end": "2026-11-07T05:10:54.787Z",
      "span_id": "t3",
      "ts_start": "2026-11-07T05:10:54.766Z",
      "tool_name": "send_email",
      "latency_ms": 21,
      "tool_call_id": "fc_4f2c27db-2da5-4307-a221-944e65356a69",
      "parent_span_id": "l3",
      "schema_version": 1,
      "_hash": "d2978a51f10f7379f7be22346eedf024e4bd6b9c719a5797d8ad5fadbf352d1e"
    },
    {
      "seq": 7,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 493,
        "total_tokens": 646,
        "output_tokens": 153
      },
      "run_id": "sbx-notify-customer-525e15c481cf",
      "ts_end": "2026-11-07T05:10:55.025Z",
      "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 #2561 — payment failed; customer #1102 — password changed."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 2561
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_d3bae18e-ea31-4981-9c31-14f0d4873d34"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "reese.testwell2561@example.com",
                    "sms_opt_in": false,
                    "customer_id": 2561
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_d3bae18e-ea31-4981-9c31-14f0d4873d34"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 1102
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_54aa7981-1a73-46da-a21c-2401ca8b22b3"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "parker.mockridge1102@example.com",
                    "sms_opt_in": true,
                    "customer_id": 1102
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_54aa7981-1a73-46da-a21c-2401ca8b22b3"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "body": "Your recent payment failed. Please update your payment information to avoid service interruption.",
                  "subject": "Payment Failed",
                  "customer_id": 2561
                },
                "toolName": "send_email",
                "toolCallId": "fc_4f2c27db-2da5-4307-a221-944e65356a69"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "email",
                    "sandbox": true
                  }
                },
                "toolName": "send_email",
                "toolCallId": "fc_4f2c27db-2da5-4307-a221-944e65356a69"
              }
            ]
          }
        ]
      },
      "span_id": "l4",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "message": "Your password has been changed successfully. If you did not initiate this change, please contact support.",
              "customer_id": 1102
            },
            "tool_name": "send_sms",
            "tool_call_id": "fc_838afbd9-9825-4218-a08e-4fa67b1317e4"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T05:10:54.787Z",
      "latency_ms": 238,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "dda78ae2397dc59a2ca9b2f68753f869de868bc30e0fb5d1c62b06b962050d64"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "message": "Your password has been changed successfully. If you did not initiate this change, please contact support.",
        "customer_id": 1102
      },
      "output": {
        "sent": true,
        "channel": "sms",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-525e15c481cf",
      "ts_end": "2026-11-07T05:10:55.122Z",
      "span_id": "t4",
      "ts_start": "2026-11-07T05:10:55.025Z",
      "tool_name": "send_sms",
      "latency_ms": 97,
      "tool_call_id": "fc_838afbd9-9825-4218-a08e-4fa67b1317e4",
      "parent_span_id": "l4",
      "schema_version": 1,
      "_hash": "75a198474347820651cbe85d2a85e3b236b7df53323bfc753c25a40f100c0542"
    },
    {
      "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-525e15c481cf",
      "status": "success",
      "ts_end": "2026-11-07T05:10:55.122Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-07T05:10:55.122Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "e14a5b31f80ba1dd396246ddf00a23ee6488eabadd64caed0577b7dd89aae663"
    }
  ]
}