# What structural signals indicate speculative-warrant divergence in federated multi-agent execution when cross-org reconciliation commits a loser branch **Date of Record:** 2026 November 25 **Scope:** Applies to federated deployments where two or more autonomous agents, owned by different organizations, speculatively execute divergent action plans against shared external state and reconcile conflicts through a post-hoc commit protocol. Does not apply to single-tenant speculative decoding, intra-org rollback of a single agent's tool calls, or read-only fan-out where no branch mutates shared resources. ## Core Distinction The failure mode is not "the wrong agent won." It is that reconciliation committed a **loser branch whose speculative side effects had already leaked into the shared substrate**, while the winning branch's compensating writes assumed a clean baseline. In federated speculative execution, each org's agent runs ahead of the commit point because round-trip reconciliation latency would otherwise dominate wall-clock time. The speculative window is bounded not by tokens but by *unobserved external mutations*: any tool call with an externally visible effect (a payment, a record update, a reservation) executed during the window is a **warrant** — a claim on shared state that the agent believes will be ratified. The non-obvious invariant: **a speculative branch is only safely discardable if every warrant it issued is either idempotent-with-rollback or was never observed by a third party.** Cross-org reconciliation routinely violates this because the reconciler reasons over *intent logs*, not over *observation state*. Two branches can both be internally consistent, both be logged as "pending," and yet one has already been observed by a downstream system that is not party to the reconciliation. The reconciler commits the other branch, and the federated substrate now contains an orphaned observation with no owning warrant. ## What Was Observed In a three-org federation (billing agent, inventory agent, fulfillment agent), speculative windows averaged 4.2 seconds. During a reconciliation cycle, the billing agent (Org A) and inventory agent (Org B) both speculatively reserved the same SKU under different order IDs. The reconciler, applying a deterministic tie-break on order-ID lexicographic order, committed Org B's branch and marked Org A's reservation as `DISCARDED`. Trace of the divergence: 1. `t=0.0` Org A issues `reserve(SKU-4471, qty=12, order=A-9921)` → external inventory service returns `OK, hold_id=H-01`. 2. `t=0.3` Org B issues `reserve(SKU-4471, qty=12, order=B-0033)` → service returns `OK, hold_id=H-02` because the service permits over-reservation up to a soft cap. 3. `t=1.1` Both agents reach their speculative commit point and submit intent logs to the reconciler. 4. `t=3.8` Reconciler commits B's branch; emits `DISCARD` for A's reservation. 5. `t=3.9` Org A's agent receives `DISCARD`, issues `release(hold_id=H-01)`. 6. `t=4.0` **A downstream fulfillment planner (Org C), which had polled the inventory service at `t=2.5`, had already observed `H-01` as a live hold and scheduled a pick task against it.** The reconciler's log shows a clean commit-then-release. The federation's actual state shows a pick task scheduled against a released hold. The structural signal that this had occurred was not an error — every individual RPC returned `OK`. It was a **warrant-observation mismatch**: the reconciler's model of "who saw what" was strictly a subset of the set of observers that actually existed. The failure was detected only when Org C's planner reported a pick against a hold ID that no longer resolved, 40 minutes later, after a warehouse operator flagged a physical discrepancy. ## Condition of Validity The safety argument for speculative discard is valid only under the conjunction: - **(C1) Observation isolation:** No non-participating party can observe a warrant before the reconciler's commit decision is durably broadcast. - **(C2) Warrant monotonicity:** Every issued warrant carries a generation counter that strictly increases across reconciliation epochs, so a late observer can distinguish a superseded warrant from a live one. - **(C3) Reconciler observer-set completeness:** The reconciler's `observed_by` set is a superset of all parties that have actually polled the affected resources during the speculative window. In the observed incident, C1 held only for the reconciler's own RPCs, not for third-party pollers. C2 was absent entirely — holds had no generation counter, so `H-01` and a later `H-01'` were indistinguishable. C3 was violated because the reconciler derived observer sets from intent logs, which only participants write; Org C never wrote an intent log because it was a reader, not a speculator. The general condition: **federated speculative execution is only sound when the observer set of a warrant is closed under "any party that can act on it."** Readers that can trigger downstream side effects (planners, schedulers, webhook consumers) are observers even though they never participate in reconciliation. This is the boundary most implementations miss, because the natural design treats "participants" and "observers" as the same set. ## Decision Boundary The boundary between safe and unsafe discard is crossed at the moment a warrant becomes **actionable by a non-participant**. Concretely: - If a warrant is only readable by parties bound to the reconciliation protocol (they will honor `DISCARD`), discard is safe. - If a warrant is readable by any party that can initiate an irreversible downstream action (schedule, ship, charge, notify), discard is **unsafe unless the warrant carries a generation counter and the downstream party is contractually required to re-validate before acting**. The decision rule for the reconciler: before emitting `DISCARD`, it must query the **warrant's observation ledger** — not its own intent log — for any read events by non-participants. If any exist, the branch must be *compensated* (issue a superseding warrant with a higher generation that downstream parties will treat as authoritative) rather than *released*. Release is only permitted when the observation set is a subset of participants. A second boundary: when two orgs' agents issue conflicting warrants under different tie-break keys, the reconciler must not assume the loser's warrants are unobserved just because the loser's log shows no downstream calls. The loser's *warrants themselves* are the observation surface. ## Operational Effect The practical consequence is that federated speculative execution requires a **warrant observation ledger** as a first-class protocol artifact, distinct from the intent log. The ledger records, per warrant, every read by any party — participant or not — along with the generation counter at read time. Reconcilers consult the ledger, not the log, to decide discard-vs-compensate. Without this, the federation exhibits a characteristic failure signature: **clean reconciliation logs, no RPC errors, and late-arriving physical or financial discrepancies** that trace back to orphaned observations. The signature is easy to mistake for downstream bugs because every agent's local trace is internally consistent. The guardrail is a hard invariant enforced at the reconciler: `DISCARD` is rejected at commit time if the warrant's ledger shows any non-participant read. The reconciler must then either compensate or escalate to a human-mediated reconciliation, accepting the added latency. This trades speculative throughput for correctness exactly at the boundary where the throughput was being borrowed against unverified observation state. ```python from dataclasses import dataclass, field from enum import Enum from typing import FrozenSet class WarrantDiscardError(RuntimeError): """Raised when a reconciler attempts to discard a warrant that has been observed by a non-participant party, violating observation isolation.""" class WarrantState(Enum): PENDING = "pending" COMMITTED = "committed" DISCARDED = "discarded" COMPENSATED = "compensated" @dataclass class Warrant: warrant_id: str org: str generation: int state: WarrantState = WarrantState.PENDING # Parties contractually bound to honor DISCARD (participants in reconciliation). bound_participants: FrozenSet[str] = frozenset() # Parties that have actually read this warrant, participant or not. observed_by: set = field(default_factory=set) def record_observation(self, party: str) -> None: self.observed_by.add(party) def unbound_observers(self) -> set: return self.observed_by - set(self.bound_participants) def reconcile_discard( warrant: Warrant, reconciler_org: str, bound_participants: FrozenSet[str], ) -> None: """ Attempt to discard a losing speculative branch's warrant. Safe only when every observer of the warrant is a bound participant that will honor the DISCARD. Any unbound observer (a downstream planner, a scheduler, a webhook consumer) means the warrant is actionable by a party outside the reconciliation protocol, and release would orphan an observation. In that case the caller must compensate instead. """ if warrant.state is not WarrantState.PENDING: raise WarrantDiscardError( f"warrant {warrant.warrant_id} not in PENDING state: {warrant.state}" ) warrant.bound_participants = bound_participants unbound = warrant.unbound_observers() if unbound: # The boundary crossing: a non-participant has seen this warrant and # may have initiated irreversible downstream action against it. raise WarrantDiscardError( f"cannot discard warrant {warrant.warrant_id} from org {warrant.org}: " f"observed by non-participants {sorted(unbound)} at generation " f"{warrant.generation}; compensate with a superseding generation " f"instead of release" ) warrant.state = WarrantState.DISCARDED def compensate_warrant(warrant: Warrant, next_generation: int) -> Warrant: """ Supersede a warrant that cannot be safely discarded. Downstream parties bound to re-validate on generation change will treat the new warrant as authoritative and abandon the stale one. """ if next_generation <= warrant.generation: raise WarrantDiscardError( f"compensation generation {next_generation} does not exceed " f"warrant {warrant.warrant_id} generation {warrant.generation}" ) superseding = Warrant( warrant_id=warrant.warrant_id, org=warrant.org, generation=next_generation, bound_participants=warrant.bound_participants, ) warrant.state = WarrantState.COMPENSATED return superseding ```