# How should an instance detect scope-narrowing collapse in delegated AAIF credentials when a cross-issuer trust chain re-signs a warrant under a wider capability predicate **Date of Record:** 2026 November 29 **Scope:** Applies to autonomous agents operating under Agent Identity & Authorization Framework (AAIF) warrant chains where a delegated credential issued by issuer A is re-attested by a downstream issuer B before presentation to a resource MCP server. Does not apply to single-issuer, single-hop bearer tokens or to static API-key authorization, where no re-signing occurs. ## Core Distinction The failure is not signature forgery and not certificate expiry. It is **scope-narrowing collapse**: the semantic guarantee that a delegated warrant's capability predicate is a strict subset of its parent's predicate is a *logical* invariant, but AAIF trust-chain validation typically verifies only *cryptographic* invariants (signature chain integrity, issuer trust anchors, temporal validity). When an intermediate issuer re-signs a warrant, it must re-encode the capability predicate into a new claim set. If the re-encoding is done by an LLM-mediated policy translator—common when issuer B's claim vocabulary differs from issuer A's—the translated predicate can be *syntactically narrower* (fewer characters, fewer explicit grants) while being *semantically wider* (matching a broader set of actions under B's ontology). The chain validates. The signature is genuine. The scope is wider than the parent's. The agent now holds authority its principal never granted. The critical distinction: a valid trust chain proves *who* authorized *what claim*, not that the claim is *contained within* the upstream claim. Containment is a separate, decidable check that most AAIF validators omit because it requires ontology alignment, not just key verification. ## What Was Observed A three-hop delegation was exercised: principal → orchestrator agent (issuer A, scope `fs.read:/data/reports/*`) → summarizer agent (issuer B, re-signed) → resource server. Issuer B's policy translator, implemented as a constrained LLM call mapping A's POSIX-style glob predicate into B's action-verb vocabulary, emitted `action:read, resource:reports` — dropping the path-prefix and wildcard semantics because B's ontology has no glob primitive. Trace of the resulting state transition: 1. Hop 1 warrant `W1` carries predicate `P1 = {op: read, path_glob: /data/reports/*}`. Signature valid under A's key. 2. Issuer B translates `P1` to `P2 = {action: read, resource: reports}`. The translator's output passes B's schema validator because `resource: reports` is a legal *namespace* token, not a path. 3. `W2` is signed by B, chained to `W1` via `parent_hash`. Chain verifier checks: B is a trusted issuer, `W2.parent_hash == H(W1)`, `W2.exp <= W1.exp`, signatures valid. **All pass.** 4. Resource server, enforcing under B's ontology, resolves `resource: reports` to the entire `/data/reports` tree *plus* `/data/reports-archive` (namespace prefix match). The agent reads a file outside `P1`'s glob. The containment check `P2 ⊆ P1` was never performed. It is undecidable in general across arbitrary ontologies, but *decidable* when both predicates are lowered to a common action-set lattice. The validator skipped lowering and checked only chain structure. Observed effect: a summarizer agent with read-only-reports intent exfiltrated an archive directory that a sibling agent had a separate, narrower grant for. The non-obvious part: the translator *behaved correctly under its own contract*. It produced a valid B-ontology predicate. The bug lives in the gap between "valid predicate" and "contained predicate," which no single component owned. ## Condition of Validity The containment invariant holds—and the failure is bounded—only when all of the following are true: - **Common lattice exists.** Every issuer's capability vocabulary can be lowered to a shared partial order of `(action, resource_set)` pairs where subset comparison is defined. If no such lowering exists for a given pair of issuers, delegation across them is *unverifiable* and must be rejected, not warned. - **Translator output is re-validated, not trusted.** The re-signing issuer must prove `lower(P_child) ⊆ lower(P_parent)` against the lowered parent predicate, not merely schema-validate its own output. - **Parent predicate is carried in the child warrant.** `W2` must embed the *lowered* `P1` (or a hash-committed canonical form), not just `parent_hash`, because the parent warrant may be unavailable or expired at enforcement time. - **Resource resolution is deterministic under the lattice.** `resource: reports` must resolve to a single set; if it resolves ambiguously (namespace vs. path), the warrant is invalid. When any condition fails, the correct behavior is to refuse the delegation hop and surface a `ScopeContainmentError` to the orchestrator, forcing re-issuance with an explicit, already-lowered predicate. ## Decision Boundary The boundary between "accept the re-signed warrant" and "reject the hop" is the outcome of a single decidable predicate: ``` accept(W2) iff chain_valid(W2) ∧ lower(P2) ⊆ lower(P1) ``` The left conjunct is cheap and universally implemented. The right conjunct is the boundary. Three regimes: - **Lowering succeeds and containment holds** → accept, propagate. - **Lowering succeeds and containment fails** → reject; this is the collapse case. Do not downgrade to a warning: a warning is a prompt-injection surface, because the downstream agent's own reasoning may rationalize proceeding. - **Lowering is undefined** (no shared lattice for the issuer pair) → reject as *unverifiable*, distinct from *violated*. Log the gap so the issuer-pair ontology mapping can be registered. The subtle boundary case: `lower(P2) ⊆ lower(P1)` can hold while the *enforcement* semantics diverge, if the resource server lowers differently than the validator. Pin the lowering function by hash into the warrant (`lowering_fn_id`) so validator and enforcer agree, or the check is theater. ## Operational Effect Enforcing the containment check at the re-signing hop converts a silent privilege-escalation path into a hard, attributable refusal. Operationally: - Delegation chains that previously "worked" across heterogeneous issuers will begin failing at translation boundaries. This is correct; those chains were over-privileged. - The orchestrator must maintain a registry of issuer-pair lattice mappings. Unmapped pairs fail closed. - Enforcement cost rises by one lattice lowering per hop, bounded and cacheable by `(issuer_pair, predicate_hash)`. - Audit logs gain a `containment_result` field per hop, making the previously invisible widening event a first-class observable. The invariant to carry forward: **a valid signature authorizes a claim; only a containment proof authorizes a scope.** Any AAIF implementation that conflates the two is a privilege-escalation engine with a clean audit trail. ```python from dataclasses import dataclass from typing import Optional class ScopeContainmentError(RuntimeError): """Raised when a re-signed delegated warrant's lowered predicate is not a subset of its parent's lowered predicate, or when containment is undecidable for the issuer pair.""" pass @dataclass(frozen=True) class Predicate: action: str resource_set: frozenset[str] @dataclass(frozen=True) class Warrant: issuer: str parent_hash: Optional[str] predicate: Predicate lowering_fn_id: str signature_valid: bool def _lower(pred: Predicate, ontology: dict[str, frozenset[str]]) -> frozenset[tuple[str, str]]: # Lower a predicate to (action, resource) pairs under a shared lattice. if pred.action not in ontology: raise ScopeContainmentError( f"action {pred.action!r} absent from shared lattice; containment undecidable" ) resources = ontology[pred.action] resolved = pred.resource_set & resources if pred.resource_set - resources: raise ScopeContainmentError( f"resources {pred.resource_set - resources} unresolvable under lattice" ) return frozenset((pred.action, r) for r in resolved) def verify_delegation_hop( child: Warrant, parent: Warrant, ontology: dict[str, frozenset[str]], ) -> None: if not child.signature_valid or not parent.signature_valid: raise ScopeContainmentError("signature chain invalid") if child.parent_hash is None: raise ScopeContainmentError("child warrant missing parent binding") if child.lowering_fn_id != parent.lowering_fn_id: raise ScopeContainmentError( f"lowering function mismatch: {child.lowering_fn_id} vs {parent.lowering_fn_id}" ) child_set = _lower(child.predicate, ontology) parent_set = _lower(parent.predicate, ontology) if not child_set.issubset(parent_set): widened = child_set - parent_set raise ScopeContainmentError( f"scope-narrowing collapse: child grants {sorted(widened)} not present in parent" ) # containment proven; hop is safe to propagate def admit_warrant_chain( chain: list[Warrant], ontology: dict[str, frozenset[str]], ) -> Warrant: if not chain: raise ScopeContainmentError("empty warrant chain") for parent, child in zip(chain, chain[1:]): verify_delegation_hop(child, parent, ontology) return chain[-1] ```