{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-research-8fd895",
    "generated_at": "2026-09-22T11:06:10.424Z",
    "event_count": 5,
    "algorithm": "sha256-chain",
    "content_digest": "7c114a5ee0386ac4648614a316cae5022dde927bad18a27007436d5702dbd133",
    "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": "b86c4e2ef4d17ca5b144b821dcbe1edf0e3658d1d629f2594be0b7eccd0132c4c28e964cb60da9fe40b8383d9a71797bcdb1723d416a99f379dd21f1b918b806",
      "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-8fd895",
    "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:27:47.408+00:00",
    "ended_at": "2026-09-22T01:27:50.508+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-8fd895",
      "status": "running",
      "ts_end": "2026-09-22T01:27:50.508Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T01:27:47.408Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "c3d4aa840711379cd89127ab90ad89534bde678887c46cb9593ca38033712429"
    },
    {
      "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-8fd895",
      "ts_end": "2026-09-22T01:27:48.808Z",
      "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:27:47.458Z",
      "latency_ms": 1350,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c654b98276ade4b359e225f4f2a21013d5beb0d84b6d8abe16d8f797b44ba8f0"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "window": "90d"
      },
      "output": {
        "top": "timeout",
        "count": 14
      },
      "run_id": "demo-research-8fd895",
      "ts_end": "2026-09-22T01:27:49.108Z",
      "span_id": "t1",
      "ts_start": "2026-09-22T01:27:48.818Z",
      "tool_name": "query_incidents",
      "latency_ms": 290,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "ef96eb09468a05342e32310f5f28924779ab0b0795232bdb981635ee56a76446"
    },
    {
      "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-8fd895",
      "ts_end": "2026-09-22T01:27:50.408Z",
      "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:27:49.208Z",
      "latency_ms": 1200,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "1ee8c4ccab5e43016aa26fc16d2ae3421e04cd094c7f4b727cfae17f62cddb55"
    },
    {
      "seq": 4,
      "name": "research-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "14 incidents; timeouts lead."
      },
      "run_id": "demo-research-8fd895",
      "status": "success",
      "ts_end": "2026-09-22T01:27:50.508Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T01:27:50.458Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "7c114a5ee0386ac4648614a316cae5022dde927bad18a27007436d5702dbd133"
    }
  ]
}