{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-research-0584c5",
    "generated_at": "2026-09-22T11:06:31.631Z",
    "event_count": 5,
    "algorithm": "sha256-chain",
    "content_digest": "484654763ed96ab3cf9af6fdf4542d2d740f23187e0a525905875700028539b3",
    "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": "aaea8e061cb4ad219be6d21a752c2c37a717825e253c0d2261f72617e9ca08d6b88e9d3d6902cb01969056546310e46c6080cfe5df379e6e5d1f7b22e8866d0d",
      "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-0584c5",
    "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:28:02.326+00:00",
    "ended_at": "2026-09-22T01:28:05.426+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-0584c5",
      "status": "running",
      "ts_end": "2026-09-22T01:28:05.426Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T01:28:02.326Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "7fae350b060408c966cde88a602da4a0f405bb3776a32107bff3553afbbe1811"
    },
    {
      "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-0584c5",
      "ts_end": "2026-09-22T01:28:03.726Z",
      "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:28:02.376Z",
      "latency_ms": 1350,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "8e3284f745d0a959da2c5fee4e32ce190d168e7f6cac3e324287c6cceebab70e"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "window": "90d"
      },
      "output": {
        "top": "timeout",
        "count": 14
      },
      "run_id": "demo-research-0584c5",
      "ts_end": "2026-09-22T01:28:04.026Z",
      "span_id": "t1",
      "ts_start": "2026-09-22T01:28:03.736Z",
      "tool_name": "query_incidents",
      "latency_ms": 290,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "0c5fb859db5b8916c0777fad765cdbe7646984abbc5eca039ea0d8c43f4faf88"
    },
    {
      "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-0584c5",
      "ts_end": "2026-09-22T01:28:05.326Z",
      "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:28:04.126Z",
      "latency_ms": 1200,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2f4862d1203cb71cfe95328bec27c13494248607867316b6257f09677f89595b"
    },
    {
      "seq": 4,
      "name": "research-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "14 incidents; timeouts lead."
      },
      "run_id": "demo-research-0584c5",
      "status": "success",
      "ts_end": "2026-09-22T01:28:05.426Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T01:28:05.376Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "484654763ed96ab3cf9af6fdf4542d2d740f23187e0a525905875700028539b3"
    }
  ]
}