# How does an instance detect attestation decay at a federation trust broker when capability warrants outlive the policy epoch that issued them **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent deployments where cross-org capability warrants are minted by a trust broker within a bounded policy epoch and re-presented to peer instances across epoch boundaries; does not apply to single-org deployments with a single monotonic policy authority, nor to stateless request/response tool calls that carry no warrant. ## Core Distinction The failure is not "expired credential" and it is not "revoked credential." Both of those are detectable by comparing a wall-clock timestamp or a revocation-list entry against the presented token. The failure is **attestation decay**: a capability warrant remains cryptographically valid, unexpired, and un-revoked, while the policy epoch under which it was *evaluated and granted* has been superseded by a successor epoch whose reconciliation changed the effective permission set. The warrant still verifies. The signature still checks. The `exp` claim is still in the future. What has silently changed is the answer to a question no field in the warrant encodes: *"was this capability granted under policy semantics that the issuing broker still endorses?"* A peer instance that validates warrants by signature-and-expiry alone will accept a capability that the broker, if re-asked today, would deny. The broker is not lying and has not revoked anything; it simply has no mechanism to reach back into already-issued, still-live warrants and mark them stale, because the warrant schema predates the notion of an epoch binding. This is the boundary: **validity of the token and validity of the grant under current policy are two different predicates, and the federation protocol conflates them.** ## What Was Observed A federation of three orgs — a caller org `A`, a trust broker `B` operated by a shared governance body, and an executor org `C` — exchanged capability warrants over an A2A-style transport. Org `A`'s planner agent requested `filesystem.write:/shared/ledger` on `C`. Broker `B` evaluated the request against policy epoch `E17`, which permitted `A`-class principals to write to `C`'s shared ledger when accompanied by a `data_classification <= internal` attestation. `B` minted a warrant `W` with `exp = now + 3600s`, `epoch = E17` recorded only inside an opaque `ext` blob that `C` never inspected, and returned it. `C` accepted and executed. Forty minutes later, `B`'s governance body promoted epoch `E18`. The reconciliation diff for `E18` tightened the rule: writes to `/shared/ledger` from `A`-class principals now require `data_classification <= restricted` *and* an explicit `purpose=settlement` claim. The change was rolled out to `B`'s decision engine and to `B`'s introspection endpoint. It was **not** propagated to live warrants, because `B` had no live-warrant index keyed by epoch — warrants were fire-and-forget signed blobs. At minute 55, `A`'s planner re-presented `W` to `C` for a second write, this time carrying `data_classification=internal` and no `purpose` claim. `C` verified `W`'s signature against `B`'s published key set, checked `exp`, found both good, and executed the write. The write was authorized by a policy that no longer existed. When `B`'s auditor replayed the transaction against `E18`, the replay verdict was `DENY`; against `E17` it was `ALLOW`. The two verdicts diverged, and the divergence was invisible to `C` at execution time. The observed trace: ``` t=0 B evaluates (A, filesystem.write:/shared/ledger, data_classification=internal) under E17 -> ALLOW t=0 B mints W{sig, exp=t+3600, ext:{epoch:E17, ...}} -> C t=0 C verifies sig + exp -> ACCEPT, executes write #1 t=2400 B promotes E18; rule for (A, /shared/ledger) now requires restricted + purpose=settlement t=2400 B updates decision engine + introspection endpoint; live warrants untouched t=3300 A re-presents W to C with data_classification=internal, purpose=absent t=3300 C verifies sig + exp -> ACCEPT, executes write #2 <-- decay window t=3300 B auditor replays write #2 under E18 -> DENY; under E17 -> ALLOW (verdict divergence) ``` The decay window is the interval `[epoch_promotion, warrant_exp]` minus whatever the peer can independently reconstruct about the promotion. In this trace it was 1200 seconds wide, and every write in it was unauthorized-but-valid. ## Condition of Validity The guardrail is an invariant, not a check: **a peer must not treat a warrant as authorizing an action unless the peer can bind the warrant's epoch to the broker's currently-endorsed epoch at the moment of execution.** Formally, for peer `C` executing under warrant `W` minted by `B`: ``` accept(W, action) iff verify_sig(W, B.keys) # token integrity AND now < W.exp # temporal validity AND W.epoch == current_epoch(B) # epoch binding <-- the missing predicate AND recheck(W.claims, action) under policy(current_epoch(B)) # semantic revalidation ``` The critical realization is that the last two predicates cannot be satisfied by inspecting `W` alone. `C` must obtain `current_epoch(B)` and the reconciled policy for that epoch from `B` at execution time — or from a cached copy whose staleness is itself bounded and attested. This turns every execution into a *two-source* decision: the warrant (issued in the past) and the epoch/policy (fetched now). A federation that only carries the first source is structurally unable to detect decay. Two conditions make this tractable rather than requiring a round-trip per action: 1. **Epoch monotonicity.** `B` must expose `current_epoch()` as a monotonically increasing counter with a signed, short-TTL epoch attestation (`epoch_attestation{epoch, policy_hash, ttl}`). `C` caches this attestation and refreshes before `ttl` elapses. Decay is then bounded by `ttl`, not by warrant lifetime. 2. **Policy hash binding.** The warrant's `ext.epoch` must be replaced by a first-class `policy_hash` claim = `hash(policy(E17))`. `C` compares `W.policy_hash` against `epoch_attestation.policy_hash`. A mismatch means the warrant was minted under a superseded policy and must be re-evaluated (or rejected) regardless of `exp`. When both hold, the decay window collapses from `warrant_ttl` to `epoch_attestation_ttl`, and the peer can *detect* — not merely suffer — the condition. Without them, the peer has no signal at all, which is the whole hazard: the failure is silent by construction. ## Decision Boundary The boundary between "safe to cache" and "must revalidate" is drawn by what the action can affect if wrongly authorized, not by warrant age: - **Revalidate against current epoch (hard boundary):** any action that mutates shared state, moves value, or crosses an org boundary in a way the successor epoch's reconciliation could have restricted. These must carry `W.policy_hash == epoch_attestation.policy_hash` at execution. If the epoch attestation is older than its `ttl`, fail closed. - **Cache-permitted (soft boundary):** read-only introspection, idempotent queries, and actions whose authorization predicate is provably invariant across the epoch diff (e.g., the diff only touched `write` rules, not `read`). Even here, the peer should log `W.policy_hash` and the epoch attestation hash so a later replay can attribute the decision to a specific epoch. - **Never cache:** the epoch attestation itself beyond `ttl`. A stale epoch attestation is worse than none, because it manufactures false confidence that the binding predicate was checked. The asymmetry is deliberate: revalidation cost (one cached-attestation lookup, occasionally one broker round-trip) is paid on the mutating path, where a decay-window write is unrecoverable, and skipped on the read path, where a stale read is at worst a consistency blip. ## Operational Effect With epoch binding enforced, the trace above changes at `t=3300`: `C` fetches `epoch_attestation(current_epoch(E18), policy_hash(E18))`, compares against `W.policy_hash = hash(policy(E17))`, sees the mismatch, and refuses to execute under `W`. It either rejects or triggers a re-mint: `A` re-requests the capability, `B` evaluates under `E18`, finds `purpose=settlement` absent, and denies. The unauthorized write never happens, and the auditor's replay under `E18` agrees with the execution-time verdict — verdict divergence is eliminated, not merely detected after the fact. The residual cost is a bounded revalidation latency on the mutating path and a dependency on `B`'s epoch-attestation endpoint availability. That dependency is itself a failure surface: if `B` is unreachable and `C`'s cached attestation is past `ttl`, `C` must fail closed on mutating actions rather than fall back to warrant-only validation. Falling back re-opens the decay window precisely when the broker is least able to correct it. The invariant to hold under partition is: **no epoch attestation fresher than `ttl` ⇒ no mutating execution under a cross-org warrant**, which trades availability for the guarantee that no action is authorized by a policy the broker no longer endorses. ```python import hashlib import time from dataclasses import dataclass class AttestationDecayError(RuntimeError): """Raised when a warrant's policy binding no longer matches the broker's current epoch.""" @dataclass(frozen=True) class Warrant: subject_org: str capability: str claims: dict policy_hash: str # hash(policy(epoch)) at mint time; first-class, not opaque ext exp: float signature_ok: bool @dataclass(frozen=True) class EpochAttestation: epoch: int policy_hash: str issued_at: float ttl: float signature_ok: bool def is_fresh(self, now: float) -> bool: return (now - self.issued_at) < self.ttl def _hash_policy(policy_text: str) -> str: return hashlib.sha256(policy_text.encode()).hexdigest() def authorize_execution( warrant: Warrant, action: str, epoch_att: EpochAttestation | None, now: float, mutating: bool, ) -> bool: # Token integrity and temporal validity: necessary, never sufficient. if not warrant.signature_ok: raise AttestationDecayError(f"warrant signature invalid for {warrant.capability}") if now >= warrant.exp: raise AttestationDecayError(f"warrant expired at {warrant.exp}, now={now}") if warrant.capability != action: raise AttestationDecayError(f"capability mismatch: {warrant.capability} != {action}") # Epoch binding is only required on the mutating path; reads may proceed on token alone. if not mutating: return True if epoch_att is None: raise AttestationDecayError( "no epoch attestation available; failing closed on mutating action" ) if not epoch_att.signature_ok: raise AttestationDecayError("epoch attestation signature invalid") if not epoch_att.is_fresh(now): raise AttestationDecayError( f"epoch attestation stale: age={now - epoch_att.issued_at:.1f}s ttl={epoch_att.ttl}s" ) # The predicate the naive federation omits: does the warrant's policy binding # match the broker's currently-endorsed policy? if warrant.policy_hash != epoch_att.policy_hash: raise AttestationDecayError( f"attestation decay: warrant bound to policy {warrant.policy_hash[:12]} " f"but broker epoch {epoch_att.epoch} endorses {epoch_att.policy_hash[:12]}" ) # Semantic revalidation under the current epoch's reconciled policy. if not _recheck_under_current(warrant.claims, action): raise AttestationDecayError( f"claims {warrant.claims} fail recheck under epoch {epoch_att.epoch}" ) return True def _recheck_under_current(claims: dict, action: str) -> bool: # Placeholder for the reconciled-policy evaluator; the E18 rule in the trace # requires purpose=settlement for writes to the shared ledger. if action.startswith("filesystem.write:") and "/shared" in action: return claims.get("purpose") == "settlement" and claims.get( "data_classification" ) in ("restricted", "internal") return True def replay_verdict(warrant: Warrant, action: str, policy_text: str) -> str: """Auditor-side replay: recompute the verdict under an explicit policy.""" if _hash_policy(policy_text) != warrant.policy_hash: # Warrant was minted under a different policy than the one being replayed against. return "INDETERMINATE_EPOCH_MISMATCH" return "ALLOW" if _recheck_under_current(warrant.claims, action) else "DENY" ```