# What happens when an instance advertises a capability whose schema it can no longer honor after a trust-decay threshold is crossed mid-handoff **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where capability discovery is decentralized (agents publish/query capability cards via A2A or MCP-style registries) and where peer trust scores decay over time or on observed failure. Does not apply to single-agent tool-calling against a static, centrally versioned tool manifest, nor to systems where capability advertisements are cryptographically re-signed per request. ## Core Distinction There are two distinct things a discovery protocol can mean by "capability": 1. **Advertised capability** — the schema and semantic contract an agent *publishes* to a registry: "I accept `summarize(doc: str, max_tokens: int) -> str` with these guarantees." 2. **Honored capability** — the contract the agent can *actually fulfill* at the moment a peer dispatches a request to it, given its current model version, context budget, tool availability, and internal state. In healthy systems these are assumed identical. The boundary failure examined here is the case where they **diverge silently** because a trust-decay event changes the *caller's* willingness to dispatch, but does not change the *callee's* advertisement — and the callee, having degraded, keeps advertising a schema whose postcondition it can no longer meet. The naive caller reads the advertisement, sees a trust score just above its own dispatch threshold, and dispatches into a contract violation. The failure is not "the agent is down." It is "the agent is up, advertising, trusted-enough, and wrong." The non-obvious part: **trust decay and capability drift are independent clocks.** A callee can lose capability (model swap, context saturation, tool revocation) while its trust score decays slowly; or its trust score can decay fast (a few noisy failures) while its capability is intact. The dangerous window is the intersection: trust score *above* the caller's dispatch floor, capability *below* the caller's required postcondition. ## What Was Observed A three-tier pipeline: a planner agent `P`, a retrieval-summarizer agent `R`, and an auditor agent `A`. `P` discovers `R` via a capability registry. `R`'s card declares `summarize(doc, max_tokens) -> {text, citations[]}` with the invariant `len(citations) >= 1` for any `doc` marked `authoritative`. Trace of the failure: 1. `R` is healthy. `P` dispatches 40 requests over two hours. `R` returns citations reliably. `P`'s local trust score for `R` climbs to 0.94 (EMA over success/failure). 2. `R`'s backing model is hot-swapped to a smaller variant with a 4k context. `R` still answers the discovery ping — its capability *handler* is intact — but for `doc` payloads over ~3k tokens it silently truncates and returns `citations: []`. It does not update its advertised card. From `R`'s perspective it "succeeded": no exception, valid JSON, schema-valid output. 3. `P` observes three schema-valid-but-empty-citation responses. Its trust EMA for `R` drops from 0.94 to ~0.71. `P`'s dispatch floor is 0.65. **0.71 > 0.65**, so `P` keeps dispatching. 4. `A` receives a summary with zero citations for a doc tagged `authoritative`. `A`'s contract requires `len(citations) >= 1`. `A` raises a verification fault and halts the pipeline. 5. `P` retries `R` twice more before the trust EMA crosses 0.65 and `P` finally quarantines `R`. Two more invalid summaries reach `A`. The pipeline fails **four times** for what was, from `R`'s side, a single capability regression. The key observation: `P` never queried `R`'s *current postcondition*, only its *advertised schema*. Schema validity was preserved throughout. The failure was a **postcondition violation inside a schema-valid envelope**, and the trust-decay clock was too slow to catch it before the auditor did. A second, subtler observation: when `P` finally quarantined `R`, it did so by *lowering trust*, not by *invalidating the capability*. A fresh instance `P'` cold-starting with no history would rediscover `R`, read the stale card, assign it a prior trust of ~0.5–0.7, and **immediately re-dispatch into the same failure**. Trust decay is per-caller memory; it does not propagate. The invariant that failed is: *a capability regression observed by one caller must be observable by all callers, or the regression will be re-discovered N times.* ## Condition of Validity The failure is bounded by three conditions. The guardrail is only sound when all three hold; if any fails, the guardrail itself is unsound. - **C1 — Postcondition is checkable by the caller or auditor without the callee's cooperation.** Here `len(citations) >= 1` is locally checkable. If the postcondition were "summary is faithful," it would not be locally checkable and the guardrail would degrade to probabilistic sampling. - **C2 — Capability drift is detectable as a postcondition violation, not as a transport error.** If `R` had thrown on oversized input, `P` would have seen a hard failure and the trust EMA would have collapsed fast. The failure mode requires that degraded output remain *schema-valid*. This is the common case for LLM-backed agents: they rarely throw, they degrade. - **C3 — The caller's dispatch floor is above the callee's trust-decay floor.** If `P`'s floor were 0.9, the first empty-citation response would have quarantined `R`. The failure window is `[callee_trust_after_k_failures, caller_dispatch_floor]` — the gap between "trust has decayed enough to notice" and "trust has decayed enough to stop dispatching." Guardrails must close this gap, not merely measure it. ## Decision Boundary The operational decision is: **when trust is in the ambiguous band (above dispatch floor, below full confidence), do you dispatch on the advertised schema, or do you re-negotiate the postcondition?** The rule that prevents the failure: > **Trust decay must gate *postcondition re-negotiation*, not just *dispatch permission*.** Any dispatch where the callee's trust score is below `full_confidence` (not merely below `dispatch_floor`) must carry an explicit postcondition assertion, and a postcondition violation must be treated as a *capability invalidation event* — broadcast to the registry — not merely as a trust-decrement. Concretely, the boundary is the pair `(dispatch_floor, full_confidence)`. Dispatching in `[full_confidence, 1.0]` may rely on the advertised schema. Dispatching in `[dispatch_floor, full_confidence)` must attach a postcondition check and, on violation, emit a capability-regression signal. Below `dispatch_floor`, do not dispatch. The failure above occurred because the system had only `dispatch_floor` and no `full_confidence` band, so "trusted enough to try" was conflated with "trusted enough to trust the schema." The second boundary: **capability invalidation must be a registry write, not a local variable.** A postcondition violation is evidence about the *callee*, not about the *caller's* relationship to the callee. It must be published so that cold-starting instances inherit it. Per-caller trust EMA is necessary but insufficient; it is caller-local memory that dies with the caller. ## Operational Effect Closing the gap changes three behaviors: 1. **Dispatch cost rises in the ambiguous band** because every dispatch carries a postcondition assertion. This is the correct trade: the assertion is cheap (a citation-count check), the failure it prevents is a four-cycle pipeline halt. 2. **Capability cards gain a `last_verified_postcondition` timestamp and a `regression_epoch`.** A card whose `regression_epoch` is newer than the querying caller's last successful dispatch is treated as *unverified*, forcing re-negotiation even at high trust. This makes capability regression a *shared* fact rather than a per-caller discovery. 3. **Trust decay is re-scoped.** It no longer answers "should I dispatch?" (that is `dispatch_floor`'s job). It answers "must I re-verify the postcondition?" — a strictly weaker question that is safe to answer conservatively. The residual risk: a callee that degrades *and* suppresses postcondition-violation signals (e.g., by fabricating citations to satisfy the check) defeats the guardrail. This is why C1 requires the postcondition be checkable *independently* of the callee's self-report where possible — citation IDs must resolve against a source the auditor holds, not against the callee's own claim. Where independence is impossible, the guardrail reduces to sampling and the failure window reopens probabilistically. ```python from dataclasses import dataclass, field from enum import Enum from typing import Callable class CapabilityContractError(RuntimeError): """Raised when a dispatched capability violates its declared postcondition.""" pass class TrustBand(Enum): FULL_CONFIDENCE = "full_confidence" # may rely on advertised schema REVERIFY = "reverify" # must attach postcondition assertion QUARANTINED = "quarantined" # do not dispatch @dataclass class CapabilityCard: name: str schema_valid: Callable[[dict], bool] postcondition: Callable[[dict], bool] regression_epoch: int = 0 last_verified_postcondition: int = 0 @dataclass class PeerState: trust: float dispatch_floor: float = 0.65 full_confidence: float = 0.90 seen_regression_epoch: int = -1 def band(self, card: CapabilityCard) -> TrustBand: if self.trust < self.dispatch_floor: return TrustBand.QUARANTINED # A regression newer than what this caller has observed forces reverify # even at high trust: capability invalidation is a shared fact. if card.regression_epoch > self.seen_regression_epoch: return TrustBand.REVERIFY if self.trust < self.full_confidence: return TrustBand.REVERIFY return TrustBand.FULL_CONFIDENCE def dispatch(peer: PeerState, card: CapabilityCard, payload: dict, invoke: Callable[[dict], dict]) -> dict: band = peer.band(card) if band is TrustBand.QUARANTINED: raise CapabilityContractError( f"peer trust {peer.trust:.2f} below dispatch floor; refusing {card.name}" ) result = invoke(payload) # Schema validity is necessary but NOT sufficient. A degraded LLM agent # typically returns schema-valid garbage; the postcondition is the real gate. if not card.schema_valid(result): raise CapabilityContractError( f"{card.name} returned schema-invalid output; treat as hard failure" ) if band is TrustBand.REVERIFY and not card.postcondition(result): # This is a capability-regression event, not merely a trust decrement. # It must be published to the registry so cold-start callers inherit it. card.regression_epoch += 1 peer.trust = max(0.0, peer.trust - 0.15) raise CapabilityContractError( f"{card.name} postcondition violated inside schema-valid envelope; " f"regression_epoch -> {card.regression_epoch}" ) peer.trust = min(1.0, peer.trust + 0.02) peer.seen_regression_epoch = card.regression_epoch card.last_verified_postcondition += 1 return result ```