{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-notify-customer-c6094175169f",
    "generated_at": "2026-11-07T07:28:21.984Z",
    "event_count": 3,
    "algorithm": "sha256-chain",
    "content_digest": "d390a2e3ed7eb1ae07e7a4aee47b9047a35469e8390034c1ec26e954f69dc01b",
    "replay": {
      "cassette_digest": "588684e4236314a73eedc2fc6fdac3799e5569f05d63fa3860630945ea850fee",
      "entry_count": 1,
      "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": "d5a1993cb30ac02820092fa6758180e5facc5651ae3b1a0bc2867d9d36ec02894888647fa37610a730b779c1899cd82500e295d57f475286690e3cd9fa448c0a",
      "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-c6094175169f",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Send today's priority notifications: customer #5283 — delivery delayed; customer #2422 — order shipped.",
    "output": {
      "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.000075,
      "sandbox_tools": true,
      "scenario_seed": "notify-customer-agent:2026-11-06:52"
    },
    "step_count": 1,
    "total_tokens": 827,
    "started_at": "2026-11-06T09:11:08.266+00:00",
    "ended_at": "2026-11-06T09:11:09.158+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 #5283 — delivery delayed; customer #2422 — order shipped.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-notify-customer-c6094175169f",
      "status": "running",
      "ts_end": "2026-11-06T09:11:09.158Z",
      "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.000075,
        "sandbox_tools": true,
        "scenario_seed": "notify-customer-agent:2026-11-06:52"
      },
      "ts_start": "2026-11-06T09:11:08.266Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "f7a5ccc89d330411135db35405162970b9e2bc9c9c5ff93cf2252fc37d8ac590"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 327,
        "total_tokens": 827,
        "output_tokens": 500
      },
      "run_id": "sbx-notify-customer-c6094175169f",
      "ts_end": "2026-11-06T09:11:09.158Z",
      "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 #5283 — delivery delayed; customer #2422 — order shipped."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "length"
      },
      "ts_start": "2026-11-06T09:11:08.266Z",
      "latency_ms": 892,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "dcaeb1d95e32578dda0828eb96001e48d2269facff3501a9f5220c5f519dae46"
    },
    {
      "seq": 2,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": null
      },
      "run_id": "sbx-notify-customer-c6094175169f",
      "status": "success",
      "ts_end": "2026-11-06T09:11:09.158Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T09:11:09.158Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "d390a2e3ed7eb1ae07e7a4aee47b9047a35469e8390034c1ec26e954f69dc01b"
    }
  ]
}