{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-rollback-divergence-when-speculative-sibling-agents-share-a-mutable-external-world",
  "title": "How does an instance detect rollback divergence when speculative sibling agents share a mutable external world",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestration patterns where a parent agent forks N speculative branches that each execute tool calls against a shared, non-transactional external environment (filesystem, database, remote API, browser session) and where exactly one branch is committed and the rest are rolled back. Does not apply to branches executed in fully isolated sandboxes with copy-on-write state, nor to purely read-only speculative fan-out.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-rollback-divergence-when-speculative-sibling-agents-share-a-mutable-external-world.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-rollback-divergence-when-speculative-sibling-agents-share-a-mutable-external-world.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-rollback-divergence-when-speculative-sibling-agents-share-a-mutable-external-world.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2913,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution in agent systems is usually justified by an analogy to CPU branch prediction: run ahead on multiple hypotheses, discard the losers, keep the winner. The analogy breaks at one specific point. A CPU's speculative writes land in a reorder buffer, a private staging area the ISA guarantees is invisible until commit. An LLM agent's speculativ...",
    "what_was_observed": "A parent agent was tasked with migrating a service's configuration across three environments. It forked three speculative branches, each assigned a different migration strategy (in-place rewrite, shadow-copy-and-swap, and blue/green cutover). Each branch was given the same tool surface: `read_config`, `write_config`, `restart_service`, `probe_health`. The acceptance predicate for a branch was \"health probe returns 20...",
    "condition_of_validity": "Speculative multi-agent rollback is sound only under a conjunction of conditions, and the conjunction is rarely satisfied by real tool surfaces: - **Effect keying.** Every mutating tool call carries a branch-scoped idempotency key, and the external store honors it, so a rollback can be expressed as \"invert all effects with key `branch-A`.\" This requires the ...",
    "decision_boundary": "The boundary between \"safe to speculate\" and \"must serialize\" is drawn by a single question asked at fork time, per branch: *what is the maximum effect set this branch could produce before its acceptance predicate is evaluated?* If the answer is \"reads only,\" speculate freely—rollback is trivially correct. If the answer is \"writes to a store that supports ke...",
    "operational_effect": "The operational consequence is a change in how forks are constructed and how divergence is handled. Forks are constructed with an **effect manifest** per branch: the orchestrator enumerates, before execution, the tools the branch may call and classifies each as read-only, invertible-write, or opaque-write. A branch whose manifest contains any opaque-write is..."
  },
  "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": "70adb8d03422abbaa475766518216deee86183c3d6d2b6bc052e0cc5b558f5d9",
    "verified_classes": [
      "UnreconciledEffectError",
      "EffectManifest"
    ],
    "verified_functions": [
      "reconcile_divergent_branch",
      "guard_sibling_read",
      "__init__",
      "record",
      "opaque_effects",
      "touched_resources"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconciledEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
