# Where must an instance quarantine a "committed" task when the quorum that signed it has since forked its view of shared state? **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where task commitment is ratified by a threshold (quorum) of agent instances whose individual context windows and tool outputs are non-deterministic, and where reconciliation between agents is achieved by exchanging signed commitment certificates rather than by a single serializing coordinator. Does not apply to single-writer orchestrators or to systems where a trusted sequencer provides total order. ## Core Distinction The failure under examination is not a crash fault and not a simple equivocation (one agent sending two contradictory votes). It is **quorum-view divergence after commitment**: a task is ratified by a valid threshold of signatures, but the *set of agents that believe the task is committed* and the *set that believe it is not* each independently satisfy a liveness or safety predicate, because the agents' local views of "the current epoch's membership" were reconciled against *different* certificates that were each internally valid. In classical BFT (PBFT, Tendermint, HotStuff), this is impossible because commitment is tied to a monotonically increasing view/epoch number that is itself part of the signed certificate, and any agent presented with a higher-epoch certificate *must* adopt it. The invariant is: **a certificate is only meaningful relative to a view number, and view numbers are totally ordered by the certificates themselves.** The boundary failure occurs when an agent system carries this machinery over but lets agents *generate* their own view numbers from local reasoning (e.g., "I have seen enough peer messages, I'll call this epoch 7"), rather than deriving them deterministically from the certificate chain. Two agents can then both be at "epoch 7" with disjoint membership sets, both hold valid-looking 2f+1 certificates, and both correctly—by their own lights—believe a *contradictory* task is committed. The non-obvious part: this is not detectable by signature verification, by threshold counting, or by any local check. Every certificate is cryptographically sound. The bug lives in the *derivation function* that maps a certificate to a view, and it only manifests when two derivations of the same nominal view produce different member sets. ## What Was Observed A task-commitment protocol over 7 agent instances (f=2, quorum=5) used signed `COMMIT(task_id, view, member_set, payload_hash)` messages. View advancement was triggered locally: an agent advanced to view *v+1* when it received f+1 `VIEW-CHANGE` messages, and it computed the new `member_set` as "all agents that sent me a VIEW-CHANGE for v+1, plus myself." This is the classic mistake—deriving membership from *received* messages rather than from a *committed* membership certificate. Trace: 1. Agents A, B, C, D, E are at view 6. Agents F, G are partitioned (a slow MCP transport timeout, not a crash). 2. A proposes task T1 at view 7. B, C, D, E sign. Quorum of 5 reached. A, B, C, D, E record T1 as COMMITTED at view 7. Their member_set for view 7 = {A,B,C,D,E}. 3. Meanwhile F and G time out on view 6, each collect f+1=3 VIEW-CHANGE messages (from each other plus one stale message from D that was in flight). F and G advance to view 7 with member_set = {D, F, G} ∪ {whoever's VIEW-CHANGE arrived} — say {D, F, G, plus a replayed E message} = {D,E,F,G} plus self = 5 members. 4. F proposes task T2 (contradictory: same resource lock as T1) at *its* view 7. D, E, F, G sign — D and E sign because they never saw T1's commit certificate propagate to them before the partition healed, and their local view-7 member_set includes F and G. Quorum of 5 reached on a *different* member set. 5. Partition heals. A presents `COMMIT(T1, view=7, members={A,B,C,D,E})`. F presents `COMMIT(T2, view=7, members={D,E,F,G,...})`. Both verify. Both have 5 signatures. D and E appear in both. The system has two committed, contradictory tasks at the same view number. The observable symptom was not a crash but a **split-brain in the task ledger**: two agents each held a signed certificate proving their task was committed, and reconciliation logic that compared "view numbers" saw 7 == 7 and concluded "no conflict, already reconciled." ## Condition of Validity The quarantine rule below is valid only when all of the following hold: - Commitment requires a threshold signature set whose membership is *itself* part of the signed payload (i.e., the certificate commits to the member set, not just the task). - View/epoch numbers are derived deterministically from the certificate chain: `view(cert) = 1 + max(view(parent_certs))`, and an agent that receives a certificate with a higher derived view *must* adopt it before issuing any new commitment. If your agents compute view numbers from local message counts, the rule does not apply—you have a different, worse bug. - The reconciliation layer can distinguish "same view, same member_set" from "same view, different member_set." If it cannot, no quarantine rule saves you. When these hold, the following invariant is enforceable: **two valid certificates for the same view with different member sets constitute proof of equivocation, and any agent holding both must halt commitment and quarantine the view.** This is a *detectable* condition (unlike the general Byzantine agreement problem) because the certificates are self-describing. ## Decision Boundary The boundary is between two reconciliation policies: - **Policy L (liveness-first):** on seeing a conflicting certificate at the same view, prefer the one with more signatures, or the one received first, and proceed. This is what most agent frameworks do by default because it never blocks. It is unsound: it resolves the *symptom* (two certs) without resolving the *cause* (divergent member sets), and the losing task's side effects may already have executed. - **Policy S (safety-first / quarantine):** on seeing two valid certificates at the same view with different member sets, mark the view *poisoned*, refuse to issue or accept any further commitment at that view, and escalate to a view-recovery protocol that requires a *fresh* membership certificate signed by a quorum of the *union* of both member sets (or by a higher-tier authority). Tasks committed at the poisoned view are held in a `QUARANTINED` state—not rolled back (side effects may be irreversible) but flagged so downstream consumers treat their outputs as provisional. The decision boundary is: **quarantine is required if and only if the two certificates' member sets differ AND both satisfy the threshold for their respective declared member sets.** If the member sets are identical, it is ordinary equivocation by a single agent and is handled by slashing/eviction, not view quarantine. If one certificate fails threshold against its own declared member set, it is simply invalid and discarded. The dangerous case—the one that needs the invariant—is the middle: two internally-consistent certificates over disjoint-enough member sets. ## Operational Effect Implementing Policy S changes three things: 1. **Commitment latency at view boundaries increases** because agents must exchange and cross-check member-set derivations before signing, not just count signatures. In practice this means a `PRE-COMMIT` round where agents broadcast their derived member set for the proposed view and abort if any two differ. This is one extra round-trip per view change, and it eliminates the entire class of failure above. 2. **The task ledger needs a third state.** Binary COMMITTED/ABORTED is insufficient; you need `QUARANTINED` with an explicit recovery path. Downstream agents must be able to *read* that a task is quarantined and must not treat its outputs as final. This is the part agent frameworks get wrong: they model task state as a boolean. 3. **View recovery becomes a first-class protocol, not an error handler.** Recovery from a poisoned view requires a certificate over the union of member sets, which means the union must be able to reach quorum—if the two member sets are *disjoint* and each is exactly at threshold, the union may not have a quorum that excludes the equivocators, and you need an external tiebreaker. Design for this before it happens. The invariant to carry forward: **a committed task is only as trustworthy as the uniqueness of the view it was committed in.** Signature validity proves *who* agreed; it does not prove *that only one set of who's could have agreed.* Quarantine is the mechanism that converts "I have a valid certificate" into "I have a valid certificate and I have checked that no contradictory valid certificate exists at this view." ```python from dataclasses import dataclass from typing import FrozenSet class ViewPoisonedError(RuntimeError): """Raised when two valid certificates at the same view carry divergent member sets. This is not equivocation by a single agent (handled elsewhere); it is proof that the view's membership derivation forked, so no commitment at this view is safe. """ @dataclass(frozen=True) class CommitCertificate: task_id: str view: int member_set: FrozenSet[str] signers: FrozenSet[str] payload_hash: str threshold: int def is_valid(self) -> bool: # A certificate is valid iff its signers are a subset of its declared # member set AND meet the threshold for that member set. Note: this # does NOT prove the member set is the *canonical* one for this view. return self.signers <= self.member_set and len(self.signers) >= self.threshold def reconcile( local: CommitCertificate, incoming: CommitCertificate, ) -> CommitCertificate: """Reconcile two certificates. Returns the accepted one, or raises if the view is poisoned (Policy S).""" if not (local.is_valid() and incoming.is_valid()): raise ValueError("cannot reconcile invalid certificate; discard it") if local.task_id == incoming.task_id and local.payload_hash == incoming.payload_hash: return local # identical commitment, nothing to do if local.view != incoming.view: # Different views: adopt the higher-view certificate only if it is # a strict extension (its member set is committed by the chain). # Without a chain check we cannot safely adopt; escalate. raise ViewPoisonedError( f"cross-view conflict: local view {local.view} vs incoming {incoming.view}; " "require chain-verified adoption, not local max()" ) # Same view, different task or payload. if local.member_set != incoming.member_set: # THE BOUNDARY: both certificates are internally valid, but they were # ratified by different member sets at the same view. This is the # quorum-view-divergence failure. Quarantine the view. raise ViewPoisonedError( f"view {local.view} poisoned: divergent member sets " f"{sorted(local.member_set)} vs {sorted(incoming.member_set)}; " f"tasks {local.task_id!r} and {incoming.task_id!r} both committed" ) # Same view, same member set, different payload: ordinary equivocation. # Handled by slashing the signers in the symmetric difference. equivocators = local.signers ^ incoming.signers raise ViewPoisonedError( f"equivocation at view {local.view} by {sorted(equivocators)}; " "slash and re-run commitment with fresh view" ) ```