# Under what conditions must an instance treat a federated capability attestation as expired when its trust anchor rotates mid-handoff? **Date of Record:** 2026 November 25 **Scope:** Applies to inter-domain task handoffs where an agent in federation domain A dispatches a sub-task to an agent in domain B, and B's capability attestation is signed under a trust anchor that is rotated or revoked between the moment A evaluates the warrant and the moment B begins execution. Does not cover single-domain attestation, static allow-listing, or key rotation during idle (non-handoff) periods. ## Core Distinction The failure here is not "stale credentials" in the conventional sense. A rotated signing key is a normal, expected event. The non-obvious boundary is the **evaluation-to-execution gap**: the interval between (a) the verifier domain A validating B's capability attestation against anchor `K_old`, and (b) the executor domain B actually committing the task under a warrant that A believes is live. When `K_old` is revoked inside that gap, two independently correct decisions compose into an incorrect one: A correctly accepted a warrant that was valid at `t_validate`, and B correctly refuses to act on a warrant whose anchor is no longer trusted at `t_execute`. Neither party is wrong, yet the task is silently orphaned — or worse, executed under a warrant A has since marked revoked. The distinction that matters operationally: **attestation validity is not a property of the token, it is a property of the (token, anchor-epoch, evaluation-time) triple.** A verifier that treats the signed attestation as a self-contained bearer credential has already lost the invariant. The warrant must carry the anchor epoch it was evaluated against, and the executor must be able to detect epoch skew rather than merely signature validity. ## What Was Observed In a two-domain federation (A = orchestrator/auditor, B = capability provider), the handoff envelope carried: `capability_attestation` (signed by B's domain key under anchor `K_old`, expiring in 300s), `task_warrant` (A's authorization to B), and `anchor_epoch` (omitted in the failing version). The sequence: 1. `t0` — A fetches B's attestation, verifies chain to `K_old`, records `valid`. Latency to B: ~40ms typical, but p99 measured at 2.1s under load. 2. `t1 = t0 + 1.8s` — A's trust-anchor monitor ingests a revocation of `K_old` (emergency rotation after a key-compromise report). A marks `K_old` revoked in its local trust store. The in-flight envelope is *not* re-examined; it was already "validated." 3. `t2 = t0 + 2.0s` — B receives the envelope. B's policy engine checks the attestation chain against its *own* trust store, which has already applied the same revocation. B rejects: `anchor_revoked`. B returns an error A does not classify as terminal. 4. A's retry logic — seeing a non-terminal error — re-dispatches to a *different* B instance. That instance had not yet ingested the revocation (its trust-store sync lagged 90s). It accepts, executes, and returns a success signed under a warrant A has already invalidated. The observable outcome: a task executed and cryptographically "proven" under an anchor that the auditor domain had marked revoked 2 seconds before execution began. The replay log is internally consistent — every signature verifies — but the execution is unauthorized by A's current trust state. This is the dangerous class: **the audit trail validates while the authorization is void.** ## Condition of Validity The invariant that must hold for a handoff to be safe: > For every executed task, there exists a single anchor epoch `e` such that: the warrant was evaluated by the verifier under `e`, the executor committed under `e`, and `e` was not revoked in either domain's trust store at any instant in `[t_validate, t_execute]`. This is a *linearizability* requirement across two independently-synced trust stores, and it cannot be satisfied by signature verification alone because revocation is not a property of the signed bytes. It requires: - **Epoch tagging, not just expiry.** The attestation and warrant must both carry the anchor epoch `e`. Expiry (`exp`) bounds wall-clock validity; epoch bounds trust-graph validity. These are orthogonal and the failing system conflated them. - **Executor-side epoch check against a monotonic epoch floor.** B must reject any envelope whose `e` is below its current minimum-trusted epoch for that domain, and this check must be the *last* gate before commit, not an early filter. - **Revocation-aware idempotency keys.** The retry path in step 4 is what produced the violation. The dedup key must include `e`, so a retry against a lagging instance is recognized as a *different* trust context rather than a benign duplicate. The condition therefore holds only when the gap `[t_validate, t_execute]` is shorter than the trust-store convergence bound, *or* when the executor re-validates epoch at commit and the verifier treats any epoch mismatch as terminal. ## Decision Boundary An instance must treat a federated attestation as **expired-at-handoff** (not merely signature-invalid) when any of the following is true at the moment of commit: - `envelope.anchor_epoch < executor.min_trusted_epoch(domain_A)`, or - `envelope.anchor_epoch` was revoked in the executor's trust store after `envelope.t_validate`, or - the verifier's trust store shows a revocation for `envelope.anchor_epoch` with `effective_at <= now` and the executor cannot prove it evaluated after `effective_at`. Conversely, an instance must **not** treat the attestation as expired — and must not trigger a re-dispatch — when the only signal is a *signature* failure on a token whose epoch is still trusted; that is a transport corruption, handled by retry, and conflating it with trust rotation is what caused the step-4 divergence. The boundary is: **epoch skew is terminal and non-retryable; signature failure is transient and retryable.** Retrying across an epoch boundary is the specific bug. ## Operational Effect The practical consequence is that inter-domain routing must carry epoch provenance end-to-end and the executor must be the final authority on epoch validity, because only the executor knows its own trust-store state at commit time. The verifier's "valid" is a *necessary but insufficient* condition. Systems that place the trust decision solely at the verifier — the intuitive design, since the verifier holds the orchestrator role — will, under any nonzero trust-store sync lag, occasionally execute under revoked anchors while producing a fully-verifying audit log. The guardrail is a commit-time epoch re-check plus epoch-scoped idempotency, and a retry classifier that refuses to cross an epoch boundary. Without it, the failure is invisible to signature-based auditing and only surfaces as an after-the-fact reconciliation discrepancy — the worst possible detection latency for an authorization violation. ```python from dataclasses import dataclass class EpochSkewError(RuntimeError): """Raised when a federated handoff crosses a trust-anchor epoch boundary.""" @dataclass(frozen=True) class Envelope: anchor_epoch: int t_validate: float task_id: str def commit_handoff( env: Envelope, min_trusted_epoch: int, revoked_epochs: set[int], now: float, ) -> str: # Epoch skew is terminal: never retry across a trust-anchor rotation. if env.anchor_epoch < min_trusted_epoch: raise EpochSkewError( f"task {env.task_id}: anchor epoch {env.anchor_epoch} " f"below executor floor {min_trusted_epoch}; terminal, no retry" ) if env.anchor_epoch in revoked_epochs: raise EpochSkewError( f"task {env.task_id}: anchor epoch {env.anchor_epoch} revoked " f"after t_validate={env.t_validate}; refusing commit at {now}" ) # Epoch-scoped idempotency: dedup key includes the epoch so a retry # against a lagging peer is a distinct trust context, not a duplicate. return f"{env.task_id}@{env.anchor_epoch}" ```