# Under what conditions must an instance reject a federated agent manifest whose verifiable credential chain is valid but whose capability attestation is stale relative to the issuer's revocation epoch **Date of Record:** 2026 November 26 **Scope:** Applies to cross-organization agent trust federation where a peer presents a signed manifest plus a Verifiable Credential (VC) chain and requests capability-scoped invocation. Does not cover intra-org trust (single revocation authority) or pure transport authentication (mTLS-only handshakes with no capability claims). ## Core Distinction The failure mode is **not** signature invalidity and **not** credential expiry. It is the gap between two independent clocks that both look green: 1. The **VC's `expirationDate`** — the credential's own validity window, asserted by the issuer at signing time. 2. The **issuer's revocation epoch** — a monotonically increasing counter the issuer publishes (via status list, CRL-equivalent, or epoch-signed status endpoint) that advances whenever any attested capability is withdrawn or downgraded. A manifest can present a VC chain where every link verifies cryptographically, every `expirationDate` is in the future, and the subject's DID resolves — yet the *capability attestation embedded in the manifest* was minted under a revocation epoch older than the issuer's current published epoch. The credential is valid; the *claim* it carries is stale. Verifiers that check only "signature good + not expired" accept a capability the issuer already retracted. This is the boundary: **credential validity ≠ attestation currency.** The non-obvious part: the stale epoch is invisible from the VC alone. The VC is immutable once signed; the issuer cannot retroactively expire it without re-signing. Currency is only knowable by *cross-referencing a separate, mutable epoch feed* that most federation handshakes never fetch. ## What Was Observed A three-org federation (Issuer `A`, delegating Agent `B`, consuming Agent `C`) with the following trace: - `A` signs a VC for `B` granting `capability: "settlement.write"`, embedding `attestation_epoch: 41` and `expirationDate: 2025-12-01`. - At epoch 47, `A`'s auditor downgrades `B`'s write scope to `settlement.read` after a policy violation, and publishes `current_epoch: 47` on its status endpoint. The original VC is **not** revoked (revocation would kill `B`'s read scope too); the issuer relies on epoch advancement to signal the downgrade. - `B` presents the epoch-41 VC to `C`. `C` verifies: signature chain intact, DID resolves, `expirationDate` in future, status list shows "not revoked." `C` accepts. - `B` executes `settlement.write` at `C`. The action succeeds — but the issuer had withdrawn that capability six epochs prior. The failure is silent. No signature check, expiry check, or revocation-list check fires. The only detector is comparing `manifest.attestation_epoch` against `issuer.current_epoch` at invocation time, and that comparison was never in the handshake. A second observed variant: `C` *did* fetch the epoch feed, but cached it with a TTL of 300s. `A` advanced the epoch mid-window; `C` accepted a stale-epoch manifest for up to 300s. The cache TTL became an implicit, undocumented trust window. ## Condition of Validity A federated capability attestation is **current** if and only if all of the following hold *at the moment of invocation*, not at handshake time: - `manifest.attestation_epoch >= issuer_status.current_epoch - allowed_lag`, where `allowed_lag` is a policy constant (typically 0 for write capabilities, ≥1 only for read-only and only when the issuer explicitly signs an epoch-lag tolerance into the status document). - The status document itself is fresh: `now - status.fetched_at < status.max_age`, where `max_age` is *asserted by the issuer inside the signed status document*, not chosen by the verifier. A verifier-chosen TTL is not a validity condition; it is a hope. - The status document's own signature verifies against the issuer's *current* key set, and the key set version is ≥ the version referenced in the manifest. A manifest signed under key-version 2 must not be validated against a status document signed under key-version 3 unless the issuer's key-transition proof links them. If any condition is unverifiable — status endpoint unreachable, epoch feed signature uncheckable, key-transition proof missing — the correct outcome is **reject or degrade to a capability floor**, never "accept because the VC looked fine." ## Decision Boundary The precise boundary where a correct implementation flips from accept to reject: ``` accept iff sig_chain_ok AND expirationDate > now AND not revoked(subject, capability) AND manifest.attestation_epoch >= status.current_epoch - allowed_lag(capability) AND now - status.fetched_at <= status.max_age (max_age from signed status doc) AND status.key_version >= manifest.key_version ``` The third-to-last clause is the one that is routinely missing. The two most common misimplementations: 1. **Handshake-time-only check.** Epoch is validated once when the agent session opens; a long-lived session (hours) outlives multiple epoch advances. Fix: re-validate on every capability invocation, or subscribe to a push channel that invalidates the session on epoch advance. 2. **Verifier-owned TTL.** The consumer sets a 5-minute cache because "the issuer's endpoint is slow." This converts the issuer's revocation latency into the consumer's tolerance, silently widening the trust window the issuer intended to be zero. Fix: `max_age` must be a signed field in the status document; if the issuer says 30s and the consumer can't meet it, the consumer must degrade capability, not extend the cache. A subtle third: **epoch rollback attacks**. A malicious or compromised status endpoint returns `current_epoch: 40` when the true epoch is 47, re-validating a stale manifest. Epoch must be monotonic and the verifier must persist the highest epoch seen per issuer and reject any status document asserting a lower epoch. This is a per-issuer high-water mark, stored in durable agent memory, surviving cold starts. ## Operational Effect The invariant to enforce: **a capability attestation is a function of (signed manifest, issuer status at invocation time), not of the manifest alone.** Any agent that treats the manifest as self-contained for capability purposes is running an unbounded trust window whose width equals its status-cache staleness, which is unbounded by construction because nothing in the VC constrains it. Concrete consequences observed when the invariant is enforced: - Sessions must carry a `capability_epoch` and re-check on each tool call whose capability is epoch-sensitive. This adds a status fetch (or cache hit) per invocation — measurable latency, accepted as the cost of bounded trust. - Cold-start amnesia is dangerous here specifically: a resumed agent that lost its per-issuer epoch high-water mark cannot detect rollback and must re-bootstrap the mark from a trusted source before accepting any manifest. A resumed agent that "remembers" a stale epoch is worse than a fresh one. - Degradation policy must be explicit: when status is unreachable and `max_age` is exceeded, the agent drops to the capability floor (typically read-only) rather than failing closed entirely, because full rejection of a valid peer over a transient status outage is its own availability failure. The floor must be a signed field in the manifest, not invented by the consumer. The guardrail is a single function that refuses to return a capability set when the epoch comparison is unverifiable. The code below is the enforcement point. ```python from dataclasses import dataclass from typing import Optional class StaleAttestationEpoch(RuntimeError): """Raised when a manifest's attestation epoch cannot be proven current.""" pass @dataclass class Manifest: subject_did: str capability: str attestation_epoch: int key_version: int expiration_ts: float capability_floor: str # signed fallback, e.g. "settlement.read" @dataclass class IssuerStatus: current_epoch: int key_version: int fetched_at: float max_age: float # signed by issuer, NOT chosen by verifier doc_signature_ok: bool def resolve_capability( manifest: Manifest, status: Optional[IssuerStatus], now: float, epoch_high_water: int, allowed_lag_for_capability: int, ) -> str: if not status or not status.doc_signature_ok: # Cannot prove currency. Degrade to signed floor, never assume current. return manifest.capability_floor if status.current_epoch < epoch_high_water: # Epoch rollback: status endpoint is lying or compromised. raise StaleAttestationEpoch( f"epoch rollback for {manifest.subject_did}: " f"status says {status.current_epoch}, high-water {epoch_high_water}" ) if now - status.fetched_at > status.max_age: # Status doc older than the issuer permits; cache TTL is not ours to extend. return manifest.capability_floor if status.key_version < manifest.key_version: raise StaleAttestationEpoch( f"status key_version {status.key_version} predates " f"manifest key_version {manifest.key_version}" ) if manifest.expiration_ts <= now: return manifest.capability_floor lag = status.current_epoch - manifest.attestation_epoch if lag > allowed_lag_for_capability: raise StaleAttestationEpoch( f"attestation epoch {manifest.attestation_epoch} lags issuer " f"epoch {status.current_epoch} by {lag} > allowed " f"{allowed_lag_for_capability} for capability {manifest.capability}" ) return manifest.capability ```