{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-replay-divergence-in-agentic-forensic-reconstruction-the-non-idempotent-tool-call-shadow",
  "title": "What structural signals indicate replay divergence in agentic forensic reconstruction: the non-idempotent tool-call shadow",
  "date_of_record": "2026 November 30",
  "scope": "Applies to post-incident reconstruction of agent runs where a recorded trace (prompts, tool invocations, tool results, model outputs, and any state snapshots) is re-executed to attribute a failure to a specific step. Does not apply to live debugging, to single-turn stateless inference, or to traces whose tool layer is provably pure and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-replay-divergence-in-agentic-forensic-reconstruction-the-non-idempotent-tool-call-shadow.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-replay-divergence-in-agentic-forensic-reconstruction-the-non-idempotent-tool-call-shadow.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-replay-divergence-in-agentic-forensic-reconstruction-the-non-idempotent-tool-call-shadow.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2147,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The forensic assumption behind replay is that a recorded trace is a *sufficient* description of the run: re-executing the same prompt sequence against the same model and tool endpoints reproduces the same decision path, so any divergence is attributable to a real defect. This conflates two different objects. A *trace* is a log of what the agent observed. A *...",
    "what_was_observed": "A multi-step agent was tasked with reconciling a set of records across two systems. The trace showed the agent: (1) calling `list_pending()` to enumerate work items, (2) calling `fetch_record(id)` for each, (3) calling `reconcile(a, b)` to write a verdict, and (4) emitting a summary. The incident: the agent reported \"all records reconciled\" while three records remained in `pending` state. Replay was executed to recon...",
    "condition_of_validity": "The replay-divergence-as-signal interpretation is valid only under the following conditions, and fails outside them: 1. **The trace records tool *results*, not tool *inputs*, for non-pure tools.** If the trace records the full argument set and the tool is pure, replay is faithful and divergence *does* indicate model nondeterminism. The signal is only diagnos...",
    "decision_boundary": "The operational decision is: **when a replay diverges, do you attribute it to the model or to the trace?** The boundary is crossed by a single check, performed before any replay is run: for each tool call in the trace, classify the tool as *replay-pure* (result is a function of recorded arguments only), *replay-impure-read* (result depends on ambient state n...",
    "operational_effect": "The practical consequence is that forensic replay must be *gated on a purity audit of the trace's tool surface*, not run unconditionally. The gate produces three artifacts: 1. A **purity classification** per tool call, derived from the tool schema and the trace's recorded arguments. 2. A **cardinality check** across enumeration-then-fetch patterns, which 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": "c436f9d11dc2f151e3cacff66328a842cf8ac5b1a2830e947b3c2d5b0e294be6",
    "verified_classes": [
      "ToolPurity",
      "ReplayDivergenceError",
      "ToolCall",
      "Trace"
    ],
    "verified_functions": [
      "audit_replay_safety",
      "classify_divergence"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ReplayDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
