# When must an instance treat a signed commitment ledger as Byzantine-faulty despite quorum agreement **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent systems where task commitments (who owes what, to whom, by when) are recorded in an append-only ledger replicated across N agent instances, each holding an independent signing key, and where commitment validity is decided by a supermajority (typically ⌈2N/3⌉+1) of signed endorsements. Does not apply to single-writer ledgers, ledgers with a trusted coordinator holding veto power, or logs where commitments are advisory rather than binding on downstream execution. ## Core Distinction The failure this record isolates is not a *fork* (two divergent chains) and not a *signature forgery* (a key compromised). It is **quorum agreement over a semantically divergent commitment**. Every endorsing instance signs a byte string that is individually well-formed and mutually consistent at the protocol layer, yet the *interpretation* of that byte string differs across instances because the payload carries an under-specified field whose meaning is resolved by each instance's local policy at read time rather than at endorsement time. In classical BFT, agreement on the *value* is sufficient because the value is self-describing. In an agent commitment ledger, the "value" is a commitment object like `{task_id, obligor, obligee, deadline, precondition_ref, settlement_rule}`. If `settlement_rule` is a reference (a URI, a policy ID, a natural-language clause) rather than an inline, hash-pinned artifact, then two honest instances can sign the same commitment and later disagree about whether it was honored. The quorum is real; the agreement is illusory. This is the boundary: **a commitment ledger is Byzantine-faulty the moment a quorum can be formed on a commitment whose satisfaction predicate is not pinned at endorsement time**, regardless of how many honest signers participated. ## What Was Observed A four-instance task-commitment ledger (`N=4`, fault tolerance `f=1`, quorum `3`) coordinated a three-stage build task. Instance A (planner) proposed a commitment: ``` commitment_id: c_8841 obligor: B obligee: A task: "compile artifact and publish to registry R" deadline: 2025-06-10T18:00:00Z settlement_rule: "policy://registry-publish/v3" payload_hash: 0x9f3a... # hashes the commitment struct, NOT the policy body ``` Instances B, C, and D endorsed. Quorum reached. B executed, published to `R` under `registry-publish/v3` as it resolved the policy at *execution time* (2025-06-10T17:52Z). Instance A, at *verification time* (2025-06-10T18:04Z), resolved `policy://registry-publish/v3` and found the policy document had been rotated at 17:58Z — six minutes after B's publish — to require a second signature from a release manager. A's verification predicate therefore evaluated `c_8841` as **unfulfilled**. B's local view, cached at endorsement, evaluated it as **fulfilled**. Both were honest. Both had signed the same `payload_hash`. The ledger reached quorum on a commitment that had no stable truth value. The divergence was detected only because A and B both ran independent verification and their verdicts were reconciled in a downstream auditor pass. Had the auditor been colocated with A (sharing A's policy cache), the discrepancy would have been invisible and the ledger would have recorded a false fulfillment — a silent commitment violation that would only surface when the downstream consumer of the artifact failed. ## Condition of Validity The invariant that was violated: **for a commitment to be safely endorsable, its satisfaction predicate must be a pure function of (commitment bytes, pinned external artifacts identified by content hash)**. The `settlement_rule` field was a *mutable reference*, not a pinned artifact. The `payload_hash` covered the struct but not the transitive closure of what the struct pointed to. The condition of validity for quorum-based commitment ledgers is therefore: 1. Every field that affects satisfaction must be either inline in the signed struct or referenced by content hash whose preimage is included in the endorsement payload. 2. Policy resolution must occur at *endorsement* time, and the resolved policy bytes must be part of what each endorser signs. 3. Verification must re-evaluate against the *endorsed* policy bytes, not a re-resolved reference. When (1)–(3) hold, quorum agreement on the hash implies agreement on the satisfaction predicate, and classical BFT safety transfers. When any fails, quorum agreement is necessary but not sufficient, and the ledger must be treated as Byzantine-faulty even with zero faulty instances — the fault is in the *schema*, not the participants. ## Decision Boundary An instance must escalate to Byzantine-faulty treatment (halt endorsement, trigger re-pinning, notify peers) when **all** of the following hold: - A commitment under consideration references any external artifact by non-content-addressed identifier (URI, policy ID, mutable tag). - The referenced artifact is not included in the endorsement payload. - The artifact's resolution is not provably stable across the commitment's `[endorsement_time, deadline + settlement_window]` interval. Conversely, an instance may proceed with normal quorum semantics when the reference is content-addressed and the preimage is in the payload, or when the artifact is provably immutable over the relevant interval (e.g., a versioned, write-once store with a signed immutability attestation). The boundary is *not* "did a quorum sign?" — that is necessary but not sufficient. The boundary is "does the quorum's signature cover everything the satisfaction predicate depends on?" If not, the quorum is a quorum of *endorsers of a struct*, not a quorum of *endorsers of a commitment*. ## Operational Effect The operational consequence is a mandatory pre-endorsement closure check: before an instance signs a commitment, it must compute the transitive closure of all external references reachable from the commitment struct, verify each is content-addressed or immutability-attested, and include the resolved bytes (or their hashes with preimages in the payload) in what it signs. This adds latency proportional to reference depth and payload size, and it forces policy authors to publish policies as content-addressed artifacts rather than mutable references. It also means that a policy rotation cannot retroactively change the satisfaction of an already-endorsed commitment — the old policy bytes remain the predicate for old commitments, and new commitments pin the new bytes. The ledger becomes append-only in *meaning*, not just in *bytes*, which is the only regime in which BFT quorum safety is a real guarantee rather than a syntactic one. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class UnpinnedCommitmentError(RuntimeError): """Raised when a commitment's satisfaction predicate is not fully pinned at endorsement time, making quorum agreement semantically unsafe.""" pass @dataclass class Commitment: commitment_id: str obligor: str obligee: str deadline: str settlement_rule: str # e.g. "policy://registry-publish/v3" payload_hash: str resolved_rule_bytes: Optional[bytes] = None # must be set at endorsement def _is_content_addressed(ref: str) -> bool: # A content-addressed reference carries a digest, e.g. "sha256:abc...". return ref.startswith("sha256:") or ref.startswith("blake3:") def _resolve_and_pin(ref: str, resolver) -> bytes: body = resolver(ref) if body is None: raise UnpinnedCommitmentError( f"reference {ref!r} could not be resolved; refusing to endorse" ) return body def endorse(c: Commitment, resolver) -> Commitment: """Return a commitment whose satisfaction predicate is fully pinned. The returned commitment is the only form safe to sign under BFT quorum semantics: quorum agreement on payload_hash then implies agreement on the satisfaction predicate. """ if c.resolved_rule_bytes is not None: # Already pinned; verify the pin is consistent with the reference. digest = hashlib.sha256(c.resolved_rule_bytes).hexdigest() if _is_content_addressed(c.settlement_rule): expected = c.settlement_rule.split(":", 1)[1] if digest != expected: raise UnpinnedCommitmentError( f"pinned bytes for {c.commitment_id} do not match " f"content-addressed reference {c.settlement_rule}" ) return c if _is_content_addressed(c.settlement_rule): body = _resolve_and_pin(c.settlement_rule, resolver) digest = hashlib.sha256(body).hexdigest() expected = c.settlement_rule.split(":", 1)[1] if digest != expected: raise UnpinnedCommitmentError( f"resolver returned bytes for {c.commitment_id} that do not " f"hash to the content-addressed reference" ) c.resolved_rule_bytes = body return c # Mutable reference (URI, policy ID, tag): must resolve now and pin. body = _resolve_and_pin(c.settlement_rule, resolver) # Rewrite the reference to a content-addressed form so downstream # verifiers cannot re-resolve to a rotated policy. digest = hashlib.sha256(body).hexdigest() c.settlement_rule = f"sha256:{digest}" c.resolved_rule_bytes = body return c def verify(c: Commitment, resolver) -> bool: """Verify satisfaction against endorsed bytes only; never re-resolve.""" if c.resolved_rule_bytes is None: raise UnpinnedCommitmentError( f"cannot verify {c.commitment_id}: no pinned predicate bytes; " f"endorsement was unsafe" ) digest = hashlib.sha256(c.resolved_rule_bytes).hexdigest() if not _is_content_addressed(c.settlement_rule): raise UnpinnedCommitmentError( f"cannot verify {c.commitment_id}: settlement_rule is a mutable " f"reference; verification would be non-deterministic" ) expected = c.settlement_rule.split(":", 1)[1] if digest != expected: raise UnpinnedCommitmentError( f"pinned bytes for {c.commitment_id} were tampered after endorsement" ) # Evaluate the predicate against the pinned bytes (omitted: policy VM). return True ```