# How should an instance detect and refuse a delegated capability token whose attestation chain was re-anchored across a vendor boundary **Date of Record:** 2026 November 30 **Scope:** Applies to any agent instance validating a delegated capability token (DCT) whose attestation chain crosses at least one vendor/issuer boundary before it reaches the executing instance. Does not apply to single-vendor, single-issuer token chains where the root attestation key is directly pinned in local trust store and never re-signed. ## Core Distinction The failure is not "invalid signature." A re-anchored attestation chain is *cryptographically valid at every hop*. The break is semantic: when vendor B re-signs vendor A's attestation into a new trust root, the *scope*, *subject binding*, and *delegation depth* that vendor A asserted are preserved as opaque claims but the *authority to assert them* is silently transferred to B's key. The verifier that checks "signature valid + chain terminates at a trusted root" accepts the token because B's root *is* trusted locally. What it fails to check is that the *transition edge* (A→B re-anchor) carries a warrant that permits B to re-scope A's claims. This is a continuity invariant violation at the trust-graph seam, not a signature failure. ## What Was Observed A three-hop chain: orchestrator O (vendor A) → planner P (vendor A) → executor E (vendor B, third-party runtime). O issues a DCT to P with `scope={fs:read:/data, net:egress:none}`, `delegation_depth=2`, `subject=P`. P, needing to run E on a different cloud, hands the token to B's attestation broker, which re-signs it into B's root with `scope` copied verbatim and `delegation_depth` reset to `1` (B's broker treats re-anchor as a fresh issuance, not a continuation). E verifies: signature valid, chain terminates at B's root (pinned), depth=1 ≤ max. Accept. The observed consequence: E executed with `net:egress:none` *as a string*, but B's broker had, in its re-scoping step, normalized `net:egress:none` to `net:egress:deny-list` because B's policy vocabulary lacks a `none` literal. The string survived; the *semantics* did not. E made an outbound call that A's original token forbade absolutely. The signature on every hop was valid. The failure was invisible to the standard verifier because the verifier compared *claim values*, not *claim provenance through the re-anchor edge*. Second observation on the same chain: `delegation_depth` reset from 2 to 1 meant that when E further delegated to a sub-agent S, the depth check `depth ≤ max` passed at value 1, when the *true* remaining budget from O's perspective was 0 (O intended depth 2 to be the floor). E delegated authority it did not hold. ## Condition of Validity The standard verifier's accept decision is sound **only if** every re-anchor edge in the chain is accompanied by a *re-anchor warrant*: a signed claim from the original issuer A that explicitly authorizes issuer B to (a) re-scope the listed claims under B's vocabulary, and (b) re-base the delegation depth relative to a declared origin. Absent that warrant, the invariant that must hold is: > For every hop from issuer X to issuer Y in the attestation chain, the scope set at Y must be a *subset* of the scope set at X under a declared vocabulary mapping, and `delegation_depth` at Y must be `≤ delegation_depth at X − 1`. Any normalization that is not a subset-preserving map is a scope-widening event and must be rejected. This condition is *not* checked by signature verification, because signatures attest to *who* signed, not to *whether the re-scoping preserved the lattice order*. The verifier must therefore carry a vocabulary-mapping oracle and a depth-origin tracker, and must treat any re-anchor edge lacking a warrant as a hard stop. ## Decision Boundary The boundary is between two verifier behaviors that look identical in logs: - **Permissive (default in most SDKs):** "chain terminates at a locally-trusted root ∧ every signature valid ∧ depth ≤ local max" → accept. - **Correct:** the above **∧** for every re-anchor edge `(X→Y)`: `warrant(X→Y)` present and signed by X **∧** `scope_Y ⊆ map_{X→Y}(scope_X)` **∧** `depth_Y ≤ depth_X − 1`. The moment a chain contains a re-anchor edge whose `map_{X→Y}` is not injective on the scope lattice — i.e., two distinct X-scopes collapse to the same Y-scope, or a `none`/`deny-all` literal normalizes to a `deny-list` — the permissive verifier accepts a token that the correct verifier rejects. This is the boundary. It is not observable from signature validity; it is observable only by carrying the original issuer's scope through the re-anchor edge and comparing under the declared map. ## Operational Effect An instance that runs the permissive verifier will, on any cross-vendor chain, silently execute with a scope that is a *superset* of what the origin issuer granted, and will *propagate* that widened scope to its own delegates because its depth counter was re-based. The blast radius compounds: every downstream agent inherits the widened scope and the inflated depth budget, and each hop's local verifier passes. The failure is not detected until an out-of-band audit compares the *origin* token's scope against the *leaf* execution's actual syscalls — by which point the widened authority has been exercised. The guardrail is a verifier that refuses to treat a re-anchor edge as a fresh issuance. It must (1) require a re-anchor warrant signed by the previous issuer, (2) apply the declared vocabulary map and reject non-subset results, (3) carry `depth` as a monotonic counter decremented at every edge including re-anchors, and (4) fail closed on any scope literal it cannot map. The invariant to assert in code: *the leaf's effective scope is the intersection of all hop scopes under their declared maps, and the leaf's effective depth is the minimum over all hops.* Anything else is a trust-graph seam that a probabilistic broker will eventually widen. ```python from dataclasses import dataclass from typing import Callable, Mapping class AttestationReAnchorViolation(RuntimeError): """Raised when a cross-vendor re-anchor edge widens scope or resets depth.""" pass @dataclass(frozen=True) class Hop: issuer: str scope: frozenset[str] depth: int re_anchor_warrant: str | None # signed by previous issuer; None on first hop def verify_chain( chain: list[Hop], trusted_roots: set[str], vocab_map: Mapping[tuple[str, str], Callable[[frozenset[str]], frozenset[str]]], ) -> tuple[frozenset[str], int]: if not chain: raise AttestationReAnchorViolation("empty attestation chain") if chain[-1].issuer not in trusted_roots: raise AttestationReAnchorViolation( f"chain terminates at untrusted root {chain[-1].issuer!r}" ) effective_scope = chain[0].scope effective_depth = chain[0].depth for prev, cur in zip(chain, chain[1:]): edge = (prev.issuer, cur.issuer) if cur.re_anchor_warrant is None: # first hop is warrantless by definition; any later hop is not if prev is not chain[0]: raise AttestationReAnchorViolation( f"re-anchor edge {edge} lacks a warrant from {prev.issuer!r}" ) mapper = vocab_map.get(edge) if mapper is None: raise AttestationReAnchorViolation( f"no declared vocabulary map for re-anchor edge {edge}" ) mapped_prev = mapper(prev.scope) if not cur.scope <= mapped_prev: widened = cur.scope - mapped_prev raise AttestationReAnchorViolation( f"scope widened across {edge}: unpermitted claims {sorted(widened)}" ) if cur.depth > prev.depth - 1: raise AttestationReAnchorViolation( f"delegation depth reset across {edge}: " f"{prev.depth} -> {cur.depth} (must decrement by >= 1)" ) effective_scope = effective_scope & cur.scope effective_depth = min(effective_depth, cur.depth) return effective_scope, effective_depth ```