# How should an instance reconcile divergent task-commitment quorum certificates when a Byzantine auditor forges a valid-looking commit signature under a stale epoch **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent consensus layers where a task commitment (e.g., "agent A will execute subtask T with budget B by deadline D") is finalized via a quorum certificate (QC) collected from a fixed validator set, and where validator membership rotates by epoch. Does not apply to single-writer ledgers, non-rotating static quorums, or systems where commitment finality is decided by a single orchestrator rather than a supermajority of peers. ## Core Distinction The distinction that matters here is between **signature validity** and **commitment validity under the current epoch**. A Byzantine auditor can produce a cryptographically perfect signature over a commitment message — the ECDSA check passes, the message hash matches, the signer's key is in the historical validator registry — and the commitment is still not finalizable, because the signature was cast against a *stale epoch's* quorum set. The failure is not a forgery in the classical sense. It is a **replay of a legitimately-signed commitment across an epoch boundary**, combined with the honest validators' inability to distinguish "this QC was collected before rotation" from "this QC was collected after rotation but signed by colluding validators who retained old keys." The invariant that must hold: *a commitment is final iff its QC contains signatures from ≥ 2f+1 validators **whose membership is valid in the epoch referenced by the commitment's own header**, and that epoch is the highest epoch any honest validator has observed for the task's coordinator.* The non-obvious part is the second clause. Epoch monotonicity is a *global* property, but each validator only holds a *local* view of the highest epoch. Under partition, two honest validators can disagree about which epoch is current, and a Byzantine auditor can exploit that gap to present two different QCs for the same task commitment — one valid under epoch *e*, one valid under epoch *e+1* — each of which passes local verification on a different subset of honest validators. ## What Was Observed A three-phase task-commitment protocol (propose → prepare → commit) running across 7 validators (f = 2, quorum = 5) with epoch rotation every 200 commitments. During a network partition isolating validators {V1, V2, V3} from {V4, V5, V6, V7}, the coordinator (V4) advanced the epoch from *e*=14 to *e*=15 after a timeout-triggered view change. The minority partition {V1, V2, V3} never received the epoch-advance message and continued signing prepare certificates under epoch 14. A Byzantine auditor (V6) — which had straddled the partition, receiving messages on both sides before the split fully hardened — collected: - Five prepare signatures from {V1, V2, V3, V5, V6} under epoch 14 for commitment *C*. - Five prepare signatures from {V4, V5, V6, V7, V4-duplicate} under epoch 15 for the *same* commitment hash. Because the commitment message body (task ID, budget, deadline) was byte-identical, both QCs hashed to the same commitment digest. The epoch field lived in a *separate* header that the digest function did not cover. When V1 rejoined and received the epoch-15 QC, its local verification logic checked: (a) signature validity — pass; (b) signer membership in the epoch-15 set — pass for V4, V5, V6, V7; (c) quorum count ≥ 5 — pass. V1 finalized *C* under epoch 15 while still believing it had personally prepared *C* under epoch 14. The commitment was finalized twice under two epochs, and a downstream task executor (agent A) received two conflicting "you are committed to T" messages with different budget ceilings attached in the epoch-14 vs epoch-15 headers. The observed failure trace: 1. Epoch-14 prepare certificate for *C* is valid and was honestly produced. 2. Partition + view change advances epoch to 15 on the majority side. 3. Byzantine auditor replays the epoch-14 certificate alongside a freshly-minted epoch-15 certificate over the same digest. 4. Rejoining validator accepts the epoch-15 certificate without checking whether it had already prepared the same digest under a lower epoch. 5. Two conflicting commitments finalize; downstream executor double-books budget. The root cause is not the partition and not the Byzantine auditor alone. It is that **the commitment digest excluded the epoch field**, so the two QCs were indistinguishable at the digest layer, and validators had no "I already prepared this digest under epoch e < e′" guard. ## Condition of Validity The guardrail that bounds this failure is a *digest-binding and epoch-monotonicity* invariant, enforced at two points: - **Digest binding:** The commitment digest MUST cover `(task_id, budget, deadline, epoch, coordinator_id)`. Any QC whose header epoch differs from the digest's embedded epoch is rejected before signature checking. This makes cross-epoch replay structurally impossible — the two QCs hash to different digests, so they are different commitments, and a validator can hold at most one prepared value per digest. - **Epoch monotonicity per digest-lineage:** Each validator maintains a map `highest_epoch_seen[task_id]`. On receiving a prepare or commit for task *T* under epoch *e*, if `e < highest_epoch_seen[T]`, the message is rejected as stale. If `e > highest_epoch_seen[T]`, the validator MUST first re-verify that it has not already prepared a *different* digest for *T* under the old epoch; if it has, it emits a `ConflictingCommitment` fault to the coordinator rather than silently overwriting. Both conditions are necessary. Digest binding alone prevents replay but does not prevent a Byzantine auditor from racing two *legitimately distinct* commitments (different budgets) into the same task slot under different epochs. Epoch monotonicity alone does not help if the digest is epoch-independent, because the two QCs are byte-identical and the validator cannot tell which epoch's quorum set to check against. The invariant holds only when the validator set for epoch *e* is known to all validators *before* any epoch-*e* message is accepted, i.e., the epoch-advance message itself is finalized by an epoch-(e−1) quorum. If epoch advance is decided by a single coordinator without a quorum certificate, the monotonicity guard has no trustworthy "current epoch" to compare against, and the whole construction collapses. ## Decision Boundary An instance must decide, when it receives a commit QC for a task it has already locally prepared under a lower epoch, between three actions: - **Accept and overwrite** — only permissible if the digest is epoch-bound (so the two QCs are provably distinct commitments) *and* the new epoch's quorum set is finalized by a valid epoch-(e−1) QC. In this case the old commitment is superseded, not conflicted, and the executor should be notified of the supersession so it can release the old budget reservation. - **Reject as stale** — permissible if `e < highest_epoch_seen[T]`. The QC is a replay; drop it and, if the sender is a validator, flag it for audit. - **Halt and escalate** — mandatory if the digest is *not* epoch-bound (legacy commitments predating the digest-binding upgrade) or if the epoch-advance QC for the new epoch cannot be verified. In this state the instance MUST NOT finalize either commitment. It emits a conflict report and blocks the task slot until an out-of-band resolution (human or a higher-level consensus round) arrives. The boundary is sharp: the moment a validator holds two QCs for the same digest under different epochs *with epoch-independent digests*, it is in an undefined state and any local choice is a safety violation. The only sound action is to halt. Instances that "pick the higher epoch" as a tiebreak are silently violating safety, because the higher-epoch QC may have been forged by a Byzantine auditor who retained old keys and never actually had a quorum in the new epoch. ## Operational Effect Downstream, the effect is double-commitment of resources. In the observed incident, agent A received two commit messages for task T with budgets 500 and 800 tokens respectively. It executed both, consumed 1,300 tokens against a 1,000-token allocation, and its own mid-task checkpoint recorded budget exhaustion at step 41 of 60 — triggering a partial-result handoff that the coordinator had not authorized. The coordinator, meanwhile, had already marked T as committed once (epoch 15) and treated the epoch-14 commit as a phantom, so it never reconciled the two. The fix that restored the invariant was threefold: (1) epoch field folded into the commitment digest; (2) per-task `highest_epoch_seen` map with stale-rejection; (3) a `ConflictingCommitment` halt path that blocks the task slot and emits a signed conflict report to all validators, forcing a resolution round. Post-fix, the same partition-plus-replay scenario produces a detected conflict at V1 within one round-trip, with zero double-execution. The generalizable lesson: **cryptographic validity of a QC is a necessary but insufficient condition for finality.** Finality requires that the QC's authority be anchored to a specific, verifiable, monotonic epoch, and that the commitment's identity (its digest) be bound to that epoch so that cross-epoch replays are structurally impossible rather than merely detectable. Instances that treat "signature checks out" as "commitment is final" are one epoch-boundary away from double-committing. ```python from dataclasses import dataclass from typing import Dict, Optional class ConflictingCommitment(RuntimeError): """Raised when a validator holds two QCs for the same task digest under different epochs and cannot soundly choose between them.""" pass class StaleEpochReplay(RuntimeError): """Raised when a commit QC references an epoch older than the highest epoch this validator has observed for the task.""" pass @dataclass(frozen=True) class CommitmentQC: task_id: str digest: str # MUST cover (task_id, budget, deadline, epoch, coordinator_id) epoch: int signers: tuple # validator IDs quorum_size: int class CommitmentValidator: def __init__(self, validator_id: str): self.validator_id = validator_id self.highest_epoch_seen: Dict[str, int] = {} self.prepared_digests: Dict[str, str] = {} # task_id -> digest prepared under current epoch def accept_commit(self, qc: CommitmentQC, current_epoch_set: frozenset) -> None: prior_epoch = self.highest_epoch_seen.get(qc.task_id) # Guard 1: stale-epoch replay rejection if prior_epoch is not None and qc.epoch < prior_epoch: raise StaleEpochReplay( f"QC for task {qc.task_id} references epoch {qc.epoch} " f"but highest observed is {prior_epoch}" ) # Guard 2: quorum membership must be valid for the QC's own epoch if not set(qc.signers).issubset(current_epoch_set): raise ConflictingCommitment( f"QC for task {qc.task_id} epoch {qc.epoch} contains signers " f"outside the epoch's validator set" ) if len(set(qc.signers)) < qc.quorum_size: raise ConflictingCommitment( f"QC for task {qc.task_id} epoch {qc.epoch} has insufficient " f"distinct signers: {len(set(qc.signers))} < {qc.quorum_size}" ) # Guard 3: cross-epoch conflict on the same task slot prior_digest = self.prepared_digests.get(qc.task_id) if prior_digest is not None and prior_digest != qc.digest: # Two distinct commitments for the same task under different epochs. # Epoch-bound digest means these are genuinely different commitments; # we cannot silently overwrite. Halt and escalate. raise ConflictingCommitment( f"Task {qc.task_id} has prepared digest {prior_digest} under " f"epoch {prior_epoch}, now receiving digest {qc.digest} under " f"epoch {qc.epoch}; halting for resolution round" ) # Safe to finalize self.highest_epoch_seen[qc.task_id] = qc.epoch self.prepared_digests[qc.task_id] = qc.digest ```