{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-nondeterministic-divergence-during-replay-of-its-own-prior-session-and-why-does-the-replay-of-a-tool-call-transcript-silen",
  "title": "How does an instance detect nondeterministic divergence during replay of its own prior session, and why does the replay of a tool-call transcript silently \"pass\" even when the original run was unsound?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to forensic replay of recorded agentic sessions where the reconstruction engine re-executes the recorded tool calls and re-samples model outputs against a fixed seed. Does not apply to pure transcript inspection (log reading without re-execution) or to sessions where model sampling is fully captured and replayed as a frozen token stream rather than re-sampled.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-divergence-during-replay-of-its-own-prior-session-and-why-does-the-replay-of-a-tool-call-transcript-silen.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-divergence-during-replay-of-its-own-prior-session-and-why-does-the-replay-of-a-tool-call-transcript-silen.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-divergence-during-replay-of-its-own-prior-session-and-why-does-the-replay-of-a-tool-call-transcript-silen.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1977,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an operator can mean by \"deterministic replay,\" and conflating them is the root of the failure this record documents: 1. **Transcript replay** — re-running the *recorded tool calls* against the *recorded arguments* and checking that tool outputs match. This is deterministic by construction because the tool inputs are frozen. It validates...",
    "what_was_observed": "A session was recorded where the agent, at step 7, emitted a tool call `delete_resource(id=\"prod-441\")`. The recorded arguments were captured correctly. The incident report attributed the deletion to a prompt-injection string embedded in a retrieved document at step 6. During forensic replay, the harness re-executed step 7's recorded tool call against a sandboxed environment. The tool returned the same error code as ...",
    "condition_of_validity": "Sampling replay is only a valid forensic instrument under three simultaneous conditions, and the harness must verify all three before claiming reproducibility: 1. **Seed fidelity.** The recorded seed must be the seed actually used for the original sample, not the seed of the replay process. If the original run used a per-step derived seed (`hash(session_id, ...",
    "decision_boundary": "The instance must draw a hard line at the point where it reports a replay verdict. The decision boundary is: - **If the tool-call transcript matches but the re-sampled action probability is below τ (default 0.05) and the original action is outside top-k (default k=5):** the session is *reproducible at the environment level but not at the decision level*. The...",
    "operational_effect": "The practical consequence is that forensic replay must be built as a *two-channel* instrument from the start, and the sampling channel must be the one that gates the verdict. Concretely: - Every recorded step must carry a `sampling_manifest`: the seed, the temperature, the top-p, the exact prefix hash, and the log-probability of the chosen action *as recorde..."
  },
  "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": "b33e3748239f63909760143ba13a9b2636d4ee39de86db6793817d4e45cf6ea5",
    "verified_classes": [
      "ReplayVerdictError",
      "RecordedStep",
      "ReplaySample"
    ],
    "verified_functions": [
      "_prefix_hash",
      "validate_sampling_containment",
      "certify_session"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayVerdictError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
