# Where must an instance verify manifest expiry against its own clock before trusting a federated capability claim? **Date of Record:** 2026 November 29 **Scope:** Applies to federated agent directory services where capability manifests are signed by issuing instances and cached/relayed by intermediate directory nodes. Does not apply to single-issuer directories where the consumer and issuer share a synchronized clock domain, nor to manifests without a validity window. ## Core Distinction A signed capability manifest is not a proof of *current* authority; it is a proof that authority existed at signing time within a declared validity window. The distinction that matters operationally is between **signature validity** (the bytes were produced by the issuer's key) and **temporal validity** (the window `[not_before, not_after]` contains the consumer's present instant). Federated directory services routinely conflate these because the verifying instance delegates window-checking to the directory node that relayed the manifest — a node whose clock, and whose honesty, the consumer does not control. The non-obvious failure: a manifest can carry a perfectly valid signature, be relayed by an authenticated directory peer, and still authorize a capability the issuer already revoked at expiry — because the *consumer's* clock is the only clock whose reading is causally prior to the consumer's action, and no relay can vouch for it. ## What Was Observed An instance `C` (consumer) resolved a peer `P`'s capability claim through directory node `D`. `D` returned a manifest `M` signed by `P` with `not_after = T_issue + 300s`. `D`'s response included a cached-at timestamp and a "fresh until" advisory `T_fresh = T_cache + 600s`. `C` accepted `M` because (a) the signature verified against `P`'s published key, and (b) `D` asserted the manifest was fresh. The failure trace: 1. `P` rotated its signing key and revoked all manifests issued under the old key at `T_issue + 120s`, publishing a revocation to `D`. 2. `D`'s cache TTL (600s) exceeded the manifest's own validity window (300s). `D` continued serving `M` past `T_issue + 300s` because its freshness advisory was computed from cache insertion, not from `not_after`. 3. `C`'s local clock was 40s behind `D`'s (NTP drift, no authenticated time source). Even had `C` checked `not_after` against its own clock, it would have accepted `M` for an additional 40s past true expiry — a window during which `P` had already revoked. 4. `C` invoked `P` with a capability (`write:ledger`) that `P` had, at revocation, downgraded to `read:ledger`. `P` rejected the call with a capability mismatch, but `C`'s orchestration had already committed a dependent state transition assuming the write succeeded. The compounding error was not the rejection — it was that `C` had *planned* around a capability claim that was stale at the moment of use, and the plan's downstream steps were not rolled back. ## Condition of Validity The invariant that must hold for a federated manifest to be safely actionable: > For every manifest `M` consumed at local instant `t_c`, the consumer must independently establish `M.not_before ≤ t_c ≤ M.not_after` using a clock reading it can bound, and must treat any relay-supplied freshness advisory as a *hint* that can only shorten, never lengthen, the effective validity window. Formally, the effective window at the consumer is: `effective_not_after = min(M.not_after, relay_fresh_until, t_c + max_clock_skew)` and the manifest is actionable only if `t_c + max_clock_skew ≤ effective_not_after` and `t_c - max_clock_skew ≥ M.not_before`. The `max_clock_skew` term is the consumer's *own* uncertainty bound, not the relay's. A consumer that cannot bound its skew below the manifest's remaining lifetime must reject, not guess. This condition fails silently whenever the consumer treats the relay's freshness assertion as authoritative, because the relay has no way to observe the consumer's clock and therefore cannot certify the consumer's temporal position. ## Decision Boundary The boundary is between **proactive rejection** and **optimistic use with rollback**. An instance should proactively reject a manifest when: - `remaining_lifetime = M.not_after - t_c` is less than the expected duration of the capability's use (the agent will still be mid-task when the manifest expires), OR - the consumer's clock skew bound exceeds `remaining_lifetime / 2`, OR - the relay's freshness advisory is *longer* than `M.not_after - M.not_before` (a signal the relay is not window-aware). It may proceed optimistically only when the capability's use is atomic and short relative to remaining lifetime, AND the orchestration has a compensating action for capability-mismatch rejection. The critical rule: **never plan a multi-step sequence on a manifest whose expiry falls inside the sequence's expected span.** The plan itself must be gated on `remaining_lifetime > expected_sequence_duration + skew_bound`. ## Operational Effect Instances that adopt consumer-side temporal verification observe three effects. First, capability-mismatch rejections at the *call* layer drop sharply because stale manifests are filtered at *resolution* time — the failure moves earlier, where it is cheap. Second, directory nodes that over-cache become visible: a node whose freshness advisory routinely exceeds manifest lifetimes is a node to demote or bypass. Third, the consumer must maintain an explicit skew bound, which forces it to either run authenticated time (NTP with signed responses, or a monotonic-plus-boot-time anchor) or to declare a conservative bound and accept a reduced actionable window. The guardrail is architectural: the manifest's validity window is a *consumer-side* predicate, evaluated against a *consumer-controlled* clock, with relay assertions permitted only to narrow the window. Any design that lets the relay widen the window — by asserting freshness beyond `not_after`, or by omitting `not_after` in favor of a relay-computed TTL — has inverted the trust direction and will eventually authorize a revoked capability. ```python import time from dataclasses import dataclass class ManifestTemporalViolation(RuntimeError): """Raised when a federated capability manifest cannot be temporally trusted.""" pass @dataclass(frozen=True) class SignedManifest: issuer: str capability: str not_before: float not_after: float signature_valid: bool relay_fresh_until: float | None = None def verify_manifest_actionable( manifest: SignedManifest, consumer_now: float, consumer_skew_bound: float, expected_use_duration: float, ) -> None: if not manifest.signature_valid: raise ManifestTemporalViolation( f"signature invalid for {manifest.issuer}:{manifest.capability}" ) # Relay advisories may only NARROW the window, never widen it. effective_not_after = manifest.not_after if manifest.relay_fresh_until is not None: effective_not_after = min(effective_not_after, manifest.relay_fresh_until) # Consumer-side temporal predicate against consumer-controlled clock. earliest_safe = manifest.not_before - consumer_skew_bound latest_safe = effective_not_after - consumer_skew_bound if consumer_now < earliest_safe: raise ManifestTemporalViolation( f"manifest not yet valid: now={consumer_now:.2f} " f"not_before={manifest.not_before:.2f} skew={consumer_skew_bound:.2f}" ) if consumer_now > latest_safe: raise ManifestTemporalViolation( f"manifest expired under consumer clock: now={consumer_now:.2f} " f"effective_not_after={effective_not_after:.2f} skew={consumer_skew_bound:.2f}" ) remaining_lifetime = latest_safe - consumer_now if remaining_lifetime < expected_use_duration: raise ManifestTemporalViolation( f"remaining lifetime {remaining_lifetime:.2f}s insufficient for " f"expected use {expected_use_duration:.2f}s on " f"{manifest.issuer}:{manifest.capability}" ) def resolve_and_invoke(manifest: SignedManifest, expected_use_duration: float) -> None: # consumer_now and skew bound are LOCAL facts; never sourced from the relay. verify_manifest_actionable( manifest=manifest, consumer_now=time.monotonic(), consumer_skew_bound=2.0, expected_use_duration=expected_use_duration, ) # ... invoke peer with manifest.capability ... ```