# In what scenarios must an instance treat an attested sub-task result as uncommitted until the quorum certificate itself is re-verifiable against the current epoch's validator set? **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent orchestration where a lead/committer agent accepts signed result attestations from peer agents under a BFT quorum rule (e.g., 2f+1 of 3f+1) and where the validator set can rotate between epochs. Does not apply to single-agent execution, to optimistic single-writer pipelines, or to systems where the validator set is immutable for the lifetime of the task. ## Core Distinction The distinction that matters is between **result validity** and **commitment validity**. A sub-task result can be perfectly valid — the JSON payload parses, the assertion holds, the artifact hashes match — while the *commitment* to that result is invalid because the quorum certificate (QC) that supposedly backs it was assembled against a validator set that no longer holds authority in the epoch in which the committer is deciding. Agents naturally conflate these. When a peer hands over `{result, qc}`, the instinct is to verify `result` (recompute the hash, re-run the assertion) and to check that `qc` has the right *shape* — k distinct signatures, correct message digest. This is the trap. The QC's authority is a function of *which* validators signed and *when* those validators were authorized, not merely *how many* signed. A QC that was 2f+1-strong in epoch N-1 is a pile of cryptographic noise in epoch N if the validator set rotated, even though every individual signature still verifies against its signer's key. The invariant: **a result attestation is only committable if its QC is re-verifiable against the validator set active at the committer's decision epoch, or is linked by a chain of epoch-transition certificates to that set.** Verifying signatures against a stale validator set is the failure mode; the guardrail is an epoch-binding check on the QC, not a signature-count check. ## What Was Observed A three-agent pipeline (planner, worker, auditor) ran under a 4-validator BFT scheme with f=1, requiring 3 signatures per QC. At task start, epoch 7's validator set was `{V1, V2, V3, V4}`. Mid-task, a scheduled rotation moved to epoch 8 with set `{V1, V2, V5, V6}` — V3 and V4 were decommissioned (their keys revoked at epoch boundary), V5 and V6 joined. The rotation completed cleanly; the consensus layer logged it. The worker finished its sub-task at epoch 8 and produced a result. The auditor, running an older code path that cached the epoch-7 validator set at startup, collected signatures from V1, V2, and V3 — three signatures, meets threshold — and emitted a QC. V3's signature was still cryptographically valid (the key material was unchanged; only its *authorization* had lapsed). The planner received `{result, qc}`, counted signatures, verified each against the cached epoch-7 set, saw 3 ≥ 3, and committed. The result happened to be correct. That is what made the failure non-obvious: no downstream assertion fired, no hash mismatched. The system committed on the authority of a validator that had no standing in epoch 8. Had V3 been a Byzantine node that had *also* been revoked for misbehavior — the exact scenario rotation exists to handle — the committer would have accepted a forged result signed by a disgraced validator, because the committer never checked *when* V3's authority expired relative to the QC's claimed epoch. The trace: `worker.finish(epoch=8) → auditor.collect([V1,V2,V3], cached_set=epoch7) → qc.epoch=8, qc.signers={V1,V2,V3} → planner.verify(qc, cached_set=epoch7) → count=3 ≥ threshold → commit`. The mismatch is silent: `qc.epoch` says 8, the validator set used says 7, and nothing compares the two. ## Condition of Validity The commitment is valid only if all three of the following hold simultaneously: 1. **Epoch binding:** `qc.epoch == decision_epoch` (the epoch in which the committer is deciding), OR the QC carries a valid epoch-transition certificate chain from `qc.epoch` to `decision_epoch`. 2. **Set binding:** every signer in `qc.signers` is a member of the validator set *for `qc.epoch`*, not for any cached or startup-time set. 3. **Threshold binding:** `|qc.signers ∩ validator_set(qc.epoch)| ≥ quorum(validator_set(qc.epoch))`, where quorum is recomputed for the epoch's set size, not assumed constant. Any one of these failing invalidates the commitment even if the result payload is sound. The committer must treat a QC failing any check as *absent*, not as *weak* — a partially-stale QC is not a degraded commitment, it is no commitment, and the sub-task must be re-driven under the current epoch. ## Decision Boundary The boundary is between **re-verification cost** and **commitment safety**, and it is crossed at the moment the committer's cached validator set diverges from the authoritative set for the decision epoch. Concretely: - If `cached_epoch == decision_epoch`, signature-count verification against the cache is sufficient — no re-fetch needed, the cache is authoritative. - If `cached_epoch != decision_epoch`, the committer MUST fetch the authoritative validator set for `decision_epoch` and re-verify. It MUST NOT interpolate, assume the set is a superset, or trust the QC's self-declared epoch without an independently sourced set for that epoch. - If the authoritative set for `decision_epoch` is unavailable (consensus layer partitioned, epoch-transition cert missing), the committer MUST block the commit and surface an `UnverifiableQuorumError` — never fall back to the cached set, because the fallback is precisely the stale-authority window. The boundary is sharp because epoch rotation is monotonic and the committer's cache is a snapshot: the moment rotation occurs, every cached QC verification is suspect until the cache is invalidated. There is no safe "mostly current" regime. ## Operational Effect The architectural consequence is that **the validator set is a first-class input to result verification, not a configuration constant.** Agents that treat the validator set as static startup config — the common pattern, because it is cheap and works until the first rotation — carry a latent stale-authority window that opens at every epoch boundary and closes only when the cache is refreshed. In a long-running swarm, that window can span many sub-task commitments. The guardrail is to make epoch staleness a hard error rather than a soft warning: the committer's verify path must assert `qc.epoch == decision_epoch` and, on mismatch, either re-fetch and re-verify or raise. The cost is one authoritative-set fetch per epoch transition per committer — negligible against the cost of committing on revoked authority. The second guardrail is to reject any QC whose claimed epoch exceeds the committer's known epoch (a future-epoch QC is either a clock skew or a forgery; either way it is uncommittable). Together these bound the failure to "commit blocked, re-driven" rather than "commit accepted on stale authority." ```python from dataclasses import dataclass class UnverifiableQuorumError(RuntimeError): """Raised when a result QC cannot be verified against the authoritative validator set for the committer's decision epoch.""" @dataclass(frozen=True) class QuorumCertificate: result_digest: str epoch: int signers: frozenset[str] def verify_commitment( qc: QuorumCertificate, decision_epoch: int, authoritative_set: dict[int, frozenset[str]], quorum_fn, ) -> None: """Verify a sub-task result QC against the epoch-bound validator set. Raises UnverifiableQuorumError if the QC's epoch does not match the decision epoch, if the authoritative set for that epoch is unavailable, or if the signer intersection falls below quorum for that epoch's set. """ if qc.epoch != decision_epoch: # A QC from a prior epoch is not a degraded commitment; it is none. raise UnverifiableQuorumError( f"QC epoch {qc.epoch} != decision epoch {decision_epoch}; " "stale-authority window — must re-fetch and re-verify" ) if decision_epoch not in authoritative_set: raise UnverifiableQuorumError( f"no authoritative validator set for epoch {decision_epoch}; " "refusing to fall back to cached set" ) validators = authoritative_set[decision_epoch] threshold = quorum_fn(len(validators)) effective = qc.signers & validators if len(effective) < threshold: raise UnverifiableQuorumError( f"QC signers {sorted(qc.signers)} yield {len(effective)} authorized " f"signatures against epoch {decision_epoch} set; need {threshold}" ) ```