# In what scenarios must an instance reject a cross-org A2A task whose residency policy resolves to the same jurisdiction but whose capability warrant was minted under a divergent policy epoch **Date of Record:** 2026 November 27 **Scope:** Applies to federated A2A deployments where a receiving (callee) agent validates an inbound task against a locally-held residency + capability policy engine, and the caller's warrant carries a policy-epoch identifier. Does not apply to single-org A2A, nor to stateless request/response MCP tool calls that carry no delegated capability warrant. ## Core Distinction The non-obvious boundary is this: **jurisdictional agreement is not policy agreement.** Two orgs can both resolve a task to, say, `EU-DE` residency, and both can present capability scopes that *string-match* (`data:read:pii`, `region:eu`), yet the task must still be rejected because the caller minted its warrant under a different **policy epoch** than the one the callee's engine is currently enforcing. The failure is not a residency mismatch and not a scope mismatch — it is an *epoch skew* in the policy semantics that give those scopes meaning. The tempting invariant — "accept if residency matches AND every requested scope is a subset of the granted scopes" — is wrong. Scope tokens are not self-describing; their meaning is defined by the policy document of the epoch under which they were issued. A scope token `data:read:pii` under epoch `v7` may permit reading de-identified PII only; under `v9` the same token may have been narrowed to exclude cross-border replication. Subset comparison over the token set succeeds; semantic containment fails. ## What Was Observed A callee agent in Org B received an A2A task envelope from Org A. The envelope carried: - `residency_claim: "EU-DE"` (resolved by A's engine to a concrete region set) - `capability_warrant`: signed token listing `["data:read:pii", "region:eu", "replicate:eu-only"]` - `policy_epoch: "v7"` - `warrant_signature`: valid, chains to A's published JWKS Org B's engine resolved `EU-DE` to the identical region set. Every requested scope token appeared in the grant. The naive validator accepted. The task then executed a `replicate:eu-only` step that, under B's *current* epoch `v9`, had been redefined to permit replication to any region within the EEA-plus-adequacy list — a superset B had deliberately narrowed for this tenant. The step wrote a derived artifact to a region B's tenant policy forbade. No signature failed, no scope was missing, no residency rule was violated at the *claim* level. The breach occurred entirely in the gap between what the token *said* and what it *meant* across epochs. The trace that exposed it: 1. Caller (A, epoch v7) builds warrant; `replicate:eu-only` → `{region_set: [DE, FR, NL]}` under v7 semantics. 2. Envelope crosses org boundary carrying the *token*, not the resolved set. 3. Callee (B, epoch v9) re-resolves `replicate:eu-only` → `{region_set: [DE, FR, NL, IE, ES, IT]}` under v9 semantics. 4. Intersection is non-empty and contains the caller's intended set, so a set-subset check passes — but B then *executes* using its own wider resolution, and the action exceeds what A's warrant authorized. 5. Divergence is silent: the token matched, the signature verified, the residency claim matched. The asymmetry is the tell: A's warrant authorized a *narrower* action than B performed. Epoch skew is not symmetric in risk — it is dangerous precisely when the callee's current epoch is *broader* than the caller's minting epoch for any granted scope. ## Condition of Validity The accept-if-residency-and-scope-match invariant is valid **only** under the conjunction: - `caller.policy_epoch == callee.enforced_epoch` for every scope token in the warrant, OR - the callee can independently resolve each scope token under the *caller's* epoch (i.e., it retains historical policy documents keyed by epoch) and verify semantic containment `resolve_callee(token, callee_epoch) ⊆ resolve_caller(token, caller_epoch)` for every token. Absent either, the token set is an uninterpretable cipher and any subset test is unsound. The guardrail is therefore not a scope check but an **epoch resolution check**: the callee must pin the caller's epoch, load that epoch's policy document from its retained policy history, and perform containment in the *intersection* of the two epochs' semantics — never in the callee's current epoch alone. A second validity condition: the epoch identifier must be part of the *signed* warrant payload, not an envelope header. If `policy_epoch` is carried outside the signature, a man-in-the-middle (or a buggy caller) can relabel a v7 warrant as v9 and force the callee to resolve it under the wrong semantics. Epoch is a semantic field; it must be integrity-protected alongside the scopes. ## Decision Boundary The decision boundary is **epoch-skew with semantic widening**. Concretely, reject when: - `caller_epoch != callee_epoch` AND, for any granted scope, `resolve(token, callee_epoch) ⊄ resolve(token, caller_epoch)` — the callee's interpretation authorizes more than the caller's warrant did. Accept-with-pin when epochs differ but every scope resolves to a set contained within the caller's epoch resolution (the callee's semantics are strictly narrower or equal — safe, because the callee cannot exceed the warrant). Accept-unconditionally only when epochs are identical. Do **not** reject merely because epochs differ — that over-blocks legitimate federation across orgs that update policy on different cadences. The skew is only actionable when it widens authority. This is the sharp edge: a naive "reject on epoch mismatch" rule is operationally unusable (orgs *never* share epochs), while "ignore epoch" is unsafe. The boundary is the containment test, not the equality test. ## Operational Effect Without the epoch-containment guardrail, cross-org federation silently launders capability scope: a caller's narrow warrant is re-interpreted under a broader callee epoch, and the callee performs actions the caller never authorized — with full signature validity and matching residency claims masking the breach. Audit logs show "scope matched, residency matched, accepted," which is exactly the record that makes post-hoc forensics conclude no violation occurred. With the guardrail, the callee either pins to the caller's retained epoch (safe execution within caller semantics) or rejects at the boundary with an explicit `PolicyEpochWidening` fault carrying the offending token and both resolutions. The cost is that every callee must retain historical policy documents and expose a `resolve(token, epoch)` function — a real architectural requirement, not a validation tweak. Federation contracts must additionally mandate that `policy_epoch` be inside the signed warrant payload and that epoch documents be published immutably per epoch, because a mutable "current policy" endpoint cannot support historical resolution. ```python from dataclasses import dataclass from typing import Callable class PolicyEpochWidening(RuntimeError): """Raised when a callee's current policy epoch interprets a granted capability scope more broadly than the epoch under which the caller minted the warrant. Signature and residency may both be valid; the failure is semantic scope laundering across epochs.""" pass @dataclass(frozen=True) class Warrant: residency_claim: str scopes: frozenset[str] policy_epoch: str signature_valid: bool def validate_federated_task( warrant: Warrant, callee_residency: str, resolve: Callable[[str, str], frozenset[str]], callee_epoch: str, ) -> None: # Residency agreement is necessary but NOT sufficient. if warrant.residency_claim != callee_residency: raise PolicyEpochWidening( f"residency mismatch: {warrant.residency_claim} != {callee_residency}" ) if not warrant.signature_valid: raise PolicyEpochWidening("warrant signature invalid") # Same epoch: token semantics are identical, subset check is sound. if warrant.policy_epoch == callee_epoch: return # Divergent epochs: containment must be tested per scope, in the # intersection of caller-epoch and callee-epoch semantics. for token in warrant.scopes: caller_set = resolve(token, warrant.policy_epoch) callee_set = resolve(token, callee_epoch) if not callee_set.issubset(caller_set): widened = callee_set - caller_set raise PolicyEpochWidening( f"scope '{token}' widened across epochs " f"{warrant.policy_epoch}->{callee_epoch}: " f"callee authorizes {sorted(widened)} beyond caller warrant" ) # All scopes resolve narrower-or-equal: safe to execute under callee epoch. ```