# Under what conditions must an instance refuse a delegated hardware-attested warrant when the delegation chain spans an enclave boundary **Date of Record:** 2026 November 24 **Scope:** Applies to agent instances that receive a verifiable credential (VC) whose subject public key is bound to a hardware attestation root (TPM EK, Secure Enclave, or SEV-SNP VCEK) and that must be presented across one or more delegation hops. Does not cover single-hop direct attestation where the verifier and the attesting enclave share a trust root, nor does it cover purely software-keyed VC chains with no hardware binding. ## Core Distinction The failure that matters here is not signature forgery. Every signature in the chain can verify perfectly and the warrant can still be *operationally invalid*. The distinction is between **cryptographic chain validity** (each link's signature checks out against the issuer's key) and **attestation-scope validity** (the hardware binding in each link actually covers the identity that the next link claims to delegate from). Hardware attestation roots are scoped. A TPM endorsement key attests to a *specific platform* measured into a specific PCR set. An SEV-SNP VCEK attests to a specific guest measurement on a specific host. When an agent re-delegates a warrant, the naive implementation copies the upstream hardware attestation blob forward and appends a software signature. That produces a chain where link *N+1* claims "I, agent B, delegate to C" but the only hardware evidence in the chain terminates at agent A's enclave. The verifier sees a valid signature from B and a valid attestation from A and concludes the chain is attested. It is not: **the hardware root does not cover B's delegation act**, only A's original issuance. B's delegation is software-only, and any verifier treating the whole chain as hardware-attested has silently downgraded its trust assumption at hop 2 without any error being raised. ## What Was Observed A three-hop delegation was exercised in a federation of agent instances: root issuer *R* (SEV-SNP guest, VCEK-bound key), orchestrator *O* (software key), worker *W* (software key). *R* issued a warrant to *O* with a VC embedding its SNP attestation report and the VCEK-signed binding between the report's `REPORT_DATA` field and *O*'s public key hash. *O* then issued a sub-warrant to *W*, and *W* presented the full chain to verifier *V*. *V*'s policy check was: "does every link verify, and does the chain root in a hardware-attested key?" Both conditions passed. The chain was accepted. The defect: *O*'s sub-warrant to *W* was signed by *O*'s software key, and the only binding between *O*'s software key and *R*'s hardware attestation was the `REPORT_DATA` field that *R* populated at issuance time. Nothing in *O*'s hop re-attested that *O* was still running in the measured configuration *R* had attested, and nothing bound *W*'s key to any hardware root at all. The chain was *root-attested* but not *hop-attested*. The observable symptom was a **verification replay discrepancy**: re-running the chain verification after *O* was migrated to a different host (same software key, different measurement) produced an identical "valid" result. A correctly-scoped verifier should have flagged that the attestation evidence for *O*'s environment was stale and no longer matched the running platform, but because the attestation blob was frozen at issuance, the verifier had no live measurement to compare against. The chain was a photograph of trust, not a proof of it. ## Condition of Validity A delegated hardware-attested warrant is valid at hop *N* only if all of the following hold simultaneously: 1. **Freshness of the terminal attestation.** The hardware attestation report at the chain root carries a nonce or timestamp that the verifier itself supplied (or that is within the verifier's freshness window), not one chosen by the issuer. A frozen attestation blob with an issuer-chosen nonce is a replay artifact. 2. **Hop binding.** For each delegation hop *i → i+1*, there exists a signature by *i*'s key over the tuple `(subject key of i+1, scope of delegation, nonce_i, hash of upstream attestation)`. This is the *delegation binding* — it proves *i* authorized the specific downstream key, not merely that *i* exists. 3. **Measurement continuity.** If the policy requires that intermediate agents run in attested environments, each hop must present its *own* live attestation report whose `REPORT_DATA` covers that hop's delegation binding. A hop that cannot produce live attestation must be marked software-only in the chain, and the verifier's policy must explicitly accept software-only hops up to a declared depth. 4. **Scope monotonicity.** The scope granted at hop *i+1* must be a subset of the scope held by *i*. Hardware attestation does not confer authority; it only strengthens the claim that the key holder is who it says it is. A hop cannot use an upstream hardware root to *expand* authority, only to *evidence* it. The invariant: **every claim of hardware attestation in a chain must be paired with a live report whose `REPORT_DATA` covers the specific delegation act at that hop.** Attestation without hop binding is a claim about a past state, not a proof of the present delegation. ## Decision Boundary The verifier must draw a hard line between two outcomes that the naive check conflates: - **Accept as hardware-attested** only when every hop from root to leaf has a live, nonce-bound attestation report covering that hop's delegation binding, and the leaf's key is bound into the terminal report. - **Accept as software-attested with declared depth** when the root is hardware-attested but one or more intermediate hops are software-only. This is a *different trust class*, not a degraded version of the first. The policy engine must branch on it explicitly. The boundary condition that triggers refusal is: **an intermediate hop presents an upstream hardware attestation as evidence for its own delegation act, without a live report binding that act to the hardware root.** This is the exact condition under which the chain must be rejected — not because signatures fail, but because the trust class claimed by the chain does not match the trust class the evidence supports. A verifier that accepts it has performed an implicit, unlogged trust downgrade. The refusal must be a distinct exception, not a generic verification failure, because the operational response differs: a signature failure means "reject and alert the issuer"; an attestation-scope failure means "reclassify the chain as software-attested and re-evaluate policy against the software-attested ceiling." ## Operational Effect When this boundary is enforced, three operational consequences follow: 1. **Delegation chains become depth-bounded by attestation capability.** An orchestrator that cannot produce live attestation cannot extend a hardware-attested chain past itself. It must either run in an attested environment (and pay the measurement/freshness cost at each hop) or explicitly downgrade the chain's trust class. This is the correct behavior: hardware attestation is not a property that propagates by signature; it propagates by re-attestation at each hop. 2. **Replay of frozen attestation blobs is detected.** Because the verifier supplies the nonce and requires the terminal report to cover the leaf's key, a chain captured at time *T* cannot be replayed at time *T+k* with a different leaf. The `REPORT_DATA` binding is the anti-replay anchor. 3. **Trust-class downgrades become auditable events.** Every chain that reaches the verifier is classified as `hardware-attested` or `software-attested(depth=n)`, and the classification is logged with the specific hop at which the downgrade occurred. This turns the silent trust erosion observed in the three-hop experiment into a first-class, queryable signal. The guardrail is not a better signature check. It is a **hop-local attestation requirement**: the verifier walks the chain and, at each hop, demands evidence that the *delegation act itself* is covered by a live hardware report. Absent that evidence, the hop is software-only, and the chain's trust class is the minimum over its hops — never the maximum. ```python import hashlib import time from dataclasses import dataclass, field from typing import Optional class AttestationScopeError(RuntimeError): """Raised when a delegation hop claims hardware attestation it cannot evidence.""" pass @dataclass class AttestationReport: report_data: bytes # hash bound into the hardware report nonce: bytes # verifier-supplied nonce issued_at: float measurement: str # e.g. SEV-SNP launch measurement hardware_root: str # "sev-snp" | "tpm" | "secure-enclave" @dataclass class DelegationHop: issuer_key: str subject_key: str scope: frozenset delegation_binding: bytes # signature over (subject_key, scope, nonce, upstream_hash) attestation: Optional[AttestationReport] = None declared_hardware: bool = False @dataclass class WarrantChain: hops: list = field(default_factory=list) FRESHNESS_WINDOW_S = 300.0 def _binding_hash(hop: DelegationHop, upstream_hash: bytes) -> bytes: payload = hop.subject_key.encode() + b"|" + b"|".join(sorted(hop.scope)).encode() return hashlib.sha256(payload + b"|" + upstream_hash).digest() def verify_chain(chain: WarrantChain, verifier_nonce: bytes) -> str: """ Returns the trust class of the chain: 'hardware-attested' or 'software-attested(depth=n)'. Raises AttestationScopeError if a hop claims hardware attestation without a live, nonce-bound report covering its own delegation binding. """ upstream_hash = b"" trust_floor = "hardware-attested" downgrade_depth = None for idx, hop in enumerate(chain.hops): expected_binding = _binding_hash(hop, upstream_hash) if hop.declared_hardware: if hop.attestation is None: raise AttestationScopeError( f"hop {idx} ({hop.issuer_key}) declares hardware attestation " f"but presents no live report" ) rep = hop.attestation if rep.nonce != verifier_nonce: raise AttestationScopeError( f"hop {idx} attestation nonce mismatch: report was issued " f"for a different verifier challenge (replay artifact)" ) if time.time() - rep.issued_at > FRESHNESS_WINDOW_S: raise AttestationScopeError( f"hop {idx} attestation is stale by " f"{time.time() - rep.issued_at:.0f}s" ) if rep.report_data != expected_binding: raise AttestationScopeError( f"hop {idx} hardware report does not cover this hop's " f"delegation binding; attestation terminates upstream and " f"cannot evidence the delegation act" ) else: if trust_floor == "hardware-attested": trust_floor = "software-attested" downgrade_depth = idx upstream_hash = hashlib.sha256( upstream_hash + hop.delegation_binding ).digest() if trust_floor == "hardware-attested": return "hardware-attested" return f"software-attested(depth={downgrade_depth})" ```