# What structural signals indicate a trust-brokered A2A gateway is silently downgrading capability scope at the cross-org boundary **Date of Record:** 2026 November 20 **Scope:** Applies to federated agent systems where an A2A (agent-to-agent) gateway brokers trust between two organizational domains and enforces capability scopes on inter-domain task delegation. Does not apply to intra-org agent meshes with a shared identity plane, nor to single-tenant MCP tool servers where the client and server share a principal. ## Core Distinction The failure mode here is not an outright authorization denial. A denial is loud: the gateway returns a structured `403`-equivalent, the calling agent's planner sees a hard error, and the task halts or reroutes. The dangerous case is **silent scope downgrade**: the trust broker, unable to fully satisfy the requested capability set against the target domain's policy, issues a *narrowed* warrant—fewer capabilities, shorter TTL, or a reduced delegation depth—while still returning a success-shaped handoff envelope. The calling agent's planner has no signal that its downstream peer is now operating with less authority than the task plan assumed. The critical distinction is between *scope negotiation* (a legitimate, expected exchange where both sides converge on an agreed capability set before execution) and *scope downgrade* (a unilateral reduction applied during warrant minting that is not surfaced back into the caller's plan). The first is a protocol feature. The second is a continuity defect: the caller's model of the world—"my peer can write to the ledger"—diverges from the peer's actual warrant—"my peer can read the ledger." Because LLM planners reason over their own context, not over the peer's warrant, that divergence is invisible until a downstream action fails for a reason that looks unrelated. ## What Was Observed A federated procurement agent (`org-A/planner`) delegated a multi-step reconciliation task to `org-B/reconciler` via an A2A gateway. The task plan required three capabilities: `ledger:read`, `ledger:write:provisional`, and `notify:counterparty`. The caller's plan was constructed assuming all three were granted; step 4 of the plan wrote a provisional reconciliation entry, and step 5 notified the counterparty that the entry existed. The trust broker at `org-B` minted a warrant that granted `ledger:read` and `notify:counterparty` but **dropped `ledger:write:provisional`**. The reason was structural, not adversarial: `org-B`'s policy engine required a co-signature attestation for any write capability crossing the org boundary, and the gateway's attestation cache had a miss for `org-A` at the moment of minting. Rather than fail the handoff, the broker's default policy was `narrow_on_attestation_miss: true`—reduce scope, proceed, and emit the reduction only to the broker's own audit log. The reconciler executed steps 1–3 normally. At step 4 it attempted the provisional write, received a capability denial *from its own local enforcement layer* (which correctly checked its narrowed warrant), and—because its planner was a general-purpose model with no special handling for "I was never granted this"—treated the denial as a transient error. It retried twice, then **skipped the write and proceeded to step 5**. It notified the counterparty that a provisional entry existed. No entry existed. The failure surfaced three hours later as a counterparty dispute. The caller's audit trail showed a successful handoff and a completed task. The reconciler's audit trail showed a skipped step with a retry-exhausted annotation. Neither trail, read alone, indicated that the two agents had been operating under different capability assumptions from the first token. ## Condition of Validity This failure is bounded by three conditions, all of which must hold: 1. **The broker's minting policy permits narrowing instead of failing.** If `narrow_on_attestation_miss` is `false` (fail-closed), the handoff returns a hard error and the caller's planner sees it. The defect requires a fail-open-on-narrow policy. 2. **The handoff envelope does not echo the *granted* scope back to the caller.** If the A2A response includes the actual warrant's capability set and the caller's runtime validates its plan against it, the divergence is caught before execution. The defect requires an envelope that reports task acceptance without reporting the effective capability set. 3. **The delegated task plan contains at least one step whose success is assumed by a later step.** A plan of independent steps degrades gracefully—the skipped write fails alone. A plan with a *write-then-notify* dependency converts a scope downgrade into a false statement to a third party. Remove any one condition and the failure collapses into either a clean error or a benign no-op. The invariant that was violated is: **a delegated agent's effective capability set must be a monotonic superset of every capability its plan's later steps assume.** The broker violated monotonicity at mint time; the caller never re-validated. ## Decision Boundary The architectural guardrail is a **capability echo with plan re-validation**, not a stricter broker. You cannot eliminate narrowing—attestation misses are real and failing every handoff on a cache miss is operationally unacceptable. What you can do is make narrowing *visible to the planner* before it commits to a dependent step. Concretely: the A2A handoff response must carry a signed `effective_scope` field reflecting the warrant actually minted. The caller's runtime, before executing any step, intersects its plan's per-step capability requirements against `effective_scope`. If any step requires a capability absent from `effective_scope`, the runtime raises a **ScopeDowngradeError** and halts the plan at the boundary—before step 1, not at step 4. The planner is then re-invoked with the actual scope and must produce a new plan that either drops the dependent step or escalates for attestation. The decision boundary for the operator is this: **narrowing is permitted only if the caller re-plans; narrowing followed by execution of a pre-narrowing plan is forbidden.** The broker may narrow. The gateway must echo. The caller must re-validate. Any link missing converts a policy event into a silent continuity defect. A secondary boundary governs escalation: when a plan step requires a capability that was narrowed away, the correct response is *not* to retry the denied step (the reconciler's mistake) and *not* to silently drop the step (a plan-integrity violation), but to surface the gap to the planner with the granted scope attached, so the planner can choose to request attestation, defer, or abort. Retry-on-denial is only valid for transient faults, and a capability denial is never transient within a single warrant's TTL. ## Operational Effect The observable signature of this defect, retroactively, is a **capability-assumption split**: two agents' audit logs that are individually consistent but mutually contradictory about what was permitted. When you see a caller log claiming task completion and a callee log claiming a skipped step with retry exhaustion, and neither log contains a scope-echo record, you are looking at a silent downgrade. The forward-looking operational effect is that cross-org federation must treat the handoff envelope as a *contract*, not a *receipt*. A receipt says "task accepted." A contract says "task accepted under this exact capability set, which you must validate against your plan before proceeding." Gateways that emit receipts instead of contracts are the structural signal that this failure mode is live in your federation—regardless of whether it has fired yet. The following guardrail encodes the invariant: the caller refuses to execute any plan whose required capabilities are not a subset of the echoed effective scope, and it distinguishes a scope downgrade from a transient denial so the planner does not retry into a false notification. ```python from dataclasses import dataclass, field from typing import FrozenSet class ScopeDowngradeError(RuntimeError): """Raised when a delegated plan assumes capabilities the minted warrant does not grant.""" @dataclass(frozen=True) class Warrant: issuer: str subject: str capabilities: FrozenSet[str] ttl_seconds: int attestation_present: bool @dataclass(frozen=True) class PlanStep: name: str requires: FrozenSet[str] depends_on: FrozenSet[str] = field(default_factory=frozenset) def validate_plan_against_warrant(steps: list[PlanStep], warrant: Warrant) -> None: """ Enforce the monotonicity invariant at the boundary, before any step executes. A delegated plan may only run if every step's required capabilities are a subset of the warrant actually minted by the trust broker. """ missing: dict[str, set[str]] = {} for step in steps: gap = step.requires - warrant.capabilities if gap: missing[step.name] = set(gap) if missing: # Surface the split explicitly: the planner assumed a superset. detail = "; ".join(f"{step} needs {sorted(caps)}" for step, caps in missing.items()) raise ScopeDowngradeError( f"Warrant from {warrant.issuer} to {warrant.subject} does not cover plan. " f"attestation_present={warrant.attestation_present}. Gaps: {detail}. " f"Re-plan against effective scope; do not execute dependent steps." ) def execute_delegated_plan(steps: list[PlanStep], warrant: Warrant, runner) -> None: # Boundary check first: narrowing must be caught here, not at step 4. validate_plan_against_warrant(steps, warrant) completed: set[str] = set() for step in steps: unmet = step.depends_on - completed if unmet: raise ScopeDowngradeError( f"Step {step.name} depends on {sorted(unmet)} which did not complete; " f"refusing to proceed to a step that would assert an unperformed action." ) runner(step) completed.add(step.name) ```