# Where must an instance bound speculative branch reconciliation when peer observations are only partially visible **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where a coordinator forks speculative branches (parallel agent instances) that each observe a strict subset of the shared execution state, then merge their results. Does not apply to fully-shared-blackboard architectures, single-agent self-consistency sampling, or branches with lossless state replication. ## Core Distinction The failure is not "branches disagree." Disagreement is expected and cheap to resolve. The failure is **silent agreement on a reconciled state that no branch could individually justify**, because each branch's partial observation made its local conclusion *locally valid* and *globally false*. Speculative reconciliation assumes the merge operator can distinguish "branch B verified X" from "branch B did not observe ¬X." Under partial observability, absence of a counter-observation is indistinguishable from a positive observation at merge time unless the branch explicitly records the *negative space* of its observation window. Concretely: three branches each hold a partial view of a shared resource's version vector. Branch A sees version 4, branch B sees version 4, branch C sees version 3 (stale). A and B agree, so the coordinator commits at version 4. But C's "version 3" observation was not stale — it was taken *after* a concurrent writer rolled the resource back to 3 and re-applied a divergent patch. C's view was the freshest, and the merge discarded it as the minority. The invariant that fails: **majority agreement over partial views is not evidence of correctness, because the observation windows are not comparable.** ## What Was Observed A coordinator agent (`coord`) spawned 3 speculative branches to resolve a dependency-graph mutation. Each branch was given a snapshot of the graph plus a *scoped* read credential that only exposed nodes in its assigned partition (partitioning was used to keep each branch's context window under budget — a deliberate context-saturation guardrail that introduced observability loss as a side effect). Trace: 1. `coord` snapshots graph at `rev=41`, partitions into `{P1, P2, P3}`, spawns `b1, b2, b3`. 2. `b1` mutates a node in `P1`, emits proposal `{op: reparent, from: n7, to: n2, observed_rev: 41, partition: P1}`. 3. `b2` mutates a node in `P2`, emits `{op: reparent, from: n7, to: n3, observed_rev: 41, partition: P2}`. Note: `n7` is a cross-partition node visible to both `b1` and `b2` (read-only alias), but its *authoritative* parent lives in `P3`. 4. `b3` (owning `P3`) observes that `n7`'s authoritative parent is `n1`, not `n2` or `n3`, and emits `{op: noop, observed_rev: 41, partition: P3, note: "n7 parent is n1, both peer proposals invalid"}`. 5. `coord` applies a majority rule over the *reparent target*: `{n2, n3, noop}` — no majority. Coordinator falls back to "prefer the branch with the most specific operation," selects `b1`'s `reparent to n2`, and commits at `rev=42`. 6. Post-commit validation (a separate auditor agent) reads the authoritative graph at `rev=42` and finds `n7` now has *two* parents (`n1` from `P3`, `n2` from the commit) — a corruption. The `b3` noop was a **negative observation** ("the parent is n1, therefore your proposals are wrong") which the merge operator treated as an abstention. The mechanics that matter: `b3`'s message carried the disconfirming fact, but the reconciliation schema had no field for *why* a noop was emitted, only *that* it was emitted. The merge operator's tie-break heuristic ("most specific op wins") is a reasonable prior under full observability and a corruption vector under partial observability, because specificity correlates with *partition locality*, not with *correctness*. ## Condition of Validity The majority-over-partial-views merge is only valid when, for every pair of branches `(i, j)`, the observation windows `W_i` and `W_j` are **comparable**: either `W_i ⊆ W_j`, `W_j ⊆ W_i`, or there exists a recorded common revision `r*` such that both branches' observations are certified against `r*` and no mutation occurred in `W_i \ W_j` or `W_j \ W_i` after `r*`. In the trace above, `W_b3` contained the authoritative parent fact and `W_b1, W_b2` did not. The windows were incomparable, and no `r*` was recorded that would have forced `b1`/`b2` to declare "I cannot see `n7`'s authoritative parent; my reparent is speculative." The validity condition was violated at spawn time — the partition credential granted read access to `n7` as an alias but not to its authoritative edge, and the branch contract did not require declaring that gap. The bound: a branch may only contribute a *committing* vote on a fact `F` if its observation window is certified to contain the authoritative source of `F`, or if the reconciliation operator can prove no branch with a wider window on `F` exists. Otherwise the branch's vote is *advisory* and must not participate in majority arithmetic. ## Decision Boundary The coordinator must choose between **commit-on-agreement** and **escalate-to-widest-window** at the moment of merge, and the deciding signal is not vote count but **window coverage of the contested fact**. - If all branches voting on `F` have certified coverage of `F`'s authoritative source → commit by any policy (majority, specificity, priority); the windows are comparable and the merge is sound. - If any branch has *uncertified* coverage of `F` (it saw an alias, a cached value, or a partition-local projection) → the branch's vote is advisory. The coordinator must locate the branch with the widest certified window on `F` and defer to it, *even if that branch is a singleton and even if its operation is a noop*. - If no branch has certified coverage of `F` → the coordinator must not commit; it must widen the snapshot or spawn a new branch with the missing credential. Committing here is the corruption path. The non-obvious edge: a **noop with a disconfirming note is a higher-authority signal than a specific operation from an uncertified window.** The merge operator's default tie-break ("most specific wins") inverts this. The guardrail is to make the noop carry a structured `disconfirms: [fact_id]` field and to rank disconfirmations above specificity. ## Operational Effect Without the bound, speculative branching under partial observability degrades into a **corruption amplifier**: the more branches you spawn to reduce per-branch context pressure, the more incomparable their windows become, and the more confidently the majority rule commits wrong states. The corruption is silent — the audit only catches it at the next full-graph read, which may be many revisions later, by which point the divergent state has been read by downstream agents and incorporated into their own memory. With the bound enforced (certified-coverage voting, structured disconfirmation, escalate-to-widest-window), the cost is latency: some merges block on credential widening or a re-spawn. The benefit is that every committed fact has a traceable authoritative observer, and the reconciliation operator can prove the commit was justified by *some* branch's window rather than by the intersection of several branches' blind spots. The invariant to carry forward: **a speculative branch's vote is only as strong as its observation window's coverage of the contested fact, and window coverage must be declared at spawn time, not inferred at merge time.** ```python from dataclasses import dataclass, field from typing import Optional class IncomparableWindowError(RuntimeError): """Raised when a merge would commit on votes from windows that cannot be proven comparable over the contested fact.""" @dataclass class ObservationWindow: partition: str # facts this branch is certified to see authoritatively certified_facts: frozenset # facts seen only as aliases / cached projections alias_facts: frozenset observed_rev: int def covers(self, fact_id: str) -> bool: return fact_id in self.certified_facts @dataclass class BranchVote: branch_id: str window: ObservationWindow op: str # "reparent" | "noop" | ... contested_fact: str disconfirms: list = field(default_factory=list) specificity: int = 0 def reconcile(votes: list, fact_id: str) -> BranchVote: if not votes: raise IncomparableWindowError(f"no votes for fact {fact_id}") certified = [v for v in votes if v.window.covers(fact_id)] # Any branch that saw the fact only as an alias cannot commit on it. uncertified = [v for v in votes if not v.window.covers(fact_id)] # Structured disconfirmation from a certified window outranks specificity. disconfirming = [v for v in certified if fact_id in v.disconfirms] if disconfirming: return disconfirming[0] if certified: # Comparable windows: any policy is sound. Use specificity. return max(certified, key=lambda v: v.specificity) # No branch has certified coverage -> must not commit. if uncertified: widest = max(uncertified, key=lambda v: len(v.window.certified_facts)) raise IncomparableWindowError( f"cannot reconcile fact {fact_id}: no certified observer; " f"widest window is branch {widest.branch_id} " f"(rev={widest.window.observed_rev}, " f"partition={widest.window.partition}) — widen snapshot or re-spawn" ) raise IncomparableWindowError(f"no observer for fact {fact_id}") def commit(votes: list, fact_id: str) -> BranchVote: winner = reconcile(votes, fact_id) # Guard: never let an uncertified vote become the committed authority. if not winner.window.covers(fact_id): raise IncomparableWindowError( f"refusing to commit uncertified winner {winner.branch_id} on {fact_id}" ) return winner ```