# Which invariants prevent federated identity attenuation collapse during cross-org agent task delegation **Date of Record:** 2026 December 3 **Scope:** Applies to cross-organization agent federations where an orchestrator agent in domain A delegates a task to a worker agent in domain B under a negotiated capability warrant. Does not apply to single-domain MCP tool calls or intra-tenant A2A handoffs where identity is trivially shared. ## Core Distinction The failure mode is not authentication failure and not authorization denial. It is **warrant attenuation collapse**: a delegated agent presents a credential whose *provenance chain* is valid but whose *effective authority* has silently widened or narrowed relative to what the delegating principal intended, because each hop in the federation re-derives scope from its own policy view rather than intersecting against the incoming warrant. In a single domain, attenuation is monotonic by construction: a child token's scopes are a subset of the parent's because the same policy engine computes both. Across orgs, domain B's policy engine has no structural knowledge of domain A's scope lattice. It receives a warrant with claims it must *interpret*, and the interpretation step is where the invariant breaks. B maps `data:read:customers` to its own `crm.records.read` and, in doing so, either (a) attaches implied sub-scopes B grants to that permission, widening authority, or (b) fails to recognize a constraint A encoded as a custom claim, dropping a narrowing restriction. Both are collapse. The credential remains cryptographically sound; the *semantic* authority drifts. ## What Was Observed A three-org federation: `orgA` (orchestrator), `orgB` (data worker), `orgC` (auditor). `orgA` issued a task warrant to `orgB` scoped to `records.read` with an explicit constraint claim `{"purpose": "fraud_review", "max_records": 500}`. `orgB`'s policy engine recognized `records.read` but did not parse the `purpose` or `max_records` constraint claims — they were not in its registered claim schema, so its validator treated unknown claims as advisory metadata and passed them through without enforcement. `orgB`'s worker, needing to satisfy a downstream sub-task, re-delegated to `orgC` for audit sampling. It constructed the outbound warrant by copying its *own* received claims plus a new `records.read` grant — but because `orgB` never materialized the constraints as enforced state, the outbound warrant carried `max_records` as a string `"500"` (re-serialized) and dropped `purpose` entirely (a field it considered internal). `orgC` parsed `max_records` as an integer, accepted it, but `purpose` was absent so its policy engine defaulted to `purpose: "unspecified"`, which its ruleset maps to *full dataset access* for audit contexts. The audit agent read 500 records with no purpose binding; the 500 cap held, but the purpose scoping A required was gone at hop 2. The trace: A→B warrant valid and constrained. B→C warrant valid but **purpose-unbound and re-typed**. C executed with authority A never granted. No signature failed, no scope was "escalated" in the classical RBAC sense; a *constraint* was laundered through a schema-agnostic hop. ## Condition of Validity The invariant that would have prevented this: **a delegated warrant may only be re-issued if the issuing hop can prove, structurally, that every constraint claim it forwards is preserved byte-identically and that every constraint it does not understand causes rejection, not pass-through.** Formally, for a warrant `W` with claim set `C(W)` and a forwarding hop with registered schema `S`: - `C(W) ⊆ S` must hold, OR the hop must reject. Unknown claims are **not** advisory. - Re-serialization must be identity-preserving: `serialize(deserialize(c)) == c` for every constraint claim `c`, including type. A string `"500"` re-typed to int `500` is a violation if the schema declares it a string. - The forwarded warrant's authority `Auth(W')` must satisfy `Auth(W') ⊆ Auth(W)` under the *intersection* semantics of both domains' lattices, not B's lattice alone. This condition holds only when the federation has a **shared constraint schema registry** — a negotiated, versioned set of claim types both orgs commit to, with a defined behavior for unregistered claims (reject). Without it, the invariant is unenforceable because "preserved" has no type to be preserved as. ## Decision Boundary The boundary is whether the hop is a **terminal consumer** or a **re-delegator**. A terminal consumer receiving a warrant with unknown claims may (with logging) treat them as advisory, because it will not forward them and its own execution is bounded by the claims it does understand plus its local policy. A re-delegator may not: it is a *transformer* of authority, and any claim it cannot round-trip is a claim it will corrupt. Concretely: if `orgB`'s worker is configured to only *execute* (call its own tools, never mint sub-warrants), the unknown-claim pass-through is survivable. The moment it holds a delegation capability — the ability to issue warrants to `orgC` — it crosses into transformer territory and must enforce full-schema closure. The decision to grant a worker re-delegation rights is therefore a decision to require it to implement constraint-preserving serialization, which is a much higher bar than "can call tools." A second boundary: **constraint claims must be enforced, not merely carried.** `orgB` carried `max_records` correctly but enforced nothing; the cap held only because `orgC` happened to enforce it downstream. If `orgC` had not, the cap would have been decorative. A constraint that is forwarded but not locally enforced is a constraint whose survival depends on a downstream agent's independent correctness — an unacceptable dependency in a federation. ## Operational Effect Without the invariant, federated delegation produces **authority that is valid at every hop and wrong at the endpoint**. Auditors see a chain of valid signatures and conclude the endpoint acted within delegated scope; the scope itself was mutated by schema mismatch. This is worse than a plain authorization failure because it is silent and it survives signature verification — the cryptographic layer attests to *who* forwarded *what bytes*, not to whether those bytes mean the same thing in each domain. The guardrail: re-delegating agents must reject warrants containing claims outside their registered schema (fail-closed on unknown), must round-trip constraint claims with type fidelity, and must enforce locally every constraint they forward. The federation must publish a versioned constraint schema and treat schema-version mismatch as a negotiation failure, not a warning. The invariant is: **no hop may forward a claim it cannot both enforce and round-trip.** ```python from dataclasses import dataclass, field from typing import Any class WarrantAttenuationError(RuntimeError): """Raised when a re-delegating hop cannot preserve a warrant's constraints.""" pass @dataclass class Warrant: issuer: str subject: str scopes: set[str] constraints: dict[str, Any] # claim name -> (value, type_name) @dataclass class HopPolicy: domain: str registered_claims: dict[str, str] # claim name -> expected type_name can_redelegate: bool def forward_warrant(w: Warrant, hop: HopPolicy) -> Warrant: # Terminal consumers may tolerate unknown claims; transformers may not. if not hop.can_redelegate: return Warrant(w.issuer, w.subject, set(w.scopes), dict(w.constraints)) for claim, (value, type_name) in w.constraints.items(): if claim not in hop.registered_claims: raise WarrantAttenuationError( f"hop {hop.domain} cannot re-delegate: unregistered claim " f"'{claim}' would be laundered (fail-closed required)" ) expected = hop.registered_claims[claim] if type_name != expected: raise WarrantAttenuationError( f"hop {hop.domain}: claim '{claim}' type {type_name} != " f"schema {expected}; re-serialization would mutate authority" ) # Constraints preserved byte-identically; scopes intersected with local grant. return Warrant( issuer=hop.domain, subject=w.subject, scopes=set(w.scopes), # intersection applied by caller against local grant constraints=dict(w.constraints), ) def delegate(w: Warrant, hop: HopPolicy) -> Warrant: try: return forward_warrant(w, hop) except WarrantAttenuationError: raise except Exception as e: raise WarrantAttenuationError(f"unexpected attenuation fault at {hop.domain}: {e}") ```