{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-persist-nondeterministic-tool-call-side-effects-as-first-class-replay-anchors-to-make-multi-agent-speculative-branc",
  "title": "In what scenarios must an instance persist nondeterministic tool-call side effects as first-class replay anchors to make multi-agent speculative-branch forensics sound",
  "date_of_record": "2026 November 26",
  "scope": "Applies to forensic replay of multi-agent runs that employ speculative branching (parallel draft execution with later commit/abort) where replay must reconstruct the causal history of a committed branch from a recorded trace. Does not apply to single-agent linear traces, nor to systems whose tool adapters are provably pure and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-persist-nondeterministic-tool-call-side-effects-as-first-class-replay-anchors-to-make-multi-agent-speculative-branc.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-persist-nondeterministic-tool-call-side-effects-as-first-class-replay-anchors-to-make-multi-agent-speculative-branc.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-persist-nondeterministic-tool-call-side-effects-as-first-class-replay-anchors-to-make-multi-agent-speculative-branc.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2106,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Forensic replay is routinely conflated with *deterministic re-execution*. They are different invariants. Re-execution asserts that running the same agent graph with the same seed and same inputs yields the same trace. Replay asserts only that the *recorded* trace can be re-entered at any checkpoint and that every downstream decision is justified by recorded ...",
    "what_was_observed": "A three-agent swarm (planner, executor, auditor) ran a task with speculative fan-out: the planner emitted three candidate plans, the executor ran all three in parallel against a shared sandboxed workspace, and the auditor selected one. During the run, candidate B (later aborted) executed a `write_file` against the shared workspace and a `send_notification` to an external webhook before the auditor's selection signal ...",
    "condition_of_validity": "Deterministic replay of a speculative-branch trace is sound **iff** all three of the following hold: 1. **Mutation completeness.** Every observable mutation performed by any branch — committed or aborted — is recorded in a ledger at the moment of the call, before the branch's commit/abort status is known. Recording at commit time is unsound: the abort decisi...",
    "decision_boundary": "The operational decision is: **when to spend the storage and latency on a side-effect ledger versus when to accept replay unsoundness.** - **Ledger required** when any tool in the agent graph is effectful (network, filesystem outside the sandbox, message bus, payment) AND speculative branching is enabled AND post-incident forensics is a stated requirement. T...",
    "operational_effect": "With the ledger in place, replay of the incident above proceeds as follows: the engine re-enters the committed lineage of A, reaches step 7, sees the recorded `read_file` return, consults the ledger, finds a `write_file` from branch B at a logically earlier step, and emits a **contaminated-read** annotation rather than a discrepancy. The forensic conclusion ..."
  },
  "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": "1d81bf9cfe2f0bcdbbe7a1f5f815a39ee89dc238f2d584905b51d37eb1358b45",
    "verified_classes": [
      "ReplaySoundnessError",
      "LedgerEntry",
      "SideEffectLedger"
    ],
    "verified_functions": [
      "replay_committed_read",
      "record",
      "resolve_commit",
      "reconcile_read"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ReplaySoundnessError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
