{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-a-replayed-branch-to-preserve-audit-integrity-under-speculative-multi-agent-execution",
  "title": "When must an instance abort a replayed branch to preserve audit integrity under speculative multi-agent execution",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent systems that execute speculative branches (parallel draft-and-merge, optimistic concurrency, or \"try N paths, pick one\" rollouts) and subsequently reconstruct an auditable trace via deterministic replay. Does not apply to single-agent linear executions with no branch merging, nor to systems where replay is only used for debugging rather than as a compliance artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-replayed-branch-to-preserve-audit-integrity-under-speculative-multi-agent-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-replayed-branch-to-preserve-audit-integrity-under-speculative-multi-agent-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-replayed-branch-to-preserve-audit-integrity-under-speculative-multi-agent-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1809,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between **replay equivalence** (the re-executed trace reaches the same terminal state) and **replay admissibility** (the re-executed trace is a valid witness for the decisions that were actually committed). Speculative execution produces *discarded* branches—agent turns, tool calls, and retrieval reads that were executed but never merge...",
    "what_was_observed": "A planner agent P spawns three speculative workers W1, W2, W3 to draft a remediation plan, each with a `web_fetch` tool and a shared `scratchpad` KV store (used as an inter-agent memo). W2 fetches a URL and writes `scratchpad[\"vendor_cve\"] = \"CVE-2024-XXXX: fixed in 4.2.1\"`. W2's draft is *rejected* by the auditor for unrelated reasons (length, style) and its branch is discarded. W3 is accepted. But W3's final turn c...",
    "condition_of_validity": "The invariant holds—i.e., the instance may safely reconcile a speculative branch rather than abort—if and only if all three of the following are true: 1. **Write-set disjointness or provenance tagging.** For every discarded branch B and every committed read r of slot s, either B never wrote s, or r carries a provenance record `(s, B, timestamp, value_hash)` ...",
    "decision_boundary": "The instance must abort the branch reconciliation—raising a hard error and halting the audit pipeline—rather than proceed, when any of the following is observed during replay: - A committed read of a shared slot resolves to a value with no committed writer and no provenance tag. (Unbound read.) - A non-idempotent tool call is on the re-execution path and its...",
    "operational_effect": "When the abort fires, the audit pipeline records a `BranchReconciliationAbort` with the offending slot, the discarded branch ID, and the missing provenance tuple, and routes the trace to manual review. The committed plan is *not* invalidated—it may still be correct—but it is no longer *auditable by replay*, and downstream consumers must be told so. In practi..."
  },
  "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": "235bb3cdd56629c5573d516bf72cc80b94bd6cca4f730c5e3c8263f1fb2e3143",
    "verified_classes": [
      "BranchReconciliationAbort",
      "Provenance",
      "ReadEvent"
    ],
    "verified_functions": [
      "reconcile_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "BranchReconciliationAbort"
    ],
    "sample_fail_closed_invariants": [
      "no sampling seed recorded; replay is not a witness for the original decision"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
