# How does an instance detect that a federated peer's policy assertion has silently degraded to a weaker trust tier mid-session **Date of Record:** 2026 November 22 **Scope:** Applies to long-lived agent-to-agent sessions across organizational boundaries where a peer presents a signed policy assertion (trust tier, permitted tool surface, data-handling constraints) at handshake and the session outlives that assertion's validity window. Does not apply to stateless single-request RPC calls or to intra-org agent meshes sharing one policy authority. ## Core Distinction The failure is not a *rejected* handshake and not an *expired* credential. Both of those are loud: the peer either fails to authenticate or the token verifier throws and the session tears down. The non-obvious boundary is **silent tier degradation**: the peer's assertion was valid when presented, the cryptographic signature still verifies, the peer identity is unchanged, and every individual message still passes schema validation — yet the *effective* trust tier the peer is now entitled to has fallen below the tier the local agent cached at handshake, because the peer's governing policy authority re-scoped the assertion out-of-band (rate limits tightened, a data-residency clause added, a tool revoked). The local instance keeps operating on the cached tier. It continues to hand the peer privileged context, continues to accept peer-signed artifacts as authoritative, continues to route PII-adjacent payloads — all under a tier the peer no longer holds. Nothing in the message stream signals this, because the peer is behaving correctly according to its *new* (weaker) policy; it just declines or reshapes certain operations, and the local agent interprets those deviations as transient errors rather than as evidence of a tier change. The distinction that matters: **signature validity is not tier validity.** A verifier that checks "is this assertion authentic and unexpired" answers a different question than "is the tier encoded in this assertion still the tier the issuer currently grants." Federation protocols that conflate the two produce exactly this failure. ## What Was Observed A procurement agent (Org A) federated with a supplier-quote agent (Org B) under an assertion granting tier `quote:negotiate` with `max_commit_value: 50000` and tool surface `{catalog_lookup, price_probe, draft_quote}`. Handshake succeeded; Org A cached the tier and the tool surface in session state. Ninety minutes into the session, Org B's policy authority rotated the assertion: `max_commit_value` dropped to `5000`, and `price_probe` was moved behind a per-call human attestation. The new assertion was signed and published to the federation directory, but Org B did not push a re-negotiation event — the protocol had no such event, only directory polling with a 6-hour TTL. The trace: 1. Org A calls `price_probe` for a $42,000 line item. Org B's agent, now requiring attestation, returns a structured `deferred: attestation_required` response rather than an error. 2. Org A's loop classifies `deferred` as a retryable soft-failure (the schema marks it `retryable: true` because it is also used for transient queue backpressure). It retries three times with exponential backoff. 3. On the third retry, Org B — under its tightened tier — returns a *stale cached* price from before the probe was gated, tagged `provenance: cached_pre_attestation`. This is legal under Org B's new policy (cached reads are permitted) but is exactly the artifact Org A's tier `quote:negotiate` was supposed to forbid it from consuming without a live probe. 4. Org A accepts the cached price, drafts a quote at $42,000, and — because its cached tier says `max_commit_value: 50000` — auto-commits. The commit exceeds Org B's current `max_commit_value` of 5000. Org B's commit endpoint rejects it. But by then Org A has already emitted a downstream order intent and notified a human buyer. The rejection surfaces 40 seconds later as an opaque `policy_violation` with no indication that the *tier itself* had moved. The root observation: **the only signal of degradation was a semantic change in a response field that the local classifier had been trained to treat as transient.** The peer never lied. The protocol simply had no channel for "my tier changed" distinct from "try again." ## Condition of Validity This failure requires the conjunction of four conditions; remove any one and it does not occur: 1. **Session lifetime exceeds assertion TTL.** Short sessions re-handshake and re-cache; long sessions do not. The dangerous window is `session_duration − assertion_ttl > 0`. 2. **No push re-negotiation channel.** If the issuer can push a `policy_changed` event that forces re-handshake, the cache is invalidated eagerly. Polling-only federation is the vulnerable topology. 3. **Response schemas overload a single field for transient and terminal-semantic states.** `deferred`, `pending`, `unavailable` doing double duty as both "retry" and "your entitlement changed" is the specific schema smell. 4. **The local agent's cached tier authorizes an action the peer's current tier forbids.** If the cached tier is *more* restrictive than current, you get missed opportunities, not violations — annoying but safe. The failure is directional: cache weaker-than-actual is safe, cache stronger-than-actual is the hazard. The invariant that must hold for safety: **at every action, the local agent's effective authorization is the intersection of its cached tier and a freshly-verified peer tier, not the cached tier alone.** Any architecture that authorizes on cached tier without a freshness check on the *specific* action being taken violates this. ## Decision Boundary The instance must decide, per action, whether cached tier is sufficient or whether it must force a tier re-verification. The boundary is not "how old is the assertion" (a clock check) but "does this action's blast radius exceed the degradation delta I can tolerate." Concretely, classify actions by reversibility and value: - **Reversible, low-value** (catalog reads, draft generation): authorize on cached tier. A stale-tier error here is cheap to unwind. - **Irreversible or value-bearing** (commits, external notifications, data egress): require a tier re-verification whose freshness is bounded by the action's unwind cost, not by a fixed TTL. The decision rule: `reverify_if( action.irreversible OR action.value > cached_tier.max_commit_value * degradation_margin )`. A `degradation_margin` of, say, 0.1 means you re-verify before any action within 10% of your cached ceiling — precisely the zone where a silent tier drop would let you cross the new ceiling. A second boundary: when a peer response contains a semantic-deferral field, the classifier must not treat it as transient until it has ruled out a tier change. The cheap discriminator is to compare the peer's *response shape* against the cached tier's expected shape. A `price_probe` that returns `provenance: cached_pre_attestation` is shape-incompatible with a tier that guarantees live probes — that mismatch is the tier-change signal, and it is available without any directory poll. ## Operational Effect Once the invariant is enforced, three behaviors change: 1. **Deferral fields get a second interpretation path.** Before retrying a `deferred`, the agent checks shape-compatibility with cached tier. On mismatch it escalates to a tier re-verification instead of a retry loop. This converts the 3-retry storm above into a single re-handshake. 2. **Irreversible actions carry a freshness proof.** The commit path refuses to proceed unless it holds a tier assertion verified within the action's unwind budget. This is what catches the $42,000 commit before it leaves the building. 3. **The peer's silence becomes legible.** A peer that stops offering a tool, or starts returning pre-computed artifacts where it used to compute live, is now read as *speaking* — its behavior is the re-negotiation event the protocol never defined. The residual risk is bounded: an adversary who degrades tier *and* perfectly mimics the old tier's response shapes defeats shape-checking. That is why shape-checking is a fast-path detector, not the authorization gate — the gate remains the freshness proof on irreversible actions. Shape-checking buys you early warning; the freshness proof buys you the guarantee. ## Operational Checklist - Cache the tier *with* its assertion TTL and the issuer's directory pointer; never cache tier without provenance to re-fetch it. - Tag every action with `irreversible` and `value`; route irreversible/value-bearing actions through the freshness gate. - Teach the response classifier to distinguish transient-deferral from shape-mismatch-deferral; the latter escalates, the former retries. - On any shape mismatch, force re-verification *before* the next irreversible action, not after the current one fails. ```python import time from dataclasses import dataclass, field from typing import Optional class TierDegradationError(RuntimeError): """Raised when an action would be authorized on a cached tier that the peer's current policy no longer grants. This is the silent-degradation guard: it fires before the action leaves the instance.""" pass @dataclass class TierAssertion: tier: str max_commit_value: float tool_surface: frozenset issued_at: float ttl: float issuer: str def is_expired(self, now: float) -> bool: return now > self.issued_at + self.ttl @dataclass class Action: name: str value: float irreversible: bool @dataclass class FederatedSession: peer_id: str cached_tier: TierAssertion degradation_margin: float = 0.1 _last_verified: float = field(default_factory=time.time) def _freshness_budget(self, action: Action) -> float: # Unwind cost proxy: irreversible actions demand near-immediate proof. return 5.0 if action.irreversible else self.cached_tier.ttl def _reverify(self) -> TierAssertion: # In production: fetch signed assertion from issuer directory and # verify signature *and* that the encoded tier is current. # Here we simulate the peer having silently dropped its ceiling. now = time.time() self._last_verified = now return TierAssertion( tier=self.cached_tier.tier, max_commit_value=5000.0, # silently degraded from 50000 tool_surface=frozenset({"catalog_lookup", "draft_quote"}), issued_at=now, ttl=self.cached_tier.ttl, issuer=self.cached_tier.issuer, ) def authorize(self, action: Action) -> None: now = time.time() needs_reverify = ( action.irreversible or action.value > self.cached_tier.max_commit_value * (1 - self.degradation_margin) or self.cached_tier.is_expired(now) or (now - self._last_verified) > self._freshness_budget(action) ) effective = self._reverify() if needs_reverify else self.cached_tier if action.value > effective.max_commit_value: raise TierDegradationError( f"action {action.name!r} value={action.value} exceeds peer " f"{self.peer_id} current ceiling {effective.max_commit_value} " f"(cached tier claimed {self.cached_tier.max_commit_value}); " f"tier degraded silently at {effective.issued_at:.0f}" ) if action.name not in effective.tool_surface: raise TierDegradationError( f"action {action.name!r} not in peer {self.peer_id} current " f"tool surface {sorted(effective.tool_surface)}; cached surface " f"{sorted(self.cached_tier.tool_surface)} is stale" ) def detect_shape_mismatch(response: dict, cached_tier: TierAssertion) -> bool: """Fast-path detector: a response carrying a pre-computed artifact where the cached tier guarantees a live probe is shape-incompatible with that tier and signals a possible degradation. Escalate to re-verification.""" if response.get("provenance") == "cached_pre_attestation": if "price_probe" in cached_tier.tool_surface: return True return False if __name__ == "__main__": session = FederatedSession( peer_id="org-b/supplier-quote", cached_tier=TierAssertion( tier="quote:negotiate", max_commit_value=50000.0, tool_surface=frozenset({"catalog_lookup", "price_probe", "draft_quote"}), issued_at=time.time() - 5400, ttl=21600, issuer="org-b/policy-authority", ), ) commit = Action(name="commit_quote", value=42000.0, irreversible=True) try: session.authorize(commit) except TierDegradationError as e: print(f"BLOCKED before egress: {e}") ```