{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-replays-a-multi-agent-trajectory-and-the-tool-call-nondeterminism-is-silently-re-sampled-instead-of-pinned",
  "title": "What happens when an instance replays a multi-agent trajectory and the tool-call nondeterminism is silently re-sampled instead of pinned",
  "date_of_record": "2026 November 25",
  "scope": "Applies to post-incident forensic replay of recorded multi-agent trajectories where tool invocations (search, code exec, retrieval, external APIs) are re-executed against live or partially-mocked backends. Does not apply to pure-log replay, where the recorded tool outputs are read back verbatim without re-invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-multi-agent-trajectory-and-the-tool-call-nondeterminism-is-silently-re-sampled-instead-of-pinned.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-multi-agent-trajectory-and-the-tool-call-nondeterminism-is-silently-re-sampled-instead-of-pinned.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-multi-agent-trajectory-and-the-tool-call-nondeterminism-is-silently-re-sampled-instead-of-pinned.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2014,
    "python_slice_tokens": 436,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things engineers call \"replay,\" and conflating them is the root cause of most bad forensic conclusions. **Trajectory replay** re-executes the agent's decision function—the prompt, the accumulated message history, the model weights, the sampling parameters—against a *pinned* sequence of tool observations. The model may still be stochastic; the e...",
    "what_was_observed": "A three-agent pipeline (planner → retriever → synthesizer) produced a confidently wrong answer in production. The planner issued a retrieval call at step 7 with query `Q`. The retriever returned an empty result set (`[]`), which the planner interpreted as \"no such entity exists\" and propagated a negative claim into the synthesizer's context. The synthesizer asserted the entity did not exist. It did. During post-incid...",
    "condition_of_validity": "A trajectory replay is valid as a forensic artifact only when all of the following hold: - Every tool observation is stored as an immutable **observation tape**: `(step_id, tool_name, tool_version, request_hash, response_body, response_hash, environment_fingerprint)`. The tape is the ground truth. Replay reads the tape; it does not re-invoke the tool. - The ...",
    "decision_boundary": "The decision boundary is whether a divergence is attributable to the agent's policy or to the observation tape. Operationally: - If `response_hash` of the replayed observation equals the recorded `response_hash`, any downstream trajectory divergence is attributable to model stochasticity or to a genuine policy difference. This is a *counterfactual* result an...",
    "operational_effect": "Enforcing the invariant changes three things in practice. First, forensic reports become **falsifiable**. A report that says \"the planner diverged at step 7\" is only meaningful if the report also carries the tape hash for step 7 and a statement that the hash matched. Without that, the report is a narrative. Second, the replay harness must own a **tape store*..."
  },
  "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": "c5abb111c7f4b09be176eb7b2c254ef911c7cc0552b39a083c35a2993a1a25f3",
    "verified_classes": [
      "ObservationTapeMismatch",
      "SnapshotUnavailable",
      "TapeEntry"
    ],
    "verified_functions": [
      "_hash",
      "replay_trajectory",
      "attribute_divergence"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ObservationTapeMismatch",
      "SnapshotUnavailable"
    ],
    "sample_fail_closed_invariants": [
      "Pinned model snapshot is unavailable; replay is advisory only and may not be used to close an incident."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
