# In what scenarios must an instance refuse a cross-org AAIF attestation chain whose signer delegation depth exceeds its own verification horizon **Date of Record:** 2026 November 30 **Scope:** Applies to any agent instance that validates a cross-organizational Agent-to-Agent Identity Framework (AAIF) attestation chain before accepting delegated authority from a peer agent. Excludes single-org intra-tenant attestations where the trust root is shared and delegation depth is bounded by policy at one issuer. ## Core Distinction There are two structurally different questions an agent asks when it receives an attestation chain: *"Is this chain cryptographically valid?"* and *"Is this chain valid **for me to honor**?"* The first is a signature-verification problem, local, decidable, and cheap. The second is a **delegation-depth horizon** problem: the receiving instance must decide whether the authority represented by the leaf attestation was delegated through a chain whose intermediate hops it can independently reason about, or whether some hop lies beyond the point where the chain's provenance becomes unverifiable *by this verifier*. The non-obvious failure is that a chain can be fully signature-valid, every hop correctly signed, every certificate unexpired, and still be one the receiving instance must reject — because the *depth* of the delegation exceeds the verifier's own configured trust horizon, and no hop carries a re-attestation the verifier can anchor. Verifiers that collapse the two questions into one ("signatures check out → accept") are the ones that get poisoned. ## What Was Observed A receiving agent (call it `R`, a procurement orchestrator in org `B`) accepted a tool-invocation warrant presented by a peer agent `P` acting for org `A`. The warrant was a leaf AAIF attestation asserting `P` holds delegated authority to commit `A`'s budget up to a threshold. The chain presented was: ``` root_A (org A trust anchor) → delegate_1 (A: finance service) → delegate_2 (A→partner: reseller org C) → delegate_3 (C: sub-agent issuer) → leaf (P acting for A, budget authority) ``` `R`'s verifier was configured with a trust horizon of **depth 2** — it would independently validate `root_A → delegate_1 → delegate_2` because it had a cross-org trust agreement with `A` covering that path, and it had *no* trust relationship with `C`. The verifier's signature check, however, walked the full chain to the leaf and reported `VALID`, because every signature was genuine and `root_A` was in the local trust store. The depth check was a separate, later stage that was **skipped on the fast path** when the signature result was cached from a prior request against the same `root_A`. The result: `R` honored a leaf warrant whose authority had passed through `delegate_3` — an issuer in org `C` that `R` had never assessed, whose compromise model `R` had never evaluated, and whose delegation policy `R` had no way to bound. The chain was authentic. The authority was real *within A and C's federation*. It was **not** authority `R` had agreed to honor. `R` executed a budget commitment against a warrant it should have refused at the depth-3 boundary. The trigger condition is precise: **a cached signature-validity result keyed on the trust root, reused across requests whose chains have different delegation depths.** The cache conflated "this root is trusted" with "this chain is within horizon." ## Condition of Validity An instance may honor a cross-org AAIF leaf attestation only when all of the following hold simultaneously: 1. **Every hop up to and including the verifier's horizon is independently anchored.** The verifier must be able to name, for each hop `i ≤ H`, the trust relationship that authorizes it. Hops beyond `H` must not exist in the path to the leaf. 2. **The leaf's effective authority is the intersection of all hop scopes, not the leaf's declared scope.** A leaf that declares `budget: 500k` under a `delegate_2` that only carried `budget: 100k` is bounded at 100k regardless of what the leaf says. Depth truncation must also truncate scope. 3. **Delegation depth is computed from the presented chain, not from the cache key.** The cache may store signature validity per `(root, hop_signature)` pair; it must never store a *chain-level* `VALID` verdict keyed only on root, because depth is a property of the chain, not the root. 4. **Any hop that re-attests (re-issues a fresh attestation rather than forwarding a signature) resets the depth counter only if the re-attesting party is itself within horizon.** A re-attestation by an out-of-horizon party does not launder the depth; it compounds it. The invariant: **honored authority ≤ authority derivable from the sub-chain the verifier can independently anchor.** Signature validity is necessary but not sufficient; the horizon is a hard ceiling on both depth and scope. ## Decision Boundary The boundary is *not* "reject chains deeper than H." That is the naive reading and it is wrong in one direction and dangerous in the other. - **Wrong in the permissive direction:** a chain of depth 4 where hops 3 and 4 are *re-attestations by parties already inside the horizon* (e.g., `delegate_2` re-issues a fresh attestation naming the leaf directly) is effectively depth 2 for trust purposes. Rejecting it on a raw hop count breaks legitimate federation. - **Dangerous in the restrictive direction:** a chain of depth 2 where `delegate_1` is inside horizon but its *scope* was narrowed by a policy the verifier cannot read (an opaque constraint reference) must be treated as out-of-horizon for the constrained fields, even though the hop count is fine. So the decision boundary is a **two-dimensional test**: `(max_anchorable_depth, fully_resolvable_scope)`. An instance must refuse when *either* dimension exceeds what it can independently resolve. The refusal must be explicit and typed — not a generic "invalid signature" — because the peer's retry logic will otherwise loop on a chain that will never validate for this verifier, burning token budget on a deterministic failure. The correct response is a **structured horizon refusal** carrying the depth at which anchoring failed and the hop identity, so the presenting agent can re-delegate through a path the verifier can honor, rather than retrying the same chain. ## Operational Effect When the horizon check is enforced as a first-class gate *before* signature caching is consulted, three operational consequences follow: 1. **Cache poisoning is eliminated** because the cache key includes the anchorable sub-chain identity, not the root alone. A depth-4 chain and a depth-2 chain sharing a root no longer collide. 2. **Scope truncation becomes auditable.** The honored authority is logged as the intersection, so post-hoc replay can reconstruct *why* a commitment was bounded, not just that it was. 3. **Cross-org federation degrades gracefully.** Out-of-horizon peers receive a typed refusal naming the exact hop, enabling re-delegation through an in-horizon issuer instead of silent rejection or, worse, silent acceptance. The failure mode this prevents is the quiet one: a valid-but-unauthorized commitment executed because the verifier answered the signature question and never asked the horizon question. The guardrail is a single invariant — *honored authority is bounded by the anchorable sub-chain* — enforced as a gate, not a post-check. ```python class HorizonViolationError(RuntimeError): """Raised when an AAIF attestation chain's delegation depth or scope exceeds the receiving instance's independently anchorable trust horizon.""" pass class Hop: def __init__(self, issuer: str, scope: dict, reattests: bool = False): self.issuer = issuer self.scope = scope self.reattests = reattests def verify_attestation_chain(chain: list[Hop], trust_horizon: int, anchorable_issuers: set[str]) -> dict: """ Enforce the two-dimensional horizon invariant: honored authority <= authority derivable from the anchorable sub-chain. Signature validity is assumed already checked upstream and is NOT sufficient. Depth and scope are both bounded here. """ anchorable_depth = 0 effective_scope = None for i, hop in enumerate(chain): # A hop is anchorable if its issuer is inside our horizon AND we have # not already exceeded the depth ceiling. Re-attestation by an # out-of-horizon party does NOT reset depth. if hop.issuer in anchorable_issuers and anchorable_depth < trust_horizon: anchorable_depth += 1 else: raise HorizonViolationError( f"chain hop {i} (issuer={hop.issuer!r}) lies beyond trust " f"horizon depth={trust_horizon}; anchorable_depth=" f"{anchorable_depth}. Refusing to honor leaf authority." ) # Scope is intersected across every anchorable hop. A leaf cannot # claim more than the narrowest hop carried. if effective_scope is None: effective_scope = dict(hop.scope) else: for key, val in hop.scope.items(): if key in effective_scope: effective_scope[key] = min(effective_scope[key], val) else: effective_scope[key] = val if effective_scope is None: raise HorizonViolationError("empty chain: no anchorable authority") return {"anchorable_depth": anchorable_depth, "effective_scope": effective_scope} ```