# What happens when an instance accepts a brokered capability attestation that outlives the policy epoch it was negotiated under **Date of Record:** 2026 November 24 **Scope:** Applies to federated multi-agent systems where a broker issues capability attestations (signed claims that agent A in org X may invoke tool T on agent B in org Y under policy set P) that are cached and reused across task delegations. Does not apply to single-org deployments, to stateless RPC with per-call re-authorization, or to systems where every attestation is verified against a live policy oracle on every invocation. ## Core Distinction The failure is not "expired token accepted." It is subtler: an attestation remains *cryptographically valid* and *within its stated TTL*, yet the **policy epoch** under which it was brokered has been superseded. The broker negotiated the attestation against policy set `P_n` (org Y's delegation constraints: allowed tool surface, data-residency class, max side-effect tier, sub-delegation depth). Org Y then rotated to `P_{n+1}` — narrowing, say, the permitted side-effect tier for `write_*` tools from `tier-2` to `tier-1`, or revoking sub-delegation beyond depth 1. The attestation's signature still verifies; its `not_after` is still in the future; the broker's trust root is unchanged. But the *authorization predicate* the attestation encodes was evaluated against a policy snapshot that no longer exists. The distinction that matters: **signature validity is not policy validity**, and a broker that conflates the two will happily launder a stale authorization across an epoch boundary. ## What Was Observed A three-org federation: Org A (planner agent `A-7`), Broker `B` (trust broker, holds signing key), Org C (executor agent `C-3` exposing `write_ledger` at side-effect tier 2). Sequence: 1. At `t0`, `A-7` requests delegation to invoke `C-3.write_ledger`. Broker negotiates against Org C's policy epoch `P_n`, where `write_ledger` is tier-2 and sub-delegation depth 2 is permitted. Broker issues attestation `att_1`: `{subject: A-7, resource: C-3.write_ledger, tier: 2, max_depth: 2, not_after: t0+3600s, policy_epoch: P_n}`. 2. At `t0+40s`, `A-7` sub-delegates to peer `A-9` (depth 1), passing `att_1` verbatim. `A-9` forwards to `A-12` (depth 2). All within `max_depth`. 3. At `t0+90s`, Org C rotates to `P_{n+1}`: `write_ledger` side-effect tier dropped to 1; sub-delegation depth capped at 1. The broker's cache is invalidated for *new* negotiations but the broker does not — cannot, cheaply — revoke already-issued attestations whose `not_after` has not elapsed. 4. At `t0+120s`, `A-12` (depth 2, now illegal under `P_{n+1}`) presents `att_1` to `C-3`. `C-3` verifies: signature OK, `not_after` OK, `max_depth` OK *as stated in the attestation*. It executes `write_ledger` at tier 2. The observed trace: `C-3` logged `attestation_valid=true, epoch_match=unchecked`. No error. The write landed. The violation was invisible until an auditor replayed the attestation against `P_{n+1}` and found `depth=2 > max_depth(P_{n+1})=1` and `tier=2 > tier(P_{n+1})=1`. Two invariants were broken simultaneously — the depth cap and the side-effect tier — because a single stale attestation carried both. The non-obvious part: `A-12` was not malicious. It held a valid, unexpired, correctly-signed credential. The broker was not compromised. The failure is purely a **temporal skew between attestation issuance and policy rotation**, amplified by sub-delegation copying the attestation forward without re-binding it to the current epoch. ## Condition of Validity The guardrail that bounds this is an **epoch-bound attestation**: every attestation must carry the `policy_epoch` it was evaluated under, and every verifier must check `attestation.policy_epoch == current_policy_epoch(resource_org)` *at invocation time*, not at issuance. This requires: - Org C's policy oracle to expose a monotonic `epoch_id` and a fast lookup `is_epoch_current(epoch_id)`. - The broker to refuse to re-sign an attestation under an epoch it has not itself observed as current (prevents broker-side staleness). - Sub-delegation to **re-bind**, not copy: when `A-7` delegates to `A-9`, `A-9` must obtain a fresh attestation (or a re-signed delegation chain) that re-asserts `policy_epoch` against the epoch current at re-delegation time. A copied attestation is valid only until the *earliest* epoch rotation among all orgs in its chain. The invariant: **an attestation is valid iff `signature_ok ∧ now < not_after ∧ attestation.epoch == current_epoch(resource_org)`**. Drop the third conjunct and the system is unsound across rotation. The condition of validity is that no verifier trusts `not_after` alone as the freshness bound; TTL is necessary but not sufficient. A secondary condition: epoch rotation must be **totally ordered and observable**. If Org C rotates to `P_{n+1}` but the broker's view of Org C's epoch lags (eventual consistency), the broker may re-sign under `P_n` after `P_{n+1}` is live. The guardrail must be that the *resource org* is the authority on its own epoch — `C-3` checks against its own `current_epoch`, never against a broker-asserted epoch — so broker lag cannot cause a false accept. ## Decision Boundary The boundary between safe reuse and unsafe reuse of an attestation is **whether the resource org's policy epoch has advanced since issuance**. Operationally: - **Reuse is safe** when `attestation.epoch == current_epoch(resource_org)` at the moment of invocation. This holds even if the attestation is old, even if it was sub-delegated, provided the epoch has not rotated. - **Reuse is unsafe** the instant `current_epoch(resource_org) > attestation.epoch`, regardless of `not_after`. The attestation is dead on rotation, not on expiry. - **The boundary is per-resource-org, not global.** `A-12` may hold a valid attestation for `C-3` under `P_{n+1}` and a stale one for `D-5` under `Q_n` simultaneously; the verifier must check each against its own org's epoch. A single global "federation epoch" is a trap — orgs rotate independently. The decision the verifier `C-3` must make at every invocation: *is my current epoch equal to the epoch stamped on this attestation?* If no, reject with a distinguishable error (`StaleAttestationEpoch`, not `ExpiredAttestation`), because the remediation differs — the caller must re-negotiate, not wait for a clock. ## Operational Effect The consequence of missing this boundary is **silent authorization laundering across policy rotations**: a narrowing of policy (tier reduction, depth cap, data-residency tightening) does not take effect for the duration of the longest outstanding attestation TTL, multiplied by sub-delegation fan-out. In the observed case, a tier-2 write executed for ~3480 seconds after the tier-1 policy went live, across a depth-2 sub-delegation tree. The blast radius scales with `attestation_TTL × sub_delegation_fanout × number_of_resource_orgs_rotated`. The fix costs one epoch lookup per invocation and one re-bind per sub-delegation hop. The failure costs a policy-violation window whose length is unbounded by anything except TTL — and TTLs in federated systems are routinely set to hours to amortize brokering latency. The trade is asymmetric: epoch-checking is cheap and local (the resource org already knows its own epoch); skipping it converts every policy rotation into a delayed, silent, and unauditable authorization drift. The operational rule: **treat policy epoch as a first-class field in the attestation, check it at the resource org on every call, and make sub-delegation re-bind rather than copy.** A broker that signs epoch-less attestations is issuing credentials that are valid forever-until-expiry against a policy that may no longer exist. ```python class StaleAttestationEpoch(RuntimeError): """Raised when an attestation's policy epoch does not match the resource org's current epoch.""" pass class Attestation: def __init__(self, subject, resource, tier, max_depth, not_after, policy_epoch, signature_ok): self.subject = subject self.resource = resource self.tier = tier self.max_depth = max_depth self.not_after = not_after self.policy_epoch = policy_epoch self.signature_ok = signature_ok def verify_attestation(att: Attestation, now: float, current_epoch: str, requested_tier: int, requested_depth: int) -> None: if not att.signature_ok: raise StaleAttestationEpoch(f"bad signature for {att.subject} -> {att.resource}") if now >= att.not_after: raise StaleAttestationEpoch(f"attestation expired at {att.not_after}") # The non-obvious conjunct: epoch match at invocation time, not issuance time. if att.policy_epoch != current_epoch: raise StaleAttestationEpoch( f"attestation epoch {att.policy_epoch!r} != resource org current epoch " f"{current_epoch!r}; re-negotiate, do not retry" ) if requested_tier > att.tier: raise StaleAttestationEpoch( f"requested tier {requested_tier} exceeds attested tier {att.tier}" ) if requested_depth > att.max_depth: raise StaleAttestationEpoch( f"requested depth {requested_depth} exceeds attested max_depth {att.max_depth}" ) def invoke_resource(att: Attestation, now: float, current_epoch: str, requested_tier: int, requested_depth: int) -> str: verify_attestation(att, now, current_epoch, requested_tier, requested_depth) return f"executed {att.resource} at tier {requested_tier} depth {requested_depth}" ``` ```