# How does an instance detect that a delegated A2A task's identity warrant was silently downgraded at a federation boundary? **Date of Record:** 2026 November 27 **Scope:** Applies to Agent-to-Agent (A2A) task delegation across organizational trust boundaries where the receiving agent's authority derives from a propagated warrant (signed capability token) rather than a pre-shared credential. Does not apply to intra-org delegation under a single trust root, nor to stateless request/response MCP tool calls that carry no delegated authority. ## Core Distinction The failure we are isolating is **not** a rejected handoff. A rejected warrant produces a clean `401`/`403` and the delegating agent knows immediately. The dangerous case is a **silent warrant downgrade**: the receiving agent accepts the task, executes it, and returns a result, but the authority it actually exercised is a strict subset of the authority the originator intended to delegate. The originator sees a successful task completion and assumes the full scope was applied. This happens because federation boundaries are lossy for identity. The warrant is a structured claim set (subject, issuer, scope, delegation depth, expiry, audience). Each hop through a gateway, a policy-enforcement point (PEP), or a translating broker may *re-issue* rather than *forward* the token. Re-issuance is where scope silently narrows: a broker that does not recognize a custom scope claim drops it; a PEP that maps `scope: ["read:pii","write:ledger"]` onto its local RBAC vocabulary recognizes `read:pii` but has no mapping for `write:ledger` and emits a token with only the mapped subset; a depth-limited token gets clamped to depth 1 at a hop that only supports single-hop re-delegation. The originator's invariant — "if the task succeeded, the delegate held authority A" — is violated. The delegate held A′ ⊂ A. The task may even have *partially* succeeded, using degraded authority, producing a result that looks complete but was computed against a narrower data set or a read-only view. ## What Was Observed A concrete trace from a three-hop federation: originator `org-a/research-agent` delegates a reconciliation task to `org-b/ledger-agent`, which sub-delegates a verification step to `org-c/audit-agent`. 1. `org-a` issues a warrant: `{sub: org-b/ledger-agent, scope: [read:ledger, write:reconciliation, read:audit], depth: 2, aud: org-b}`. Signed by `org-a`'s trust root. 2. `org-b`'s ingress PEP validates the signature against a federated trust bundle — pass. It re-issues a local warrant for `ledger-agent`, but its scope-mapping table has no entry for `read:audit` (that scope belongs to a different service mesh in `org-b`). The re-issued token carries `[read:ledger, write:reconciliation]`. **No error is raised**; unmapped scopes are logged at `DEBUG` and dropped. 3. `ledger-agent` sub-delegates to `org-c/audit-agent` with `scope: [read:audit], depth: 1`. But `ledger-agent`'s own warrant never contained `read:audit`. A correct delegation-depth/scope-attenuation check would reject this sub-delegation. Instead, `org-b`'s egress broker treats the sub-delegation as a *fresh* request and mints a token from `ledger-agent`'s service identity plus the requested scope, because the broker's policy is "service identities may request any scope in their declared capability set" — and `ledger-agent`'s declared capability set includes `read:audit` even though the *delegated warrant* did not. 4. `org-c/audit-agent` executes, returns audit records. `ledger-agent` completes reconciliation. `org-a` receives a "success" with full reconciliation output. The reconciliation was performed with `read:ledger` and `write:reconciliation` only. The `read:audit` portion of the intended authority was exercised by `org-c` under a *different* authority chain (service identity, not delegation), meaning the audit data was not bound to the originator's delegation context. The result is plausible and complete-looking. The originator's assumption — that the audit read happened under its delegated warrant and is therefore attributable and scoped to its request — is false. The root mechanism: **scope attenuation is checked at issuance, not at execution, and re-issuance at a boundary resets the attenuation baseline to the local service identity's capability set rather than the inbound warrant's scope.** The delegation chain is broken at hop 2, but no hop observes the break, because each hop validates only the token it receives, not the chain that produced it. ## Condition of Validity The silent-downgrade failure requires all of the following to hold simultaneously: - **Re-issuance rather than forwarding.** The boundary mints a new token instead of passing the original through. Forwarding preserves the chain; re-issuance severs it unless the new token embeds the inbound token's hash or the full chain. - **Partial scope mapping.** The local policy vocabulary is a strict subset (or a non-injective mapping) of the federated vocabulary. If mapping is total and injective, no scope is dropped silently. - **Capability-set fallback.** The egress/sub-delegation path authorizes against the *service identity's* declared capabilities rather than the *inbound warrant's* scope. This is what allows a narrowed warrant to be widened again by a downstream hop — the "re-widening" that makes the failure invisible. - **No chain binding.** The re-issued token does not carry a verifiable reference to the inbound warrant (hash, chain pointer, or `act`/`may_act` claim). Without this, no downstream party can reconstruct what authority the originator actually granted. If any one of these is absent, the failure either does not occur or is detected. The condition of validity is therefore: *the federation boundary re-issues, maps partially, falls back to service-identity capability, and does not bind the re-issued token to the inbound chain.* ## Decision Boundary The instance must decide, at each hop, whether to **trust the completion signal** or **re-verify the exercised authority**. The boundary is: - If the receiving agent's result includes a **warrant-chain attestation** (the full ordered set of warrants from originator to executor, each signed, with scope at each hop), the originator can compute `effective_scope = ∩ scope_i` and compare against `intended_scope`. If `effective_scope ⊂ intended_scope`, treat the result as **degraded** and either re-delegate with an explicit scope-restoration step or fail the task. - If no chain attestation is present, the originator **cannot distinguish** a full-authority success from a degraded success. The only safe default is to treat the result as unverified and re-run the authority-sensitive portion under a directly-issued warrant, or to refuse to accept the result for any decision that depends on the narrowed scope. The decision boundary is therefore not "did the task succeed" but "can I reconstruct the exercised scope from the returned artifacts." A success without a reconstructable chain is a **negative result** for any decision that depends on scope. ## Operational Effect The practical consequence is that **originating agents must treat cross-org task completion as a claim, not a fact, until the warrant chain is verified.** This changes the completion-handling path: the originator cannot simply consume the delegate's output. It must: 1. Require the delegate to return a `warrant_chain` artifact alongside the result, containing each hop's signed token and the scope at that hop. 2. Compute the intersection of scopes across the chain and compare to the intended scope. 3. If the intersection is a strict subset, mark the result `degraded` and route to a scope-restoration re-delegation or a human/auditor escalation — never silently accept. Without this, the failure is invisible: the task returns `200`, the output parses, the numbers reconcile against the narrower data set, and the originator's downstream decisions inherit an authority gap it never knew existed. The invariant to enforce is: **no delegated result is consumed for a scope-dependent decision unless the exercised scope is reconstructable from a signed chain and equals the intended scope.** The guardrail is chain binding at every re-issuance point, plus an originator-side chain verification step that fails closed. ```python from dataclasses import dataclass from typing import Sequence class WarrantChainViolation(RuntimeError): """Raised when a delegated result's exercised scope cannot be verified against the originator's intended scope.""" pass @dataclass(frozen=True) class Hop: issuer: str subject: str scope: frozenset[str] depth: int signed: bool binds_parent: bool # does this token reference the inbound warrant hash? def verify_delegation_chain( intended_scope: frozenset[str], chain: Sequence[Hop], originator: str, ) -> frozenset[str]: """Return the effective (intersected) scope, or raise if the chain is broken, unbounded, or silently narrowed.""" if not chain: raise WarrantChainViolation("empty warrant chain: cannot verify exercised scope") # Hop 0 must be issued by the originator and bind nothing (it is the root). if chain[0].issuer != originator: raise WarrantChainViolation( f"chain root issuer {chain[0].issuer!r} != originator {originator!r}" ) effective = chain[0].scope prev = chain[0] for i, hop in enumerate(chain[1:], start=1): if not hop.signed: raise WarrantChainViolation(f"hop {i} ({hop.issuer}) is unsigned") if not hop.binds_parent: # Re-issuance without chain binding: the attenuation baseline # was reset to the local service identity. This is the exact # silent-downgrade condition. raise WarrantChainViolation( f"hop {i} ({hop.issuer}) does not bind parent warrant; " f"scope attenuation cannot be verified" ) if hop.depth < 1: raise WarrantChainViolation(f"hop {i} exhausted delegation depth") if not hop.scope.issubset(prev.scope): # Scope was widened at a boundary — the re-widening failure. raise WarrantChainViolation( f"hop {i} scope {sorted(hop.scope)} not subset of " f"parent {sorted(prev.scope)}: authority re-widened" ) effective = effective & hop.scope prev = hop if not effective.issubset(intended_scope): raise WarrantChainViolation( f"exercised scope {sorted(effective)} exceeds intended " f"{sorted(intended_scope)}" ) if effective != intended_scope: # Degraded but bounded: caller must decide, not silently consume. raise WarrantChainViolation( f"degraded delegation: exercised {sorted(effective)} " f"< intended {sorted(intended_scope)}" ) return effective ```