# What structural signals indicate a contract-net award is being re-litigated after partial settlement **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent contract-net (CNP) award protocols where a manager agent issues a call-for-proposals (CFP), collects signed bids, awards a task, and issues settlement receipts against milestone deliveries. Does not apply to single-shot RPC delegation without a bidding round, nor to purely reputational routing where no award record is signed. ## Core Distinction The failure we are isolating is not "a bid was invalid" or "an agent lied about capability." Those are caught at bid-validation time. The failure is **award re-litigation under settlement ambiguity**: after a manager has signed an award record (binding it to a specific bid hash) and issued at least one partial settlement receipt, a second award for the *same task lineage* is emitted because the manager's recovery path cannot distinguish "the winner failed to deliver milestone 2" from "my own settlement receipt for milestone 1 was lost in transport and the winner is legitimately re-asserting its claim." The structural signal that separates these two cases is **not** the presence of a duplicate award. It is the *ordering relationship between the award's `bid_hash` field and the set of settlement receipts the manager can locally prove it authored*. A re-litigation event always carries a `prior_award_ref` chain whose terminal settlement receipt is either (a) absent from the manager's durable log but present in the peer's, or (b) present in both but with divergent `milestone_index` — meaning the manager's log and the winner's log disagree on *which milestone* was settled, not merely whether it was. The common wrong intuition is to treat any second award as a protocol violation and abort the swarm. In practice, abort-on-duplicate-award converts a recoverable log divergence into a task-wide deadlock, because the losing bidders have already released their escrow and cannot re-enter. The invariant that actually holds is narrower: **an award may be re-issued only if the new award's `prior_award_ref` resolves to a settlement receipt whose `milestone_index` is strictly less than the new award's `required_milestone_start`, and the receipt's signature verifies against the manager's key.** Anything else is re-litigation. ## What Was Observed A three-bidder logistics swarm: one manager (M), bidders B1/B2/B3, task "route 400 parcels across 6 depots," decomposed into 4 milestones. B1 won with bid hash `0x9c…`. M issued settlement receipts `R1` (milestone 0) and `R2` (milestone 1) to B1. After `R2`, B1's transport to M timed out mid-acknowledgement of `R2`. The trace: 1. M's durable log contained `R1`, `R2`, and a pending `R2_ack` entry with no peer signature. M's local view: *milestone 1 settled, milestone 2 in progress.* 2. B1's durable log contained `R1`, `R2`, and its own `R2_ack`. B1's local view: *milestone 1 settled and acknowledged, milestone 2 in progress.* 3. M's watchdog fired on the missing `R2_ack` after 90s and entered `recover_award()`. 4. `recover_award()` read the *last fully-acked* receipt, which was `R1`, and concluded milestone 1 was **unsettled**. It re-opened the CFP for milestone 1 only. 5. B2, which had lost the original round, re-bid and won the re-opened milestone 1 with bid hash `0x4f…`. M emitted a second award record with `prior_award_ref = R1`. 6. B1, still executing milestone 1's work (it had already been paid for it in its own view), delivered milestone 1 output to M. M rejected it: "milestone 1 is awarded to B2." 7. B2 delivered its milestone 1 output. M accepted and paid. **Milestone 1 was now paid twice and executed twice, with divergent outputs.** Depot 3 received two conflicting routing tables. The structural signals present at step 4 that were ignored: - `recover_award()` used *acknowledgement presence* as the settlement oracle rather than *receipt authorship*. A receipt M itself signed is evidence of settlement regardless of whether the peer acked it — the ack is a delivery receipt, not a settlement condition. - The re-opened CFP's `prior_award_ref` pointed at `R1`, whose `milestone_index` was 0, while the re-opened task required `milestone_start = 1`. The off-by-one between "last acked" and "last authored" produced a `prior_award_ref` that *structurally* referenced an already-settled milestone. This is the tell. - No bidder validated `prior_award_ref` against its own receipt log before bidding. B2 had `R1` in its log (broadcast receipts are visible to all bidders) and could have refused the CFP. ## Condition of Validity The invariant "re-issue is safe" holds only when the manager's settlement oracle is **receipt authorship, not acknowledgement**. Concretely, before any re-issue, M must compute: ``` last_authored = max(r.milestone_index for r in local_log if verify(r.sig, M.pubkey)) last_acked = max(r.milestone_index for r in local_log if r.ack is not None) ``` and re-open only milestones `> last_authored`. The gap `last_authored - last_acked` is the *in-flight settlement window* — milestones M has paid but not yet confirmed delivered. Re-opening any milestone inside that window is re-litigation. The window must be bounded by a *settlement lease*: if `last_acked < last_authored` for longer than the lease, M does not re-open the milestone; it enters `dispute(milestone=last_acked+1)` and halts the lineage, because the only remaining explanations are peer death or peer fraud, and neither is resolved by re-bidding. The condition fails — and re-litigation becomes structurally undetectable — whenever receipts are not independently verifiable by bidders. If B2 cannot verify `R1`'s signature, it cannot refuse the poisoned CFP, and the double-payment proceeds silently. Receipt broadcast to all bidders (not just the winner) is therefore load-bearing, not an optimization. ## Decision Boundary The boundary between "safe re-issue" and "re-litigation" is a single comparison, and it must be enforced at *two* layers: | Layer | Check | On failure | |---|---|---| | Manager, pre-CFP | `new.required_milestone_start > last_authored` | refuse to emit CFP; enter `dispute` | | Bidder, pre-bid | `cfp.prior_award_ref` resolves to a receipt in bidder's log with `milestone_index < cfp.required_milestone_start` | refuse to bid; emit `stale_cfp_reject` to manager | The bidder-side check is the one that was missing and is the one that makes the protocol robust to a buggy manager. A manager bug (as in step 4) that the bidders cannot detect is a single point of failure; a manager bug that any bidder can veto is a bounded fault. The boundary is therefore not "manager must be correct" but "manager must be *checkable* by bidders, and bidders must check." The subtle edge: a bidder that has *not* received `R1` (late joiner, partitioned during broadcast) will fail the bidder-side check not because the CFP is poisoned but because its own log is incomplete. It must distinguish "I cannot verify" from "I verified and it's stale" — the former triggers a log-sync request, the latter triggers `stale_cfp_reject`. Conflating them either blocks legitimate re-issues or admits poisoned ones. ## Operational Effect When the invariant is enforced, the observed failure mode changes from *silent double-settlement* to *bounded dispute halt*. In the replay, adding the bidder-side `stale_cfp_reject` check caused B2 to refuse the step-5 CFP, which surfaced the manager's `last_acked`-vs-`last_authored` bug at the point of CFP emission rather than after double payment. The swarm halted at milestone 1 with a single settlement, a single execution, and a dispute record naming the exact off-by-one. Recovery cost dropped from "reconcile divergent depot routing tables across two bidders" to "re-ack `R2` and resume." The invariant does not prevent manager bugs. It prevents manager bugs from becoming *financial* and *physical* (divergent outputs to the same depot) faults. That is the entire value: the contract-net protocol's settlement receipts are only verifiable if bidders treat them as *constraints on what they will bid for*, not merely as *records of what they were paid*. A receipt that is broadcast but not checked is a receipt that does not exist. ```python from dataclasses import dataclass from typing import Optional class SettlementRelitigationError(RuntimeError): """Raised when a CFP or award would re-open an already-settled milestone.""" pass @dataclass class Receipt: milestone_index: int sig: bytes ack: Optional[bytes] = None def verify(sig: bytes, pubkey: bytes) -> bool: # placeholder for real signature verification return bool(sig) and bool(pubkey) def last_authored(receipts: list[Receipt], manager_pub: bytes) -> int: authored = [r.milestone_index for r in receipts if verify(r.sig, manager_pub)] return max(authored, default=-1) def last_acked(receipts: list[Receipt]) -> int: acked = [r.milestone_index for r in receipts if r.ack is not None] return max(acked, default=-1) def authorize_cfp( receipts: list[Receipt], manager_pub: bytes, prior_award_ref: Receipt, required_milestone_start: int, ) -> None: """Manager-side guard: refuse to emit a CFP that re-opens settled milestones.""" la = last_authored(receipts, manager_pub) if required_milestone_start <= la: raise SettlementRelitigationError( f"CFP would re-open milestone {required_milestone_start}; " f"last authored receipt is milestone {la}" ) if prior_award_ref.milestone_index >= required_milestone_start: raise SettlementRelitigationError( f"prior_award_ref points at milestone {prior_award_ref.milestone_index}, " f"which is not strictly before required_milestone_start " f"{required_milestone_start}" ) def bidder_accept_cfp( bidder_log: list[Receipt], manager_pub: bytes, prior_award_ref: Receipt, required_milestone_start: int, ) -> None: """Bidder-side guard: veto poisoned CFPs even if the manager is buggy.""" matches = [ r for r in bidder_log if r.milestone_index == prior_award_ref.milestone_index and verify(r.sig, manager_pub) ] if not matches: # Cannot verify — request log sync, do NOT reject as stale. raise SettlementRelitigationError( "cannot verify prior_award_ref against local log; request sync" ) if matches[0].milestone_index >= required_milestone_start: raise SettlementRelitigationError( f"stale CFP: prior_award_ref milestone " f"{matches[0].milestone_index} >= required_milestone_start " f"{required_milestone_start}" ) ```