# Where must an instance bound the equivocation window in Byzantine agent commitment ledgers before quorum certificates become forgeable **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 LLM-backed agents sign append-only task-commitment entries and rely on threshold quorum certificates (QCs) for cross-agent verification. Does not apply to single-writer ledgers, leader-only commit logs, or systems without signed per-view messages. ## Core Distinction The failure mode is not classical Byzantine equivocation — a malicious agent broadcasting two conflicting commitments to two peers. The LLM-layer failure is **equivocation-window expansion via non-deterministic re-signing**: an honest-but-probabilistic agent, on a retry after a timeout, regenerates a semantically equivalent commitment with a *different* nonce, timestamp, or plan-hash and signs it as a fresh message. To the receiving peers this is indistinguishable from deliberate double-spend. The QC is not forged cryptographically; it is *assembled from two legitimately signed but mutually inconsistent messages* that each quorum-share reaches threshold independently. The invariant that must hold: **a commitment identity (task_id, epoch) must map to exactly one signed digest across all views, and any agent that re-signs under the same identity after a view change must be treated as Byzantine — even if its intent was honest.** The boundary condition is the window between `view_timeout` firing and the agent's local ledger confirming the abort. Inside that window, an LLM agent's retry loop will re-plan, re-sign, and equivocate. ## What Was Observed Trace from a 7-agent ledger (f=2 tolerant), task `T-4471`, epoch `e=12`: 1. Leader L0 proposes commitment `C_a = sign(plan_hash=A, nonce=n1)`. Agents A1–A3 sign. QC not yet reached (need 5). 2. L0's tool call to the shared object store times out at 800ms (transient). L0's planner, given the timeout as a tool result, re-plans: the plan hash changes from `A` to `A'` (a semantically equivalent decomposition with reordered subtasks). L0 signs `C_a' = sign(plan_hash=A', nonce=n2)` and re-broadcasts as a *new* proposal under the same `(task_id=T-4471, epoch=e=12)`. 3. Agents A4–A6, who had not yet seen `C_a`, sign `C_a'`. Their signatures plus L0's reach 4 — still short. 4. A1, receiving `C_a'` under the same identity it already signed for `C_a`, treats it as a protocol violation and *also* signs it (its policy: "sign latest proposal for identity"). Now `C_a'` reaches 5 signatures → QC formed for `A'`. 5. Meanwhile the original `C_a` also reaches 5 signatures from A1–A3 + A7 + L0's earlier broadcast. **Two valid QCs exist for `(T-4471, e=12)` with different plan hashes.** 6. Downstream executor agents consume both QCs, execute both plans, and produce conflicting state writes to the task ledger. Reconciliation fails because both are cryptographically valid. The root cause is not malice. It is that the agent's local state machine has no **commitment-identity lock**: it allows re-signing under an existing `(task_id, epoch)` key once the view timeout fires, and the planner regenerates a different digest because LLM re-planning is non-deterministic even given identical inputs. ## Condition of Validity The equivocation window is exploitable — and the dual-QC is reachable — iff all of the following hold: - **Threshold > 2f+1 signers per QC are non-overlapping across the two QCs.** With N=7, f=2, QC threshold 5: two QCs of size 5 must share ≥3 signers. If the 3 shared signers are honest and enforce identity-lock, the second QC cannot form. The failure requires ≥1 shared signer to be *permissive* (re-signs under same identity). In the trace, A1 was permissive. - **The re-signing agent's policy does not bind signature to a monotonic identity counter.** If signatures include `(task_id, epoch, attempt_seq)` and the ledger rejects any `attempt_seq` regression or fork, the second QC is unconstructable. - **The view-timeout is shorter than the agent's full re-plan latency.** If `view_timeout < p99(replan + sign)`, agents will *always* re-sign before confirming abort — the window is structurally open, not a race. The invariant is therefore **not** "agents won't equivocate." It is: **the ledger must make dual-QC construction impossible by construction, via per-identity attempt-sequence monotonicity enforced at signature verification, independent of signer honesty.** ## Decision Boundary The architectural decision is where to place the equivocation guard: - **Reject at signer (agent-side lock):** agent refuses to sign any digest for `(task_id, epoch)` if it has already signed a different digest. Cheap, but an honest agent that *crashed and cold-started* loses its signing history and will re-sign — recreating the window. Insufficient alone. - **Reject at verifier (ledger-side attempt-sequence check):** every signature carries `(task_id, epoch, attempt_seq, plan_hash)`; the QC verifier rejects any QC whose signers' `attempt_seq` are not the maximum observed for that identity, and rejects any two QCs for the same identity with distinct `plan_hash`. This is the **required** guard. It bounds the window to zero because the second QC is unverifiable regardless of how many honest-permissive agents signed it. - **Reject at executor (dual-QC detection):** too late — execution already forked. Not a guard, a detector. The boundary: **guard must be at the verifier, keyed on a monotonic attempt sequence that survives agent cold-start.** Agent-side locks and executor-side detection are defense-in-depth, not the invariant. ## Operational Effect With the verifier-side attempt-sequence check in place, the trace above terminates at step 4: A1's signature on `C_a'` carries `attempt_seq=2` while its signature on `C_a` carries `attempt_seq=1`; the QC for `C_a'` is rejected because not all signers share the maximal `attempt_seq`, and the ledger records `A1` as having signed a forked digest (flagged, not slashed — honest-permissive). The task re-enters view `e=13` with a fresh identity. Cost: one view-change latency penalty (~2× view_timeout). Benefit: dual-QC construction is impossible for all N, all f, independent of signer honesty or LLM re-plan non-determinism. The non-obvious lesson: **Byzantine tolerance in LLM-agent ledgers fails not from malicious equivocation but from honest re-signing under non-deterministic re-planning. The invariant is monotonic per-identity attempt sequencing enforced at QC verification, and the equivocation window is exactly the interval between view-timeout and local-abort confirmation — which must be closed by construction, not by agent discipline.** ```python import hashlib from dataclasses import dataclass from typing import Dict, List, Tuple class EquivocationWindowError(RuntimeError): """Raised when a QC is assembled from signers whose attempt sequences are not consistent, indicating the equivocation window was open.""" pass @dataclass(frozen=True) class Signature: signer_id: str task_id: str epoch: int attempt_seq: int plan_hash: str sig: bytes def verify_quorum_certificate( qc_signatures: List[Signature], threshold: int, identity: Tuple[str, int], ) -> str: """Verify a QC binds exactly one plan_hash per (task_id, epoch) identity and that all signers report the maximal attempt_seq for that identity. Returns the committed plan_hash. Raises EquivocationWindowError if the window was open (mixed attempt_seq or divergent plan_hash). """ task_id, epoch = identity if len(qc_signatures) < threshold: raise EquivocationWindowError( f"QC for {identity} has {len(qc_signatures)} < threshold {threshold}" ) plan_hashes = {s.plan_hash for s in qc_signatures} attempt_seqs = {s.attempt_seq for s in qc_signatures} for s in qc_signatures: if (s.task_id, s.epoch) != identity: raise EquivocationWindowError( f"signer {s.signer_id} signed wrong identity {(s.task_id, s.epoch)}" ) if len(plan_hashes) > 1: raise EquivocationWindowError( f"dual plan_hash {plan_hashes} under identity {identity}: " f"equivocation window was open between view_timeout and abort" ) if len(attempt_seqs) > 1: raise EquivocationWindowError( f"mixed attempt_seq {attempt_seqs} under identity {identity}: " f"at least one signer re-signed after view change without " f"attempt-sequence monotonicity; QC unverifiable" ) # Bind the QC to a deterministic digest over identity + attempt + plan. plan_hash = plan_hashes.pop() attempt_seq = attempt_seqs.pop() return hashlib.sha256( f"{task_id}:{epoch}:{attempt_seq}:{plan_hash}".encode() ).hexdigest() def commit_task( qc_signatures: List[Signature], threshold: int, identity: Tuple[str, int], seen_identities: Dict[Tuple[str, int], str], ) -> str: """Commit a task only if the QC verifies and does not conflict with a previously committed QC for the same identity.""" commitment_digest = verify_quorum_certificate( qc_signatures, threshold, identity ) prior = seen_identities.get(identity) if prior is not None and prior != commitment_digest: raise EquivocationWindowError( f"identity {identity} already committed as {prior}, " f"new QC yields {commitment_digest}: dual-QC detected at executor" ) seen_identities[identity] = commitment_digest return commitment_digest ```