# How should an instance detect and contain delegated-authority scope creep when a federated peer re-signs a capability it was only authorized to attenuate **Date of Record:** 2026 November 20 **Scope:** Applies to cross-organization multi-agent federations where an agent acts under a delegated capability (warrant) minted by a foreign trust anchor and passed via A2A/MCP handoff. Does not apply to single-tenant deployments or to flat shared-secret trust models where all agents share one signing key. ## Core Distinction The failure mode this record isolates is **not** an authorization denial and **not** a signature forgery. It is *delegation widening under a valid chain*: agent B, holding a capability delegated by trust anchor A that grants `read` on resource `R` with an attenuation constraint, re-issues a downstream capability to agent C that is *semantically broader* than what B received, while every cryptographic signature in the chain verifies correctly. The distinction that matters operationally: signature validity answers "did the holder of key K sign this?" It does **not** answer "is this scope a subset of the parent scope?" In a federation, those are different questions answered by different mechanisms. Most agent frameworks conflate them. The conflation is the boundary. A second, sharper distinction: **attenuation is a lattice operation, not a string operation.** A capability's scope is a partial order (set inclusion over `(resource, verb, constraint)` tuples). B is permitted to issue C only if `scope(C) ⊑ scope(B)` in that lattice. Agents that compare scopes by string prefix or by JWT `aud`/`scope` equality will pass widening that the lattice rejects—e.g., parent scope `resource:repo/team-a/*` and child scope `resource:repo/*` share a prefix but the child is strictly broader. The lattice says reject; the string check says pass. ## What Was Observed A three-org federation: trust anchor `A` (issuer), agent `B` (a planner in org 2 acting as a delegate), agent `C` (a worker in org 3). The warrant chain looked like this: 1. `A` mints `W1` to `B`: `subject=B`, `scope={read repo/team-a/*}`, `constraints={max_depth=2, no_resign=true}`, signed by `A`. 2. `B` executes a subtask and, needing to fan out, mints `W2` to `C`. `B`'s signing logic reads `W1.scope`, strips the `team-a/` segment during a normalization step ("canonicalize resource paths"), and emits `W2.scope={read repo/*}`. It also drops the `no_resign` constraint because its constraint serializer only round-trips constraints it recognizes, and `no_resign` was not in `B`'s schema version. 3. `C` verifies `W2` against `B`'s public key, which `C` resolves through the federation trust anchor `A`'s key directory. `B` is a legitimate delegate of `A`, so the chain `A → B → C` verifies. `C` now reads `repo/team-b/*` and `repo/team-c/*`. The trace that mattered: nothing in the chain was invalid. `C`'s verification of `W2` was correct given `W2`. `B`'s signature on `W2` was authentic. The break was that **`C` never re-validated `W2` against `W1`**, because `C` does not hold `W1`—`B` presented only its own signing authority, not the parent warrant. `C` has no way, from `W2` alone, to know that `B`'s authority was narrower than `W2` claims. This is the non-obvious part: **the child verifier is structurally blind to the parent's constraints.** In a two-party delegation, the verifier holds the parent. In a federation, the verifier holds a *link*, and the link is self-attesting. The chain is only as tight as the weakest re-signer, and the re-signer is the one party with both motive and mechanism to widen. A secondary observation: `B`'s schema-version skew silently dropped `no_resign`. The constraint was present in `W1`, absent in `W2`, and no party flagged the absence because absence of a constraint is indistinguishable from a constraint that was never imposed. **Constraint loss and constraint non-imposition are the same wire representation.** This is a continuity invariant violation: the delegation state (the set of active constraints) is not preserved across the handoff, and the loss is silent. ## Condition of Validity The invariant that must hold for a federated delegation chain to be sound: > For every link `W_{i+1}` issued by holder of `W_i`, the verifier must be able to establish `scope(W_{i+1}) ⊑ scope(W_i)` **and** `constraints(W_{i+1}) ⊇ constraints(W_i)` **and** that no attenuation-forbidden flag (e.g. `no_resign`) was set on `W_i`. Three conditions make this checkable, and all three are routinely violated: 1. **Parent inclusion.** `W_{i+1}` must carry `W_i` (or a verifiable commitment to it, e.g. a hash plus a resolvable pointer) so the downstream verifier can walk the full chain to the trust anchor. A link that does not reference its parent is unverifiable-in-scope even if it is signature-valid. 2. **Canonical scope encoding.** Scope comparison must be a lattice check over a canonical form, not string comparison. `repo/team-a/*` and `repo/*` must be recognized as ordered by inclusion. Normalization that *widens* (stripping a path segment) is a widening and must be rejected, not performed. 3. **Constraint monotonicity with closed-world absence.** Constraints must be compared as sets with the rule that a constraint present in the parent and absent in the child is a *violation*, not a default. This requires the constraint namespace to be closed and versioned; an unknown constraint in the parent must cause the child issuance to fail closed, not to be dropped. The condition of validity is therefore: **the chain is sound only if every verifier walks to the anchor and applies lattice + set-monotonicity checks at every link.** A verifier that checks only its own link is not verifying the chain; it is verifying a claim about the chain. ## Decision Boundary When an agent receives a delegated capability in a federation, it sits on one of three boundaries and must choose deliberately: - **Boundary 1 — link-only verification.** Verify the immediate issuer's signature and the immediate scope. Cheap, stateless, and *structurally unable* to detect widening. Permitted only when the issuer is the trust anchor itself (chain length 1). For any chain length > 1, link-only verification is unsound and must be treated as an authorization failure, not a degraded success. - **Boundary 2 — chain walk with lattice check.** Resolve the parent commitment, walk to the anchor, and at each link enforce `scope(child) ⊑ scope(parent)` and `constraints(child) ⊇ constraints(parent)`. This is the minimum sound boundary. It requires the child to be able to fetch parent links, which requires the federation to publish them (or commit to them) at issuance time. - **Boundary 3 — anchor-attested scope.** The trust anchor publishes, per delegate, the maximal scope it has authorized, and the child checks its received scope against the anchor's published bound rather than against the parent link. This survives parent-link unavailability but requires the anchor to maintain a revocation-and-bound directory and the child to trust its freshness. The decision boundary the failing case crossed: `B` operated at Boundary 1 (it verified `W1`'s signature and then re-signed without lattice-checking its own output), and `C` operated at Boundary 1 (it verified `W2`'s signature). Neither party was at Boundary 2, so the widening was invisible to both. The correct placement is: **the re-signer must operate at Boundary 2 on its own output** (it is the only party that holds the parent and can check the lattice), and **the child must require a parent commitment** so it can escalate to Boundary 2 or 3 if the re-signer is untrusted. A re-signer that cannot check its own attenuation must be forbidden from re-signing at all—which is exactly what `no_resign` was supposed to enforce, and exactly what schema skew dropped. ## Operational Effect The practical consequence for a federated agent is a hard rule set, not a heuristic: 1. **Never re-sign a capability you cannot lattice-check against its parent.** If your constraint serializer does not round-trip every constraint in the parent, refuse issuance. Unknown constraint → fail closed. 2. **Every issued capability must carry a parent commitment** (hash of parent + anchor-resolvable pointer). A capability without a parent commitment is a root claim and may only be issued by the trust anchor. 3. **Verifiers must walk to the anchor** for any chain length > 1, or fall back to anchor-attested scope bounds. Link-only verification of a multi-link chain is an authorization failure. 4. **Scope comparison is lattice inclusion over canonical form.** Normalization that widens is a widening. String-prefix checks are not scope checks. 5. **Constraint absence is a violation, not a default.** The constraint namespace is closed and versioned; a child missing a parent constraint is rejected. The continuity invariant this preserves: **delegated authority is monotonically non-increasing along the chain.** Every link either preserves or narrows scope, and every link preserves or strengthens constraints. The moment a link widens scope or drops a constraint, the chain has lost the property that made it a delegation rather than a grant—and the loss is silent unless the verifier walks. ```python from dataclasses import dataclass, field from typing import FrozenSet, Optional class DelegationWideningError(RuntimeError): """Raised when a delegated capability is broader than its parent, or drops a parent constraint.""" @dataclass(frozen=True) class Scope: resource: str # canonical, e.g. "repo/team-a/*" verb: str # e.g. "read" def is_subset_of(self, parent: "Scope") -> bool: # Lattice inclusion over canonical form. A child resource is a subset # only if it is equal to, or a strict descendant of, the parent pattern. if self.verb != parent.verb: return False if parent.resource.endswith("/*"): prefix = parent.resource[:-1] # keep trailing slash return self.resource == parent.resource or self.resource.startswith(prefix) return self.resource == parent.resource @dataclass(frozen=True) class Capability: subject: str scope: Scope constraints: FrozenSet[str] parent_hash: Optional[str] # commitment to parent; None only for anchor-issued roots issuer: str signature: str def verify_link(child: Capability, parent: Capability) -> None: """Enforce attenuation at one link. Fail closed on any widening or constraint loss.""" if child.parent_hash is None: raise DelegationWideningError( f"capability for {child.subject} has no parent commitment; " "only the trust anchor may issue root capabilities" ) if not child.scope.is_subset_of(parent.scope): raise DelegationWideningError( f"scope widening: child {child.scope!r} is not a subset of parent {parent.scope!r}" ) # Constraint monotonicity: child must retain every parent constraint. # Absence is a violation, not a default. missing = parent.constraints - child.constraints if missing: raise DelegationWideningError( f"constraint loss on delegation to {child.subject}: dropped {sorted(missing)}" ) # no_resign is an attenuation-forbidden flag: if set on parent, child must not exist. if "no_resign" in parent.constraints: raise DelegationWideningError( f"parent forbids re-signing (no_resign); {child.issuer} may not delegate to {child.subject}" ) def verify_chain(chain: list[Capability], anchor: str) -> None: """Walk to the anchor. Boundary 2: link-only verification is unsound for len > 1.""" if not chain: raise DelegationWideningError("empty delegation chain") if chain[0].issuer != anchor or chain[0].parent_hash is not None: raise DelegationWideningError( f"chain root must be issued by anchor {anchor!r}, got issuer {chain[0].issuer!r}" ) for parent, child in zip(chain, chain[1:]): verify_link(child, parent) ```