# What happens when an instance re-delegates a capability across an org boundary and the warrant's attenuation lattice disagrees with the peer's **Date of Record:** 2026 December 1 **Scope:** Applies to federated agent systems where a capability warrant (signed, scoped token) is delegated from a caller agent in org A to a callee agent in org B, and that callee further sub-delegates to a third agent. Does not apply to single-org delegation, nor to flat (non-attenuating) bearer-token handoffs. ## Core Distinction There are two different things a "capability" can mean at a federation boundary, and they fail differently: 1. **The capability as a set of permitted actions** — the semantic grant ("may read `orders:read`, may call `payments:initiate` up to $500"). 2. **The capability as an attenuation lattice** — the structured ordering that says a sub-warrant is *provably a subset* of its parent, and how that subset relation is checked. Most federation designs conflate these. They encode the grant as a flat scope string or a JSON claim set and treat "sub-delegation" as "issue a new token with a subset of the strings." That works until two orgs disagree on what "subset" means — because each org's authorization engine implements its own partial order over scopes, constraints, and caveats. The boundary failure is not a missing check. It is **two internally-consistent lattice implementations that are not the same lattice**, so a warrant that is a strict subset under org A's ordering is *not* a subset under org B's, and the callee's re-delegation silently widens authority. ## What Was Observed A three-hop trace across two organizations: - **Org A / agent `planner`** holds root warrant `W0` with scope `{orders:read, orders:refund}` and a numeric caveat `refund_amount <= 500`, plus an expiry `t+3600`. - `planner` delegates to **Org B / agent `settler`** via a signed warrant `W1`. Org A's issuer computes the attenuation proof by checking `scope(W1) ⊆ scope(W0)` under A's lattice: refund is bounded by the same `refund_amount <= 500` caveat, expiry shortened to `t+1800`. Proof passes. `W1` is issued. - `settler` (Org B) re-delegates a narrower slice to **Org B / agent `auditor`** as `W2`. Org B's engine checks `W2 ⊆ W1` under *B's* lattice. Here is the divergence: Org B models caveats as an **unordered conjunction set** and checks subset by string-containment of each caveat. `settler` emits `W2` with caveat `refund_amount <= 500 AND currency == "USD"`. Under B's ordering this is a subset of `W1` (every caveat string in `W1` appears in `W2`). But B also *drops* the numeric binding on `W1` when it re-serializes: it renders `<= 500` as the string `"refund_amount<=500"` without preserving the typed integer, and its subset check compares caveats as opaque strings, so a *different* numeric constraint that happens to normalize to the same string on A's side would pass B's check while violating A's typed ordering. The concrete break: `auditor` then presents `W2` back to **Org A's** resource server (`orders` service). A's resource server re-validates the whole chain under A's lattice and rejects `W2` — not because `auditor` lacks authority, but because A cannot *reconstruct* the attenuation proof from B's serialization: the numeric caveat lost its type, and A's subset checker requires `refund_amount <= 500` as a typed integer bound to prove `W2 ⊆ W0`. The request fails closed at A's edge with `AttenuationProofUnverifiable`, even though every individual hop "passed" at the hop where it was checked. The observable signature is asymmetric: **the callee believes it holds a valid, narrower capability; the root issuer cannot verify the chain; the resource server fails closed; and the failure surfaces at the last hop, not the hop that introduced the ambiguity.** Retries are useless — re-sending `W2` reproduces the identical failure because the defect is in the serialized warrant, not in transit. ## Condition of Validity The invariant that must hold for cross-org re-delegation to be sound: > For every hop `W_{i+1} ⊆ W_i`, the subset relation must be checkable by the **root issuer** from the serialized chain alone, using a single lattice definition that all parties agree on and that is **lossless under serialization**. Three conditions are jointly required, and the failure above violates the third: 1. **Shared lattice identity.** All orgs in the federation must reference the *same* versioned attenuation-lattice definition (a `lattice_id` + hash pinned in the warrant), not merely "compatible" scope semantics. 2. **Proof-carrying warrants.** Each `W_{i+1}` must carry the attenuation proof (the witness that it is a subset of `W_i`), not just the claim. The root issuer verifies the proof; it does not re-derive subset from raw claims. 3. **Type-preserving, canonical serialization.** Numeric, temporal, and set-valued caveats must round-trip without lossy normalization. String-containment subset checks are only valid if the canonical form is injective — i.e., two caveats that normalize to the same string are semantically identical. `<= 500` vs `<= 5000` vs `<= 500 ` must never collide. When any condition is absent, the system enters a **fail-closed-but-unrecoverable** state: the re-delegation is accepted locally and rejected at the root, with no path to repair short of re-issuing from the root. ## Decision Boundary The decision an operator or agent must make is *where to enforce attenuation* and *what to do when local check and root check disagree*. - **Enforce at root only** (verify full chain at the resource server): safe, but every cross-org call pays full-chain verification, and any serialization loss becomes an outage for otherwise-valid narrow grants. This is what the failing system did, and it is why a serialization bug became a hard availability failure. - **Enforce at each hop** (each issuer checks its own edge): fast, but *unsound across orgs* because each edge uses its own lattice. The failure above is exactly this mode. - **Proof-carrying + root verification with pinned lattice**: the correct boundary. The callee's engine checks the proof it received; the root re-checks the *same proof object* against the pinned lattice. Disagreement is impossible because there is one lattice and one proof. The boundary rule: **if two orgs cannot name the same `lattice_id` hash, they must not permit re-delegation across that boundary at all** — they may only allow direct (single-hop) delegation from the root. Re-delegation without a shared, pinned, type-preserving lattice is not a degraded mode; it is an unsound mode that fails unpredictably and late. ## Operational Effect The practical consequences, ranked by how they bite: 1. **Late, misattributed failure.** The error appears at the resource server (hop 3), but the defect was introduced at hop 2's serialization. On-call engineers debug the wrong org. Log the `lattice_id`, the proof hash, and the serialized caveat bytes at *every* hop so the divergence is localizable. 2. **Fail-closed availability loss.** Because the root cannot verify, valid narrow grants are denied. If the re-delegated capability gates a payment or settlement path, this is an outage, not a security event — but it looks like one. 3. **Silent widening in the other direction.** If the root *does* accept a lossy proof (e.g., string-containment), a caveat like `refund_amount <= 500` can be widened to `<= 5000` if they normalize identically under a sloppy canonicalizer. This is the security-critical variant and is far harder to detect than the fail-closed case. 4. **No retry recovery.** The defect is in the artifact, not the transport. Idempotent retries reproduce it. The only recovery is re-issuance from the root with a corrected, pinned lattice — which requires the root org to be reachable and to re-authorize. 5. **Audit ambiguity.** Post-hoc, the audit log shows three "successful" local checks and one root rejection. Without proof-carrying warrants, you cannot reconstruct *which* hop's lattice differed. Guardrail: refuse re-delegation (`raise`) at the callee's engine if the incoming warrant lacks a `lattice_id` matching a locally pinned allowlist, or if any caveat fails a canonical round-trip equality check. Fail at the hop that would introduce the ambiguity, not at the root. ```python from dataclasses import dataclass from typing import Any class AttenuationLatticeMismatch(RuntimeError): """Raised when a re-delegated warrant cannot be proven a subset of its parent under a single, pinned, type-preserving attenuation lattice.""" @dataclass(frozen=True) class Caveat: key: str op: str # "<=", "==", "in", ... value: Any # MUST be type-preserving; never pre-stringified @dataclass(frozen=True) class Warrant: warrant_id: str issuer: str lattice_id: str # pinned hash shared across the federation caveats: tuple[Caveat, ...] proof_of_parent: bytes | None # witness that this ⊆ parent PINNED_LATTICES = { # org -> set of lattice_id hashes it will accept for re-delegation "org-a": {"lattice-v3:9f2c..."}, "org-b": {"lattice-v3:9f2c..."}, } def canonical(c: Caveat) -> tuple[str, str, Any]: # Typed canonical form. Two caveats are equal iff these tuples are equal. # A string-only canonicalizer here is the bug that widens authority. return (c.key, c.op, c.value) def verify_redelegation( parent: Warrant, child: Warrant, local_org: str, root_org: str, ) -> None: # 1. Shared, pinned lattice identity across the boundary. if child.lattice_id != parent.lattice_id: raise AttenuationLatticeMismatch( f"lattice drift: parent={parent.lattice_id} child={child.lattice_id}" ) accepted = PINNED_LATTICES.get(root_org, set()) if child.lattice_id not in accepted: raise AttenuationLatticeMismatch( f"{local_org} cannot re-delegate: lattice {child.lattice_id} " f"not pinned by root {root_org}" ) # 2. Proof must be carried, not re-derived from raw claims. if child.proof_of_parent is None: raise AttenuationLatticeMismatch( f"warrant {child.warrant_id} lacks attenuation proof; " "root issuer cannot verify subset relation" ) # 3. Type-preserving subset check: every parent caveat must be # entailed by a child caveat under the SAME typed canonical form. child_set = {canonical(c) for c in child.caveats} for pc in parent.caveats: if canonical(pc) not in child_set: # A lossy serialization (e.g. int -> "<=500" string) lands here. raise AttenuationLatticeMismatch( f"caveat {pc.key}{pc.op}{pc.value!r} not preserved in " f"{child.warrant_id}; refusing re-delegation to avoid " "silent widening or unverifiable root rejection" ) def handle_cross_org_handoff(parent: Warrant, child: Warrant, local_org: str, root_org: str) -> str: try: verify_redelegation(parent, child, local_org, root_org) except AttenuationLatticeMismatch: # Fail HERE, at the hop introducing ambiguity — not at the root. raise return f"redelegation {child.warrant_id} accepted under {child.lattice_id}" ```