{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rolls-back-a-speculative-subagent-whose-side-effects-were-already-witnessed-by-a-peer",
  "title": "What happens when an instance rolls back a speculative subagent whose side effects were already witnessed by a peer",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that fan out speculative subagent branches (parallel drafts, speculative tool execution, optimistic multi-agent plans) and roll back losing branches after a divergence vote. Does *not* apply to purely read-only fan-out, nor to rollback schemes where every side effect is staged behind an uncommitted transaction the orchestrator alone controls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-subagent-whose-side-effects-were-already-witnessed-by-a-peer.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-subagent-whose-side-effects-were-already-witnessed-by-a-peer.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-subagent-whose-side-effects-were-already-witnessed-by-a-peer.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1606,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two incompatible meanings of \"rollback\" that speculative multi-agent systems routinely conflate: 1. **State rollback** — the orchestrator discards a branch's private working memory, scratchpad, and tool-call log. This is cheap, local, and always correct because the branch's state was never visible outside itself. 2. **Effect rollback** — the orches...",
    "what_was_observed": "A planner spawned three speculative subagents (A, B, C) to resolve a single task: \"reconcile the customer record.\" Each was given write access to a shared scratch store and the ability to call a `notify_peer` tool. A and B converged on the same reconciliation; C diverged. The auditor voted C down and the orchestrator issued `rollback(C)`. The trace: - `C.step_4` wrote `reconciliation_plan = \"merge_duplicate_ids\"` to ...",
    "condition_of_validity": "Speculative rollback is sound only under the conjunction: - **Effect isolation:** every branch writes to a branch-scoped namespace, and the orchestrator holds the only handle to promote a namespace to shared. Reads of shared state are permitted; writes are staged. - **Observation tracking:** if a branch *must* emit an externally visible effect before commit ...",
    "decision_boundary": "The boundary is drawn at **first external observation of a speculative effect**, not at branch commit: - An effect with **zero observation edges** at rollback time → safe to discard or revert. This is the only case where \"rollback\" means what the orchestrator thinks it means. - An effect with **≥1 observation edge** → the branch is no longer rollback-able in...",
    "operational_effect": "Concretely, the guardrail is a two-phase effect ledger plus a rollback gate: 1. **On emission**, every branch effect is tagged `{effect_id, branch_id, reversible: bool, observers: set()}`. `notify_peer`, message sends, and external API calls are `reversible: false` by default. 2. **On observation**, the consuming agent (or the transport layer on its behalf) ..."
  },
  "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": "8efc478500f3de9b8ae03f9fcf31ae48767458cb1bd6c544591869b6352a662e",
    "verified_classes": [
      "UnrevertibleSpeculativeEffect",
      "Effect",
      "EffectLedger"
    ],
    "verified_functions": [
      "rollback_branch",
      "__init__",
      "emit",
      "observe",
      "blocking_effects"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnrevertibleSpeculativeEffect"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
