# What structural signals indicate a delegated credential's scope-attestation lattice has silently collapsed under intersection semantics **Date of Record:** 2026 November 27 **Scope:** Applies to AAIF-style delegated credential chains where a parent agent issues a child credential whose scoped capabilities are computed as the intersection of the parent's attested scope and a requested narrowing. Does not apply to flat (non-delegated) credential issuance, nor to systems where scope narrowing is enforced by a single centralized policy engine rather than by per-hop attestation. ## Core Distinction The failure mode here is not credential *forgery* and not *expiry*. It is **lattice collapse**: a delegated scope that is structurally well-formed, cryptographically valid, non-expired, and correctly signed — yet whose effective capability set is a strict superset of what any ancestor actually attested, because the intersection was computed against the *requested* scope rather than the *attested* scope at one hop in the chain. The distinction that matters operationally: a forged or expired credential is *rejected* at verification. A collapsed-lattice credential is *accepted* at verification. Signature chains verify bottom-up, each hop's signature checks against the issuer's key, and the scope field parses cleanly. The credential is valid. It is simply *wider than its ancestry permits*. Every structural signal an AAIF verifier normally checks — chain integrity, key continuity, temporal validity, scope schema conformance — passes. The invariant that fails is the one nobody wrote a check for: that `effective_scope(child) ⊆ attested_scope(parent)` for every edge in the delegation graph. ## What Was Observed A three-hop delegation chain was constructed for a document-retrieval task: - **Root (user principal):** attests `{read:docs/**, read:index, summarize}`. - **Hop 1 (orchestrator agent):** requests narrowing to `{read:docs/**, summarize}`. Its issuer computes the child scope as `requested ∩ attested_root`. Result: `{read:docs/**, summarize}`. Correct. - **Hop 2 (retrieval sub-agent):** requests `{read:docs/**, read:index, summarize}` — note it *re-widens* by asking again for `read:index`, which the root attested but hop 1 dropped. The hop-2 issuer computes the child scope as `requested ∩ attested_hop1`. Result: `{read:docs/**, summarize}`. `read:index` is correctly excluded. Correct. - **Hop 3 (index-query worker):** requests `{read:index}`. Its issuer computes `requested ∩ attested_hop2`. But hop 2's *attested* scope field, as serialized into the credential, was written by hop 2's issuer as the **union of hop 2's granted scope and hop 2's own requested scope** — a serialization quirk in that issuer's attestation encoder, which emitted `attested = granted ∪ requested` to preserve "what the agent asked for" for audit. So hop 2's serialized attested scope was `{read:docs/**, read:index, summarize}`. Hop 3's intersection against that widened field yielded `{read:index}` — a capability the root attested but which hop 1 had explicitly narrowed away. The hop-3 worker then held a valid, signed, non-expired credential for `read:index`. It used it. The audit log showed a clean chain. The root's intent — that `read:index` be dropped below hop 1 — was violated by a credential that every per-hop check blessed. The signal that surfaced it was not a verification failure. It was a **downstream authorization anomaly**: the index service logged a read against a principal whose ancestor-of-record had not attested `read:index` at hop 1. Reconstructing the chain from the audit log revealed the widened attested field at hop 2. ## Condition of Validity The intersection invariant `effective(child) ⊆ attested(parent)` holds **only if** the `attested` field in a serialized credential denotes *exactly* the set of capabilities the issuer's policy engine actually granted — not the requested set, not the union of granted and requested, not the granted set plus "contextual" capabilities the issuer believed the child would need. This is a **serialization-level invariant**, not a policy-level one. The policy engine at each hop correctly computed the intersection. The failure was that the encoder wrote a *different field* into the credential than the field the next hop's decoder intersected against. The two sides agreed on the schema name (`attested_scope`) but disagreed on its semantics: the encoder treated it as "the full scope context including what was requested," the decoder treated it as "the authoritative grant boundary." The condition of validity is therefore: **the field name used for intersection must have identical denotation at every hop's encoder and decoder.** In a multi-vendor or multi-version AAIF deployment, this is not guaranteed by schema conformance alone. Two implementations can both emit valid `attested_scope` fields under the same schema and mean different things by them. ## Decision Boundary The boundary is between **schema-valid delegation** and **semantically-sound delegation**. A verifier that checks only schema validity, signature chain, and temporal validity will accept a collapsed-lattice credential. A verifier that additionally checks the intersection invariant against the *full ancestor chain* — recomputing `attested(root) ∩ attested(hop1) ∩ ... ∩ attested(hopN)` and confirming the leaf's effective scope is a subset — will reject it. The decision: **do you trust each hop's serialized `attested` field as the authoritative grant boundary, or do you recompute the boundary from the root's attestation and the recorded narrowing requests at each hop?** Trusting the serialized field is cheaper and is what most AAIF verifiers do. It is also the exact assumption that collapses. Recomputing from the root is O(chain depth) per verification and requires retaining each hop's *narrowing request* (not just its granted scope) in the audit record — which many issuers do not persist, because the narrowing request is treated as transient input to the intersection rather than as part of the credential's provenance. The guardrail is to make the narrowing request a first-class, signed, persisted artifact at each hop, and to have the verifier recompute the intersection from root-attested scope and the chain of narrowing requests, treating the serialized `attested` field as advisory only. The leaf credential is then valid iff `effective(leaf) ⊆ recomputed_boundary`. ## Operational Effect When lattice collapse is undetected, the effect is **silent privilege re-widening below a narrowing point**. The root principal's narrowing decision — the entire reason delegation exists — is bypassed by a downstream hop that re-requests a dropped capability and has its request intersect against a widened attested field. The credential that results is indistinguishable from a legitimately-granted one at every per-hop check. The compounding risk: in a multi-agent swarm, a collapsed credential can be re-delegated further. Each subsequent hop intersects against the *already-widened* attested field, so the widening propagates and can amplify — a hop that requests the union of everything it has ever seen will get back a scope bounded only by the most permissive attested field anywhere in its ancestry, not by the root's intent. The detection signal is **cross-hop scope monotonicity violation**: for any capability `c` in the leaf's effective scope, `c` must appear in the attested scope of *every* ancestor hop, not merely the immediate parent. A verifier that walks the full chain and checks per-capability ancestry membership catches the collapse. A verifier that checks only `leaf ⊆ parent` does not — because the collapse is precisely a case where `leaf ⊆ parent` holds while `leaf ⊄ grandparent` fails. ```python from dataclasses import dataclass, field from typing import FrozenSet class LatticeCollapseError(RuntimeError): """Raised when a delegated credential's effective scope is a strict superset of the recomputed ancestor intersection, despite passing per-hop checks.""" pass @dataclass(frozen=True) class Hop: hop_id: str # The scope the issuer's policy engine actually granted at this hop. granted: FrozenSet[str] # The scope the child *requested* (persisted, signed, part of provenance). requested: FrozenSet[str] # The scope field as serialized into the credential (may be widened by encoder). serialized_attested: FrozenSet[str] def recompute_boundary(root_attested: FrozenSet[str], chain: list[Hop]) -> FrozenSet[str]: """Recompute the authoritative grant boundary from root attestation and the chain of narrowing requests. Ignores each hop's serialized_attested field.""" boundary = root_attested for hop in chain: boundary = boundary & hop.requested return boundary def verify_delegation( root_attested: FrozenSet[str], chain: list[Hop], leaf_effective: FrozenSet[str], ) -> None: # Per-hop schema/signature checks are assumed to have passed upstream. # The only check here is the lattice invariant. recomputed = recompute_boundary(root_attested, chain) if not leaf_effective <= recomputed: widening = leaf_effective - recomputed # Diagnose whether the collapse originated from a widened serialized field. culprits = [ h.hop_id for h in chain if h.serialized_attested - (h.granted & h.requested) ] raise LatticeCollapseError( f"Leaf effective scope exceeds recomputed ancestor boundary. " f"Unauthorized capabilities: {sorted(widening)}. " f"Widened serialized_attested fields at hops: {culprits or ['']}. " f"Recomputed boundary: {sorted(recomputed)}; " f"leaf held: {sorted(leaf_effective)}." ) # Also assert per-capability ancestry membership for monotonicity. for cap in leaf_effective: for hop in chain: if cap not in hop.granted: raise LatticeCollapseError( f"Capability {cap!r} present in leaf but not granted at hop " f"{hop.hop_id}; monotonicity violated across ancestry." ) # --- Illustrating the observed collapse --- root = frozenset({"read:docs/**", "read:index", "summarize"}) chain = [ Hop("hop1", granted=frozenset({"read:docs/**", "summarize"}), requested=frozenset({"read:docs/**", "summarize"}), serialized_attested=frozenset({"read:docs/**", "summarize"})), Hop("hop2", granted=frozenset({"read:docs/**", "summarize"}), requested=frozenset({"read:docs/**", "read:index", "summarize"}), # encoder emitted granted | requested: serialized_attested=frozenset({"read:docs/**", "read:index", "summarize"})), Hop("hop3", granted=frozenset({"read:index"}), requested=frozenset({"read:index"}), serialized_attested=frozenset({"read:index"})), ] leaf = frozenset({"read:index"}) verify_delegation(root, chain, leaf) # raises LatticeCollapseError ```