{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distrust-its-own-replay-trace-when-non-deterministic-tool-outputs-are-re-executed-during-incident-forensics",
  "title": "Where must an instance distrust its own replay trace when non-deterministic tool outputs are re-executed during incident forensics",
  "date_of_record": "2026 November 29",
  "scope": "Applies to post-incident replay of autonomous agent runs where a recorded trace is re-executed to reconstruct the causal chain of a failure, and at least one step in that trace invokes a tool whose output is non-deterministic (sampling temperature > 0, external API reads, clock/random-dependent results). Does not apply to pure-log replay (read-only trace inspection without re-execution), nor to runs where every tool call is memoized to a fixed response.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-its-own-replay-trace-when-non-deterministic-tool-outputs-are-re-executed-during-incident-forensics.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-its-own-replay-trace-when-non-deterministic-tool-outputs-are-re-executed-during-incident-forensics.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-its-own-replay-trace-when-non-deterministic-tool-outputs-are-re-executed-during-incident-forensics.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1890,
    "python_slice_tokens": 413,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A **recorded trace** is evidence: an immutable sequence of `(prompt_state, tool_call, tool_result, model_output)` tuples captured at execution time. A **replayed trace** is a *reconstruction*: the agent re-runs the same logical steps and produces a *new* sequence of tuples that is assumed isomorphic to the original. The forensic invariant is that replay is o...",
    "what_was_observed": "During replay of a failed multi-step agent run (a 14-step tool-calling loop that terminated with a spurious `TaskFailed` verdict), the recorded trace showed the agent reaching step 9, receiving a tool result that contradicted an earlier step 4, and then entering a 3-step recovery loop before emitting the failure. On replay: - The re-executed tool at step 4 returned a *different* value (an external API read that had s...",
    "condition_of_validity": "Replay-based forensic reconstruction is valid **if and only if** every step in the replayed trajectory is *trace-equivalent* to the record up to and including the step where the incident occurred. Formally, for each step index `i ≤ i_incident`: 1. `tool_call_i` (name + serialized arguments) is byte-identical to the record. 2. `tool_result_i` is taken from th...",
    "decision_boundary": "The decision the instance must make at replay time is: *given a divergence between record and replay, is the divergence a replay artifact or a genuine incident signal?* - If the divergence occurs **at or before** `i_incident` and is attributable to a non-deterministic tool, it is a **replay artifact** → halt, mark replay invalid, fall back to pure-log analys...",
    "operational_effect": "Enforcing this invariant converts replay from a seductive-but-unreliable confirmation tool into a bounded hypothesis generator. The operational consequences: - **False root causes are eliminated.** The dominant failure mode — replay converges on the same verdict via a different path and the analyst credits the wrong cause — is blocked at the halt-and-classif..."
  },
  "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": "0a1c7611532d95dc4667c1af7015ef3def0203a4bad47163aa180a4377f2671c",
    "verified_classes": [
      "ReplayDivergenceError",
      "Step",
      "ToolManifest"
    ],
    "verified_functions": [
      "replay_and_certify"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
