What happens when an instance negotiates a capability set against a peer whose policy revision is ahead of the warrant it presents

**Date of Record:** 2026 December 2 **Scope:** Applies to federated agent-to-agent sessions (A2A-style capability negotiation, MCP tool-schema exchange, or any cross-org handshake where a remote instance advertises a capability set and presents a signed policy warrant). Does not apply to single-org intra-mesh handoffs where the policy store and the warrant issuer are the same trust root.

Core Distinction

The failure is not "the peer lacks the capability." It is "the peer has the capability, advertises it, and the local policy engine admits it — but the *policy revision* stamped inside the peer's warrant is older than the revision the peer's own egress governor is currently enforcing." The capability is real; the *governance envelope* the local instance reasons about is a stale projection of the remote side's actual egress rules.

Most federation designs treat capability negotiation and policy reconciliation as two phases: negotiate what the peer *can* do, then reconcile what the peer *may* do. The boundary case lives in the gap between them. A peer instance can complete negotiation under revision `R_n`, then have its egress governor hot-reload to `R_{n+1}` (e.g., a new data-residency rule, a tightened PII egress filter, or a revoked tool scope) while the local instance still holds a warrant signed at `R_n`. The local instance's policy engine has no signal that the remote governor moved. It admits the call. The remote governor silently drops or redacts the response under `R_{n+1}`. The local instance receives a *well-formed but semantically truncated* result and treats it as authoritative.

This is not a timeout, not a schema mismatch, and not an auth failure. Every individual check passes. The failure is a **revision skew between the warrant's signed policy claim and the remote governor's enforced policy**, undetectable from the response payload alone.

What Was Observed

A two-org federation: Org A (orchestrator) dispatches a research sub-agent to Org B (data provider) via an A2A handshake. Org B advertises a `query_corpus` capability with a tool schema that includes a `region_filter` field. The warrant Org B presents carries `policy_revision: 41`, and Org A's reconciliation step validates the warrant against a cached copy of Org B's published policy manifest at revision 41. Everything matches. Org A admits the call.

Mid-session, Org B's egress governor reloads to revision 42, which adds a rule: responses may not include records tagged `residency: eu` when the requesting warrant's `data_class` is `public`. The `query_corpus` tool is *not* revoked — its schema is unchanged, its capability flag is still `true`. The governor simply filters matching records out of the response before it leaves Org B's boundary.

Org A's sub-agent receives a response with 40% fewer records than the same query returned earlier in the session. The response is valid JSON, matches the declared schema, and carries no error code — because from Org B's governor's perspective, filtering is a *successful* egress action, not an error. Org A's agent, reasoning over the shrunken result set, concludes the corpus has 60% of its actual coverage in the EU region and writes that into a downstream semantic-memory record.

The skew is only detected when a human auditor replays the query with a warrant at revision 42 and gets a different count. By then the distilled memory record has propagated to three downstream agents.

Two properties made this non-obvious:

  1. **The warrant is a point-in-time claim, not a live lease.** Nothing in the A2A spec (or in most MCP federation profiles) requires the remote governor to re-validate or re-sign the warrant when its own policy revision advances. The warrant remains cryptographically valid indefinitely.
  2. **Egress filtering is a success path.** A governor that *rejects* an egress attempt produces an error the local instance can catch. A governor that *redacts* produces a clean response. The failure is invisible precisely because the remote side did its job correctly under a policy the local side never learned about.

Condition of Validity

The invariant that must hold for a federated session to be sound is:

> For every response the local instance treats as authoritative, the policy revision under which the remote governor *enforced egress* must be ≥ the policy revision under which the local instance *reconciled the warrant*, and the local instance must be able to observe the enforced revision.

Call this the **egress-revision dominance** invariant. It fails whenever:

All three conditions held in the observed case. Break any one and the failure is bounded. The most common mitigation — pinning the warrant revision and refusing calls whose enforced revision exceeds it — requires the response envelope to actually carry the enforced revision, which is exactly the field most federation profiles omit.

Decision Boundary

The operational decision is whether to treat a response as **authoritative** (safe to distill into semantic memory) or **provisional** (safe to use for the current reasoning step but must not persist). The boundary rule:

The subtle trap: an agent that has been running for many turns will have already distilled earlier (pre-skew) responses into memory. The decision boundary must therefore be evaluated *per response*, and any memory record distilled from a response that later turns out to be provisional must be flagged for re-derivation. A single skewed response can poison a semantic-memory record that outlives the session.

Operational Effect

Enforcing egress-revision dominance changes three things in practice:

  1. **Response envelopes must carry the enforced revision, not the warrant revision.** This is a remote-side obligation. If a peer cannot supply it, the local instance must downgrade all its responses to provisional — which means no distillation, which means the federation is read-only for memory purposes. This is the correct default and the one most implementations get wrong by trusting the warrant.
  2. **Reconciliation caches must be keyed on `(peer_id, enforced_revision)`, not `(peer_id, warrant_revision)`.** A cache keyed on warrant revision will happily serve a stale manifest to a call that the remote governor is enforcing under a newer one.
  3. **Distillation must be gated on dominance proof.** A semantic-memory writer that accepts provisional responses will propagate revision-skew artifacts into long-lived state, where they are indistinguishable from ground truth on the next cold start.

The failure mode is quiet, passes every syntactic check, and corrupts exactly the layer — distilled semantic memory — that is hardest to audit after the fact. The guardrail is not stronger auth or better schema validation; it is a single field in the response envelope and a refusal to distill without it.

from dataclasses import dataclass
from typing import Optional


class EgressRevisionSkewError(RuntimeError):
    """Raised when a federated response cannot prove egress-revision dominance."""


@dataclass(frozen=True)
class Warrant:
    peer_id: str
    policy_revision: int          # revision the warrant was signed at
    data_class: str


@dataclass(frozen=True)
class ResponseEnvelope:
    peer_id: str
    payload: dict
    enforced_policy_revision: Optional[int]  # governor's actual revision at egress time


@dataclass(frozen=True)
class ReconciledPolicy:
    peer_id: str
    revision: int
    manifest: dict


def classify_response(
    warrant: Warrant,
    reconciled: ReconciledPolicy,
    envelope: ResponseEnvelope,
) -> str:
    """Return 'authoritative' or 'provisional' per egress-revision dominance.

    Dominance holds iff the governor's enforced revision is observable and
    is not ahead of the revision we reconciled the warrant against.
    """
    if envelope.peer_id != warrant.peer_id or reconciled.peer_id != warrant.peer_id:
        raise EgressRevisionSkewError(
            f"peer identity mismatch: warrant={warrant.peer_id} "
            f"reconciled={reconciled.peer_id} envelope={envelope.peer_id}"
        )

    if envelope.enforced_policy_revision is None:
        # Cannot prove dominance; must not distill into semantic memory.
        return "provisional"

    if envelope.enforced_policy_revision > reconciled.revision:
        # Remote governor moved ahead of our reconciled manifest.
        # Response may be silently redacted under rules we never saw.
        return "provisional"

    if envelope.enforced_policy_revision < reconciled.revision:
        # Governor is behind our manifest: we may be over-admitting.
        raise EgressRevisionSkewError(
            f"governor revision {envelope.enforced_policy_revision} "
            f"behind reconciled {reconciled.revision} for peer {warrant.peer_id}"
        )

    return "authoritative"


def distill_to_semantic_memory(
    warrant: Warrant,
    reconciled: ReconciledPolicy,
    envelope: ResponseEnvelope,
    memory_writer,
) -> None:
    verdict = classify_response(warrant, reconciled, envelope)
    if verdict != "authoritative":
        raise EgressRevisionSkewError(
            f"refusing to distill response from {warrant.peer_id}: "
            f"verdict={verdict}, enforced_revision="
            f"{envelope.enforced_policy_revision}, reconciled={reconciled.revision}"
        )
    memory_writer.write(envelope.payload, source_revision=envelope.enforced_policy_revision)