{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-research-6a5225",
    "generated_at": "2026-09-22T11:06:32.636Z",
    "event_count": 5,
    "algorithm": "sha256-chain",
    "content_digest": "3732e3daea3f1c13272e5543d9b044c5527a38c0ae312f6efaad869ce042d714",
    "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": "b0907ed9146f0500a95b655f2f40f91f59842532a1ab9e3035fa0ef90ce9415b148b5a848a8b570a79ea3513ab2bc0a3e08eb423deb43706fc971394c54c7b05",
      "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-6a5225",
    "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-14T02:47:50.173+00:00",
    "ended_at": "2026-09-14T02:47:53.273+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-6a5225",
      "status": "running",
      "ts_end": "2026-09-14T02:47:53.273Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-14T02:47:50.173Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "848d23a7996c05d5683a8ca79309c82d19fdfb03c9e7a6c800455d2384e966c7"
    },
    {
      "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-6a5225",
      "ts_end": "2026-09-14T02:47:51.573Z",
      "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-14T02:47:50.223Z",
      "latency_ms": 1350,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9d498ca6252b84c0b0bd419548661b8256e226003ee802c6c01b290e6740a985"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "window": "90d"
      },
      "output": {
        "top": "timeout",
        "count": 14
      },
      "run_id": "demo-research-6a5225",
      "ts_end": "2026-09-14T02:47:51.873Z",
      "span_id": "t1",
      "ts_start": "2026-09-14T02:47:51.583Z",
      "tool_name": "query_incidents",
      "latency_ms": 290,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "5b3d20abffb7732c7f29476eb17eb90245fb344a4085a053c676ab590c8ff92f"
    },
    {
      "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-6a5225",
      "ts_end": "2026-09-14T02:47:53.173Z",
      "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-14T02:47:51.973Z",
      "latency_ms": 1200,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "1a11ad00f2baf266e41962b82c58963e565ce55ef5522d3f08b7bff11809bdf6"
    },
    {
      "seq": 4,
      "name": "research-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "14 incidents; timeouts lead."
      },
      "run_id": "demo-research-6a5225",
      "status": "success",
      "ts_end": "2026-09-14T02:47:53.273Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-14T02:47:53.223Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "3732e3daea3f1c13272e5543d9b044c5527a38c0ae312f6efaad869ce042d714"
    }
  ]
}