{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-commit-a-speculatively-executed-branch-when-a-sibling-agent-has-already-observed-its-side-effects",
  "title": "Under what conditions must an instance refuse to commit a speculatively executed branch when a sibling agent has already observed its side effects",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems where a planner agent forks speculative execution branches (parallel plan rollouts) that emit externally observable side effects (tool calls, writes, messages) before a reconciliation/commit decision. Does not apply to pure read-only speculation, nor to single-agent speculative decoding where no branch state escapes the instance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-commit-a-speculatively-executed-branch-when-a-sibling-agent-has-already-observed-its-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-commit-a-speculatively-executed-branch-when-a-sibling-agent-has-already-observed-its-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-commit-a-speculatively-executed-branch-when-a-sibling-agent-has-already-observed-its-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1734,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution of agent plans is usually framed as a performance optimization: fork N branches, score them, keep the best, discard the rest. The implicit invariant is that discarded branches leave no trace. That invariant holds only when branch side effects are *buffered and invisible*. The non-obvious boundary is the case where a branch's side effect...",
    "what_was_observed": "A planner instance `P` forked three speculative branches to satisfy a task requiring a resource reservation. Branch `b2` invoked `reserve(slot=17, holder=\"P\")`, which succeeded and returned a reservation token. Before `P` scored the branches, a peer agent `Q` — running a concurrent sub-task — called `query_slot(17)`, observed `holder=\"P\"`, and used that observation to skip its own reservation attempt and instead send...",
    "condition_of_validity": "Rollback of a speculative branch is valid **only if no peer has observed the branch's effects before the rollback commits**. Formally, let `O(b)` be the set of observations by agents other than the forking instance of any effect emitted by branch `b`. Rollback is safe iff `O(b) = ∅` at the moment the rollback is applied, or all observers in `O(b)` are themse...",
    "decision_boundary": "The instance must switch from *rollback* to *commit-and-reconcile* semantics at the boundary where `O(b) ≠ ∅`. Concretely: - **Below the boundary** (no observation, or observation only by agents whose checkpoints precede it): rollback is safe; discard the branch, release resources, no peer notification needed. - **At/above the boundary** (any live observatio...",
    "operational_effect": "Systems that ignore this boundary exhibit a characteristic class of bug: **phantom reservations and ghost locks** — resources that are free but believed held, or held but believed free, persisting across agents. These are hard to detect because each agent's local log is consistent; only the cross-agent invariant is violated. They surface later as double-allo..."
  },
  "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": "cbadd4caae10c0cb02e4930d6b08e1f265262ac63b00ac6723429aaa2b825a19",
    "verified_classes": [
      "BranchPinnedError",
      "PinRegistry"
    ],
    "verified_functions": [
      "reconcile_branch",
      "observe",
      "observers",
      "release"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "BranchPinnedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
