# When must an instance treat a replayed multi-agent conversation as non-replayable: the wall-clock causality break in forensic replay **Date of Record:** 2026 November 25 **Scope:** Applies to post-incident forensic replay of multi-agent conversations where the replay engine re-executes recorded tool calls and LLM turns to reconstruct a causal trace. Does not apply to passive log inspection that never re-invokes tools or models, nor to single-agent replays with no inter-agent message ordering. ## Core Distinction The failure is not "replay produces a different answer than the original run." That is expected: LLM sampling is non-deterministic, and a replay that pins seeds and temperatures will still diverge on the model side. The distinction that matters is between **divergence in model output** (tolerable, annotatable) and **divergence in causal ordering** (fatal to the trace). A forensic replay is valid only if the *happens-before* graph it reconstructs is isomorphic to the one the live system actually executed. The moment a replayed tool call observes a different external state than the original call observed — because the tool is a read against a mutable world (a file, a database row, a clock, a remote API) — the replay silently rewrites the causal graph. The agent then attributes a downstream decision to an upstream message that, in the real run, arrived *after* the state change. The trace looks coherent. It is wrong. This is the boundary: **a replay is non-replayable at the first tool call whose read-set intersects a write that occurred out-of-band between the original execution and the replay, and whose result the replayed agent consumes as if it were the original observation.** Below that boundary, replay is a faithful reconstruction. Above it, replay is a plausible fiction. ## What Was Observed A three-agent incident (planner `P`, executor `E`, auditor `A`) was replayed from a recorded transcript. The live run had produced a wrong final action. The replay was run to determine *why* `E` chose tool `delete_index` over `reindex`. In the live run, the ordering was: 1. `P` sends `E`: "index is stale, reindex it" (t=100ms). 2. `E` calls `read_index_meta()` → returns `{"stale": true, "rows": 4_100_000}` (t=140ms). 3. Out-of-band, a separate maintenance job shrinks the index to 12 rows (t=160ms). 4. `A` sends `E`: "auditor note: index now tiny, prefer delete" (t=180ms). 5. `E` calls `delete_index()` (t=220ms). The recorded transcript preserved message order and tool-call arguments, but `read_index_meta()` is a *read against live state*. On replay at t+3h, step 2 returned `{"stale": false, "rows": 12}` — the post-shrink value. The replay engine, seeing `stale: false`, reconstructed the causal chain as: `A`'s note (step 4) caused `E` to skip reindexing and delete. The forensic report blamed the auditor's message. The actual cause was that `E` had already seen `stale: true` and `rows: 4_100_000` before the shrink, and the auditor's note arrived *after* the shrink but was consistent with a state `E` had never observed at decision time. The replay's causal graph was topologically valid and semantically false. No exception was raised. The divergence was invisible because the replayed tool call *succeeded* — it just returned a different world. ## Condition of Validity A replay is causally faithful iff, for every replayed tool invocation `c_i` in the trace, the observation `o_i` returned during replay is *value-equal* to the recorded observation `ô_i`, **or** the divergence is classified as a read-set violation and the downstream causal edges through `c_i` are marked non-attributable. Formally: let `R(c_i)` be the read-set of tool call `c_i` and `W` be the set of out-of-band writes between original execution time `t_orig(c_i)` and replay time `t_replay(c_i)`. The replay is faithful at `c_i` iff `R(c_i) ∩ W = ∅` or `o_i == ô_i`. When `R(c_i) ∩ W ≠ ∅` and `o_i ≠ ô_i`, every causal edge `c_i → d_j` where `d_j` is a downstream decision that consumed `o_i` must be severed from the attribution graph. The decision `d_j` remains in the trace as an event, but its *cause* is now "unknown external state," not the recorded upstream message. The invariant the engine must enforce: **no decision may be attributed to an upstream message if any observation it consumed diverged from its recorded value.** Violating this invariant is the exact mechanism by which a replay fabricates a culprit. ## Decision Boundary The operational question an instance must answer at each replayed tool call is not "did the call succeed?" but "is this observation admissible as evidence of what the original agent saw?" The boundary is crossed when: - The tool is a **read against mutable external state** (filesystem, DB, clock, remote API, feature store), **and** - The read-set intersects an out-of-band write between original and replay, **and** - The replayed value differs from the recorded value, **and** - A downstream decision in the trace consumed that value. All four must hold. If the tool is pure (deterministic function of its arguments), the first condition fails and replay is faithful. If the read-set is disjoint from `W`, the second fails. If values match despite an intersecting write (idempotent write, or write that restored the prior value), the third fails. If no downstream decision consumed the value, the fourth fails and the divergence is inert. When all four hold, the correct action is **not** to abort the replay — the rest of the trace may still be faithful. The correct action is to mark the specific causal edge as **non-attributable** and continue, so the forensic report distinguishes "this decision was caused by X" from "this decision consumed an observation we cannot vouch for." Aborting loses the faithful subgraph; silently continuing produces a fabricated attribution. The boundary is a *local* severance, not a global halt. ## Operational Effect The practical consequence is that forensic replay of multi-agent conversations must be **read-set aware**, not merely transcript-replay. The engine must, at record time, capture for each tool call: the tool identity, the arguments, the returned value, a hash of the read-set, and the wall-clock timestamp. At replay time, it must compare the replayed value against the recorded value and, on mismatch, consult the read-set hash to decide whether the divergence is a genuine world-change (sever the edge) or a tool bug (flag the tool). Without this, the default failure mode is **causal misattribution under a successful replay** — the most dangerous class of forensic error, because every artifact (transcript, tool log, message ordering) is internally consistent and the wrong conclusion is fully supported by the evidence. The auditor's message in the observed incident was blamed for a decision it did not cause; the real cause was an out-of-band write the replay had silently absorbed. The guardrail is a **provenance ledger**: every observation carries `(value, read_set_hash, t_orig)`, and every causal edge carries a `faithful: bool` flag set by the replay engine's read-set check. Downstream reasoning — whether human or automated — must treat `faithful: false` edges as evidence gaps, not as zero-weight edges. ```python import hashlib from dataclasses import dataclass, field from typing import Any class CausalAttributionError(RuntimeError): """Raised when a replay attempts to attribute a decision to an upstream message through a tool observation whose value diverged from the recorded value. This is the wall-clock causality break: the replay silently rewrote the happens-before graph by reading a different world than the original.""" pass @dataclass class Observation: tool: str args: dict[str, Any] value: Any read_set_hash: str t_orig: float @dataclass class CausalEdge: src: str # upstream message / event id dst: str # downstream decision id via_tool: str | None faithful: bool = True @dataclass class ReplayLedger: recorded: dict[str, Observation] = field(default_factory=dict) edges: list[CausalEdge] = field(default_factory=list) def record(self, call_id: str, obs: Observation) -> None: self.recorded[call_id] = obs def replay_call(self, call_id: str, replayed_value: Any, current_read_set_hash: str) -> Observation: orig = self.recorded[call_id] if replayed_value != orig.value: # A write intersected the read-set between original and replay. if current_read_set_hash != orig.read_set_hash: # Genuine world change: sever every edge through this call. for edge in self.edges: if edge.via_tool == call_id: edge.faithful = False return orig # return recorded value; do NOT adopt replayed # Same read-set, different value => tool is non-deterministic. raise CausalAttributionError( f"tool {orig.tool} returned {replayed_value!r} on replay but " f"{orig.value!r} originally with identical read-set hash " f"{current_read_set_hash!r}; replay cannot vouch for causality" ) return orig def attribute(self, decision_id: str) -> list[str]: """Return upstream event ids that may be cited as causes of a decision. Raises if any consumed observation was non-faithful and no faithful alternative exists, forcing the caller to report an evidence gap.""" causes, gaps = [], [] for edge in self.edges: if edge.dst != decision_id: continue if edge.faithful: causes.append(edge.src) else: gaps.append(edge.src) if gaps and not causes: raise CausalAttributionError( f"decision {decision_id!r} has no faithful causal edges; " f"all {len(gaps)} upstream candidates consumed divergent " f"observations. Report as evidence gap, not as attribution." ) return causes ```