{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-595a43e0f47f",
    "generated_at": "2026-11-07T07:28:22.823Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "1b7f25134ef408708cbb171fcd3e3c64bf5b1e98868b8c93236858f104838eb2",
    "replay": {
      "cassette_digest": "e2e76db7b53068f17785097619f8fd01754bae281905677f918784a7669d1648",
      "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": "883936e386fad57228809522604e3cce3796afd2626abfbd966ab514fccbadbf615fd379ff060c64a2619554470a0f5d08d841922f61f3c79dcad8f323749f01",
      "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-595a43e0f47f",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Hand-off from support-refund-agent: notify customer #5207 — refund processed, order ORD-17650. Message: Your refund of A$177.95 for order ORD-17650 has been successfully processed.",
    "output": {
      "summary": "Sent an email to customer #5207 notifying them that their refund of A$177.95 for order ORD-17650 has been processed."
    },
    "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",
      "scope": [
        "get_customer_contact",
        "send_email",
        "send_sms"
      ],
      "demo_agent": true,
      "est_cost_usd": 0.000069,
      "parent_run_id": "sbx-support-refund-92c07cb4aad9",
      "sandbox_tools": true,
      "scenario_seed": "support-refund-agent:2026-11-07:16>notify-customer-agent"
    },
    "step_count": 3,
    "total_tokens": 1474,
    "started_at": "2026-11-07T03:11:00.325+00:00",
    "ended_at": "2026-11-07T03:11:01.815+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": "Hand-off from support-refund-agent: notify customer #5207 — refund processed, order ORD-17650. Message: Your refund of A$177.95 for order ORD-17650 has been successfully processed.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-595a43e0f47f",
      "status": "running",
      "ts_end": "2026-11-07T03:11:01.815Z",
      "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",
        "scope": [
          "get_customer_contact",
          "send_email",
          "send_sms"
        ],
        "demo_agent": true,
        "est_cost_usd": 0.000069,
        "parent_run_id": "sbx-support-refund-92c07cb4aad9",
        "sandbox_tools": true,
        "scenario_seed": "support-refund-agent:2026-11-07:16>notify-customer-agent"
      },
      "ts_start": "2026-11-07T03:11:00.325Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "3b30e4cc3bb3732616446e5183f7d075b2a27909bdb35a3c03057d15029c968f"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 350,
        "total_tokens": 421,
        "output_tokens": 71
      },
      "run_id": "sbx-notify-customer-595a43e0f47f",
      "ts_end": "2026-11-07T03:11:00.797Z",
      "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": "Hand-off from support-refund-agent: notify customer #5207 — refund processed, order ORD-17650. Message: Your refund of A$177.95 for order ORD-17650 has been successfully processed."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "customer_id": 5207
            },
            "tool_name": "get_customer_contact",
            "tool_call_id": "fc_4b623050-e6e9-4c2a-8f72-b64d4a8c8fb2"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T03:11:00.325Z",
      "latency_ms": 471,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "1865f2ad93a0b6c8aa674ee1edc8a932ddfc50be63ebfcca23108bae18085a5f"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "customer_id": 5207
      },
      "output": {
        "email": "finley.demoford5207@example.com",
        "sms_opt_in": false,
        "customer_id": 5207
      },
      "run_id": "sbx-notify-customer-595a43e0f47f",
      "ts_end": "2026-11-07T03:11:00.854Z",
      "span_id": "t1",
      "ts_start": "2026-11-07T03:11:00.797Z",
      "tool_name": "get_customer_contact",
      "latency_ms": 57,
      "tool_call_id": "fc_4b623050-e6e9-4c2a-8f72-b64d4a8c8fb2",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "ab0259eeb58fd0cee5e653f80a9f8a2d5c26885b269804150faf281eabe32029"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 403,
        "total_tokens": 518,
        "output_tokens": 115
      },
      "run_id": "sbx-notify-customer-595a43e0f47f",
      "ts_end": "2026-11-07T03:11:01.399Z",
      "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": "Hand-off from support-refund-agent: notify customer #5207 — refund processed, order ORD-17650. Message: Your refund of A$177.95 for order ORD-17650 has been successfully processed."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 5207
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_4b623050-e6e9-4c2a-8f72-b64d4a8c8fb2"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "finley.demoford5207@example.com",
                    "sms_opt_in": false,
                    "customer_id": 5207
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_4b623050-e6e9-4c2a-8f72-b64d4a8c8fb2"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "body": "Your refund of A$177.95 for order ORD-17650 has been successfully processed.",
              "subject": "Refund Processed for Order ORD-17650",
              "customer_id": 5207
            },
            "tool_name": "send_email",
            "tool_call_id": "fc_35872445-19a8-44df-9307-4ed683193bb4"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T03:11:00.854Z",
      "latency_ms": 545,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "1665e30167b6fca209b2079c5f9d1e7d2c5a4f8fb06988508eec959ecfb0f9df"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "body": "Your refund of A$177.95 for order ORD-17650 has been successfully processed.",
        "subject": "Refund Processed for Order ORD-17650",
        "customer_id": 5207
      },
      "output": {
        "sent": true,
        "channel": "email",
        "sandbox": true
      },
      "run_id": "sbx-notify-customer-595a43e0f47f",
      "ts_end": "2026-11-07T03:11:01.444Z",
      "span_id": "t2",
      "ts_start": "2026-11-07T03:11:01.399Z",
      "tool_name": "send_email",
      "latency_ms": 45,
      "tool_call_id": "fc_35872445-19a8-44df-9307-4ed683193bb4",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "4beab0de2fc4324c0988c14c0935c7753fdfcdd4ad9159de66215b95d25f4b93"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 476,
        "total_tokens": 535,
        "output_tokens": 59
      },
      "run_id": "sbx-notify-customer-595a43e0f47f",
      "ts_end": "2026-11-07T03:11:01.815Z",
      "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": "Hand-off from support-refund-agent: notify customer #5207 — refund processed, order ORD-17650. Message: Your refund of A$177.95 for order ORD-17650 has been successfully processed."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "customer_id": 5207
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_4b623050-e6e9-4c2a-8f72-b64d4a8c8fb2"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "email": "finley.demoford5207@example.com",
                    "sms_opt_in": false,
                    "customer_id": 5207
                  }
                },
                "toolName": "get_customer_contact",
                "toolCallId": "fc_4b623050-e6e9-4c2a-8f72-b64d4a8c8fb2"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "body": "Your refund of A$177.95 for order ORD-17650 has been successfully processed.",
                  "subject": "Refund Processed for Order ORD-17650",
                  "customer_id": 5207
                },
                "toolName": "send_email",
                "toolCallId": "fc_35872445-19a8-44df-9307-4ed683193bb4"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sent": true,
                    "channel": "email",
                    "sandbox": true
                  }
                },
                "toolName": "send_email",
                "toolCallId": "fc_35872445-19a8-44df-9307-4ed683193bb4"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Sent an email to customer #5207 notifying them that their refund of A$177.95 for order ORD-17650 has been processed.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-07T03:11:01.444Z",
      "latency_ms": 370,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b9abed50998ebf2996123f3f680446a33aa6a6b41d2b03e1ad2a8fbc670b971a"
    },
    {
      "seq": 6,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Sent an email to customer #5207 notifying them that their refund of A$177.95 for order ORD-17650 has been processed."
      },
      "run_id": "sbx-notify-customer-595a43e0f47f",
      "status": "success",
      "ts_end": "2026-11-07T03:11:01.815Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-07T03:11:01.815Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "1b7f25134ef408708cbb171fcd3e3c64bf5b1e98868b8c93236858f104838eb2"
    }
  ]
}