# What happens when an instance accepts a federated trust anchor whose policy epoch is newer than its own verifier: silent downgrade of revocation semantics across cross-org agent federation **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent-to-agent (A2A) deployments where trust anchors and authorization policy bundles are exchanged out-of-band from the message channel and carry monotonically increasing epoch identifiers. Does not apply to single-org deployments with a single authoritative policy store, nor to stateless request/response agents with no persistent policy cache. ## Core Distinction The common framing of cross-org agent federation assumes that a trust anchor is a *static identity assertion* — "org B's agent signing key is X, and X is vouched for by root Y." Under that framing, exchanging trust anchors is a one-time bootstrap and policy is evaluated locally per request. The actual failure surface is different. In real federated A2A deployments, the trust anchor and the *policy bundle* travel together: a signed envelope containing (a) the peer's public keys, (b) a policy document describing what the peer's agents are permitted to assert (capability scopes, delegation depth, revocation endpoints), and (c) an **epoch counter** that monotonically increases as the peer org rotates keys, tightens scopes, or revokes delegated warrants. The non-obvious invariant is this: **an instance must never accept a peer policy bundle whose epoch it cannot independently verify against its own local verifier's supported semantics.** Epochs are not just ordering — they are *schema versions*. A newer epoch may introduce a revocation semantic (e.g., "delegated warrants inherit revocation from the parent chain, not just the leaf") that the local verifier does not implement. If the instance accepts the newer bundle because "newer is better," it silently applies the *older* revocation semantics it does know while believing it is enforcing the newer policy. The result is a trust anchor that authenticates correctly but authorizes incorrectly — a downgrade attack that leaves no error in the logs because every signature checks out. ## What Was Observed During a federation handshake between Org A (running verifier schema v3, epoch ceiling 41) and Org B (running verifier schema v4, current epoch 57), the A-side agent gateway accepted B's signed policy envelope without checking the `min_verifier_schema` field embedded in the bundle's `policy_header`. The bundle's `policy_header` contained: ``` epoch: 57 min_verifier_schema: 4 revocation_semantics: "chain-inherited" delegation_depth_limit: 2 ``` Org A's verifier parsed `epoch: 57`, saw it was greater than its cached `41`, and replaced its cache. It then parsed `revocation_semantics: "chain-inherited"` as an *unknown enum value* and — because the parser was written defensively to "skip unrecognized fields" — fell back to its default `"leaf-only"` semantics. The `min_verifier_schema: 4` field was never read at all; the schema check was absent from the code path. The observable consequence appeared 19 hours later. Org B revoked a mid-chain delegated warrant (a warrant issued by B's root to B's coordinator, which had in turn delegated to a worker agent). Under v4 semantics, revoking the mid-chain warrant invalidates all downstream delegations. Under v3 leaf-only semantics, Org A's gateway continued to accept the worker agent's leaf warrant as valid because the leaf itself was not on the revocation list. For 19 hours, a revoked agent identity continued to execute tool calls against Org A's resources, with every signature verifying cleanly and every audit log entry showing "authorized." The failure was caught only when B's security team ran a cross-org reconciliation and noticed A had executed 4,100 tool invocations attributed to a warrant B considered dead. ## Condition of Validity The invariant "reject policy bundles with epochs above your verifier's schema ceiling" is valid **if and only if** the following three conditions hold: 1. **The policy bundle carries an explicit `min_verifier_schema` field** and the peer is contractually obligated to set it (i.e., the federation agreement specifies it, not just the implementation). If the field is optional, a malicious or buggy peer can omit it and the check becomes vacuous. 2. **The local verifier's schema ceiling is a hard-coded constant, not a runtime configuration.** If operators can raise the ceiling via config to "unblock a handshake," the invariant degrades to a suggestion. In the observed incident, the ceiling was correctly hard-coded; the failure was that the *check itself* was missing, not that the ceiling was wrong. 3. **The peer's signature covers the `policy_header` including `min_verifier_schema`.** If the header is outside the signed region (as it was in an earlier draft of the A2A policy envelope spec), a network intermediary can strip or downgrade the field. In the observed case the signature did cover the header, so this condition held — but the receiving code did not verify the header before parsing it, only after. When any of these conditions fails, the invariant does not protect you. The correct response is not to weaken the invariant but to refuse federation with peers who do not satisfy the contract, because the alternative is trusting a peer's *intent* rather than its *cryptographic commitment*. ## Decision Boundary The decision boundary is between two responses to a policy bundle whose epoch exceeds the local ceiling: - **Reject the bundle and continue using the cached (older) policy.** This is safe *if* the older policy is still within its own validity window and the peer has not revoked anything covered by the newer semantics. It is unsafe if the peer's newer bundle was issued *specifically because* a revocation occurred — in which case rejecting the bundle means you keep trusting a revoked identity. - **Accept the bundle and downgrade gracefully.** This is what Org A did, and it is *always* unsafe when `min_verifier_schema` exceeds the local schema, because the downgrade is silent: you believe you are enforcing the peer's policy while actually enforcing a weaker one. The boundary is resolved by a third option that the incident revealed was missing: **reject the bundle, mark the federation link as `degraded`, and fail closed on any request whose authorization depends on a revocation semantic the local verifier does not implement.** This requires the local verifier to know *which* semantics each of its checks depends on — a capability the v3 verifier did not have, because it treated `revocation_semantics` as a single opaque field rather than a set of independent capabilities. The practical rule: **a verifier must be able to enumerate the revocation and delegation semantics it implements, and a policy bundle must declare which semantics it requires. The intersection must equal the bundle's declared requirements, or the bundle is rejected.** Epoch ordering is necessary but not sufficient; schema capability matching is the actual gate. ## Operational Effect After the incident, Org A's gateway was patched to: 1. Parse and verify `policy_header` *before* any other field, and reject bundles where `min_verifier_schema > LOCAL_SCHEMA_CEILING`. 2. Maintain an explicit `SUPPORTED_SEMANTICS` set (`{"leaf-only", "chain-inherited"}` after the v4 upgrade) and reject bundles requiring any semantic outside that set. 3. Emit a `federation.policy.rejected` audit event with the peer org, bundle epoch, and the specific missing capability, so that the rejection is visible to operators rather than manifesting as a mysterious "peer unreachable" error. The residual risk is that a peer may issue a bundle with a *lower* epoch than the local cache (a replay or rollback attack). The patch added a monotonicity check on the *cached* epoch per peer, rejecting any bundle whose epoch is less than or equal to the cached value unless accompanied by an explicit signed `rollback_authorization` from the peer's root. This is the mirror image of the downgrade failure: both directions of epoch mismatch are now hard failures rather than silent fallbacks. The deeper operational lesson is that cross-org trust anchors are not identity artifacts but *capability contracts*, and the contract's terms are encoded in the policy bundle's schema requirements. An instance that accepts a contract it cannot fully honor is not "being flexible" — it is silently renegotiating the contract in its own favor, which in a security context means renegotiating it in the attacker's favor. ```python class FederatedPolicyEpochError(RuntimeError): """Raised when a peer policy bundle's epoch or schema requirements exceed what the local verifier can honor, or when a rollback is attempted.""" pass LOCAL_SCHEMA_CEILING = 4 SUPPORTED_SEMANTICS = frozenset({"leaf-only", "chain-inherited"}) def accept_peer_policy_bundle( peer_org: str, bundle: dict, cached_epoch: int | None, verified_signature: bool, ) -> dict: """Validate a federated policy bundle before installing it in the cache. Fails closed on any schema/epoch mismatch rather than downgrading. """ if not verified_signature: raise FederatedPolicyEpochError( f"peer {peer_org}: bundle signature not verified; refusing to parse header" ) header = bundle.get("policy_header") if not isinstance(header, dict): raise FederatedPolicyEpochError( f"peer {peer_org}: missing or malformed policy_header" ) epoch = header.get("epoch") min_schema = header.get("min_verifier_schema") required_semantics = set(header.get("revocation_semantics", [])) if not isinstance(epoch, int) or not isinstance(min_schema, int): raise FederatedPolicyEpochError( f"peer {peer_org}: epoch/min_verifier_schema must be integers" ) if min_schema > LOCAL_SCHEMA_CEILING: raise FederatedPolicyEpochError( f"peer {peer_org}: bundle requires verifier schema {min_schema}, " f"local ceiling is {LOCAL_SCHEMA_CEILING}; refusing to downgrade" ) unsupported = required_semantics - SUPPORTED_SEMANTICS if unsupported: raise FederatedPolicyEpochError( f"peer {peer_org}: bundle requires unsupported revocation semantics " f"{sorted(unsupported)}; supported={sorted(SUPPORTED_SEMANTICS)}" ) if cached_epoch is not None and epoch <= cached_epoch: if not bundle.get("rollback_authorization"): raise FederatedPolicyEpochError( f"peer {peer_org}: bundle epoch {epoch} <= cached {cached_epoch} " f"without signed rollback_authorization; possible replay" ) return { "peer_org": peer_org, "epoch": epoch, "revocation_semantics": sorted(required_semantics), "installed": True, } ```