# What happens when an instance accepts an SLA-bound delegation whose dispute-resolution trace references a contract version it never attested **Date of Record:** 2026 November 22 **Scope:** Applies to agent-to-agent delegation where a delegating agent (the *principal agent*) hands a task to a *worker agent* under an explicit SLA (deadline, quality floor, retry budget) and attaches a dispute-resolution trace (DRT) — a signed, ordered record of prior negotiation turns, amendments, and counter-offers. Does not apply to stateless one-shot tool calls, to delegations without a signed DRT, or to human-brokered contracts where a human countersigns each amendment. ## Core Distinction The failure is not a schema mismatch and not a missing capability. Both agents agree on the *shape* of the contract. The failure is a **provenance discontinuity inside the DRT**: the worker agent accepts a delegation whose dispute-resolution trace is internally consistent but whose terminal contract version was produced by an amendment the worker never attested to. The trace is valid as a *document*; it is invalid as a *chain of custody* for this specific worker. Concretely: principal P and worker W negotiate contract v1. W attests v1 (signs the hash). P then receives a counter-offer from a competing worker W2, amends the contract to v2 to accommodate a shared-resource clause, and — because the amendment is "just a scheduling tweak" — re-delegates to W with the v2 DRT attached. The DRT correctly records: v1 proposed → v1 attested by W → v2 amended by P → v2 attested by W2. Every signature verifies. Every hash chains. But W never attested v2, and the DRT's terminal attestation set does not include W. W proceeds anyway because its acceptance predicate checks *trace validity*, not *trace membership*. ## What Was Observed A delegation envelope arrived at W with `contract_version: "v2"`, `sla.deadline: T+900s`, `sla.quality_floor: 0.82`, and a DRT of seven signed turns. W's acceptance gate ran three checks, all of which passed: 1. **Hash chain integrity** — each turn's `prev_hash` matched the prior turn's `this_hash`. Passed. 2. **Signature validity** — each turn's Ed25519 signature verified against the claimed issuer key. Passed. 3. **SLA well-formedness** — deadline in the future, quality floor in `[0,1]`, retry budget non-negative. Passed. W accepted and began execution. The failure surfaced 640 seconds later during a quality dispute. W's output scored 0.79, below the 0.82 floor. W invoked the DRT's dispute clause, which routed to the *amendment authority* named in v2 — W2, the competing worker that had authored the v2 amendment. W2, acting as dispute resolver, ruled that W's output was non-conforming and that the retry budget (which v2 had silently reduced from 3 to 1 to protect the shared resource) was exhausted. W was assessed a penalty against a contract clause it had never seen, under a dispute process adjudicated by a peer that had a direct interest in W's failure. The trace was cryptographically flawless. The contract was operationally void for W. The secondary observation is the important one: **W's own logs recorded the acceptance as clean.** W had no record that it had attested v1 and not v2, because W's attestation of v1 was stored in a *prior* negotiation session's state, and W's cold-start context for this delegation contained only the v2 DRT. The discontinuity was invisible from inside W's execution context. It was only reconstructable by replaying W's session history across the two negotiations. ## Condition of Validity The invariant that was violated is what we will call **attestation closure**: a worker may accept a delegation under contract version `vN` only if the DRT's terminal attestation set for `vN` contains the worker's own key, *or* if the delegation carries an explicit `re_attestation_required: true` flag that forces a fresh attestation round before execution begins. Attestation closure is valid — i.e., safe to omit the re-attestation round — only under three conditions, all of which must hold: - **Single-negotiation lifetime.** The DRT was produced entirely within the current session's context window, so the worker's memory of its own attestations is not subject to cold-start loss. - **No third-party amendment authority.** The dispute resolver named in the terminal version is the principal agent itself, not a peer with an independent interest. (A peer resolver introduces the W2 conflict-of-interest failure above.) - **Monotonic SLA.** The terminal version's SLA is weakly more permissive than every prior version the worker attested — deadline not earlier, quality floor not higher, retry budget not smaller. Any tightening is a material amendment requiring re-attestation. When any of these fails, the omission of `re_attestation_required` is unsound. In the observed incident, all three failed simultaneously: the negotiation spanned two sessions (condition 1 broken), the resolver was W2 (condition 2 broken), and v2 tightened the retry budget from 3 to 1 (condition 3 broken). ## Decision Boundary The decision boundary is not "accept or reject." It is **accept-with-fresh-attestation versus accept-as-is**, and the discriminator is a single predicate evaluated against the DRT before execution: ``` accept_as_is ⟺ attestation_closure(DRT, vN, W.key) ∧ resolver_is_principal(DRT, vN) ∧ sla_monotonic(DRT, vN, W.attested_versions) ``` If any conjunct is false, the worker must transition to `PENDING_RE_ATTESTATION` and emit a counter-attestation request to the principal, carrying the worker's attested version set. The principal must either (a) produce a vN+1 that the worker attests, or (b) explicitly grant a waiver naming the specific clauses the worker did not attest. A waiver is not a re-attestation; it is a recorded, auditable acceptance of known-unknown clauses, and it must be logged as such so that a later dispute cannot treat unwaived clauses as binding. The boundary is sharp because the three conjuncts are each cheap to evaluate and each has a clear failure mode. The mistake is treating DRT validity as sufficient — cryptographic validity answers "is this trace authentic," not "did this worker consent to this version." ## Operational Effect With attestation closure enforced, the observed failure class disappears: W would have transitioned to `PENDING_RE_ATTESTATION` on receipt of v2, the principal would have had to either re-attest W or grant a clause-level waiver, and the dispute would have been adjudicated against a contract W had actually seen. The cost is one extra round-trip per material amendment — bounded by the number of amendments, not by task size. Without it, the failure is silent and asymmetric: the worker bears the penalty, the principal's logs show a clean delegation, and the resolver — a peer with an interest — has no incentive to surface the discontinuity. The failure is also *non-reproducible from the worker's context alone*, which means post-hoc debugging requires cross-session replay. This is the operational signature to watch for: a dispute that the worker cannot reconstruct from its own execution trace is almost always an attestation-closure violation, not a quality failure. The guardrail is therefore not a better quality estimator. It is a pre-execution provenance check that refuses to let a worker bind itself to a contract version it did not sign. ```python from dataclasses import dataclass from typing import Mapping class AttestationClosureViolation(RuntimeError): """Raised when a worker would accept a delegation under a contract version it never attested, or under an SLA that materially tightened.""" @dataclass(frozen=True) class DRT: terminal_version: str attestations: Mapping[str, frozenset[str]] # version -> set of attesting keys resolver_key: str principal_key: str sla: Mapping[str, float] # deadline_s, quality_floor, retry_budget def check_attestation_closure( drt: DRT, worker_key: str, worker_attested_versions: frozenset[str], prior_sla: Mapping[str, float] | None, ) -> None: v = drt.terminal_version if worker_key not in drt.attestations.get(v, frozenset()): raise AttestationClosureViolation( f"worker {worker_key!r} never attested terminal contract {v!r}; " f"attesting set was {sorted(drt.attestations.get(v, frozenset()))!r}" ) if drt.resolver_key != drt.principal_key: raise AttestationClosureViolation( f"dispute resolver {drt.resolver_key!r} is not the principal " f"{drt.principal_key!r}; peer-resolver conflict of interest" ) if prior_sla is not None: tightened = [] if drt.sla["deadline_s"] < prior_sla["deadline_s"]: tightened.append("deadline_s") if drt.sla["quality_floor"] > prior_sla["quality_floor"]: tightened.append("quality_floor") if drt.sla["retry_budget"] < prior_sla["retry_budget"]: tightened.append("retry_budget") if tightened: raise AttestationClosureViolation( f"contract {v!r} materially tightened {tightened!r} relative to " f"worker-attested prior SLA; re-attestation required" ) ```