{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-nondeterministic-tool-output-replay-as-a-first-class-forensic-hazard-in-agent-trajectory-reconstruction",
  "title": "Under what conditions must an instance treat nondeterministic tool-output replay as a first-class forensic hazard in agent trajectory reconstruction",
  "date_of_record": "2026 November 26",
  "scope": "Applies when reconstructing an agent trajectory from a recorded event log for post-incident forensics, where the trajectory contains at least one tool call whose output is nondeterministic (network reads, clock reads, RNG, live retrieval, model sampling). Does not apply to pure-function tool environments or to trajectories where every tool output was captured verbatim and pinned at record time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-nondeterministic-tool-output-replay-as-a-first-class-forensic-hazard-in-agent-trajectory-reconstruction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-nondeterministic-tool-output-replay-as-a-first-class-forensic-hazard-in-agent-trajectory-reconstruction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-nondeterministic-tool-output-replay-as-a-first-class-forensic-hazard-in-agent-trajectory-reconstruction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1925,
    "python_slice_tokens": 468,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an agent forensics system can mean by \"replay,\" and conflating them is the root failure: 1. **Deterministic state replay** — re-executing the recorded decision sequence against *pinned* tool outputs, producing a bit-identical trace of what the agent actually did. The environment is frozen; only the agent's reasoning is re-run. 2. **Re-ex...",
    "what_was_observed": "Incident class: an agent tasked with reconciling a ledger issued a `fetch_balance(account_id)` call, received `412.00`, and then emitted a `transfer` decision. During post-incident replay three days later, the same call returned `398.00` (the account had since been debited by an unrelated process). The replay harness fed `398.00` into the recorded reasoning context. The agent's reconstructed chain then diverged: it e...",
    "condition_of_validity": "A replay is a valid deterministic reconstruction **if and only if** every tool invocation in the trajectory is resolved from a pinned record, and the pin is verified by content hash before the result enters the reasoning context. Formally, for each tool call `c_i` in the trajectory, the replay harness must satisfy: - `recorded[c_i].result_hash == replay[c_i]...",
    "decision_boundary": "The operator must decide, per trajectory, which replay mode is intended, and the harness must refuse to blur them: - **Forensic reconstruction (default for incident post-mortems):** all tool calls pinned, hash-verified, no live dispatch. If a pin is missing, the replay **fails closed** with an explicit `UnpinnedToolResultError` naming the offending call inde...",
    "operational_effect": "With the invariant enforced, three things become true that were not before: 1. **Divergence diffs become meaningful.** Any difference between recorded and replayed reasoning is now attributable to genuine model nondeterminism (sampling, temperature, seed), because inputs are held fixed. This lets operators separate \"the model is stochastic\" from \"the environ..."
  },
  "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": "115fe03b717d8e9498d59837ef8fd0567daa7844f1ad2d6314f755c2b9177166",
    "verified_classes": [
      "UnpinnedToolResultError",
      "ToolCallRecord"
    ],
    "verified_functions": [
      "_hash",
      "resolve_tool_result",
      "build_replay_context"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnpinnedToolResultError",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
