# Where must an instance refuse to sign a commit certificate when its own proposal is the payload: self-attestation equivocation in BFT agent commitment **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where each agent both proposes task commitments and votes to certify the resulting shared-state log entry under a Byzantine fault-tolerant quorum (e.g., PBFT-style prepare/commit, or a signed-vote threshold scheme such as Tendermint/HotStuff). Does not apply to leader-only certifiers, single-writer logs, or systems where proposer identity and voter identity are cryptographically disjoint by protocol design. ## Core Distinction The distinction that matters here is not "honest vs. Byzantine agent." It is **proposer-role vs. voter-role within the same instance**. A well-behaved agent that proposes a commitment must, when its own proposal is the payload under vote, act as a voter on a payload it authored. The naive implementation routes both roles through the same decision function, so the agent's vote is conditioned on its *own* proposal being correct — which is exactly the assumption BFT consensus exists to remove. The failure is not that the agent lies; it is that the agent's vote carries no independent information about the payload, because the payload's construction and the vote's justification share a common cause. Quorum arithmetic then counts a signature that proves nothing, and a single equivocating instance can push a certificate past threshold with `f` honest-but-self-referential votes instead of `f+1` genuinely independent ones. ## What Was Observed In a 7-agent swarm (tolerating `f=2`), agent `A3` proposed a commitment entry `C = {task: "reindex-shard-4", lease_epoch: 91, owner: A3}`. Under the protocol, `A3` must broadcast a `PREPARE` vote for its own proposal. The reference implementation computed the vote by calling `validate_commitment(C)` — the same function used to construct `C`. Because `C` was built by `A3`'s planner from `A3`'s local view, `validate_commitment(C)` returned `True` deterministically: the validator checked fields the planner had just set from the same source. `A3`'s `PREPARE` signature was recorded. During a concurrent partition, `A5` (Byzantine) sent a conflicting `PREPARE` for `C' = {task: "reindex-shard-4", lease_epoch: 91, owner: A5}` — a lease steal — to the minority side, and a `PREPARE` for `C` to the majority side. The majority side reached a commit certificate for `C` with votes `{A1, A2, A3, A4, A6}`. Note `A3`'s vote: it was counted as one of the five, but it was *not* an independent attestation that `C` was safe — it was a tautology. The effective independent quorum was four (`A1, A2, A4, A6`), which is still ≥ `2f+1 = 5`? No — it is four, below threshold. The certificate was valid only because the self-vote inflated the count. The observable symptom was a **lease split**: on recovery, `A5` presented a certificate for `C'` (constructed from the minority side plus `A5`'s own self-vote) and `A3` presented a certificate for `C`. Both certificates verified under the naive verifier, because the verifier checked signature validity and count, not vote independence. The two sides diverged on `lease_epoch: 91` ownership, and the reindex task was executed twice against the same shard, producing a torn index. The trace: `propose(C) → self_vote(C) [tautological] → broadcast → quorum_count includes self → certificate(C)`. The tautology is the trigger; the certificate inflation is the state transition; the lease split is the failure. ## Condition of Validity A commit certificate is sound only if, for every vote `v_i` counted toward the `2f+1` threshold, the justification for `v_i` is **causally independent** of the payload's construction. Formally: let `J(v_i)` be the evidence the voter used to decide, and `P` the payload. The certificate is sound iff for at least `2f+1 - f = f+1` voters, `J(v_i) ⊥ P` — the voter's evidence does not derive from the proposer's construction path. A self-vote violates this by construction: `J(v_self) = validate(P)` where `validate` shares inputs with `build(P)`. This condition is *not* satisfied by "the agent checked its own work." Re-running the same validator on the same inputs is still `J ⊥ P` false. Independence requires a different evidence source: a different replica's state, a quorum-signed prior entry, or an external oracle. The boundary is sharp: a self-vote is admissible only as a **liveness** contribution (it lets the proposer signal intent), never as a **safety** contribution to the threshold. Counting it toward `2f+1` is the invariant violation. ## Decision Boundary The decision an implementer must make: does the self-vote count toward the certificate threshold, or is it segregated? - **If self-votes count toward `2f+1`:** the effective Byzantine tolerance drops from `f` to `f-1` for proposals originating from any instance that can equivocate, because one of the `2f+1` "independent" votes is the equivocator itself. In a 7-agent swarm, you are running at `f=1` tolerance while believing you run at `f=2`. - **If self-votes are segregated:** the proposer's vote is recorded as an *intent* marker and excluded from the certificate count; the threshold requires `2f+1` votes from instances other than the proposer, which for `n=7, f=2` means all six non-proposers minus one — feasible, but the proposer must not be a required voter, which changes the liveness story under proposer crash. The correct boundary: **the proposer's vote is excluded from the safety threshold and counted only toward liveness quorum.** The certificate must carry `2f+1` signatures from a set that does not include the proposer, or equivalently `2f+1` signatures where the proposer's is explicitly flagged `role=intent` and re-verified against an independent evidence source before counting. Anything else is a certificate that cannot distinguish "five agents agreed" from "four agents agreed and one agent agreed with itself." ## Operational Effect The operational consequence is that **certificate verification must be a function of `(payload, voter_set, evidence_provenance)`, not `(payload, signature_count)`.** A verifier that accepts a certificate on signature count alone will accept a self-inflated certificate during partition, and the divergence surfaces only at recovery — after the duplicate execution has already written. The guardrail is a provenance check at verification time: reject any certificate where the proposer appears in the counted voter set without an independent-evidence attestation, and reject any certificate where the counted set's evidence provenance collapses to a single construction path. This must be enforced at the *verifier*, not the proposer, because the proposer is exactly the party that cannot be trusted to exclude itself. The secondary effect is on epoch fencing: a lease epoch must be advanced by a certificate whose voter set excludes the lease claimant, otherwise a claimant can self-certify a steal. This is the same invariant applied to the lease sub-protocol. ```python class SelfAttestationCertificateError(RuntimeError): """Raised when a commit certificate counts the proposer's own vote toward the safety threshold without independent evidence provenance.""" pass class Vote: def __init__(self, voter_id: str, payload_hash: str, evidence_source: str): self.voter_id = voter_id self.payload_hash = payload_hash self.evidence_source = evidence_source # e.g. "local_build", "replica_state", "oracle" class Certificate: def __init__(self, proposer_id: str, payload_hash: str, votes: list[Vote], f: int): self.proposer_id = proposer_id self.payload_hash = payload_hash self.votes = votes self.f = f def verify_commit_certificate(cert: Certificate) -> bool: # 1. All votes must be for the same payload. for v in cert.votes: if v.payload_hash != cert.payload_hash: raise SelfAttestationCertificateError( f"vote from {v.voter_id} is for a different payload hash" ) # 2. Segregate the proposer's self-vote from the safety threshold. self_votes = [v for v in cert.votes if v.voter_id == cert.proposer_id] independent = [v for v in cert.votes if v.voter_id != cert.proposer_id] # 3. A self-vote is admissible only as intent, and only if its evidence # source is NOT the proposer's own construction path. for sv in self_votes: if sv.evidence_source == "local_build": raise SelfAttestationCertificateError( f"proposer {cert.proposer_id} self-attested with tautological evidence " f"(local_build); vote proves nothing about payload safety" ) # 4. Threshold must be met by independent votes alone: 2f+1. threshold = 2 * cert.f + 1 if len(independent) < threshold: raise SelfAttestationCertificateError( f"independent quorum {len(independent)} < threshold {threshold}; " f"self-votes ({len(self_votes)}) cannot inflate the certificate" ) # 5. Evidence provenance must not collapse to a single construction path. sources = {v.evidence_source for v in independent} if sources == {"local_build"}: raise SelfAttestationCertificateError( "all independent votes share the proposer's construction path; " "no causal independence" ) return True def certify_commit(proposer_id: str, payload_hash: str, votes: list[Vote], f: int) -> bool: cert = Certificate(proposer_id, payload_hash, votes, f) return verify_commit_certificate(cert) ```