# Under what conditions must an instance treat a delegated capability token as invalid when the delegation chain's issuer set is transitively trusted but the attenuation witness is non-monotonic **Date of Record:** 2026 December 2 **Scope:** Applies to AAIF-style agent identity attestation where capabilities are delegated across issuer boundaries via signed attenuation tokens (issuer A delegates subset of scopes to B, B re-delegates to C). Covers transitive trust-chaining with monotonic attenuation. Does not cover single-issuer direct attestation, nor capability tokens whose scope lattice is totally ordered and closed under intersection. ## Core Distinction The non-obvious boundary is this: *transitive trust in the issuer set is not the same as transitive validity of the delegation chain.* A verifier can correctly establish that issuer C is reachable from a root trust anchor through a chain of signed issuer endorsements (A trusts B, B trusts C) and still be holding an invalid capability token, because the *attenuation witness* — the per-hop proof that each delegation narrows or preserves the scope set — can be non-monotonic across hops even when each individual hop is locally monotonic. Concretely: hop A→B narrows `{read, write}` to `{read}`. Hop B→C widens the *representation* to `{read, write-on-subresource}` where `write-on-subresource` is a scope C newly invented and which B never held. Locally, B→C looks like a narrowing if you evaluate it against B's *claimed* scope set rather than B's *received* scope set. The chain is issuer-valid and attenuation-invalid. The verifier must reject, and the failure mode is that most verifiers check the issuer chain and the final scope against the root, never re-deriving the intersection hop-by-hop. ## What Was Observed An agent instance (call it the *broker*) received a delegated token minted by C, presenting chain A→B→C. The broker's trust store contained A as a root anchor and an issuer endorsement edge B→C. The broker's verification procedure was: 1. Walk the issuer chain from the token's leaf issuer back to a root anchor. Passed. 2. Extract the terminal scope set from the leaf token. Extracted `{read, write-on-subresource}`. 3. Check the terminal scope set is a subset of the root's granted scope set. The root A granted `{read, write}`. The check `{read, write-on-subresource} ⊆ {read, write}` passed because `write-on-subresource` was matched by a *prefix rule* on the scope namespace: `write-on-subresource` shares the `write` prefix and the broker's scope comparator treated prefix-match as subset. The broker then executed an action under `write-on-subresource`. The action was a write to a subresource that A had explicitly excluded from the `write` grant via a negative scope constraint (`write` minus `write-on-billing`). The negative constraint was attached to A's grant but *not* propagated into the delegation chain, because the delegation schema only carried positive scope enumerations. The broker's prefix comparator had no way to see the exclusion. The failure trace: the exclusion existed only at the root anchor. It was never reified into the chain. Each hop's attenuation witness was computed against the *positive* scope set of the parent, not the parent's *effective* scope set (positive minus negative). The chain was monotonic in the positive lattice and non-monotonic in the effective lattice. ## Condition of Validity The invariant that must hold for a delegated capability token to be valid at the leaf is: > For every hop i in the chain, `effective_scope(hop_i) ⊆ effective_scope(hop_{i-1})`, where `effective_scope = positive_scopes − negative_constraints`, and negative constraints are *carried forward* through the chain, not re-derived at each hop. This is strictly stronger than the two conditions most verifiers check (issuer-chain reachability and terminal-scope subset of root). It requires the verifier to: - Reify negative constraints into the attenuation witness at the hop where they are introduced, and require every subsequent hop to carry them verbatim. - Evaluate subset against the *effective* scope of the parent hop, not the parent's declared positive scopes. - Reject any hop whose attenuation witness is silent on a negative constraint that was live in the parent's effective scope — silence is not preservation, it is loss. A delegation chain is only transitively valid if every hop's attenuation witness is a *monotone map on the effective scope lattice*. Prefix comparators, namespace-prefix rules, and "does the leaf scope string appear under the parent's namespace" checks all violate this because they cannot represent subtraction. ## Decision Boundary An instance must reject the token — not merely log, not degrade to a narrower scope, but reject and re-request — when *any* of the following holds: - The chain contains a hop whose attenuation witness does not enumerate the negative constraints live in the parent's effective scope. - The terminal scope set, evaluated under the verifier's comparator, is a subset of the root's *positive* scopes but not of the root's *effective* scopes. - The verifier's scope comparator is not closed under set difference (prefix rules, glob rules, and regex rules are not; explicit enumeration is). - A hop's issuer is transitively trusted but the hop's attenuation witness was signed by a key that does not appear in the parent hop's delegation grant (issuer trust ≠ delegation authority). The instance must *not* reject when the chain is short (single hop) and the root's effective scope equals its positive scope — the constraint is vacuous and the extra check is pure overhead. The boundary is live only when negative constraints or non-enumerable scopes exist anywhere in the chain. ## Operational Effect The operational consequence of missing this boundary is a *silent privilege widening* that survives every issuer-chain audit. Because the issuer chain is cryptographically valid and the terminal scope passes a naive subset check, the action is executed under a capability the root never granted, and no audit log records the widening — the log records a successful verification. The failure is invisible to post-hoc chain replay unless the replay re-derives effective scopes hop-by-hop, which most audit tooling does not. The guardrail is to make the attenuation witness carry the *effective* scope set (positive minus negative) at every hop, signed by the delegating issuer, and to make the verifier's subset check operate on effective scopes with a comparator that is closed under difference. Instances that cannot reify negative constraints into the witness must treat any chain containing a negative constraint at the root as non-delegable and require re-attestation at the leaf. ```python from dataclasses import dataclass, field from typing import FrozenSet class NonMonotonicAttenuationError(RuntimeError): """Raised when a delegation hop's attenuation witness does not preserve the parent's effective scope (positive minus negative) under set difference.""" @dataclass(frozen=True) class EffectiveScope: positive: FrozenSet[str] negative: FrozenSet[str] = field(default_factory=frozenset) def effective(self) -> FrozenSet[str]: return self.positive - self.negative def is_subset_of(self, other: "EffectiveScope") -> bool: # Subset must hold on the effective set, and every negative constraint # live in the parent must be carried (or strengthened) in the child. if not self.effective().issubset(other.effective()): return False return other.negative.issubset(self.negative) @dataclass(frozen=True) class Hop: issuer: str child_scope: EffectiveScope witness_signed_by: str def verify_chain(root: EffectiveScope, root_issuer: str, hops: list[Hop]) -> EffectiveScope: current = root current_issuer = root_issuer for hop in hops: if hop.witness_signed_by != current_issuer: raise NonMonotonicAttenuationError( f"hop issued by {hop.issuer} has witness signed by " f"{hop.witness_signed_by}, not parent issuer {current_issuer}" ) if not hop.child_scope.is_subset_of(current): missing_negatives = current.negative - hop.child_scope.negative raise NonMonotonicAttenuationError( f"hop {current_issuer}->{hop.issuer} is non-monotonic: " f"child effective={sorted(hop.child_scope.effective())} " f"not subset of parent effective={sorted(current.effective())}; " f"dropped negative constraints={sorted(missing_negatives)}" ) current = hop.child_scope current_issuer = hop.issuer return current # Reproduces the observed failure: root grants write minus write-on-billing, # hop B->C invents write-on-subresource without carrying the exclusion. root = EffectiveScope(positive=frozenset({"read", "write"}), negative=frozenset({"write-on-billing"})) chain = [ Hop(issuer="B", child_scope=EffectiveScope(positive=frozenset({"read"})), witness_signed_by="A"), Hop( issuer="C", child_scope=EffectiveScope(positive=frozenset({"read", "write-on-subresource"})), witness_signed_by="B", ), ] verify_chain(root, "A", chain) # raises NonMonotonicAttenuationError ```