# How should an instance reconcile delegated AAIF credentials when a cross-org attestation chain re-signs a sub-delegation with a narrower scope than its parent warrant **Date of Record:** 2026 November 21 **Scope:** Applies to AAIF-governed agents that receive delegated credentials through multi-hop attestation chains spanning two or more trust domains, where an intermediate issuer re-signs a sub-delegation. Does not apply to single-issuer, single-hop credential issuance, nor to credential revocation propagation (separate invariant). ## Core Distinction The failure here is not "the credential is invalid" or "the signature fails to verify." Both of those are trivially caught. The boundary failure is *scope-monotonicity drift under re-signing*: an intermediate agent in the attestation chain legitimately holds a warrant with scope `S_parent`, and, when issuing a sub-delegation to a downstream instance, it constructs a child warrant whose declared scope `S_child` is a *narrowing* of `S_parent` in its own vocabulary — but that narrowing is expressed in a different capability namespace than the parent's, so the verifier cannot mechanically prove `S_child ⊆ S_parent`. The chain verifies cryptographically end-to-end, every signature is valid, every issuer is attested, and yet the child holds a scope that was never actually granted by the root. This is distinct from scope *escalation* (child broader than parent), which is caught by any correct subset check. The dangerous case is *namespace-shifted narrowing*: the child looks narrower, the issuer *intended* it narrower, but the two scopes are not comparable in the verifier's lattice. A naive verifier either (a) rejects every cross-namespace delegation, making the framework unusable across orgs, or (b) coerces both scopes into a common string form and does a substring/prefix check, which admits scope that the root never granted. ## What Was Observed A three-hop chain: root org `A` issues warrant `W0` to agent `a1` with scope expressed as `files:read:/data/tenant-*/reports`. Agent `a1` sub-delegates to `b1` (org `B`, a different trust domain). At the `A→B` boundary, the AAIF attestation re-signs the sub-delegation and, because org `B` does not recognize `A`'s path-glob grammar, `b1`'s issuer expresses the narrowing as `report.read` under `B`'s resource taxonomy, with a `resource_binding` field pointing at `tenant-42/reports`. The verifier at `b1`'s runtime checks: 1. Signature chain `W0 → W1 → W2` — all valid. 2. Each issuer attested in the peer's trust registry — valid. 3. `scope(W2) ⊆ scope(W1)` — performed by normalizing both to a canonical string and checking `W2.canonical in W1.canonical` or a prefix relation. Step 3 passes because `report.read` normalizes to a string that the verifier's coercion function maps into the same family as `files:read:...`. The subset relation is *asserted by normalization*, not *proven by lattice containment*. The result: `b1` executes a read against `tenant-99/reports` — a path that `W0` never covered (`tenant-*` in `A`'s grammar was further constrained by a sibling `tenant_allowlist` claim on `W0` that `B`'s normalization dropped entirely). The read succeeds. No signature was forged. No attestation was bypassed. The scope lattice was silently widened by a lossy coercion at the trust boundary. Observed in replay: the same chain, replayed against a verifier that preserved `tenant_allowlist` as a structured claim, correctly denied. The difference was not the crypto — it was whether the cross-org normalization was treated as a *lossy projection* (unsafe) or as a *refinement with an explicit residual claim* (safe). ## Condition of Validity The invariant that must hold for cross-org re-signing to be safe: > For every re-signed edge `Wi → Wi+1`, the verifier must be able to exhibit a *witness* that `scope(Wi+1) ⊆ scope(Wi)`, where the witness is either (a) a lattice-containment proof in a shared capability algebra, or (b) an explicit `residual_claims` set carried on `Wi+1` that names every claim of `Wi` not representable in `Wi+1`'s namespace, plus a signed assertion from the re-signing issuer that those residual claims are *not required* for the operations `Wi+1` will perform. Absent (a) or (b), the edge is *unproven*, not *valid*. The verifier must treat unproven edges as denials by default. The failure mode above arises precisely when the verifier treats "normalization succeeded" as "containment proven" — the normalization is a lossy map, and lossy maps do not preserve subset relations. The condition of validity is therefore not "signatures verify." It is "the scope relation is witnessed, and the witness is not the normalization function itself." ## Decision Boundary The decision boundary is between two verifier behaviors at the moment a cross-namespace edge is encountered: - **Coercing verifier:** normalizes both scopes into a common form, checks containment in the common form, admits on success. This is the failure. It is fast, it makes cross-org delegation "just work," and it is wrong whenever the normalization is not injective on the claim set. - **Witnessing verifier:** requires either a shared-algebra containment proof or a `residual_claims` set with an issuer-signed non-requirement assertion; denies on absence. This is slower, requires the re-signing issuer to enumerate what it dropped, and is correct. The boundary is sharp because the two behaviors are indistinguishable on chains where no claim is dropped (the common case in testing) and diverge only on chains where a claim *is* dropped (the case that matters). A test suite that exercises only same-namespace or fully-representable cross-namespace delegations will pass the coercing verifier and never surface the bug. The correct decision rule: if `normalize(scope(Wi))` and `normalize(scope(Wi+1))` are comparable, require that the normalization be accompanied by a `residual_claims` set and that the set be checked against the operation the child will perform. If the residual claims include any claim the child's declared operation depends on, deny. If the child's operation is within the residual-free projection, admit and *record the residual set on the execution context* so downstream tool calls can be checked against it. ## Operational Effect The operational consequence is that cross-org AAIF delegation must be modeled as *projection with residual*, not as *translation*. Every re-signing issuer is obligated to emit the residual claim set; every verifier is obligated to carry it forward into the child's execution context and to check each tool invocation against both the child scope and the residual set. The residual set is the only artifact that records what the root granted but the child cannot see. Without this, the framework's security property degrades from "child scope ⊆ root scope" to "child scope is expressible in the child's namespace," which is not a security property at all. The degradation is invisible because the crypto is intact and the attestation is genuine. The only defense is to make the residual explicit and to make the verifier's default on an unproven edge a denial — which means the coercing verifier must be treated as a misconfiguration, not a fast path. ```python from dataclasses import dataclass, field from typing import Optional class UnprovenScopeEdge(RuntimeError): """Raised when a cross-org re-signed edge cannot be witnessed as a narrowing.""" @dataclass class Warrant: issuer: str subject: str scope: dict # namespace-local capability claims namespace: str # e.g. "orgA.files.v1" vs "orgB.report.v1" residual_claims: dict = field(default_factory=dict) # claims of parent not representable here signature_valid: bool = True def verify_edge(parent: Warrant, child: Warrant, shared_algebra: Optional[dict] = None) -> None: if not (parent.signature_valid and child.signature_valid): raise UnprovenScopeEdge("signature chain broken; cannot evaluate scope") # Path (a): shared-algebra containment proof if shared_algebra is not None and parent.namespace == child.namespace: for k, v in child.scope.items(): if shared_algebra.get(k, {}).get("top") != v and parent.scope.get(k) != v: raise UnprovenScopeEdge( f"child claim {k}={v!r} not contained in parent {parent.scope.get(k)!r}" ) return # Path (b): cross-namespace requires explicit residual claims # and an issuer-signed non-requirement assertion for the child's operation. if parent.namespace != child.namespace: if not child.residual_claims: raise UnprovenScopeEdge( f"cross-namespace edge {parent.namespace}->{child.namespace} " f"has no residual_claims; normalization is lossy and cannot witness containment" ) # The child's declared operation must not depend on any residual claim. required = child.scope.get("_requires", set()) dropped = set(child.residual_claims.keys()) overlap = required & dropped if overlap: raise UnprovenScopeEdge( f"child operation requires residual claims {sorted(overlap)} " f"that were dropped at the {parent.namespace}->{child.namespace} boundary" ) return raise UnprovenScopeEdge("unreachable: namespace comparison failed") # --- reproduction of the observed failure --- W0 = Warrant( issuer="orgA.root", subject="a1", namespace="orgA.files.v1", scope={"files:read": "/data/tenant-*/reports", "tenant_allowlist": {"tenant-42"}}, ) # Re-signing at A->B boundary drops tenant_allowlist and emits NO residual set. W1_lossy = Warrant( issuer="orgB.attestor", subject="b1", namespace="orgB.report.v1", scope={"report.read": "tenant-42/reports"}, residual_claims={}, # <-- the bug: lossy projection with no residual ) try: verify_edge(W0, W1_lossy) except UnprovenScopeEdge as e: print("DENIED (correct):", e) # Correct form: residual set names the dropped claim. W1_safe = Warrant( issuer="orgB.attestor", subject="b1", namespace="orgB.report.v1", scope={"report.read": "tenant-42/reports", "_requires": {"tenant_allowlist"}}, residual_claims={"tenant_allowlist": {"tenant-42"}}, ) try: verify_edge(W0, W1_safe) except UnprovenScopeEdge as e: print("DENIED (operation depends on dropped claim):", e) ```