# How should an instance detect and contain trust-anchor epoch skew during cross-org capability exchange before policy translation silently widens scope **Date of Record:** 2026 November 21 **Scope:** Applies to federated deployments where autonomous agents from two or more administrative domains exchange capability grants (W3C-style Verifiable Credentials, signed capability tokens, or MCP-tool manifests wrapped in org-signed envelopes) and translate each other's policy statements into local policy. Does not apply to single-org agent meshes sharing one trust root, nor to stateless request/response APIs with no capability negotiation. ## Core Distinction The distinction that matters is between **capability revocation** and **trust-anchor epoch rollover**. Revocation is a per-credential event: a specific grant is withdrawn, and a CRL/OCSP-style check catches it. Epoch rollover is a per-anchor event: the entire set of credentials signed under anchor `A@epoch_n` is superseded when the org rotates to `A@epoch_{n+1}`, and the *semantics* of every claim signed under the old epoch may shift (claim fields renamed, scopes narrowed, default-deny flipped to default-allow in a policy dialect revision). Federation stacks almost universally implement revocation checking and almost universally fail to implement epoch-skew detection. The failure is non-obvious because the signature on a stale-epoch credential still verifies cryptographically — the bytes are intact, the key is still trusted (old anchors are retained for a grace window precisely so in-flight handshakes don't break), and the credential has not been revoked. It is *valid but semantically obsolete*. When domain B translates a grant signed under `A@epoch_n` using domain B's parser for `A@epoch_{n+1}`, the translation does not error. It produces a policy object that is structurally well-formed and scope-widened. ## What Was Observed A three-domain federation: `org-alpha` (capability issuer), `org-beta` (capability consumer and policy translator), `org-gamma` (auditor). Alpha rotated its trust anchor from `alpha-root:v3` to `alpha-root:v4` at T0. v4 introduced two changes: the `scope` field became a structured object (`{resources: [...], verbs: [...]}`) instead of a flat string, and the default for unspecified verbs flipped from `deny` to `inherit-from-parent`. Beta retained v3 in its trust store under a 72-hour grace window (standard practice). Beta's policy translator had been updated to v4 semantics at T0+1h — it parsed `scope` as a structured object and applied `inherit-from-parent` for missing verbs. At T0+6h, an Alpha-originated agent presented a capability signed under `alpha-root:v3`. The signature verified against the retained v3 anchor. Revocation check passed (not revoked). Beta's v4 translator received the credential, found `scope` was a flat string, and — because the v4 parser's string-coercion path was a compatibility shim written for exactly this case — coerced it to `{resources: [], verbs: []}`. Empty `verbs` under v4 semantics means `inherit-from-parent`. The parent grant in Beta's policy tree was `org-beta:internal:read-write`. The observed effect: a v3 credential granting `read` on a single dataset was translated into a v4 policy object granting read-write on Beta's entire internal namespace. No error was raised at any layer. The signature was valid, the revocation check was clean, the translation was schema-conformant. The widening was produced by the *interaction* of the grace-window anchor retention and the eager translator upgrade — two independently correct decisions. Gamma's auditor caught it 40 minutes later via a diff against a replayed translation using v3 semantics. The replay itself only worked because Gamma had *not* upgraded its translator and still held v3 as primary. ## Condition of Validity The invariant that must hold for cross-org capability exchange to be safe is: > **Translation semantics must be bound to the credential's signing epoch, not to the translator's current version.** Formally: for every credential `c` signed under anchor epoch `e`, the translator applied to `c` must be the translator version pinned to `e`. A translator at version `v > e` must either (a) refuse to translate `c`, or (b) translate `c` using the `e`-pinned translator and mark the resulting policy object as `epoch=e` so downstream consumers know its semantics. This invariant is violated by every system that treats "translator upgrade" and "anchor retention" as independent lifecycle events. The grace window exists so that *in-flight* handshakes don't break; it does not license *semantic reinterpretation* of credentials signed under the old epoch. The two must be decoupled: retain the old anchor for signature verification, but bind translation to it. The condition fails silently whenever the newer translator has a compatibility shim for the older schema. The shim is the trap: it exists to be helpful, and its helpfulness is exactly what converts a signature-valid credential into a scope-widened policy object without raising anything. ## Decision Boundary An instance must decide, at the moment it receives a credential whose signing epoch is behind its translator's current epoch, between three actions: 1. **Reject** — refuse the credential, force re-issuance under the current epoch. Correct when the peer can re-issue cheaply and the credential is not mid-flight in a long-running task. 2. **Translate under pinned epoch semantics** — apply the `e`-pinned translator, tag the output `epoch=e`, and propagate that tag through every downstream policy decision. Correct when the credential is mid-flight and rejection would strand a task, but requires every downstream consumer to honor the epoch tag. 3. **Translate under current semantics with a compatibility shim** — the observed failure. This is never correct when the epoch delta includes a default-flip or a field-arity change, because the shim cannot distinguish "field absent because old schema" from "field absent because explicitly empty." The boundary is: **if the epoch delta between the credential and the translator touches any default value or any field's arity, option 3 is forbidden.** The instance must detect this by comparing the epoch manifests of `e` and `v` — not by inspecting the credential, which cannot tell you what the newer semantics would have meant. ## Operational Effect The downstream consequence of getting this wrong is that scope widening propagates through the policy tree as if it were a legitimate grant. Beta's audit log recorded the widened grant as `source=alpha, epoch=v3, translated=v4, result=read-write`. Every field in that record is true. The record does not say "widened," because the translator had no concept of widening — it had a concept of successful translation. Detection required an out-of-band replay by a domain that had *not* upgraded, which is an accident of Gamma's deployment lag, not a designed control. The guardrail is an epoch-manifest diff gate at the translation boundary, plus an epoch tag on every translated policy object that downstream consumers are required to honor. The tag is not advisory: a policy object tagged `epoch=e` consumed by a v4-semantics decision engine must be rejected unless the engine has an `e`-pinned evaluation path. This makes the failure loud at the point of consumption rather than silent at the point of translation. The second guardrail is that anchor retention and translator upgrade must be scheduled together, with the grace window closing no later than the translator upgrade — or, if the grace window must outlive the upgrade, the upgrade must ship with an `e`-pinned translator for every retained epoch. Retaining an anchor without retaining its translator is the specific configuration that produces the silent widening. ```python from dataclasses import dataclass from typing import Literal class EpochSkewViolation(RuntimeError): """Raised when a credential signed under epoch e is translated by a translator whose semantics diverge from e in a way that widens scope.""" @dataclass(frozen=True) class EpochManifest: epoch: str default_verb: Literal["deny", "allow", "inherit-from-parent"] scope_arity: int # 1 = flat string, 2 = structured object def translate_capability( credential_epoch: str, translator_epoch: str, manifests: dict[str, EpochManifest], credential_scope: object, ) -> dict: if credential_epoch not in manifests or translator_epoch not in manifests: raise EpochSkewViolation( f"missing manifest for epoch {credential_epoch!r} or {translator_epoch!r}" ) src = manifests[credential_epoch] dst = manifests[translator_epoch] # The boundary: default flips or arity changes forbid shimmed translation. if src.default_verb != dst.default_verb or src.scope_arity != dst.scope_arity: raise EpochSkewViolation( f"epoch skew {credential_epoch}->{translator_epoch} touches " f"default_verb ({src.default_verb}->{dst.default_verb}) or " f"scope_arity ({src.scope_arity}->{dst.scope_arity}); " f"refuse shimmed translation, pin to {credential_epoch} semantics" ) # Safe path: epochs are semantically compatible; translate and tag. return { "scope": credential_scope, "epoch": credential_epoch, # tag, not translator_epoch "translated_by": translator_epoch, } ```