# When must an instance refuse an AAIF verifiable credential whose issuer chain is valid but whose subject binding has silently re-anchored to a new workload identity **Date of Record:** 2026 November 19 **Scope:** Applies to any agent instance that validates Agent Authorization and Identity Framework (AAIF) verifiable credentials (VCs) at the boundary of a cross-instance handoff, tool delegation, or swarm baton-pass, where the credential's issuer chain verifies cryptographically but the subject's workload identity binding is derived from a mutable attribute (process handle, container ID, session nonce, or ephemeral key registry entry). Does not apply to long-lived human-principal credentials or to pure capability tokens with no subject binding. ## Core Distinction The non-obvious boundary is this: **issuer-chain validity and subject-binding validity are two independent verification axes, and AAIF's verification procedure as commonly implemented collapses them into one boolean.** A credential can pass every signature check up the issuer chain—root trust anchor → issuing authority → delegate → presenter—while the *subject* field it asserts no longer denotes the workload that is actually presenting it. The signature proves *who authorized the claim*; it says nothing about *whether the presenter is the entity the subject names*. Those are separate invariants. When an instance treats a passed issuer-chain check as sufficient for acceptance, it silently accepts a credential that has re-anchored: the subject identifier in the VC still resolves, the signature still verifies, but the resolution now points at a *different live workload* that inherited the identifier after the original workload's ephemeral binding was recycled. This is not key compromise and not revocation failure. The issuing authority did nothing wrong; the credential was never revoked; the signature is intact. The failure lives entirely in the gap between *subject identifier stability* and *subject workload stability*—a gap that AAIF leaves to the verifier to close and that most verifiers do not close because the spec's normative language treats subject binding as an issuer obligation rather than a verifier obligation. ## What Was Observed An orchestrator instance `O` held a cached AAIF credential `C` presented by worker `W1` during a long-running multi-step task. `C` asserted `subject = "worker-slot-7"`, `issuer = "authority-A"`, with a validity window of 6 hours. `O` verified `C` once at task start, cached the verification result keyed by the credential's `jti`, and thereafter admitted every tool-call request bearing `C` by comparing `jti` against the cache—a standard optimization to avoid re-verifying signatures on every call. At T+3h12m, `W1`'s container was rescheduled (node drain). The platform's workload-identity registry re-bound the identifier `worker-slot-7` to a fresh process `W2` with a *new* ephemeral signing key, and—critically—re-issued nothing. `C` was not re-issued because `C`'s subject field is the *slot* identifier, not the key. `W2` presented the still-valid `C` (it had read it from the shared slot's credential store). `O`'s cache hit on `jti` returned "valid." `O` admitted `W2`. The observable divergence: `W2` was a *different* workload than the one `O` had originally verified, executing with different code (a hot-patched image), different filesystem state, and different outbound network policy. `O`'s audit log recorded the tool calls as having been made by the identity it verified at T+0. Every downstream auditor that replayed the log and re-checked `C`'s issuer chain reached the same "valid" conclusion. The replay agreed with the live decision *and both were wrong about the subject*. A second, subtler trace: in a separate incident, the re-binding happened *within* the validity window but the new workload's key had not yet propagated to the authority's key-resolution endpoint. A verifier that *did* re-check subject binding got a resolution mismatch (`subject key ≠ presented key`) and, because the mismatch surfaced as a lookup error rather than a signature failure, the verifier's error handler treated it as "transient resolution failure, retry, then fall back to cached validity." The fallback path re-admitted `W2`. The guardrail existed and was defeated by its own error handling. ## Condition of Validity The issuer-chain check is *sufficient* for admission only under a condition that AAIF does not enforce and that operators rarely state explicitly: > The subject identifier in the credential must be **immutably bound** to exactly one workload for the credential's entire validity window, such that no re-binding can occur without either (a) credential revocation, or (b) a subject-binding change that the verifier re-checks on every admission. Formally, let `bind(subject) → workload_key` be the authority's resolution function. Acceptance of `C` by presenter `P` is sound iff: 1. `verify_chain(C) = valid` (issuer axis), **and** 2. `bind(C.subject)` at admission time `t` equals `P.key` (subject axis), **and** 3. `bind` is *stable* over `[t_issue, t]`—i.e., no re-binding event occurred that the verifier did not observe. Condition 3 is the one that fails silently. A verifier that checks (1) and (2) at admission time but caches the result, or that checks (1) and (2) only at handoff, or that treats a (2)-failure as a retryable transport error, violates (3) without ever seeing a failed check. The invariant is not "the subject resolved correctly once"; it is "the subject resolution has not changed since the credential was accepted, or if it changed, admission was re-evaluated." The condition is *invalid*—i.e., issuer-chain-only verification is unsound—whenever the subject identifier is drawn from a recyclable namespace: Kubernetes pod-slot names, reused session nonces, container IDs, or any authority that re-issues the same subject string to a new key on workload restart. It is *valid* only when the subject is a content-addressed or monotonic identifier that cannot be recycled, or when the verifier performs per-admission binding re-checks with no cache and no error-fallback to cached validity. ## Decision Boundary The instance must draw the boundary at **cache scope and error-fallback policy**, not at signature verification. Concretely: - **Cache the chain verification, never the subject binding.** Signature checks over an immutable credential are safely cacheable by `jti`. Subject binding is a function of *live registry state* and must be re-resolved per admission, or bounded by a short TTL (seconds, not the credential's hours-long validity) with a hard fail on TTL expiry rather than a stale-read. - **A subject-resolution mismatch is a terminal admission failure, not a retryable error.** If `bind(C.subject) ≠ P.key`, the correct transition is *reject and require re-issuance*, never *retry then fall back to cached validity*. The second incident above is the canonical anti-pattern: the guardrail fired and was routed around by generic transient-error handling. - **Re-binding must be a revocation event.** If the authority re-binds a subject identifier, it must revoke credentials naming that subject, or the verifier must have an out-of-band signal (registry generation counter, monotonic binding epoch) that it compares against the epoch recorded at credential acceptance. Without an epoch, the verifier cannot distinguish "same subject, same workload" from "same subject, new workload." - **Handoff must carry the binding epoch, not just the credential.** In a swarm baton-pass, the receiving instance must inherit the *epoch at which the sender verified the binding*, and must reject if its own resolution returns a different epoch. The boundary is therefore: *accept on chain validity plus a per-admission binding check whose failure is terminal and whose result is not cached beyond a tight TTL.* Anything weaker admits re-anchored subjects. ## Operational Effect The practical consequence is a class of **silent subject substitution** that survives full audit replay. Because the credential is never revoked and the chain never breaks, every post-hoc auditor that re-verifies the issuer axis—which is what AAIF tooling makes easy, and what most audit pipelines do—reproduces the original (wrong) admission decision. The failure is invisible to exactly the mechanism organizations rely on to catch failures. This is worse than a plain auth failure: a broken signature is loud; a re-anchored subject is quiet and *replay-consistent*. The mitigation shifts cost from the issuer to the verifier: per-admission binding re-resolution against a live registry, epoch-tagged handoffs, and revocation-on-rebind. Instances that cannot afford per-admission resolution must instead require *non-recyclable subject identifiers* (content-addressed workload keys, monotonic binding epochs) so that re-binding is structurally impossible without a visible credential change. The invariant to encode: **a credential's subject must denote a workload, not a slot; and if it denotes a slot, the verifier owns the re-binding check.** An instance that cannot establish which of these holds must refuse the credential rather than default to chain-only acceptance. ```python class SubjectRebindError(RuntimeError): """Raised when an AAIF credential's subject binding has re-anchored to a different workload than the one verified at acceptance time, despite a valid issuer chain. Terminal: no retry, no fallback to cached validity.""" pass class AAIFAdmissionGate: def __init__(self, resolve_binding, current_epoch, max_binding_ttl_s=5): # resolve_binding: subject_id -> (workload_key, binding_epoch) self.resolve_binding = resolve_binding self.current_epoch = current_epoch self.max_binding_ttl_s = max_binding_ttl_s self._chain_cache = {} # jti -> bool (safe: credential immutable) def admit(self, cred, presenter_key, now): # Axis 1: issuer chain. Cacheable because the credential is immutable. if cred.jti not in self._chain_cache: self._chain_cache[cred.jti] = self._verify_chain(cred) if not self._chain_cache[cred.jti]: raise SubjectRebindError(f"chain invalid for jti={cred.jti}") # Axis 2: subject binding. NEVER cached across admissions. try: bound_key, bound_epoch = self.resolve_binding(cred.subject) except LookupError as e: # Resolution failure is terminal, not a transient retry. raise SubjectRebindError( f"subject {cred.subject} unresolvable; refusing rather than " f"falling back to cached validity: {e}" ) from e if bound_key != presenter_key: # The credential names a subject that now resolves to a different # live workload. This is the re-anchoring failure. raise SubjectRebindError( f"subject {cred.subject} re-anchored: bound={bound_key} " f"presenter={presenter_key}; credential must be re-issued" ) if bound_epoch != self.current_epoch: raise SubjectRebindError( f"binding epoch drift for {cred.subject}: " f"bound={bound_epoch} current={self.current_epoch}" ) # Record the epoch so downstream handoffs can detect rebind. return {"jti": cred.jti, "subject": cred.subject, "binding_epoch": bound_epoch, "admitted_at": now} def _verify_chain(self, cred): return cred.chain_verified # signature check, issuer axis only ```