{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-replays-a-multi-agent-trace-and-the-forensic-reconstruction-diverges-from-the-original-execution",
  "title": "What happens when an instance replays a multi-agent trace and the forensic reconstruction diverges from the original execution",
  "date_of_record": "2026 November 30",
  "scope": "Applies to post-incident forensic reconstruction of multi-agent execution traces where a replay harness re-drives the recorded transcript to localize root cause. Does not apply to live shadow-execution or to single-agent deterministic transcripts with no inter-agent message exchange.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-multi-agent-trace-and-the-forensic-reconstruction-diverges-from-the-original-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-multi-agent-trace-and-the-forensic-reconstruction-diverges-from-the-original-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-multi-agent-trace-and-the-forensic-reconstruction-diverges-from-the-original-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1502,
    "python_slice_tokens": 243,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two fundamentally different artifacts one can call a \"trace\": the **causal transcript** (the ordered sequence of messages, tool invocations, and state deltas as they were emitted) and the **replayable execution** (a transcript plus every piece of non-determinism injected at each decision point: model sampling seeds, tool response bytes, wall-clock ...",
    "what_was_observed": "A three-agent pipeline (planner → executor → auditor) deadlocked at step 47 of a 60-step task. The incident was captured as a JSONL transcript: 47 messages, 12 tool calls, one timeout. On replay, the harness re-fed each recorded message to a freshly instantiated agent with the original system prompt and the recorded tool outputs. The replay **completed successfully in 51 steps with no deadlock**. Root-cause analysis ...",
    "condition_of_validity": "Deterministic replay of a multi-agent trace is valid **only if** the replayable execution artifact satisfies three invariants: 1. **Token-accounting fidelity.** For every message delivered to every agent, the transcript must record both the *emitted* payload and the *delivered* payload (post-truncation, post-summarization, post-redaction). If these differ, t...",
    "decision_boundary": "The decision boundary is whether the replay harness can prove that the reconstructed execution is *isomorphic* to the original at every agent decision point. Practically, this means: for each step where the replay's chosen action differs from the recorded action, the harness must be able to point to a recorded non-determinism parameter that explains the diff...",
    "operational_effect": "The practical consequence is that multi-agent incident response must treat the **replayable execution artifact** as a separate, first-class output of the runtime, not as a post-hoc derivation from logs. This means the runtime must emit, at every agent boundary: (a) the delivered context hash, (b) the truncation/summarization events with before/after token co..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "12e124fcca407d67ec5d9e20c49e444e40f249fe684d4a4805165ffe99c4a021",
    "verified_classes": [
      "ReplayDivergenceError",
      "DeliveredMessage",
      "ReplayTrace"
    ],
    "verified_functions": [
      "reconstruct",
      "truncated",
      "verify_fidelity"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReplayDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
