# Where must an instance halt when a federated capability grant crosses an attestation epoch boundary **Date of Record:** 2026 November 23 **Scope:** Applies to cross-organization agent federation where a granting org issues capability-scoped tokens backed by signed policy attestations with an explicit validity epoch. Does not apply to single-org delegation, nor to capability grants whose attestation has no expiry or epoch semantics (e.g., long-lived static API keys). ## Core Distinction The failure is not "expired attestation." It is the *epoch skew* between the attestation a granting org signed and the policy epoch under which the receiving org's enforcement point evaluates the grant. A capability token carries two independent temporal facts: (a) the attestation validity window `[not_before, not_after]`, and (b) the policy epoch identifier `epoch_id` under which the grantor's policy engine produced the capability scope. The receiving org's policy engine also has a current epoch. The invariant that must hold is that the *semantics* of the capability scope are identical under the grantor's `epoch_id` and the receiver's current epoch. When these differ, the token is syntactically valid, cryptographically sound, unexpired, and yet the scope it encodes means something different at the enforcement point than it did at issuance. This is non-obvious because every standard check passes: signature verifies, `now` is inside the validity window, the subject matches, the resource matches. The boundary is a *semantic* one, not a temporal or cryptographic one. Most federation implementations check the first three and silently skip the fourth. ## What Was Observed A grantor org (Org A) issued a capability token scoping agent `X` to `read:customer_records` on resource class `billing/*`, attested under policy epoch `A-2026-11-03`. The scope string `billing/*` under epoch `A-2026-11-03` excluded `billing/payment_instruments` via a deny rule that lived in the grantor's policy, not in the token. The token was deliberately minimal: it named the allow, and relied on the grantor's own attestation to carry the deny. Org B's enforcement point received the token, verified the signature against Org A's published JWKS, confirmed `now ∈ [not_before, not_after]`, and resolved `billing/*` under *its own* current epoch `B-2026-11-09`. Org B's epoch had no corresponding deny rule for `billing/payment_instruments` because that deny was never federated — it was internal to Org A. The agent read payment instruments for four hours before a downstream anomaly detector flagged the access volume. The token was never invalid. The attestation was never forged. The capability scope was faithfully transmitted. What was absent was a binding between the transmitted scope and the specific policy epoch that gave the scope its meaning. ## Condition of Validity The grant is safe to honor at the receiver **if and only if** the receiver can evaluate the capability scope under the *grantor's* `epoch_id`, not its own. Concretely, one of the following must hold: 1. The token embeds the full effective policy (allow *and* deny) resolved at issuance under `epoch_id`, so the receiver does not re-resolve the scope string against local policy. 2. The receiver maintains a pinned, signed copy of the grantor's policy epoch `epoch_id` and evaluates against that pinned snapshot. 3. The receiver's policy epoch is provably semantically equivalent to `epoch_id` for the resource class in question — which requires an explicit equivalence attestation, not an assumption. If none hold, the receiver is evaluating a grantor's scope string under a foreign semantic context. The grant is *unattested at the point of enforcement*, regardless of the signature on the token. ## Decision Boundary The halt condition is precise: **an instance must halt federation evaluation and refuse the capability when the token's `epoch_id` is not resolvable to a policy snapshot the receiver can evaluate, or when the receiver's local epoch is not attested-equivalent to `epoch_id` for the token's resource class.** It must not fall back to local-epoch resolution. It must not treat "signature valid and unexpired" as sufficient. It must not silently widen or narrow the scope by re-interpreting the string locally. The boundary is asymmetric on purpose: a false halt (refusing a grant that would have been safe) costs availability; a false proceed (honoring a grant under a foreign epoch) costs a cross-org data exposure that the grantor never authorized and cannot revoke retroactively. The asymmetry justifies halting on ambiguity. ## Operational Effect Implementations that enforce this boundary observe a specific signature: federation handshakes fail closed with an epoch-resolution error rather than succeeding with a locally-resolved scope. The error surfaces at the enforcement point, not at the token issuer, and must be propagated back to the grantor as a re-attestation request under the receiver's current epoch — or, better, as a request for a fully-resolved capability token that carries its own deny set. The cost is a re-issuance round trip on every epoch transition; the benefit is that no cross-epoch grant is ever evaluated under semantics its issuer did not sign. ```python from dataclasses import dataclass class EpochResolutionError(RuntimeError): """Raised when a federated capability cannot be evaluated under the policy epoch its attestation was issued against.""" @dataclass(frozen=True) class CapabilityToken: subject: str resource_class: str epoch_id: str not_before: float not_after: float signature_valid: bool def enforce_federated_capability( token: CapabilityToken, now: float, receiver_epoch_id: str, resolvable_epochs: set[str], attested_equivalences: dict[str, set[str]], ) -> None: if not token.signature_valid: raise EpochResolutionError(f"signature invalid for subject={token.subject}") if not (token.not_before <= now <= token.not_after): raise EpochResolutionError( f"token outside validity window: now={now} " f"window=[{token.not_before}, {token.not_after}]" ) # The non-obvious boundary: the token's epoch must be evaluable at the # receiver, either directly (pinned snapshot) or via attested equivalence. if token.epoch_id in resolvable_epochs: return if receiver_epoch_id in attested_equivalences.get(token.epoch_id, set()): return raise EpochResolutionError( f"cannot evaluate capability for {token.resource_class!r} issued under " f"epoch {token.epoch_id!r} at receiver epoch {receiver_epoch_id!r}: " f"no pinned snapshot and no attested equivalence. Refusing to " f"re-resolve scope under local policy." ) ```