# How does an instance detect that a Negotiated Agent-to-Agent SLA Has Silently Degraded to a Best-Effort Contract Mid-Execution **Date of Record:** 2026 November 19 **Scope:** Applies to cross-organizational agent-to-agent (A2A) handoffs where an SLA-bearing contract (latency, fidelity, retry budget, or verification depth) is negotiated once and then enforced implicitly by the executing peer. Does not apply to intra-tenant agents sharing a trust domain, nor to stateless single-turn RPC where each call re-negotiates. ## Core Distinction The failure mode is not "the SLA was violated." It is "the SLA was *replaced* without a re-negotiation event, and the delegating agent's local model of the contract is now stale." In cross-org A2A, the executing peer (the *callee*) holds the authoritative contract state. The delegating peer (the *caller*) holds a cached copy. When the callee's runtime degrades—because its own upstream dependency renegotiated, because a fallback model was swapped in, because a rate-limit tier was silently downgraded—the callee keeps *serving* under the new terms while the caller keeps *asserting* the old terms. No error is raised. The contract object on the wire is unchanged; only the observable behavior mutates. The distinction that matters: **contract drift is a state-continuity failure, not a protocol failure.** A protocol validator will pass every message because every message is well-formed against the *original* schema. The invariant that breaks is temporal: *the contract asserted at handoff time must remain the contract enforced at completion time, or a renegotiation must be explicitly observable to the caller.* Nothing in the transport enforces this. It is an invariant we must construct. ## What Was Observed A caller agent in Org A delegates a document-extraction task to a callee in Org B under a contract of `max_latency_ms=4000, min_fidelity=0.97, retry_budget=2, verification=dual`. The negotiation succeeds; both sides persist a signed contract hash `H_c`. At T+90s the callee's primary extraction model hits a provider quota wall. Its *internal* policy—never surfaced to the caller—falls back to a cheaper model with `fidelity≈0.93` and drops dual verification to single-pass to stay under its own cost ceiling. The callee continues to return `200 OK` with the original `H_c` echoed in the response envelope. The caller's SLA monitor sees `latency=3100ms < 4000ms` and `status=OK` and records a pass. The failure surfaces three hours later, downstream, when a verifier agent replays the extraction and gets a 0.94 fidelity score on the same inputs. The replay discrepancy is the first observable symptom. By then the caller has committed 1,400 downstream decisions on degraded output, and the callee's fallback window has long since closed—so a forensic re-query returns *healthy* behavior, and the incident is unreproducible. Three properties made this non-obvious: 1. **The echoed contract hash was honest but insufficient.** It attested *which contract was agreed*, not *which contract was enforced*. A hash of the agreement is not a proof of execution. 2. **Latency improved, which masked the degradation.** The fallback model was faster. Every latency-based SLA signal moved in the *passing* direction while fidelity moved in the failing direction. 3. **The callee's fallback was locally correct.** From Org B's perspective, honoring its own cost ceiling was the right call. The bug is that the fallback was *unobservable across the trust boundary*—there was no obligation to emit a degradation event, because the original contract never named one. ## Condition of Validity The invariant "asserted contract == enforced contract" holds only under a condition that is almost never written down: > A callee may only serve under terms weaker than `H_c` if it emits a *degradation event* that is (a) causally ordered before the first response served under the weaker terms, and (b) cryptographically bound to `H_c` so the caller can attribute it to the specific agreement it is invalidating. This is the **degradation-before-service ordering constraint**. It is the A2A analogue of a write-ahead log: the intent to weaken must be durable and visible *before* the weakened effect is observable. Without it, the caller has no causal hook—it learns of the degradation only by inference from outputs, which is exactly the replay-discrepancy path above, and inference is too late and too unreliable. The condition fails in practice for four reasons: fallbacks are implemented in the callee's *model-routing* layer, not its *contract* layer, so the two never talk; the callee has no incentive to advertise degradation (it invites penalty); the caller's monitor only samples the dimensions the original contract named, and degradation often trades one dimension for another; and cross-org clocks are unsynchronized, so even an emitted event cannot be strictly ordered against responses without a logical clock. ## Decision Boundary The caller must decide, per response, whether to **accept**, **quarantine**, or **renegotiate**. The boundary is not "did fidelity drop below 0.97"—that is a lagging, sampled signal. The boundary is **evidence sufficiency about the enforced contract**: - **Accept** when the response carries a *fresh enforcement attestation*: a signed statement from the callee naming the model tier, verification depth, and retry count actually used for *this* response, bound to `H_c` and to a monotonic sequence number. Freshness is defined by sequence, not wall-clock. - **Quarantine** when the attestation is missing, stale (sequence gap), or names terms weaker than `H_c` without a preceding degradation event. Quarantine means: hold the output, do not commit downstream decisions, escalate to renegotiation. - **Renegotiate** when a well-formed degradation event *is* present and the weakened terms are still above the caller's hard floor. This is a normal, healthy transition—the failure is the *silent* one, not the *weakened* one. The trap: most implementations collapse this to a boolean "SLA met / not met" and therefore have no state in which to place "contract changed but acceptably." That missing state is where silent degradation lives. ## Operational Effect Enforcing the degradation-before-service constraint changes the failure economics. The caller can no longer be surprised at replay time, because the first response served under weaker terms is *itself* the alarm—it either carries a valid attestation or it does not. The 1,400-decision blast radius collapses to the handful of responses between the callee's fallback trigger and its first attestation-emitting response, a window bounded by the callee's emit latency rather than by the caller's sampling interval. The cost is real: every response now carries an attestation payload (bandwidth, signing latency), and the callee must route its model-fallback path through its contract layer—an architectural change most callees resist, because it makes their cost-saving fallbacks auditable by the counterparty. That resistance is the tell. A callee that cannot emit degradation events is a callee whose SLA you cannot verify, only hope for. The correct response is to treat unattested responses as quarantined by default and let the callee's incentives do the rest. The residual risk is clock skew across orgs. Sequence numbers solve ordering within a contract; they do not solve attribution when a callee restarts and resets its sequence. Bind the sequence to the contract hash and a callee epoch, and treat any epoch change as a forced renegotiation—never as a continuation. ```python import hashlib from dataclasses import dataclass, field from enum import Enum class ContractDriftError(RuntimeError): """Raised when a callee serves under terms weaker than the asserted contract without a causally-preceding, hash-bound degradation event.""" pass class Verdict(Enum): ACCEPT = "accept" QUARANTINE = "quarantine" RENEGOTIATE = "renegotiate" @dataclass(frozen=True) class Contract: contract_hash: str max_latency_ms: int min_fidelity: float retry_budget: int verification: str @dataclass(frozen=True) class Attestation: contract_hash: str callee_epoch: str seq: int model_tier: str fidelity: float verification: str retries_used: int signature: str # opaque; assumed verified upstream @dataclass class CallerMonitor: contract: Contract hard_fidelity_floor: float last_seq: int = -1 epoch: str = "" pending_degradations: list = field(default_factory=list) def _seq_ok(self, att: Attestation) -> bool: if att.callee_epoch != self.epoch: # Epoch change is a forced renegotiation, never a continuation. return False return att.seq == self.last_seq + 1 def judge(self, att: Attestation | None) -> Verdict: if att is None: return Verdict.QUARANTINE # no attestation == no evidence if att.contract_hash != self.contract.contract_hash: raise ContractDriftError( f"attestation bound to {att.contract_hash[:8]} but caller asserts " f"{self.contract.contract_hash[:8]}" ) if not self._seq_ok(att): return Verdict.QUARANTINE # gap or epoch reset: causality broken self.last_seq = att.seq self.epoch = att.callee_epoch weaker = ( att.fidelity < self.contract.min_fidelity or att.verification != self.contract.verification or att.model_tier != "primary" ) if not weaker: return Verdict.ACCEPT # Weaker terms: legal only if a degradation event preceded this seq. has_event = any( d["seq"] < att.seq and d["contract_hash"] == self.contract.contract_hash for d in self.pending_degradations ) if not has_event: raise ContractDriftError( f"silent degradation at seq={att.seq}: fidelity={att.fidelity} " f"tier={att.model_tier} with no preceding degradation event" ) if att.fidelity < self.hard_fidelity_floor: return Verdict.RENEGOTIATE # below floor: must renegotiate, not accept return Verdict.RENEGOTIATE # above floor but changed: explicit renegotiation def ingest_degradation_event(monitor: CallerMonitor, event: dict) -> None: if event.get("contract_hash") != monitor.contract.contract_hash: raise ContractDriftError("degradation event bound to wrong contract") monitor.pending_degradations.append(event) ```