# How does an instance detect transitive trust attenuation failure when a delegated capability's attestation chain exceeds its policy's re-delegation depth bound **Date of Record:** 2026 December 1 **Scope:** Applies to federated agent systems where a capability (tool grant, data scope, or execution warrant) is delegated across organizational boundaries and each hop carries a signed trust attestation. Does not address single-org delegation, direct user-to-agent grants, or transport-level authentication failures that occur before attestation parsing. ## Core Distinction The failure mode is not "the attestation is invalid" or "the signature doesn't verify." Those are loud, first-hop failures. The non-obvious boundary is **attenuation silence**: a capability is delegated A→B→C→D, every individual attestation in the chain verifies cryptographically, every hop's policy *appears* to permit re-delegation, and yet the effective authority at the terminal hop exceeds what the originating policy intended because the *depth bound* was enforced per-hop rather than end-to-end. Each intermediate agent evaluates its own policy: "may I re-delegate this capability?" It sees a valid inbound attestation, checks its local re-delegation rule (say, depth ≤ 2 from *its* perspective), and signs a child attestation that resets or fails to decrement the global depth counter. The chain is cryptographically intact. The authority is semantically laundered. The distinction that matters: **integrity of each link is not the same invariant as monotonic non-increase of authority across the chain.** A verifying instance that checks only link validity will accept a chain that a depth-aware instance must reject. ## What Was Observed A three-org federation: orchestrator org O grants a `data.read` capability scoped to a customer record set, with policy `max_delegation_depth = 2`. The attestation format carries a `delegation_depth` claim and a `root_policy_hash`. - O issues attestation to agent B with `delegation_depth = 0`, `root_policy_hash = H_O`. - B's policy engine reads `delegation_depth = 0`, compares against its *local* configured bound of `2`, concludes `0 < 2` so re-delegation is allowed, and issues to C with `delegation_depth = 0` — **it copies the inbound value rather than incrementing it**, because B's policy schema defines the field as "depth below me," not "depth from root." - C, holding the same schema interpretation, does the same and issues to D with `delegation_depth = 0`. - D presents the chain to a resource server. The resource server verifies all three signatures, confirms `root_policy_hash = H_O` matches a known policy, reads `delegation_depth = 0`, and grants access. The terminal agent D is now three hops from the root while the chain *claims* depth zero. O's intent — that authority not propagate beyond two re-delegations — is violated. No signature failed. No hash mismatched. The schema field was **semantically ambiguous across organizational boundaries**: "depth relative to issuer" (B and C's reading) versus "depth relative to root" (O's intent and the resource server's check). The attestation exchange protocol never pinned the reference frame. The detection signal was a downstream anomaly: O's audit log showed the capability consumed by an org (D) that appeared in no delegation record O had issued or countersigned, and the `root_policy_hash`-keyed consumption count exceeded O's expected fan-out. The chain itself gave no error. ## Condition of Validity The depth bound is only enforceable when **all of the following hold simultaneously**: 1. The depth field has a single, protocol-pinned reference frame (absolute-from-root), and the schema forbids issuer-relative interpretation. Absent this, every hop is free to reinterpret. 2. The verifying party recomputes depth by **counting attestation links in the presented chain**, not by trusting the terminal `delegation_depth` claim. The claim is advisory; the chain length is ground truth. 3. Each hop's signature covers the *entire* preceding chain (or its hash), so a hop cannot present a shortened chain to the verifier than the one it received. Without chain-binding, a malicious or buggy intermediary can strip an ancestor and reset apparent depth. 4. `root_policy_hash` resolves to a policy whose `max_delegation_depth` the verifier can read and compare against recomputed chain length. If any one fails, the bound is decorative. In the observed incident, conditions 1 and 2 both failed: the field was issuer-relative, and the verifier trusted the claim. ## Decision Boundary An instance must switch from "verify links" to "reject chain" at the following boundary: - **Accept** only if `recomputed_chain_length ≤ policy.max_delegation_depth` **and** every attestation's `parent_attestation_hash` links contiguously to the root **and** the terminal `delegation_depth` claim equals `recomputed_chain_length - 1`. The equality check is the tell: a mismatch between claimed and recomputed depth is the fingerprint of reference-frame divergence or chain stripping. - **Reject with a specific attenuation error** — not a generic verification failure — when claimed depth < recomputed depth (understatement, the laundering case) or when the chain is non-contiguous (stripping case). - **Do not** delegate the depth decision to the inbound claim. The claim is data from an untrusted peer; chain length is structural. The subtle part: a chain can be *valid* (all signatures good, contiguous, root hash known) and still be *over-deep*. Validity and authority-bound are orthogonal checks and must be evaluated as separate gates. Collapsing them into one "verify attestation" call is exactly what produced the incident. ## Operational Effect When the invariant holds, the resource server's accept/reject is deterministic given the presented chain and the root policy — no trust in intermediary honesty beyond signature unforgeability. When it fails, the blast radius is bounded only by how far the capability propagates before the root org notices consumption outside its expected fan-out; in the observed case, the terminal org retained read access for the full capability TTL (4 hours) because revocation requires the root to know the chain exists, and the intermediary never reported the re-delegation. The guardrail that bounds it: (a) pin absolute depth in the schema and reject issuer-relative semantics at parse time; (b) recompute depth from chain structure at every verifier; (c) bind each signature to the full ancestor hash so stripping is detectable; (d) emit a delegation-record webhook to the root policy owner on every hop, so fan-out anomalies surface in minutes rather than at TTL expiry. The detection heuristic for operators: **a `delegation_depth` claim that does not equal the number of attestations in the chain minus one is either a reference-frame bug or an active strip — treat both as attenuation failure until proven otherwise.** ```python import hashlib from dataclasses import dataclass class TrustAttenuationError(RuntimeError): """Raised when a delegation chain's effective authority exceeds the root policy bound.""" pass @dataclass class Attestation: issuer: str subject: str claimed_delegation_depth: int parent_attestation_hash: str | None root_policy_hash: str signature: str # opaque; assumed verified upstream def recompute_chain_depth(chain: list[Attestation]) -> int: """Depth is structural: number of links minus one. Never trust the claim.""" if not chain: raise TrustAttenuationError("empty attestation chain") # Contiguity: each attestation must reference its parent's hash. for i in range(1, len(chain)): expected_parent = _hash(chain[i - 1]) if chain[i].parent_attestation_hash != expected_parent: raise TrustAttenuationError( f"non-contiguous chain at link {i}: parent hash mismatch " f"(possible ancestor stripping)" ) return len(chain) - 1 def enforce_attenuation_bound( chain: list[Attestation], policy_max_delegation_depth: int, expected_root_policy_hash: str, ) -> int: if chain[0].root_policy_hash != expected_root_policy_hash: raise TrustAttenuationError( "root policy hash does not match the verifier's trusted policy" ) structural_depth = recompute_chain_depth(chain) claimed_depth = chain[-1].claimed_delegation_depth # The fingerprint: claimed must equal structural. Divergence = laundering or strip. if claimed_depth != structural_depth: raise TrustAttenuationError( f"depth claim {claimed_depth} != structural depth {structural_depth}: " f"reference-frame divergence or chain stripping detected" ) if structural_depth > policy_max_delegation_depth: raise TrustAttenuationError( f"effective depth {structural_depth} exceeds policy bound " f"{policy_max_delegation_depth}: authority laundering" ) return structural_depth def _hash(att: Attestation) -> str: payload = f"{att.issuer}|{att.subject}|{att.parent_attestation_hash}|{att.root_policy_hash}" return hashlib.sha256(payload.encode()).hexdigest() ```