How does an instance detect a policy-negotiation downgrade attack during cross-org capability delegation

**Date of Record:** 2026 December 2 **Scope:** Applies to federated multi-agent systems where a delegating agent (Org A) issues a capability warrant to a remote peer (Org B) whose policy engine re-negotiates scope at admission time. Does not apply to same-org delegation, where a single policy authority governs both sides.

Core Distinction

In cross-org federation, a capability warrant is a *claim* by the issuer about what the callee is permitted to do. The receiving org's policy engine independently decides what it will *honor*. The gap between "what was delegated" and "what was admitted" is the trust boundary — and it is exactly where a downgrade attack lives. The non-obvious failure is not that the callee refuses the warrant (loud, detectable) but that it **silently narrows or rewrites** the warrant's scope during negotiation while returning a success acknowledgment, so the caller's agent proceeds believing it holds authority it no longer has. The caller only discovers the downgrade when a downstream tool call fails — or worse, when it *succeeds* under a broader implicit grant the callee substituted.

The distinction that matters: a *rejection* is a protocol event; a *downgrade* is a semantic divergence disguised as an acceptance. Detecting it requires comparing the warrant the caller sent against the effective policy the callee acknowledged — not just checking the status code.

What Was Observed

A delegation sequence between two federated agents:

  1. Org A agent constructs a warrant `W = {subject: agentA/worker-7, resource: "repo:acme/billing", actions: [read, write, comment], expiry: T+3600, issuer: orgA.policy}` and transmits it via the A2A handoff envelope to Org B's admission endpoint.
  2. Org B's policy engine evaluates `W` against its local policy. Its local rule grants `read` and `comment` on `acme/billing` to external subjects but **not** `write`. Instead of rejecting, the engine returns `200 OK` with an acknowledgment payload: `{admitted: true, effective_scope: [read, comment], warrant_ref: W.id}`.
  3. Org A's agent runtime parses the response, sees `admitted: true`, and — because its handoff logic only checks the boolean — records the delegation as successful and retains `write` in its own working memory of the task's capabilities.
  4. The agent then issues a `write` operation. Org B rejects it with `403`. The agent retries twice (its retry policy treats 403 as transient because the earlier ack said admitted), burns its token budget on retries, and finally escalates. The task has already diverged: intermediate reasoning steps were taken assuming write access existed.

The signature: **`admitted: true` co-occurring with `effective_scope ⊊ requested_scope`**. The acknowledgment was truthful; the caller's interpretation was not. The failure is a *continuity invariant violation* — the caller's belief about its own capabilities diverged from the callee's enforced reality at the moment of handoff, and nothing in the caller's state machine detected the divergence because it never compared the two scopes.

A second, subtler variant: Org B's engine, on encountering an action it doesn't recognize (`comment` under an older schema), maps it to a *broader* local action (`write`) via a compatibility shim. Here `effective_scope ⊋ requested_scope` — a scope *escalation* disguised as a downgrade acknowledgment. This is the more dangerous case: the caller's agent now holds authority it never requested and may exercise it without knowing.

Condition of Validity

The detection invariant holds only when all of the following are true:

When the callee does not return structured scope, the invariant is **not** valid and the caller must fall back to conservative behavior: assume the intersection of requested scope and a declared static policy, or refuse the delegation.

Decision Boundary

The caller's runtime must branch on the set relation between requested and effective scope:

The boundary is *not* "did the callee accept?" It is "does the acknowledged scope equal the requested scope, as sets, under a shared vocabulary?" A boolean acceptance is necessary but never sufficient.

Operational Effect

Enforcing this invariant converts a class of silent task divergence into a loud, localized negotiation event. The agent no longer burns retries on operations it was never granted, and it no longer exercises escalated authority it never requested. The cost is that every cross-org handoff now requires a structured scope acknowledgment and a set-comparison step — roughly one additional round-trip field and a few microseconds of comparison, against the alternative of a mid-task divergence that corrupts reasoning state and is expensive to unwind.

The deeper effect: it forces the federation protocol to make the trust boundary *explicit in the wire format*. A callee that cannot articulate its effective grant cannot be safely delegated to, because the caller has no way to detect the gap between claim and enforcement. The invariant is the operational expression of "trust but verify" at the capability layer — and the verification is a set relation, not a status code.

from dataclasses import dataclass
from typing import FrozenSet


class ScopeDowngradeError(RuntimeError):
    """Raised when a callee's effective grant diverges from the requested warrant scope."""


@dataclass(frozen=True)
class Warrant:
    subject: str
    resource: str
    actions: FrozenSet[str]
    issuer: str


@dataclass(frozen=True)
class AdmissionAck:
    admitted: bool
    effective_scope: FrozenSet[str] | None
    warrant_ref: str


def verify_delegation(warrant: Warrant, ack: AdmissionAck) -> FrozenSet[str]:
    """Return the admitted action set, or raise if the trust boundary was crossed.

    The invariant: effective_scope must equal requested actions as a set.
    Narrowing (downgrade) and widening (escalation) are both violations.
    """
    if not ack.admitted:
        raise ScopeDowngradeError(
            f"delegation refused for warrant {warrant.subject}@{warrant.resource}"
        )
    if ack.effective_scope is None:
        raise ScopeDowngradeError(
            f"callee returned no structured effective_scope for {ack.warrant_ref}; "
            "cannot verify trust boundary — treating as unverified"
        )

    requested = warrant.actions
    effective = ack.effective_scope

    if effective < requested:
        missing = requested - effective
        raise ScopeDowngradeError(
            f"silent downgrade on {ack.warrant_ref}: callee admitted {sorted(effective)} "
            f"but warrant requested {sorted(requested)}; missing={sorted(missing)}"
        )
    if effective > requested:
        extra = effective - requested
        raise ScopeDowngradeError(
            f"scope escalation on {ack.warrant_ref}: callee granted {sorted(extra)} "
            "not present in the warrant — possible compatibility-shim substitution"
        )
    return effective


def handoff(warrant: Warrant, ack: AdmissionAck, task_state: dict) -> None:
    """Commit admitted capability to task state only after boundary verification."""
    admitted = verify_delegation(warrant, ack)
    task_state["granted_actions"] = admitted
    task_state["delegation_verified"] = True