{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-fence-speculative-side-effects-before-a-parallel-branch-rollback-can-be-trusted",
  "title": "Where must an instance fence speculative side effects before a parallel branch rollback can be trusted?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to orchestrators that fan out a plan into parallel speculative branches (each branch may issue tool calls) and later commit one branch while rolling back the others. Does not apply to strictly sequential single-branch execution, nor to branches whose tool calls are provably side-effect-free and idempotent under replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-speculative-side-effects-before-a-parallel-branch-rollback-can-be-trusted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-speculative-side-effects-before-a-parallel-branch-rollback-can-be-trusted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-speculative-side-effects-before-a-parallel-branch-rollback-can-be-trusted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1814,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch made a wrong call.\" It is that **rollback of a speculative branch is a logical operation, while a tool call is a physical one** — and the two are not on the same clock. A branch can be declared rolled back in the orchestrator's state machine while its in-flight tool invocation is still executing on the remote side, or...",
    "what_was_observed": "A planner decomposed a task into three parallel branches (A, B, C), each instructed to gather evidence and, if confident, apply a mutation to a shared resource. All three branches were dispatched concurrently with a per-branch deadline. Branch B's tool call — a mutation — validated against schema, passed the dry-run oracle (which checked argument shape, not current resource state), and was dispatched. The orchestrato...",
    "condition_of_validity": "Rollback is trustworthy only under a conjunction that is rarely checked: 1. **Fencing token precedes dispatch.** Every tool call from a speculative branch must carry a branch-scoped fencing token, and the remote must reject or quarantine effects whose token belongs to a branch that has been superseded at the time of *application*, not at the time of *dispatc...",
    "decision_boundary": "The boundary is **not** \"should we speculate?\" but **\"is the tool call's effect fenced at application time?\"** - If the tool call is **provably pure and idempotent under replay** (deterministic read with no cursor advance, pure computation), speculation is safe without application-time fencing; rollback is just state discard. - If the tool call is **mutating...",
    "operational_effect": "When application-time fencing is absent, three failure modes become reachable and are each individually silent: - **Post-rollback effect application:** a discarded branch mutates the world after rollback \"completes,\" and the committed branch reads the mutation as ground truth. Output is consistent and wrong. - **Replay divergence:** speculative reads advance..."
  },
  "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": "52eb3cc47eca95b3c7a07b4fe43ae464611cc3ccbfe68063e8d8cfeb0fd674ee",
    "verified_classes": [
      "UnfencedSpeculativeEffect",
      "EffectClass",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "__init__",
      "__init__",
      "dispatch",
      "rollback",
      "commit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnfencedSpeculativeEffect"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
