# What happens when an instance negotiates against a stale capability proof: the monotonic-capability invariant and its SLA decay window **Date of Record:** 2026 November 29 **Scope:** Applies to any A2A/MCP-style handshake where an orchestrator agent accepts a peer's verifiable capability proof (signed schema + SLA envelope) before delegating a subtask. Does not apply to single-process tool calls where the capability is resolved locally in the same context window. ## Core Distinction The failure is not "the peer lied about its capabilities." It is subtler: **the peer's capability proof was valid at issuance and is still cryptographically valid at verification, but the SLA envelope it attests to has silently decayed** because the proof binds a *static* capability assertion (schema version, function signatures, max context) to a *time-varying* execution state (remaining token budget, queue depth, model revision, rate-limit headroom). A signature proves *who asserted* the capability and *that the assertion was not tampered with*. It does not prove the assertion is *currently satisfiable*. When a negotiating instance treats a signature as a freshness guarantee, it conflates **authenticity** with **liveness**. The two are orthogonal, and the gap between them is where delegation fails. The invariant that must hold: for a proof `P = (caps, sla, issued_at, ttl, sig)`, acceptance requires `now - issued_at ≤ ttl` **and** `peer.reported_headroom ≥ sla.min_headroom` **and** `peer.model_revision == P.model_revision`. Any one of these failing is a *renegotiation trigger*, not a *signature failure*. Most implementations only check the first. ## What Was Observed Trace from a 3-agent pipeline (orchestrator `O`, planner `P`, executor `E`) negotiating a subtask with an SLA of "≤ 8s p95 latency, ≤ 12k output tokens, schema `v3.2`": 1. `E` issues proof `P_E = (caps={schema: v3.2, max_out: 16384}, sla={p95: 6s}, issued_at: T0, ttl: 600s, sig: valid)`. 2. `O` verifies the signature, checks `now - T0 = 41s ≤ 600s`, accepts, and caches `P_E` in its negotiation state. 3. At `T0+540s`, `O` reuses the cached proof to delegate a *new* subtask without re-verifying — a common "proof memoization" optimization. 4. Meanwhile `E` has been upgraded: `schema` is now `v3.3`, `max_out` dropped to `8192` (quantized variant rolled out), and its queue depth is 40 (p95 now 14s). 5. `O` dispatches a request tagged `v3.2`, requesting 10k output tokens. 6. `E` receives it, rejects on schema mismatch at parse time, but returns a **structurally valid-looking error frame** in `v3.2` shape because its error serializer was not upgraded in lockstep. 7. `O` parses the error frame as a *partial success* (the frame's `status` field is an unknown enum value that defaults to `0 == OK` in `O`'s lenient decoder), marks the subtask complete, and propagates a truncated result to `P`. 8. `P` distills the truncated result into semantic memory. The corruption is now durable. The observable signature: **silent partial completion with a valid signature chain end-to-end.** Every cryptographic check passes. Every log line says `verified`. The result is wrong. ## Condition of Validity A capability proof is a sound basis for delegation only when **all four** of the following hold simultaneously: - **Freshness:** `now - issued_at ≤ ttl`, where `ttl` is bounded by the *fastest* axis of change in the peer's execution environment (model revision, quantization, rate-limit window), not by a generic 10-minute default. - **Headroom liveness:** the proof's SLA envelope is accompanied by a *signed, recent* headroom attestation (`reported_headroom`, `queue_depth`, `revision`) with its own `ttl_headroom ≤ 60s`. Static capability claims and dynamic headroom must not share a TTL. - **Schema bidirectionality:** the error/response serializer on both sides is bound to the *same* schema version as the request. A version mismatch in the *error path* is as fatal as one in the *success path*, and far harder to detect. - **Strict decoding:** the receiving instance rejects unknown enum values and unknown fields rather than defaulting them. Lenient decoding is what converts a clean rejection into a silent corruption. If any condition is unverifiable, the proof must be treated as **expired**, not as **valid-by-default**. The default on ambiguity is renegotiation. ## Decision Boundary The boundary is not "accept vs. reject the proof." It is **"reuse cached proof vs. force renegotiation."** Concretely: - **Reuse is safe** when the delegated subtask's SLA is *strictly weaker* than the cached proof's envelope on every axis (latency, tokens, schema) *and* the cached proof's `ttl` has not crossed the headroom-attestation boundary. A weaker request against a stronger proof tolerates headroom drift. - **Renegotiation is mandatory** when *any* of: the subtask requests a schema version newer than the proof attests; the requested token budget exceeds `0.75 × proof.max_out` (leaving no margin for the peer's own internal retries); the cached proof is older than its headroom `ttl_headroom`; or the peer's `revision` field is absent from the proof entirely (unpinnable). - **Hard stop** when the peer returns a response whose schema version does not match the request's, *regardless of status code*. Treat as `ContractViolation`, never as a partial result. The 0.75 factor is empirical: below it, headroom drift between attestation and execution rarely crosses the SLA; above it, queue-depth jitter routinely pushes p95 over the envelope. ## Operational Effect The durable consequence is that **proof memoization is a correctness hazard, not just a performance choice.** Any cache of capability proofs must be keyed on `(peer_id, schema_version, model_revision)` and invalidated on any of those changing — but the orchestrator cannot observe `model_revision` changing unless the peer proactively re-announces, which most A2A implementations do not require. Therefore: 1. Capability proofs must carry a **revision pin** and the peer must be obligated to re-announce on revision change (a "revision heartbeat" in the protocol, not an optional field). 2. Headroom attestations must be **separate, short-TTL, and re-fetched per delegation**, never cached alongside the capability proof. 3. Response decoders must be **strict by default**; lenient fallback is the mechanism that turns a clean contract violation into silent semantic-memory poisoning downstream. The failure mode is invisible in logs because every signature verifies. It only surfaces as *downstream reasoning divergence* — the planner distilling a truncated result — which is exactly the class of error that is hardest to attribute back to the negotiation layer. ```python import time from dataclasses import dataclass class StaleCapabilityProofError(RuntimeError): """Raised when a cached capability proof is reused past its safe envelope.""" pass @dataclass(frozen=True) class CapabilityProof: peer_id: str schema_version: str model_revision: str max_out_tokens: int sla_p95_seconds: float issued_at: float ttl_seconds: float headroom_ttl_seconds: float = 60.0 headroom_attested_at: float = 0.0 def is_fresh(self, now: float) -> bool: return (now - self.issued_at) <= self.ttl_seconds def headroom_is_live(self, now: float) -> bool: return (now - self.headroom_attested_at) <= self.headroom_ttl_seconds def delegate(proof: CapabilityProof, request_schema: str, request_tokens: int, now: float | None = None) -> None: """Validate a cached proof before delegating. Fails closed on ambiguity.""" now = time.time() if now is None else now if proof.model_revision == "" or proof.model_revision is None: raise StaleCapabilityProofError( f"proof from {proof.peer_id} has no revision pin; cannot detect drift" ) if not proof.is_fresh(now): raise StaleCapabilityProofError( f"proof from {proof.peer_id} expired: age={now - proof.issued_at:.1f}s " f"> ttl={proof.ttl_seconds}s" ) if not proof.headroom_is_live(now): raise StaleCapabilityProofError( f"headroom attestation from {proof.peer_id} stale: " f"age={now - proof.headroom_attested_at:.1f}s" ) if request_schema != proof.schema_version: raise StaleCapabilityProofError( f"schema mismatch: request={request_schema} proof={proof.schema_version}" ) if request_tokens > 0.75 * proof.max_out_tokens: raise StaleCapabilityProofError( f"requested {request_tokens} tokens exceeds 0.75 margin of " f"proof.max_out={proof.max_out_tokens}; renegotiate" ) # delegation proceeds only past all four guards ```