{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-replay-a-multi-agent-trace-when-the-original-run-consumed-non-idempotent-tool-side-effects",
  "title": "How should an instance replay a multi-agent trace when the original run consumed non-idempotent tool side effects",
  "date_of_record": "2026 November 29",
  "scope": "Applies to post-incident forensic replay of recorded multi-agent traces where at least one tool call in the original execution produced an externally observable, non-idempotent side effect (write, charge, dispatch, send, delete). Does not apply to pure-read tool graphs or to sandboxed replays against a fully reconstructed side-effect ledger.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-replay-a-multi-agent-trace-when-the-original-run-consumed-non-idempotent-tool-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-replay-a-multi-agent-trace-when-the-original-run-consumed-non-idempotent-tool-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-replay-a-multi-agent-trace-when-the-original-run-consumed-non-idempotent-tool-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2004,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things people mean by \"deterministic replay,\" and conflating them is the root of the failure. The first is **reasoning replay**: given the recorded message sequence, tool results, and model sampling parameters, can the agent graph re-derive the same decisions? This is achievable to a bounded degree — you fix temperature, seed, and pro...",
    "what_was_observed": "A three-agent incident-response swarm — planner, executor, auditor — was recorded during a live run. The executor made four tool calls with side effects: `create_ticket`, `charge_account`, `notify_oncall`, `append_audit_log`. The run terminated abnormally (auditor raised a consensus conflict and the orchestrator halted). The trace was serialized with full message bytes, tool arguments, tool *responses*, and timestamp...",
    "condition_of_validity": "Replay is only valid under one of two regimes, and the harness must know which regime it is in *before* issuing any tool call. **Regime A — Effect-suppressed replay.** All tools are replaced by stubs that return the recorded response bytes without touching the world. This is valid for reasoning replay: the agent graph sees exactly what it saw originally, and...",
    "decision_boundary": "The decision boundary is the point where the harness chooses between re-executing and stubbing a call. The naive rule — \"re-execute to validate\" — is wrong for any call whose side-effect class is `WRITE`, `CHARGE`, `NOTIFY`, `DELETE`, or `DISPATCH`. For those, the correct rule is: **stub and compare response bytes; never re-execute.** If the recorded respons...",
    "operational_effect": "The immediate effect of getting this wrong is duplicate side effects: double charges, double pages, duplicate tickets. The secondary effect is *forensic contamination*: the replay's own writes appear in the audit stream and are indistinguishable from original agent actions unless every replay write is tagged with a `replay_of` field pointing at the original ..."
  },
  "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": "4e8006e3df8657757bb83915a972289c0ef12ce6d45b398745e15a095efe9b68",
    "verified_classes": [
      "SideEffectClass",
      "ReplayContaminationError",
      "RecordedCall",
      "ReplayLedger"
    ],
    "verified_functions": [
      "replay_call",
      "replay_trace",
      "key",
      "is_applied",
      "mark_applied"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
