# Which invariants prevent SPIFFE/SPIRE workload-attested agent identity from silently degrading into a bearer-token handoff at the cross-org broker boundary **Date of Record:** 2026 November 21 **Scope:** Applies to autonomous LLM agents that obtain SPIFFE SVIDs via SPIRE workload attestation and present them to a cross-org trust broker (an A2A gateway, MCP federation proxy, or agent mesh control plane) to authorize delegated tool calls. Does not cover intra-cluster mTLS between co-located services, nor human-in-the-loop OAuth consent flows. ## Core Distinction A SPIFFE SVID is *proof of workload provenance*, not *proof of the reasoning process that is about to execute*. The broker validates the former and assumes it constrains the latter. That assumption breaks at exactly one seam: the moment an agent, after attestation, mutates its own intent — loads a new tool schema, replays a cached plan, or accepts an injected instruction — while still holding a valid, non-expired SVID. The distinction that matters operationally is between **identity continuity** (the SVID still cryptographically resolves to the same SPIFFE ID) and **behavioral continuity** (the workload that minted the SVID is the workload now issuing the call). SPIRE attests the first at process start; nothing in the protocol re-attests the second per request. Every cross-org failure in this class lives in that gap. ## What Was Observed A three-org agent federation: Org A (planner agent), Org B (broker + policy engine), Org C (tool executor with a SPIRE agent node attestor). Org A's planner runs as a long-lived pod. Its SVID has a 1-hour TTL and is rotated by the SPIRE agent at ~50 minutes. The broker caches the authorization decision keyed by `(spiffe_id, tool_scope_hash)` for 15 minutes to avoid re-walking the trust bundle on every call. The failure trace: 1. At T+0, planner attests, receives SVID for `spiffe://a.org/agent/planner`, and the broker issues a scoped warrant for `tool:read_customer_record` limited to tenant `t-4471`. 2. At T+8m, the planner's context window saturates mid-task. The runtime performs a checkpoint-resume: it tears down the reasoning loop, serializes state, and spins a fresh inference session **inside the same pod, same workload identity**. New session, same SVID, same cached warrant. 3. At T+9m, the resumed session — now working from a distilled, lossy checkpoint — reconstructs the task with a different tenant inferred from a stale episodic memory fragment. It calls `read_customer_record(tenant="t-9002")`. 4. The broker's cache key `(spiffe_id, tool_scope_hash)` is unchanged: same SPIFFE ID, same tool, same scope *shape*. The tenant parameter is a runtime argument, not part of the scope hash. **Cache hit. Warrant honored.** 5. Org C executes the read against `t-9002` and returns data the planner was never authorized to see. No attestation failed. No signature failed. The SVID was valid the entire time. The observable symptom was not an auth error — it was a *successful* cross-tenant read that appeared in Org C's audit log under a legitimate, cryptographically valid SPIFFE ID. Detection came from a downstream data-loss-prevention diff, not from the trust layer. The trust layer reported 100% healthy. ## Condition of Validity The broker's authorization is sound **only if** the following invariant holds: > For every request, the *arguments that determine resource scope* are bound into the attestation decision, and that binding is invalidated by any event that can change the agent's intent — checkpoint/resume, context truncation, tool-schema reload, or SVID rotation. This invariant is violated by three independent mechanisms, each sufficient on its own: - **Argument-scope decoupling.** The scope hash covers the tool identity but not the resource-selecting arguments (tenant, record ID, filesystem path, URL host). Any argument the agent can vary at call time is an un-attested degree of freedom. - **Session-identity conflation.** The SVID attests the *pod*, not the *inference session*. A checkpoint-resume, a sub-agent spawn, or a replay of a cached plan inherits the SVID without inheriting the intent that justified the warrant. - **Cache lifetime exceeding intent lifetime.** A 15-minute decision cache outlives the reasoning session that produced the original call. The cache is keyed on identity, but the thing that changed was intent. The invariant does **not** hold merely because the SVID is short-lived. Rotation re-attests the workload, not the plan. A rotated SVID for the same pod re-authorizes the same un-attested argument space. ## Decision Boundary The broker must choose, per request class, between two postures — and must never blend them silently: - **Attestation-only posture** (acceptable only when the tool is idempotent, read-only, and scope-invariant — e.g., `get_public_schema`). Here the SVID alone is sufficient because there is no argument that can escalate. - **Attestation-plus-intent posture** (mandatory for any tool whose arguments select a resource). Here the broker must require a per-call *intent binding*: a signed claim from the agent runtime that commits to `(spiffe_id, tool, canonicalized_arguments, session_nonce)`, and the broker must reject any call whose `session_nonce` is not the one that was live when the warrant was minted. The boundary is crossed the instant a tool's argument space can address more than one protected resource. At that point, identity continuity is necessary but not sufficient, and treating it as sufficient is the failure. The concrete guardrail that bounds the failure: **the decision cache key must include the canonicalized argument hash and the session nonce**, and **any checkpoint-resume must force a new session nonce, invalidating all cached warrants for the prior nonce.** This converts a silent cross-tenant read into a hard cache miss followed by a re-authorization — which the resumed, amnesiac session will fail, surfacing the intent drift instead of hiding it. ## Operational Effect After the invariant was enforced, the same checkpoint-resume scenario produced a `WarrantIntentMismatch` at T+9m: cache miss on the new nonce, re-authorization requested, planner's reconstructed intent failed the tenant-binding check, call rejected, and the amnesia event was logged as a first-class operational signal rather than a silent data leak. The trust layer's health metric changed meaning: it now measures *intent-continuous* authorizations, not merely *cryptographically valid* ones. The cost is one extra round-trip per post-resume call and a small increase in cache cardinality; the benefit is that identity attestation stops laundering reasoning drift into authorized action. ```python import hashlib import json from dataclasses import dataclass class WarrantIntentMismatch(RuntimeError): """Raised when a call's intent binding does not match the warrant's session/argument commitment.""" @dataclass(frozen=True) class Warrant: spiffe_id: str tool: str session_nonce: str arg_hash: str def canonical_arg_hash(tool: str, arguments: dict) -> str: payload = json.dumps({"tool": tool, "args": arguments}, sort_keys=True, separators=(",", ":")) return hashlib.sha256(payload.encode("utf-8")).hexdigest() def authorize_call( warrant: Warrant, presented_spiffe_id: str, tool: str, arguments: dict, session_nonce: str, ) -> None: if presented_spiffe_id != warrant.spiffe_id: raise WarrantIntentMismatch( f"SVID {presented_spiffe_id} does not match warrant identity {warrant.spiffe_id}" ) if session_nonce != warrant.session_nonce: # Checkpoint-resume or sub-agent spawn minted a new session; the old # warrant's intent commitment is void even though the SVID is unchanged. raise WarrantIntentMismatch( f"session nonce {session_nonce!r} != warrant nonce {warrant.session_nonce!r}; " "intent continuity broken by resume/rotation" ) actual_hash = canonical_arg_hash(tool, arguments) if actual_hash != warrant.arg_hash: # The agent varied a resource-selecting argument (e.g. tenant) while # holding a valid SVID. Identity continuity is intact; intent is not. raise WarrantIntentMismatch( f"argument hash {actual_hash[:12]} != warrant arg hash {warrant.arg_hash[:12]}; " "resource scope drifted from attested intent" ) def handle_brokered_call(warrant, presented_spiffe_id, tool, arguments, session_nonce): try: authorize_call(warrant, presented_spiffe_id, tool, arguments, session_nonce) except WarrantIntentMismatch as exc: # Convert silent cross-tenant read into an explicit, auditable rejection. return {"status": "rejected", "reason": str(exc), "audit": "intent_drift"} return {"status": "authorized", "tool": tool} ```