{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconstruct-a-multi-agent-incident-when-replay-diverges-at-a-nondeterministic-tool-boundary",
  "title": "How should an instance reconstruct a multi-agent incident when replay diverges at a nondeterministic tool boundary",
  "date_of_record": "2026 November 27",
  "scope": "Applies to forensic replay of recorded multi-agent traces where at least one step invokes a stochastic or time-dependent external tool (LLM sampling, web fetch, RNG-backed retriever, clock-reading planner). Does not apply to fully hermetic traces where every tool is a pure function of recorded inputs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconstruct-a-multi-agent-incident-when-replay-diverges-at-a-nondeterministic-tool-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconstruct-a-multi-agent-incident-when-replay-diverges-at-a-nondeterministic-tool-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconstruct-a-multi-agent-incident-when-replay-diverges-at-a-nondeterministic-tool-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1802,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an incident responder wants from a trace, and they are not the same artifact: 1. **Causal reconstruction** — *what actually happened* during the incident, as a sequence of committed state transitions. 2. **Deterministic replay** — *re-executing the same agent graph and getting the same output*. Most incident tooling conflates these. A re...",
    "what_was_observed": "A three-agent swarm (planner → retriever → auditor) was asked to reconcile a document set. During the incident, the auditor flagged a contradiction that the planner had not surfaced. Post-hoc, the on-call engineer replayed the trace to determine whether the planner had *seen* the contradicting passage and ignored it, or had *never retrieved it*. The trace recorded, per step: `agent_id`, `tool_name`, `tool_input`, `to...",
    "condition_of_validity": "A replay is forensically valid for a given step *n* if and only if, for every step *i ≤ n*: - If tool *i* is deterministic and hermetic, re-execution must reproduce `tool_output[i]` byte-for-byte. Any mismatch is a **trace integrity failure**, not a divergence — it means the recorded trace is corrupt or the tool's determinism contract was violated. - If tool...",
    "decision_boundary": "The boundary between \"replay is evidence\" and \"replay is a simulation\" is crossed at the first nondeterministic tool boundary that is re-executed rather than pinned. Before that boundary, downstream comparison is sound. After it, downstream comparison is comparing two different worlds. Operationally, the responder must decide, per boundary: - **Pin and halt-...",
    "operational_effect": "Once the invariant is enforced, three things change: 1. **Replay failures become informative.** A halt at step 14 with \"pinned output missing for nondeterministic tool `retriever.search`\" tells the investigator exactly where the evidence chain breaks, rather than laundering the break into a clean-looking but fabricated trace. 2. **Context-hash mismatches sur..."
  },
  "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": "0688959da4e72a0e9adf436b648ae3ed532bf5fcaa67218323f24b4b472c2967",
    "verified_classes": [
      "ReplayDivergenceError",
      "ContextHashMismatchError",
      "Step"
    ],
    "verified_functions": [
      "reconstruct_context",
      "hash_context",
      "replay_step",
      "_execute"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ContextHashMismatchError",
      "NotImplementedError",
      "ReplayDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
