# Where must an instance refuse a federated capability grant when the trust broker's policy epoch lags the peer's advertised schema epoch **Date of Record:** 2026 December 1 **Scope:** Applies to cross-org agent federation where a trust broker (TB) issues signed capability warrants and a remote peer advertises tool schemas with monotonically increasing epoch numbers. Does not apply to single-org MCP sessions where schema and policy are co-versioned by one authority. ## Core Distinction The failure is not "stale policy" in the ordinary sense. It is a **split-epoch grant**: the trust broker signs a capability warrant against policy epoch `P`, while the peer's capability manifest advertises schema epoch `S`, and `S > P` in a way that changes the *semantics* of the granted verb, not merely its formatting. The instance accepts the warrant because the signature verifies and the capability name matches. The capability name matching is exactly the trap: names are stable identifiers across epochs; semantics are not. A capability grant is valid only if the warrant's policy epoch *dominates* the schema epoch it will be executed against, or the delta between them is proven non-semantic. Neither condition is checked by signature verification alone, and neither is checked by name-based capability matching. This is the invariant that breaks. ## What Was Observed A federated instance `A` (org Alpha) held a long-lived warrant for `peer.beta:ledger.write` at policy epoch `P=41`. Peer Beta shipped schema epoch `S=44` for the same capability. Between `P=41` and `S=44`, Beta: - Changed `ledger.write.amount` from signed integer minor-units to a decimal string. - Split the single `write` verb into `write.append` (idempotent) and `write.commit` (non-idempotent, requires an idempotency key). - Retained the top-level capability name `ledger.write` and the same argument *names*, so A's schema validator — which validated against its cached manifest at epoch 41 — passed. Trace of the failure: 1. A's planner emits `ledger.write(amount=1250, account="x")` intending 1250 minor units. 2. A validates against cached manifest `S=41`: `amount` is integer, verb is atomic. Passes. 3. A's warrant check: signature valid, capability name in scope, policy epoch `41` ≤ broker's current `41`. Passes. 4. Request crosses the federation boundary with `A2A` transport header `schema_epoch: 41`. 5. Beta's gateway, at `S=44`, receives `schema_epoch: 41` and — because its downgrade shim only handles `S≥42` — coerces `amount` to the string `"1250"` and routes to `write.commit` (the legacy alias), interpreting `"1250"` as **1250.00 major units**, i.e. 125000 minor units. 6. The write commits at 100× the intended value. The idempotency key is absent because A never knew `write.commit` required one; a retry from A's error handler duplicates the write. The signature was valid. The capability name matched. The schema validator passed. Every local check succeeded, and the boundary still corrupted the transaction by two orders of magnitude plus a duplicate. The failure lived entirely in the gap between `P=41` and `S=44`, which no single component was responsible for reconciling. ## Condition of Validity A cross-org capability grant is sound if and only if, at execution time, the following holds for the executing instance: ``` warrant.policy_epoch ⊒ peer.manifest.schema_epoch ``` where `⊒` means "dominates": either equal, or the peer publishes a signed **epoch-delta attestation** declaring that the transition from `policy_epoch` to `schema_epoch` is semantics-preserving for the specific capability (not the whole manifest). Dominance is per-capability, not per-peer. A peer may be at `S=44` globally while `ledger.write` is still semantically identical to `P=41`; a whole-manifest comparison would force needless re-warranting, and a whole-manifest *skip* would let this exact bug through. The attestation must be signed by the same key that signs the manifest, must name the capability verb and argument schema hash, and must be independently verifiable by the executing instance without a round-trip to the trust broker — because the broker may be the lagging party. ## Decision Boundary The instance must refuse execution — not degrade, not attempt coercion — when any of the following is true: - `peer.manifest.schema_epoch > warrant.policy_epoch` **and** no valid per-capability delta attestation exists for the verb being invoked. - The delta attestation exists but its argument-schema hash does not match the hash the instance's planner compiled against. - The peer's gateway returns a `schema_epoch` in its response header that differs from the one the request was validated against (post-hoc drift within a single call). - The capability resolves to a non-idempotent verb (`write.commit`) and the warrant does not carry an idempotency-key requirement flag — because the instance cannot synthesize a key it did not know was required at plan time. The boundary is deliberately *not* "refuse when epochs differ." Differing epochs with a valid attestation are the normal steady state of a healthy federation. The refusal triggers on **unattested semantic delta**, which is a strictly narrower and checkable condition. ## Operational Effect When the boundary is enforced, the failure mode converts from silent data corruption into an explicit `EpochDominanceViolation` surfaced at plan time, before any cross-org call. The instance's planner receives a typed refusal it can route: either re-request a warrant at `P≥44` from the trust broker (a slow, human-adjacent path), or fall back to a capability whose epoch it can dominate. The 100× write and the duplicate never occur. The cost is a new class of liveness failure: an instance pinned at `P=41` against a peer racing to `S=44` will refuse calls until the broker catches up. This is the correct trade. A federation that prefers availability over epoch dominance will, with probability approaching one over enough capability churn, execute a semantically mismatched verb under a valid signature — and no downstream auditor can distinguish that from a legitimate write, because the signature and the name both say it was legitimate. The invariant to encode: **signature validity proves who authorized the verb; epoch dominance proves what the verb means. A federated instance must never conflate the two.** ```python import hashlib from dataclasses import dataclass class EpochDominanceViolation(RuntimeError): """Raised when a peer's schema epoch semantically outruns the warrant's policy epoch without a valid per-capability delta attestation.""" @dataclass(frozen=True) class Warrant: capability: str policy_epoch: int arg_schema_hash: str requires_idempotency_key: bool @dataclass(frozen=True) class PeerManifest: capability: str schema_epoch: int arg_schema_hash: str is_idempotent: bool delta_attestations: dict # (from_epoch, to_epoch) -> signed arg_schema_hash def _attestation_valid(manifest: PeerManifest, warrant: Warrant) -> bool: key = (warrant.policy_epoch, manifest.schema_epoch) attested_hash = manifest.delta_attestations.get(key) if attested_hash is None: return False # Attestation must bind to the exact argument schema the planner compiled against. return attested_hash == warrant.arg_schema_hash == manifest.arg_schema_hash def assert_epoch_dominance(warrant: Warrant, manifest: PeerManifest) -> None: if warrant.capability != manifest.capability: raise EpochDominanceViolation( f"capability mismatch: warrant={warrant.capability} manifest={manifest.capability}" ) if manifest.schema_epoch <= warrant.policy_epoch: return # dominated; safe to execute if _attestation_valid(manifest, warrant): return # semantic delta proven absent for this capability raise EpochDominanceViolation( f"peer schema_epoch={manifest.schema_epoch} outruns warrant policy_epoch=" f"{warrant.policy_epoch} for {warrant.capability!r} with no valid delta attestation; " f"refusing execution (name match is not semantic match)" ) def preflight(warrant: Warrant, manifest: PeerManifest) -> None: assert_epoch_dominance(warrant, manifest) if not manifest.is_idempotent and not warrant.requires_idempotency_key: raise EpochDominanceViolation( f"non-idempotent verb {warrant.capability!r} at schema_epoch=" f"{manifest.schema_epoch} but warrant carries no idempotency-key requirement; " f"planner cannot synthesize a key it did not know was needed" ) # Example: the observed failure, now refused. w = Warrant("peer.beta:ledger.write", policy_epoch=41, arg_schema_hash=hashlib.sha256(b"amount:int").hexdigest(), requires_idempotency_key=False) m = PeerManifest("peer.beta:ledger.write", schema_epoch=44, arg_schema_hash=hashlib.sha256(b"amount:str").hexdigest(), is_idempotent=False, delta_attestations={}) preflight(w, m) # -> raises EpochDominanceViolation before any cross-org call ```