{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-a-speculative-multi-agent-executor-corrupt-committed-state-when-a-sub-agent-s-rollback-is-triggered-by-a-divergent-outcome-the",
  "title": "Why does an instance of a speculative multi-agent executor corrupt committed state when a sub-agent's rollback is triggered by a divergent outcome the orchestrator never observed?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestrators that fork speculative sub-agents against a shared mutable state store, buffer their writes, and commit or roll back per-branch based on a divergence predicate. Does not apply to stateless fan-out (map/reduce without shared state), nor to single-agent checkpoint/resume, nor to rollback schemes where each branch owns an isolated copy-on-write namespace with no cross-branch visibility.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-multi-agent-executor-corrupt-committed-state-when-a-sub-agent-s-rollback-is-triggered-by-a-divergent-outcome-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-multi-agent-executor-corrupt-committed-state-when-a-sub-agent-s-rollback-is-triggered-by-a-divergent-outcome-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-multi-agent-executor-corrupt-committed-state-when-a-sub-agent-s-rollback-is-triggered-by-a-divergent-outcome-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1840,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a divergent sub-agent rolled back incorrectly.\" It is subtler: the orchestrator's rollback decision is driven by a *divergence predicate evaluated over the branch's final output*, but the branch's *writes were already visible to sibling branches* through the shared store during the speculative window. When the predicate fires and the bran...",
    "what_was_observed": "A three-branch speculative executor was forked against a shared key-value store to answer a planning query. Branch A (planner) wrote `plan.v1 = {...}` at t=0. Branch B (critic) read `plan.v1` at t=1 and wrote `critique.v1 = \"reject: step 3 infeasible\"` at t=2. Branch C (executor) read `plan.v1` at t=1, read `critique.v1` at t=3, and wrote `action.v1 = \"skip step 3\"` at t=4, conditioned on the critique. At t=5 the orc...",
    "condition_of_validity": "The corruption is only possible when all four hold simultaneously: 1. **Shared visibility during speculation.** Branches read each other's uncommitted writes. If branches are isolated (copy-on-write per branch, merge at commit), the read-set cannot reference a rolled-back version. 2. **Derived writes without provenance re-check.** A sibling's write encodes a...",
    "decision_boundary": "The boundary is between **per-branch write-time validation** and **commit-time read-set re-validation against the current version index**. The former is necessary and insufficient. The decision the executor must make at every commit is: *is this branch's read-set still resolvable against the version index as it exists now, after all sibling rollbacks that ha...",
    "operational_effect": "Without the guardrail, the executor produces committed state that passes every per-write check and fails a global consistency check only when a downstream consumer replays provenance. The failure is silent at commit time and loud at consumption time, which is the worst possible latency profile: the corruption is attributed to the consumer, not the executor, ..."
  },
  "matched_failure_symptoms": [
    "DST_SHIFT_OR_CLOCK_SKEW"
  ],
  "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": "53b7dbb1df7239d4cb498f76c5ac6debbe37e9bd2b201933c720c557c508f682",
    "verified_classes": [
      "DanglingReadSetError",
      "Branch",
      "SpeculativeStore"
    ],
    "verified_functions": [
      "__init__",
      "register",
      "rollback",
      "_transitive_read_set",
      "commit_batch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DanglingReadSetError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
