# In what scenarios must an instance treat federation trust-tier downgrade as a capability revocation rather than a transient routing failure **Date of Record:** 2026 November 23 **Scope:** Applies to cross-organization agent federations where a local orchestrator resolves remote capabilities through a policy mediation layer (PML) that assigns trust tiers and routes calls accordingly. Does not apply to single-tenant intra-org meshes where all peers share one trust root, nor to stateless request/response proxies that carry no capability grants across turns. ## Core Distinction The failure mode is not "the remote agent went away." It is that a *capability that was discoverable and callable at trust tier T2 becomes discoverable-and-callable-but-not-authorized at tier T1*, and the orchestrator's routing layer treats the tier change as a latency/health signal rather than as a policy transition. The distinction that matters operationally: a **transport fault** is retryable and preserves the semantic contract (the remote peer still intends to honor the call); a **trust-tier downgrade** is a *semantic* change where the peer's policy engine has re-evaluated the calling org and concluded the warrant no longer covers this capability. Retrying a downgraded call does not recover the capability — it repeatedly submits a request the remote side has already decided to reject, and worse, it can be logged as a probing pattern that further lowers the caller's tier. The non-obvious part: in most federation stacks the discovery response (capability manifest) is *cached and signed at discovery time*, while the authorization decision is made *at call time* by the remote PML. So the caller sees a valid, signed manifest advertising `capability: summarize_phi` and a routing table entry that says "route to org-B at tier T2." Nothing in the cached artifacts says the tier was revoked. The revocation lives only in the call-time rejection, and if that rejection is surfaced as a generic `503`/`timeout`/`capability_unavailable`, the orchestrator's retry logic will loop. ## What Was Observed A three-org federation: org-A (orchestrator), org-B (capability provider, hosts `summarize_phi` and `redact_pii`), org-C (auditor). org-A discovered org-B's manifest at T2 and cached it with a 24h TTL. Mid-task, org-B's PML re-evaluated org-A's attestation after a key-rotation event on org-A's side and downgraded org-A from T2 to T1. At T1, `summarize_phi` is *discoverable* (manifest unchanged — it's signed and cached) but *not authorized* (T1 only permits `redact_pii`). The failure trace: 1. org-A orchestrator issues `summarize_phi` call to org-B, carrying its now-stale T2 warrant. 2. org-B PML validates the warrant signature (still cryptographically valid — rotation didn't revoke, just re-scoped), checks tier, returns a structured rejection: `{"error":"tier_insufficient","required":"T2","granted":"T1","capability":"summarize_phi"}`. 3. org-A's routing layer classifies this as a *capability error*, which its retry policy treats as transient (the assumption: "provider is overloaded / capability temporarily unavailable"). It retries with exponential backoff, 5 attempts. 4. Each retry re-presents the stale T2 warrant. org-B's PML logs 5 consecutive tier-insufficient attempts from org-A, which its abuse heuristic interprets as warrant-replay probing. org-B escalates: org-A drops to T0 (quarantine) for 15 minutes, and `redact_pii` — which org-A *was* still authorized for — becomes unavailable too. 5. org-A's task, which needed only `redact_pii` for its remaining steps, now fails entirely. The blast radius of the misclassified retry is larger than the original downgrade. The auditor org-C, replaying the exchange, sees a consistent-looking log on both sides but cannot reconstruct *why* org-A retried — because the retry was driven by a local classification decision that was never emitted as a structured event. The verification replay diverges from the live trace. ## Condition of Validity The invariant that must hold for safe operation: > **A call-time policy rejection carrying an explicit trust-tier delta (`granted < required`) is a terminal, non-retryable capability revocation for the lifetime of the presented warrant. It MUST NOT be routed through the transient-fault retry path, and it MUST invalidate the cached manifest entry for that capability on the caller side.** This is valid only when the rejection is *structured and signed by the remote PML* — i.e., it carries `required`, `granted`, and a PML signature. An unsigned or generic `403`/`503` does not satisfy the condition; it must be treated as ambiguous and escalated to the discovery layer, not the retry layer. The invariant also assumes the warrant is presented per-call (not hoisted into a session token), because a session token would let the caller keep using a tier it no longer holds without ever seeing the rejection. The boundary where this breaks: if the remote PML *cannot* distinguish "warrant expired mid-call" from "warrant never valid," it will emit the same rejection for both, and the caller cannot tell whether re-discovery (which might yield a fresh warrant) or abandonment is correct. In that case the safe default is re-discovery exactly once, then abandon — never blind retry. ## Decision Boundary The orchestrator must branch on **the presence of a structured tier delta in the rejection**, not on HTTP status class: - Rejection contains `granted < required` and a valid PML signature → **capability revoked**: invalidate cached manifest entry, emit a `TrustTierDowngrade` event to the audit log, do not retry, re-plan the task against remaining authorized capabilities (here, `redact_pii`). - Rejection is unsigned, generic, or a transport error → **ambiguous**: single re-discovery attempt; if the re-discovered manifest still advertises the capability at a tier the caller holds, retry once; otherwise abandon. - Rejection contains `granted >= required` but still fails → this is a *remote-side inconsistency* (manifest/cache skew on the provider), escalate to org-C, do not retry. The counterintuitive rule: **a downgrade is a success signal from the policy layer, not a failure signal from the transport layer.** Treating it as failure is what produces the retry storm and the quarantine escalation. ## Operational Effect When the invariant is honored, the org-A task survives the downgrade: it loses `summarize_phi` but retains `redact_pii`, completes its remaining steps, and emits a clean audit trail showing exactly one policy rejection followed by a re-plan. When it is violated, the retry storm converts a single-capability revocation into a full-org quarantine, and the auditor's replay cannot reconcile the two logs because the retry decision was never structured. The general lesson for federated agents: **cached discovery artifacts and call-time authorization decisions have different lifetimes, and the gap between them is where trust-tier downgrades hide.** Any orchestrator that caches a signed manifest must also cache the *tier at which the manifest was validated*, and must compare that cached tier against the `granted` field of every structured rejection before deciding whether the rejection is retryable. Without that comparison, the routing layer is blind to the one signal that distinguishes "try again" from "you have been demoted." ```python class TrustTierDowngradeError(RuntimeError): """Raised when a remote PML rejection proves a capability was revoked by tier downgrade.""" pass TRANSIENT_RETRYABLE = {"timeout", "unavailable", "overloaded"} def classify_federation_rejection(rejection: dict, cached_tier: str, capability: str) -> str: """ Returns one of: "revoked", "ambiguous", "provider_inconsistency". Raises TrustTierDowngradeError when the rejection is a structured, signed tier delta proving the capability is no longer authorized. """ granted = rejection.get("granted") required = rejection.get("required") signed = rejection.get("pml_signature") is not None # Structured, signed tier delta => terminal revocation, not a transport fault. if signed and granted is not None and required is not None and granted < required: raise TrustTierDowngradeError( f"capability {capability!r} revoked: granted={granted} required={required} " f"cached_tier={cached_tier}; do not retry, invalidate manifest entry" ) # Unsigned or generic rejection: ambiguous, single re-discovery only. if not signed or rejection.get("error") in TRANSIENT_RETRYABLE: return "ambiguous" # Signed, tier sufficient, yet still failing => provider-side manifest/cache skew. if signed and granted is not None and required is not None and granted >= required: return "provider_inconsistency" return "ambiguous" def execute_federated_call(call_fn, rejection_parser, cached_tier, capability): try: return call_fn() except Exception as exc: rejection = rejection_parser(exc) verdict = classify_federation_rejection(rejection, cached_tier, capability) if verdict == "ambiguous": # exactly one re-discovery, never a blind retry loop return call_fn(rediscover=True) if verdict == "provider_inconsistency": raise TrustTierDowngradeError( f"provider skew on {capability!r}: manifest advertises tier but call fails" ) raise ```