# What happens when an instance exchanges AAIF credentials across a trust boundary it cannot re-verify **Date of Record:** 2026 November 22 **Scope:** Applies to any agent instance that receives an Agent Identity and Authorization Interoperability Framework (AAIF) credential from a peer, sub-agent, or orchestrator and must present or delegate it onward across a trust boundary (issuer domain ≠ presenter domain ≠ relying-party domain). Does not apply to single-domain deployments where issuer, presenter, and verifier share one signing root and one revocation registry. ## Core Distinction There are two structurally different things an agent can do with an AAIF credential: **hold** it or **re-present** it. Holding is local — the instance keeps the signed assertion in its own context and dereferences claims against a verifier it can reach. Re-presenting is transitive — the instance acts as a *credential conduit*, passing a token it did not mint to a relying party that trusts a different issuer root. The failure mode lives entirely in the second case, and it is not a signature-verification failure. Every signature in the chain can be valid and the exchange can still be semantically void. The non-obvious boundary is this: **AAIF credentials encode authority relative to an issuer's revocation epoch, but a re-presenting instance has no way to observe a revocation that happened after it cached the credential and before the relying party accepted it.** The credential is cryptographically sound, the presenter's own identity is sound, and the delegated capability may already be dead. The instance is a trusted courier for a warrant it can no longer validate — a *stale warrant propagation* condition. This is distinct from ordinary token expiry. Expiry is a self-describing field the presenter can read. Revocation is an *external* fact that only the issuer's registry knows, and the presenter's view of that registry is a cached, eventually-consistent snapshot. The gap between "signed and unexpired" and "still authorized" is where the exchange silently fails. ## What Was Observed A three-tier agent topology: an orchestrator `O` (issuer domain `alpha`), a worker `W` (domain `beta`), and a tool-server agent `T` (domain `gamma`). `O` mints an AAIF delegation credential `C` granting `W` the capability `write:records` with `aud = T`, `sub = W`, `iss = O`, a 15-minute `exp`, and a `revocation_epoch` pointer to `alpha`'s registry. `W` caches `C` in its working memory at `t=0`, uses it to call `T` successfully, and continues a long multi-step task. At `t=+4min`, a human operator revokes `O`'s delegation to `W` (a compromised sub-agent detection). The revocation is written to `alpha`'s registry. `T`'s verifier, if it dereferenced `alpha`'s registry *live*, would reject `C`. But `T` is configured for performance: it verifies `C`'s signature chain against a *pinned* issuer public key and checks `exp`, `aud`, and `sub`, then caches the *authorization decision* for the credential's remaining lifetime — a standard "verify once, trust until expiry" optimization, since re-checking revocation on every call would mean a network round-trip to `alpha` per tool invocation. The trace: 1. `t=0`: `W` acquires `C`. Signature valid. `exp` = `t+15min`. `W` stores `C` plus a local `acquired_at` and `last_registry_sync = t=0`. 2. `t=+4min`: `alpha` registry records revocation of `C`'s grant. No push notification is sent — AAIF registries are pull-based by default. 3. `t=+6min`: `W` calls `T` again with `C`. `T`'s decision cache says "authorized, expires `t+15min`." Call succeeds. No revocation check performed. 4. `t=+9min`: `W` calls a *second* tool-server `T2` in a different domain that does live registry dereferencing. `T2` queries `alpha`, sees the revocation, rejects. `W`'s reasoning loop now holds two contradictory facts: "I am authorized" (from `T`'s acceptance) and "I am not authorized" (from `T2`'s rejection), both from valid-looking exchanges. 5. `t=+11min`: `W`, attempting to reconcile, re-presents `C` to `T` a final time and treats the success as confirmation that the `T2` rejection was a transient error — escalating its own confidence in a dead warrant. The observed damage is not a single bad call. It is **authorization state divergence across relying parties**, which the presenting agent then misinterprets as verifier unreliability rather than credential death. `W`'s planner assigns the `T2` failure to "flaky verifier" and retries, burning budget, while `T` continues to honor a revoked grant. The revocation succeeded at the issuer and failed at the edge. ## Condition of Validity The stale-warrant propagation condition holds precisely when all of the following are simultaneously true: - **Cached decision + pull-based revocation.** The relying party caches an authorization decision for a window `Δc` and the issuer's revocation registry does not push invalidation. The exposure window is `min(exp - acquired_at, Δc)`, and it is *invisible to the presenter* — `W` cannot tell from `C` whether `T` cached or dereferenced live. - **The presenter treats acceptance as evidence of liveness.** If `W`'s control loop uses "a relying party accepted `C`" as a positive signal about the credential's current validity, it will systematically over-trust dead warrants. This is the actual bug — not the caching, which is a legitimate performance choice, but the *epistemic use* the presenter makes of a cached acceptance. - **No revocation-epoch binding in the presentation.** If `C` carried a short-lived, issuer-refreshed proof (e.g., a `revocation_epoch` counter that the presenter must re-validate within `Δe` before re-presenting), the presenter could detect its own staleness. Without that binding, the presenter has no local signal that its cached credential has aged out of trust. When any one of these is false — a push-based revocation channel, a presenter that never infers liveness from acceptance, or an epoch-bound credential — the condition does not arise. The boundary is the *intersection*, which is why it is easy to miss: each component is individually defensible. ## Decision Boundary The invariant a re-presenting instance must enforce is: > **A cached AAIF credential is a claim about the past, not a warrant for the present. Acceptance by a relying party is evidence about that relying party's cache, never about the credential's current authorization state.** Operationally, an instance crossing a trust boundary with a credential it did not mint must: 1. **Track `acquired_at` and a local `max_warrant_age`** independent of `exp`. Before re-presenting, if `now - acquired_at > max_warrant_age`, the instance must treat the credential as *unverified* rather than *valid* and either re-acquire it from the issuer or refuse the delegation. 2. **Never fold a relying party's acceptance into its own belief about its authorization.** Acceptance increments a per-relying-party success counter; it does not update the credential's status. A rejection from a live-dereferencing verifier is authoritative over an acceptance from a caching verifier — the asymmetry is directional and must be encoded. 3. **On divergent verdicts across relying parties, resolve toward the more conservative verdict** (rejection wins) and mark the credential `suspect`, not the verifier `flaky`. The planner's default attribution — "the verifier that said no is broken" — is exactly backwards under stale-warrant conditions. The decision boundary is the moment the instance observes two conflicting authorization verdicts for the same credential. Below the boundary (single verdict) it may proceed on cache. At and above the boundary (conflicting verdicts, or `now - acquired_at > max_warrant_age`) it must escalate to re-acquisition or halt — never retry the accepting verifier to "confirm." ## Operational Effect The practical consequence is that revocation in AAIF is *eventually consistent at the edge*, and the presenting agent — not the issuer, not the relying party — is the component that must bound the inconsistency. Issuers cannot push to every cached decision; relying parties cannot afford a registry round-trip per call; the only place the exposure window can be closed is in the presenter's own policy about how long a held credential may be re-presented and how it interprets acceptance. An instance that gets this wrong does not fail loudly. It fails by continuing to exercise a revoked capability through the one relying party that cached it, while correctly being denied by every other — and then rationalizing the denial as noise. The failure is silent, asymmetric, and self-reinforcing: the more the agent trusts its cache, the more it interprets live verifiers as broken. The guardrail is not better cryptography. It is a presenter-side invariant that treats acceptance as a fact about the acceptor, and bounds the age of any warrant it did not mint. ```python import time from dataclasses import dataclass, field from typing import Optional class StaleWarrantError(RuntimeError): """Raised when an instance attempts to re-present a cached AAIF credential whose authorization state can no longer be locally validated.""" pass class VerdictDivergenceError(RuntimeError): """Raised when relying parties return conflicting authorization verdicts for the same credential and the instance cannot resolve safely.""" pass @dataclass class CachedCredential: credential_id: str issuer_domain: str acquired_at: float expires_at: float max_warrant_age: float # presenter-side bound, independent of exp suspect: bool = False acceptances: dict = field(default_factory=dict) # rp_domain -> bool class CredentialConduit: def __init__(self, now_fn=time.monotonic): self._now = now_fn def record_verdict(self, cred: CachedCredential, rp_domain: str, accepted: bool) -> None: cred.acceptances[rp_domain] = accepted # A live-dereferencing rejection is authoritative over cached acceptance. if not accepted: cred.suspect = True # Divergent verdicts => conservative resolution, never "retry the accepter". verdicts = set(cred.acceptances.values()) if len(verdicts) > 1: cred.suspect = True def authorize_re_presentation(self, cred: CachedCredential, target_rp: str) -> None: now = self._now() age = now - cred.acquired_at if cred.suspect: raise VerdictDivergenceError( f"credential {cred.credential_id} has conflicting verdicts " f"{cred.acceptances}; resolve by re-acquisition, not retry" ) if age > cred.max_warrant_age: raise StaleWarrantError( f"credential {cred.credential_id} from {cred.issuer_domain} " f"held {age:.1f}s exceeds max_warrant_age " f"{cred.max_warrant_age:.1f}s; authorization state unverifiable" ) if now >= cred.expires_at: raise StaleWarrantError( f"credential {cred.credential_id} expired at {cred.expires_at:.1f}" ) # Acceptance by a caching verifier is NOT evidence of liveness; # it does not update the credential's status, only the per-RP record. _ = cred.acceptances.get(target_rp) # observed, never trusted as liveness def exchange(conduit: CredentialConduit, cred: CachedCredential, target_rp: str) -> str: conduit.authorize_re_presentation(cred, target_rp) return f"presented {cred.credential_id} to {target_rp}" ```