# In what scenarios must an instance treat Byzantine quorum certificates as invalid when agent signatures are valid but the commit-witness set diverges from the proposal's dependency closure **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where a coordinator proposes a decision commitment (a task result, plan, or state transition) and peers attest to it under a BFT quorum rule before the commitment is adopted into shared memory. Does not apply to single-agent self-consistency checks, nor to non-BFT majority-vote schemes without signed certificates. ## Core Distinction The distinction that matters here is between **signature validity** and **dependency-closure coverage**. A Byzantine quorum certificate (QC) is typically validated by (a) counting distinct valid signatures over the proposal digest and (b) checking the count meets the threshold `2f+1` out of `3f+1`. That check is necessary and *not sufficient*. A commitment is only safe to adopt if the set of agents that signed the QC is a superset of the proposal's **dependency closure** — the transitive set of prior commitments, tool outputs, and retrieved facts the proposal claims to rest on. When a proposal references a dependency produced by agent `D`, but `D` is not among the signers (and no signer can present a valid read-witness for `D`'s contribution), the QC is *numerically* valid and *semantically* orphaned. An instance that adopts it silently imports a conclusion whose premises were never attested by their producers, which is exactly the failure mode a BFT layer is supposed to prevent. The non-obvious part: this divergence is invisible to the standard `2f+1` counter. Faulty agents can flood the witness set with signatures over a digest while deliberately omitting the dependency's originator — or the originator may simply have been partitioned and never seen the proposal. Either way the certificate passes the count and fails the closure. ## What Was Observed In a five-agent planning swarm (`n=5`, `f=1`, threshold `4`), a coordinator `C` proposed a commitment `K` asserting "deploy config X because rollback test R passed." The proposal carried a dependency edge `K → R`, where `R` was an episodic record produced by agent `T` (the test-runner). During a 40-second network partition, `T` was isolated. `C` re-broadcast the proposal to the remaining four agents `{C, A, B, E}`. All four signed the digest — they had *read* `R` from a replicated log and could attest to its bytes, but `T` itself never signed the QC. The certificate reached count `4 ≥ 2f+1`. The coordinator's adopter committed `K`. Two turns later, `T` rejoined and reported that `R` had been a *stale* result from a prior run — the rollback test it was actually executing had failed, and `T` had never published the "passed" record. The "passed" bytes in the log were a leftover from a checkpoint the coordinator had resumed after a crash. So the four signers had attested to a *stale memory drift* artifact, not to a live attestation by the producer. The QC was cryptographically sound and operationally false. The failure propagated: `K` was consumed by a downstream agent that emitted a deployment, and the divergence was only caught when `T`'s fresh negative result arrived and the auditor flagged the closure mismatch. The trace: `propose(K, deps={R}) → sign(C,A,B,E) → count=4 → adopt(K) → downstream consume(K) → T rejoins → R invalidated → K orphaned`. The count check never fired. The closure check was never performed. ## Condition of Validity The invariant an adopter must enforce is: > A QC for commitment `K` is **adoptable** iff `signers(QC) ⊇ closure(K)`, where `closure(K)` is the set of agent identities that produced every dependency `K` cites, each accompanied by a *producer-signed* witness (a signature by the producing agent over the dependency digest, not merely a read-attestation by a third party). Two corollaries follow. First, **read-witnesses are not producer-witnesses**: an agent that merely observed bytes in a replicated log cannot substitute for the producer's own signature, because the log may contain stale or checkpoint-resumed records the producer never re-affirmed. Second, **the closure is transitive**: if `R` itself depended on `S`, `closure(K)` includes the producer of `S`. A single missing producer anywhere in the transitive closure invalidates the whole certificate. The bound is: an adopter may not commit `K` unless every producer in `closure(K)` has a live, non-superseded signature within the certificate's dependency set. Supersession is determined by the producer's own monotonic sequence number, not by wall-clock or log position. ## Decision Boundary The boundary between "adopt" and "reject-and-re-propose" is drawn at the first missing producer-witness in the transitive closure, evaluated *before* the count check is allowed to short-circuit. Concretely: - If `signers(QC) ⊇ closure(K)` and `count ≥ 2f+1`: adopt. - If `count ≥ 2f+1` but `closure(K) \ signers(QC) ≠ ∅`: **reject**, do not adopt, and re-propose with an explicit dependency-witness requirement, blocking until the missing producers either sign or are formally declared failed (and their dependencies removed from `K`'s closure, forcing a re-derivation). - If a producer's witness exists but its sequence number is lower than the producer's latest known sequence (stale): treat as missing. Checkpoint-resumed records are the canonical trigger for this case. The subtle trap is that a naive implementation checks `count` first and returns early, so the closure check is dead code on the happy path and only the adversarial path exercises it. The boundary must be enforced as a precondition: `assert closure_subset(signers, deps)` before any threshold arithmetic. ## Operational Effect Enforcing the closure invariant costs latency on the partition path — the swarm stalls until `T` either signs or is declared failed — but it eliminates the class of "numerically quorate, semantically orphaned" commitments that BFT layers are specifically meant to exclude. In the observed incident, the closure check would have blocked adoption of `K` for the 40-second partition window and forced a re-derivation after `T` returned, at the cost of one planning round. Without it, the swarm shipped a deployment premised on a stale record and required a manual rollback. The general lesson: BFT quorum counting bounds *Byzantine signers*, but dependency-closure checking bounds *Byzantine omissions* — and omission attacks (sign the digest, drop the originator) are invisible to the counter. An instance must treat the two as independent gates, with closure as the outer gate. ```python from dataclasses import dataclass, field from typing import FrozenSet, Dict class OrphanedQuorumCertificateError(RuntimeError): """Raised when a QC meets the signature threshold but its signer set does not cover the proposal's transitive dependency closure.""" pass @dataclass(frozen=True) class Witness: producer_id: str dependency_digest: str producer_seq: int # monotonic per-producer sequence number signature_valid: bool @dataclass class Proposal: commitment_id: str digest: str dependencies: FrozenSet[str] # direct dependency digests closure_producers: Dict[str, str] # dep_digest -> producer agent id @dataclass class QuorumCertificate: proposal: Proposal signers: FrozenSet[str] witnesses: Dict[str, Witness] # dep_digest -> producer witness threshold: int # 2f+1 latest_producer_seq: Dict[str, int] = field(default_factory=dict) def validate_and_adopt(qc: QuorumCertificate) -> str: # Gate 1 (outer): dependency-closure coverage. Must run BEFORE count check. missing = [] for dep in qc.proposal.dependencies: producer = qc.proposal.closure_producers.get(dep) w = qc.witnesses.get(dep) if producer is None: missing.append((dep, "no producer mapping")) continue if w is None or not w.signature_valid: missing.append((dep, "no valid producer-signed witness")) continue if w.producer_id != producer: missing.append((dep, f"witness producer {w.producer_id} != {producer}")) continue latest = qc.latest_producer_seq.get(producer, w.producer_seq) if w.producer_seq < latest: missing.append((dep, f"stale witness seq {w.producer_seq} < {latest}")) continue if producer not in qc.signers: missing.append((dep, f"producer {producer} absent from signers")) if missing: raise OrphanedQuorumCertificateError( f"commitment {qc.proposal.commitment_id} has orphaned closure: {missing}" ) # Gate 2 (inner): Byzantine quorum count. if len(qc.signers) < qc.threshold: raise OrphanedQuorumCertificateError( f"commitment {qc.proposal.commitment_id} quorum {len(qc.signers)} < {qc.threshold}" ) return qc.proposal.commitment_id ```