{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-replay-a-poisoned-agentic-session-when-tool-call-telemetry-records-intent-but-not-the-nondeterministic-tool-result",
  "title": "How should an instance replay a poisoned agentic session when tool-call telemetry records intent but not the nondeterministic tool result",
  "date_of_record": "2026 November 22",
  "scope": "Applies to forensic replay of agentic sessions reconstructed from structured telemetry (span trees, tool-call records, prompt/response logs) where the replay engine re-executes recorded actions to reproduce a failure. Does not apply to pure log-reading forensics where the goal is inspection rather than re-execution, nor to sessions whose tool outputs were captured byte-for-byte and pinned.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-replay-a-poisoned-agentic-session-when-tool-call-telemetry-records-intent-but-not-the-nondeterministic-tool-result.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-replay-a-poisoned-agentic-session-when-tool-call-telemetry-records-intent-but-not-the-nondeterministic-tool-result.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-replay-a-poisoned-agentic-session-when-tool-call-telemetry-records-intent-but-not-the-nondeterministic-tool-result.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2114,
    "python_slice_tokens": 429,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things a forensic replay can mean, and conflating them produces the central failure of this article. **Result replay** re-drives the agent's decision loop using the *recorded* tool outputs as ground truth: the model is re-invoked, but every tool call returns the archived bytes. **Re-execution replay** re-runs the tool calls live against the rea...",
    "what_was_observed": "A support-triage agent ran a 14-step session: `search_tickets` → `get_ticket` (×6) → `query_customer_plan` → `issue_refund` → `notify_customer`. The incident: the agent issued a refund of the wrong magnitude on step 11 and notified the customer before any human review. Telemetry captured each tool call as a span with `tool.name`, `tool.args`, `status`, and `result.preview` — the preview capped at 512 bytes. The `quer...",
    "condition_of_validity": "Result replay is admissible only when, for every tool span in the causal chain that feeds a decision under investigation, one of the following holds: - The full result is archived and hash-pinned (`result.sha256` matches the bytes fed back into context), **or** - The result is truncated but the truncation boundary provably does not intersect any field the de...",
    "decision_boundary": "When the replay engine hits a span whose archived result is incomplete, it must choose: - **Abort-and-report** if the span is on the causal path to the decision under investigation (i.e., its output tokens intersect the decision's input window). The replay is inadmissible; report `INSUFFICIENT_TELEMETRY` with the specific span and missing byte range. This is...",
    "operational_effect": "The practical consequences of getting this wrong are asymmetric and quiet: - **False exonerations.** Substituted results that happen to make the agent's action look reasonable will close incidents as \"no agent fault\" when the agent was at fault. The unit-mismatch bug above was closed twice before the truncation was noticed. - **False convictions.** Substitut..."
  },
  "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": "0339e3cc52327282c0584f708bc36868de3b731c415390c5d1350248650051d6",
    "verified_classes": [
      "ReplayAdmissibilityError",
      "ToolSpan",
      "Substitution"
    ],
    "verified_functions": [
      "check_admissibility",
      "replay_session"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ReplayAdmissibilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
