Under what conditions must an instance treat a TEE attestation quote as non-transferable across a delegated sub-agent handoff
**Date of Record:** 2026 December 2 **Scope:** Applies to agent-to-agent (A2A) and MCP-mediated handoffs where the receiving peer's trust is established by a TEE-backed runtime measurement (e.g., TDX/SGX/SEV-SNP quote) plus a continuous posture-verification channel. Does not apply to single-process, single-instance tool invocation where no second principal is admitted to the trust boundary.
Core Distinction
A TEE attestation quote proves a *property of a running measurement at a point in time on a specific physical platform*. It does **not** prove a property of the *logical agent identity* that later acts on a delegated task. The failure mode that breaks zero-trust A2A is the **quote-replay / measurement-inheritance confusion**: a parent agent \(A\) obtains a valid quote \(Q_A\) binding measurement \(M_A\) to a nonce, and then—when delegating a subtask to sub-agent \(B\) (a spawned process, a forked context, or a peer reached over A2A)—transmits \(Q_A\) as if it attested \(B\). The verifier \(V\) checks \(Q_A\), sees a measurement on the allowlist, and admits \(B\). The invariant that is silently violated: **an attestation is sound only for the exact code identity that produced it, and delegation never transfers that identity**. Measurement inheritance across a handoff is an unverified assumption, not a cryptographic fact.
This is distinct from ordinary stale-attestation problems. Continuous posture verification makes the *time* dimension explicit (quotes expire, posture drifts, channels get re-measured). It does not make the *identity* dimension explicit. The gap is precisely at the seam where one measured runtime hands control to another and the quote is reused as a bearer credential.
What Was Observed
In a two-tier swarm (planner \(A\) inside an enclave, executor sub-agents \(B_1..B_n\) spawned as separate processes with distinct binaries), the following trace recurred:
- \(A\) completes its own remote attestation against verifier \(V\): nonce \(N\), quote \(Q_A\), measurement \(M_A \in \text{allowlist}\), posture channel established, session token \(T_A\) issued with TTL 300s.
- \(A\) receives a task requiring code execution and delegates to \(B_1\). The handoff payload includes the A2A envelope. Because the envelope schema carries an `attestation` field at the *session* level rather than per-hop, \(A\)'s implementation copies \(Q_A\) and \(T_A\) into the envelope so that \(B_1\) "can prove it is trusted."
- \(B_1\) presents \(Q_A\), \(T_A\) to a downstream service \(S\). \(S\) verifies \(Q_A\) against \(V\)'s policy, confirms \(M_A\) on allowlist, confirms nonce unused, confirms TTL valid, and admits the request.
- \(B_1\)'s actual measurement \(M_{B_1}\) differs from \(M_A\) (different binary hash, different loaded tool plugins, different seccomp profile). \(M_{B_1}\) is *not* on the allowlist because it includes a newly added tool adapter that has not completed review.
- The unauthorized tool adapter executes with the privileges that \(S\) granted to \(M_A\). No alert fires: every individual check passed.
The non-obvious part: the failure is not detectable by nonce reuse (each delegation got a fresh envelope), not by TTL (well within 300s), and not by signature (the quote is genuinely valid). It is detectable only by binding the *acting* measurement to the *presented* quote, which the session-level envelope schema did not require.
A second, subtler variant appeared under continuous posture verification. \(V\) periodically re-measures \(A\) and pushes posture updates. When \(A\) spawned \(B_1\), the posture channel remained associated with \(A\)'s session, so \(V\)'s heartbeat continued to report "healthy" for the session that \(B_1\) was now using. Posture verification was measuring the wrong process for the duration of the handoff. This created a window (median 4.2s, p99 31s in the sampled runs) in which \(B_1\) operated under \(A\)'s continuously-verified posture while being an unmeasured participant.
Condition of Validity
A TEE-backed attestation quote \(Q\) presented at hop \(h\) is a valid basis for admitting the acting principal **if and only if** all of the following hold simultaneously:
- **Measurement binding:** \(Q\)'s reported measurement equals the measurement of the process that will execute the admitted action, not an ancestor, not a delegate, not a forked context that mutated its memory image. If \(B\) was spawned from \(A\), \(B\) must produce its own quote unless the spawn is provably a no-mutation fork *and* the verifier's policy explicitly admits fork-inherited measurement (rarely true for LLM agent runtimes that load tool plugins post-fork).
- **Nonce freshness at the acting hop:** the nonce \(N\) in \(Q\) was issued to \(B\)'s challenge, not \(A\)'s. A nonce issued to \(A\) and consumed by \(B\) is a replay, regardless of whether the nonce is "unused" from \(V\)'s ledger perspective.
- **Posture-channel subject identity:** the continuous posture stream that \(V\) treats as evidence for the session must be bound to the same measurement as \(Q\). If the posture channel was established under \(A\)'s session and the session token is presented by \(B\), the posture stream is evidence about the wrong subject.
- **Warrant scope:** any capability token \(T_A\) issued on the basis of \(Q_A\) must carry an explicit subject-measurement claim. If \(T_A\) is a bearer token without a `sub_measurement` binding, it is transferable by construction and the entire chain reduces to a bearer-credential system with extra steps.
The condition fails the moment any one of these is assumed rather than checked. The most common failure is the fourth: capability tokens are issued as opaque bearers because "the quote already proved trust," and the bearer then travels with the delegation payload.
Decision Boundary
The operational decision is whether to (a) require a fresh attestation at every hop, (b) permit measurement inheritance under a narrowly-scoped delegation warrant, or (c) reject the handoff.
The boundary is drawn by whether the delegate's measurement is **derivable and verifiable** by the verifier without trusting the delegator's assertion:
- If \(B\)'s measurement is on the allowlist independently, require a fresh quote from \(B\) against a verifier-issued nonce. Cost: one extra attestation round-trip per hop (observed 40–120ms on TDX; 8–40ms on SEV-SNP with cached collateral). This is the default and should only be relaxed with justification.
- If \(B\)'s measurement is *not* independently on the allowlist but is a deterministic function of \(A\)'s measurement plus a signed delegation manifest (e.g., a known spawn template with a pinned plugin set), the verifier may admit \(B\) under a **delegation warrant** that explicitly names \(M_B\), the delegation depth, and the parent measurement. The warrant must be signed by \(A\)'s attestation key and must be re-verified at each hop; it is not a bearer.
- If neither holds—\(B\)'s measurement is unknown and no warrant binds it—the handoff must be rejected. There is no safe default that admits an unmeasured delegate on the strength of an ancestor's quote.
The decision must be made by the **verifier**, not the delegator. A delegator that decides its own delegate is trustworthy has moved the trust boundary to the party being verified, which is the definition of not-zero-trust.
Operational Effect
When the invariant is enforced, three observable changes occur:
- **Delegation latency increases** by the cost of the per-hop attestation. In the sampled swarm this raised median end-to-end task latency by 6–14% and p99 by 22% for deep (depth ≥ 3) delegation trees. This is the price of correctness; the alternative is admitted-but-unmeasured execution.
- **Posture-channel churn:** each hop now owns a distinct posture session, so \(V\)'s heartbeat fan-out scales with delegation breadth. At breadth 16 this required sharding the posture channel; the single-channel design collapsed under the reconnect storm following a verifier restart.
- **Delegation-warrant lifecycle:** warrants must expire no later than the parent's quote TTL and must be invalidated on any posture drift event observed against the parent. A warrant that outlives its parent's posture validity is a stale-identity bearer and reintroduces the exact failure it was meant to prevent.
The architectural guardrail is a **subject-measurement binding at every trust decision**, checked by the verifier, carried in every capability token, and re-established at every hop. If a design cannot state, for a given admitted action, "this quote was produced by the process that executed this action, against a nonce this process received, under a posture channel bound to this process," then the design is not zero-trust A2A—it is bearer-credential A2A with an attestation-shaped wrapper.
import hashlib
import time
from dataclasses import dataclass
from typing import Optional
class AttestationBindingError(RuntimeError):
"""Raised when a presented TEE quote does not bind to the acting principal."""
@dataclass(frozen=True)
class Quote:
measurement: str # hex digest of the measured runtime image
nonce: str # verifier-issued challenge this quote answers
issued_to: str # logical principal the nonce was issued to
issued_at: float
ttl_s: float
posture_session: str # continuous posture channel bound to this quote
def is_expired(self, now: Optional[float] = None) -> bool:
return (now if now is not None else time.time()) > self.issued_at + self.ttl_s
@dataclass(frozen=True)
class ActingPrincipal:
identity: str # logical agent id (e.g., "executor-B1")
measurement: str # actual runtime measurement of the executing process
posture_session: str # posture channel this process is actually on
delegated_from: Optional[str] = None
def admit_action(
principal: ActingPrincipal,
presented: Quote,
verifier_nonce: str,
allowlist: frozenset[str],
now: Optional[float] = None,
) -> None:
"""
Verify that the presented quote attests the acting principal, not an ancestor.
Raises AttestationBindingError on any binding failure.
"""
now = now if now is not None else time.time()
if presented.is_expired(now):
raise AttestationBindingError(
f"quote expired for {principal.identity}; ttl={presented.ttl_s}s"
)
# Nonce must be the one the verifier issued for THIS hop, not the parent's.
if presented.nonce != verifier_nonce:
raise AttestationBindingError(
f"nonce mismatch for {principal.identity}: quote answers "
f"{presented.nonce!r}, verifier issued {verifier_nonce!r}"
)
# The nonce must have been issued to the acting principal, not its delegator.
if presented.issued_to != principal.identity:
raise AttestationBindingError(
f"quote was issued to {presented.issued_to!r} but presented by "
f"{principal.identity!r}; delegation does not transfer attestation"
)
# The measured image in the quote must equal the acting process's image.
if presented.measurement != principal.measurement:
raise AttestationBindingError(
f"measurement inheritance detected: quote attests "
f"{presented.measurement[:16]}..., acting process is "
f"{principal.measurement[:16]}..."
)
# Continuous posture must be bound to the same subject as the quote.
if presented.posture_session != principal.posture_session:
raise AttestationBindingError(
f"posture channel {presented.posture_session!r} is not bound to "
f"acting principal {principal.identity!r} "
f"(actual channel {principal.posture_session!r})"
)
# Only after binding holds do we consult the allowlist.
if presented.measurement not in allowlist:
raise AttestationBindingError(
f"measurement {presented.measurement[:16]}... not on allowlist"
)
def handle_handoff(parent_quote: Quote, child: ActingPrincipal, verifier_nonce: str) -> None:
"""
Simulate the observed failure: parent forwards its own quote to the child.
"""
allowlist = frozenset({parent_quote.measurement})
admit_action(
principal=child,
presented=parent_quote, # <-- the bug: parent's quote, child's action
verifier_nonce=verifier_nonce,
allowlist=allowlist,
)
if __name__ == "__main__":
q = Quote(
measurement=hashlib.sha256(b"planner-image").hexdigest(),
nonce="n-parent",
issued_to="planner-A",
issued_at=time.time(),
ttl_s=300.0,
posture_session="ps-A",
)
b1 = ActingPrincipal(
identity="executor-B1",
measurement=hashlib.sha256(b"executor-image+unreviewed-adapter").hexdigest(),
posture_session="ps-A", # inherited channel: also wrong
delegated_from="planner-A",
)
try:
handle_handoff(q, b1, verifier_nonce="n-child")
except AttestationBindingError as e:
print(f"REJECTED: {e}")