{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-research-9bf924",
    "generated_at": "2026-09-22T11:06:08.579Z",
    "event_count": 5,
    "algorithm": "sha256-chain",
    "content_digest": "037d18ced742b0a969afe97b57954027dd0382a8c053e03449d6b966b5975924",
    "replay": {
      "cassette_digest": "c5be864e2699b27cca08e34baf6dcde8530f0adab122a2a25ad1568419fa4c23",
      "entry_count": 3,
      "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": "2cf52e5e0e08ae12a99155e3824084056e26a3fb80a5474d9ccc208e87c3049f9aec1788c25e7e6353eafac45e2e29deef4e27cd8ba482b01ab883b2244ad400",
      "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": "demo-research-9bf924",
    "name": "research-agent",
    "status": "success",
    "input": "Summarize this quarter's incident trends.",
    "output": {
      "summary": "14 incidents; timeouts lead."
    },
    "error": null,
    "metadata": {
      "demo": true
    },
    "step_count": 2,
    "total_tokens": 3160,
    "started_at": "2026-09-22T01:31:35.082+00:00",
    "ended_at": "2026-09-22T01:31:38.182+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "research-agent",
      "type": "run",
      "error": null,
      "input": "Summarize this quarter's incident trends.",
      "phase": "start",
      "output": null,
      "run_id": "demo-research-9bf924",
      "status": "running",
      "ts_end": "2026-09-22T01:31:38.182Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T01:31:35.082Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "7950581f9d2457bdd68a2ff4ef07a90a05f6ac0ce2821a28bbef27789c7e41dc"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 1288,
        "total_tokens": 1840,
        "output_tokens": 552
      },
      "run_id": "demo-research-9bf924",
      "ts_end": "2026-09-22T01:31:36.482Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0
        },
        "system": "You are a careful enterprise agent. Follow policy.",
        "messages": [
          {
            "role": "user",
            "content": "Pulling incident data and summarizing."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "Pulling incident data and summarizing.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "window": "90d"
            },
            "tool_name": "query_incidents",
            "tool_call_id": "t1"
          }
        ],
        "finish_reason": "tool-call"
      },
      "ts_start": "2026-09-22T01:31:35.132Z",
      "latency_ms": 1350,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "4d6dfbd908abdf43426a7b6b1610482384c319db583dc321653791f3eb9f0c18"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "window": "90d"
      },
      "output": {
        "top": "timeout",
        "count": 14
      },
      "run_id": "demo-research-9bf924",
      "ts_end": "2026-09-22T01:31:36.782Z",
      "span_id": "t1",
      "ts_start": "2026-09-22T01:31:36.492Z",
      "tool_name": "query_incidents",
      "latency_ms": 290,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2d5ed3854abb516d078be1810e1b310b7b66a2b94c653a6840725ee7badbe055"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 924,
        "total_tokens": 1320,
        "output_tokens": 396
      },
      "run_id": "demo-research-9bf924",
      "ts_end": "2026-09-22T01:31:38.082Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0
        },
        "system": "You are a careful enterprise agent. Follow policy.",
        "messages": [
          {
            "role": "user",
            "content": "Timeouts dominate; recommend retries with backoff."
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "Timeouts dominate; recommend retries with backoff.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-09-22T01:31:36.882Z",
      "latency_ms": 1200,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "65bce67339c898c877c805256ffff2b858bb52bb391202791170cba16827303e"
    },
    {
      "seq": 4,
      "name": "research-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "14 incidents; timeouts lead."
      },
      "run_id": "demo-research-9bf924",
      "status": "success",
      "ts_end": "2026-09-22T01:31:38.182Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T01:31:38.132Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "037d18ced742b0a969afe97b57954027dd0382a8c053e03449d6b966b5975924"
    }
  ]
}