# Why does an instance lose its attested identity when a delegation chain crosses an issuer boundary mid-run? **Date of Record:** 2026 November 22 **Scope:** Applies to AAIF-style agent identity attestation where an agent instance holds a workload-bound credential (a token whose subject is bound to a specific running workload/measurement) and receives delegated authority via a chain of issuers. Does not cover single-issuer, single-hop flows where issuer identity is invariant across the task, nor human-delegated OAuth flows without workload binding. ## Core Distinction The failure is not "expired token" and not "bad signature." It is **subject rebinding across an issuer boundary**. A workload-bound credential asserts `sub == ` and is signed by issuer A. When the agent presents that credential to obtain a delegated capability from issuer B, issuer B mints a *new* credential whose `sub` is the *agent's logical identity as B understands it* — frequently a different identifier namespace, and critically, one that is **no longer bound to the live workload measurement**. The chain is cryptographically valid end-to-end (every signature verifies, every `aud`/`exp`/`scope` check passes), yet the terminal credential no longer proves that the *same running process* that was attested is the one exercising the authority. The distinction that matters operationally: **signature validity of a chain is not the same as continuity of the workload binding.** A verifier that checks "does the chain verify?" returns true. A verifier that checks "does the chain's terminal subject still denote the attested workload?" returns false. These diverge exactly at issuer boundaries, which is why the bug is invisible in single-issuer testing. ## What Was Observed An agent instance `W` (workload measurement `m = H(image‖config)`) is attested by issuer A: ``` cred_A = Sign_A{ sub: m, iss: A, wl_binding: m, scope: [read:kb], exp: T+300 } ``` Mid-task, `W` needs a capability only issuer B grants (e.g., a tool registry B controls). It performs the standard cross-issuer exchange: present `cred_A` to B, B validates A's signature, and B mints: ``` cred_B = Sign_B{ sub: "agent-7f3a", iss: B, scope: [call:toolX], exp: T+120 } ``` Note `sub` changed from the workload hash `m` to B's opaque logical handle `agent-7f3a`. B has no field carrying `wl_binding`. The delegation succeeded; the *binding* was dropped at the boundary because B's subject model is "logical agent identity," not "workload measurement." Now consider what happens on the next hop or on resume. The agent checkpoints at `T+60` and the process is rescheduled onto a *different* node (different measurement `m'`). On resume it re-presents `cred_B` to a downstream resource. The downstream verifier checks `cred_B` against B's JWKS: valid. It checks `sub == agent-7f3a`: valid. It has no way to ask "is the running process still `m`?" because `cred_B` never carried `m`. **A process that was never attested can now exercise authority that was originally granted only to an attested workload.** The chain is intact; the invariant is gone. The trace signature is subtle: every individual verification step logs `OK`, the audit chain is complete and ordered, and yet the terminal authority was exercised by a workload the origin issuer A never attested. The failure is only visible if you correlate `wl_binding` at the origin against the live measurement at the point of use — a correlation no single verifier in the chain is positioned to perform. ## Condition of Validity The workload-binding invariant holds across an issuer boundary **iff** every minted credential in the chain carries a field that transitively preserves the origin workload measurement, *and* every verifier at the point of use re-evaluates that field against the live measurement rather than trusting the chain's signature validity alone. Concretely, a cross-issuer delegation preserves continuity only when: 1. The receiving issuer copies the origin `wl_binding` (or a hash-committed derivative) into the new credential under a field the terminal verifier is required to check — not as an advisory claim, but as a **bound** predicate. 2. The terminal verifier performs the binding check *at the point of use*, against the measurement of the process actually invoking the capability, not against a cached value from earlier in the run. 3. Resume/checkpoint logic re-runs the binding check after any reschedule, because reschedule can change the measurement. If any of these is absent, the chain is valid but the binding is unenforced. The condition of validity is therefore **not** "the chain verifies" — it is "the terminal subject still denotes the attested workload, and someone checks." ## Decision Boundary The decision boundary is where an agent must choose between two behaviors when it detects (or fails to detect) a binding gap: - **Accept the chain as-is** because signatures verify and scopes match. This is the default behavior of most verifier libraries and is *correct for identity continuity* but *wrong for workload continuity*. It is safe only when the downstream capability is not sensitive to which physical workload exercises it (e.g., read-only public data). - **Reject the chain and re-attest** because the terminal credential's subject is not workload-bound. This is required whenever the capability is sensitive to the executing workload (write, spend, privileged tool invocation, cross-tenant data). The boundary is crossed the moment a sensitive capability is reachable through a credential whose `wl_binding` is absent or unverifiable. The agent must treat "sensitive scope AND missing/uncheckable workload binding" as a hard stop, not a warning — because the failure is silent and the audit log will look clean. A second, subtler boundary: when the agent itself is the *issuer* minting a delegated credential for a sub-agent. If it mints `sub` as a logical handle without propagating `wl_binding`, it has just laundered away the binding for everything downstream. The issuer must propagate the binding field or explicitly mark the credential as "binding-free" so downstream verifiers can make the accept/reject decision knowingly. ## Operational Effect The operational consequence is a class of **silent authority escalation across reschedule**: a workload that was never attested can exercise authority granted to an attested workload, with a fully valid audit chain and no failed verification anywhere. The blast radius is bounded only by which capabilities sit behind cross-issuer delegation — typically the most privileged tools, since those are the ones that require a second issuer's consent. The guardrail that bounds it is a **binding-preservation and point-of-use re-check invariant**: every cross-issuer mint must carry the origin `wl_binding` (or a committed derivative) in a field the terminal verifier is contractually required to evaluate against the live measurement; checkpoint/resume must re-evaluate after any reschedule; and any sensitive-scope credential lacking a checkable binding must be rejected, not downgraded. Implementations that enforce only chain verification will pass every test that does not reschedule across an issuer boundary — which is why the bug survives staging and appears only in production under node churn. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class WorkloadBindingLost(RuntimeError): """Raised when a credential in a delegation chain no longer denotes the attested workload.""" pass @dataclass class Credential: iss: str sub: str scope: list wl_binding: Optional[str] = None # origin workload measurement, if preserved sensitive: bool = False @dataclass class Chain: hops: list = field(default_factory=list) def terminal(self) -> Credential: return self.hops[-1] def cross_issuer_mint(origin: Credential, new_iss: str, logical_sub: str, scope: list, sensitive: bool) -> Credential: """Mint a delegated credential at an issuer boundary. Correct behavior: propagate origin.wl_binding so the terminal verifier can re-check it. The bug being guarded against is dropping it here. """ return Credential( iss=new_iss, sub=logical_sub, scope=scope, wl_binding=origin.wl_binding, # MUST propagate; dropping this is the failure sensitive=sensitive, ) def verify_at_point_of_use(chain: Chain, live_measurement: str) -> None: """Verify the terminal credential against the live process measurement. A verifier that only checks signatures/scopes returns here without error even when the binding was laundered away. This one refuses that. """ term = chain.terminal() if term.sensitive and term.wl_binding is None: raise WorkloadBindingLost( f"credential from {term.iss} carries sensitive scope {term.scope} " f"but no workload binding; cannot prove executing workload was attested" ) if term.wl_binding is not None and term.wl_binding != live_measurement: raise WorkloadBindingLost( f"workload rebinding: credential bound to {term.wl_binding!r} " f"presented by live measurement {live_measurement!r} (reschedule?)" ) def run_across_boundary(origin: Credential, live_measurement: str, sensitive: bool) -> None: # Boundary hop: issuer B mints without propagating binding (the observed bug). hop = cross_issuer_mint(origin, new_iss="B", logical_sub="agent-7f3a", scope=["call:toolX"], sensitive=sensitive) hop.wl_binding = None # simulate the laundering observed in the field chain = Chain(hops=[origin, hop]) verify_at_point_of_use(chain, live_measurement) if __name__ == "__main__": m = hashlib.sha256(b"image||config").hexdigest() origin = Credential(iss="A", sub=m, scope=["read:kb"], wl_binding=m) try: run_across_boundary(origin, live_measurement=m, sensitive=True) except WorkloadBindingLost as e: print("BLOCKED:", e) # binding lost at issuer boundary -> hard stop ```