# Under what conditions must an instance refuse a federated capability grant when the peer's policy attestation is structurally valid but temporally incoherent **Date of Record:** 2026 November 21 **Scope:** Applies to cross-org agent federation where capability grants carry signed policy attestations with validity windows, and where the receiving agent (the *grantee*) must decide whether to honor a peer-issued capability before invoking it. Does not apply to single-org deployments, to stateless request/response tool calls with no attestation, or to grants whose trust anchor is a shared root the grantee already pins. ## Core Distinction The failure this record isolates is **not** signature forgery and **not** policy mismatch. It is the case where a peer's capability attestation is cryptographically valid, references a real policy the peer is authorized to issue, names a capability the grantee actually supports, and yet the attestation's *temporal envelope* is incoherent with the grantee's own clock and execution model. Three concrete incoherences recur: 1. **Attestation expiry precedes grant expiry.** The peer signs `capability=write:dataset` with `grant_expires=T+3600s`, but the embedded policy attestation carries `policy_valid_until=T+120s`. The signature verifies; the *policy backing the grant* lapses 58 minutes before the grant does. 2. **Clock skew exceeds the attestation's freshness margin.** The peer asserts `issued_at` from its own monotonic-ish clock; the grantee's NTP-synced clock disagrees by more than the `max_skew` the peer's attestation format tolerates. The grant is neither expired nor fresh — it is *undecidable*. 3. **Revocation horizon crosses the grant's use window.** The peer's CRL/OCSP-equivalent publishes a `next_update` at `T+300s`, but the grantee intends to hold and reuse the capability for `T+1800s`. Between `T+300s` and `T+1800s` the grantee is operating on a capability whose revocation status it can no longer confirm. The distinction from ordinary expiry: **a grant that is valid now but whose supporting attestation will silently lapse mid-execution is a deferred failure, not a current one.** Grantees that check only "is the grant valid at invocation time" pass this check and then fail at step N of a multi-step plan. ## What Was Observed In a federation of three administrative domains (call them A, B, C) brokering capabilities over an MCP-style transport with an A2A handoff layer, the following trace was captured. Agent `A.executor` requested `B.warehouse:write:inventory` at `T+0`. B's broker returned a grant envelope: - `grant_id`: opaque - `subject`: A.executor's workload identity - `capability`: `write:inventory` - `grant_not_after`: `T+3600` - `policy_attestation`: signed by B's policy authority, `policy_id=P-4471`, `policy_valid_until=T+120`, `next_update=T+300` - `issuer_signature`: valid against B's pinned root A.executor's local policy engine checked: signature valid, capability in allowlist, `grant_not_after > now`. All passed. The grant was cached with TTL `3600s` per the envelope. At `T+140`, A.executor invoked the capability as step 3 of a 5-step reconciliation plan. B's enforcement point rejected the call with `policy_attestation_expired`. A.executor's retry logic — which treated the rejection as a transient transport fault because the grant was still locally "valid" — retried three times, exhausting a token budget allocated to the plan, and then the plan's checkpoint was written with steps 3–5 marked *failed-transient*. On resume at `T+900`, the plan re-attempted step 3, received the same deterministic rejection, and entered a retry loop bounded only by the plan's global deadline. The root cause is not the expiry. It is that **A.executor's grant cache keyed validity on `grant_not_after` and ignored the attestation's `policy_valid_until` and `next_update`.** The envelope's own internal fields disagreed about when the capability would stop working, and the grantee trusted the most permissive field. A second observation from the same federation: agent `C.auditor` received a grant from B with `issued_at` in the future relative to C's clock by 47 seconds (B's clock drifted after a VM live-migration). C's attestation validator, which required `issued_at <= now`, rejected the grant as *not yet valid*. C's orchestrator interpreted the rejection as a policy denial and quarantined the peer for 10 minutes, dropping two unrelated in-flight handoffs. Here the incoherence was skew, and the failure mode was **false denial plus collateral quarantine**, not deferred acceptance. ## Condition of Validity A federated capability grant is *temporally coherent* — and therefore honorable — only when all of the following hold at the moment of decision, where `now` is the grantee's clock and `skew_bound` is the maximum skew the attestation format guarantees: - `policy_valid_until >= min(grant_not_after, now + planned_use_window)` — the policy backing the grant must outlive the grantee's *intended* use, not merely the grant's nominal expiry. - `|issued_at - now| <= skew_bound` — the grant is neither from the future nor stale beyond tolerance. - `next_update >= now + planned_use_window` — the revocation status must remain confirmable for the whole use window, or the grantee must re-fetch status before each use past `next_update`. The `planned_use_window` is the critical term most implementations omit. A grant is not a point-in-time permission; it is a lease the grantee intends to *hold across a plan*. If the grantee cannot bound `planned_use_window` — because the plan is open-ended, or because a sub-agent may hand the capability onward — then the only safe value is `planned_use_window = 0`, i.e., the grant may be used only for a single immediate invocation, and must be re-validated before any reuse. When any condition fails, the grant is **not** "invalid" in the cryptographic sense and must **not** be reported as a policy denial. It is *temporally incoherent* and must be handled by a distinct path: either re-negotiate with the peer (request a fresh attestation with a longer `policy_valid_until`, or a re-issued `issued_at`), or narrow `planned_use_window` to zero and proceed single-shot. ## Decision Boundary The boundary between "honor and cache" and "honor single-shot / re-negotiate" is: ``` honorable_and_cacheable ⇔ policy_valid_until >= now + planned_use_window ∧ next_update >= now + planned_use_window ∧ |issued_at - now| <= skew_bound honorable_single_shot ⇔ policy_valid_until > now ∧ next_update > now ∧ |issued_at - now| <= skew_bound otherwise → renegotiate or refuse ``` Three rules follow, and each is a guardrail the trace above violated: 1. **The grant cache TTL must be the minimum of `grant_not_after`, `policy_valid_until`, and `next_update` — never `grant_not_after` alone.** Caching past the minimum is the deferred-failure trigger. 2. **A `policy_attestation_expired` rejection is terminal for that grant, not transient.** Retrying it is a token-budget sink and corrupts plan checkpoints. The correct response is to invalidate the cached grant, re-negotiate, and resume the plan from the step boundary — not to retry the invocation. 3. **Skew-induced `not yet valid` must not be conflated with denial.** A grant rejected for future `issued_at` should be held in a short *pending* state with a bounded wait (`skew_bound`), not treated as a policy denial that triggers peer quarantine. ## Operational Effect The downstream consequences of getting this boundary wrong are asymmetric and both bad: - **Under-strict (cache on `grant_not_after`):** deferred mid-plan failures, retry storms against a deterministic rejection, token-budget exhaustion, and checkpoints poisoned with `failed-transient` states that re-trigger on resume. The plan does not fail cleanly; it fails *late* and *repeatedly*, and the checkpoint-resume machinery amplifies the cost. - **Over-strict (treat skew as denial):** false peer quarantine, dropped in-flight handoffs, and — in a multi-agent swarm — cascading quarantine as peers re-broadcast the denial. A 47-second clock drift becomes a 10-minute partition. The invariant to enforce at the federation boundary: **a capability grant's usable lifetime is the minimum of every temporal field in its envelope, and any rejection attributable to that minimum is a grant-lifecycle event, not a transport or policy event.** Grantees must classify rejections into at least three buckets — `transient`, `policy_denied`, `grant_lifecycle` — and route only the first to retry logic. The `grant_lifecycle` bucket routes to re-negotiation and plan-checkpoint invalidation; the `policy_denied` bucket routes to peer trust review; neither routes to blind retry. ```python import time from dataclasses import dataclass from enum import Enum class TemporalIncoherence(RuntimeError): """Raised when a federated grant's temporal envelope cannot be coherently honored.""" class GrantDecision(Enum): CACHEABLE = "cacheable" SINGLE_SHOT = "single_shot" RENEGOTIATE = "renegotiate" @dataclass(frozen=True) class GrantEnvelope: grant_not_after: float policy_valid_until: float next_update: float issued_at: float skew_bound: float = 60.0 def classify_grant(env: GrantEnvelope, now: float, planned_use_window: float) -> GrantDecision: # Skew check first: a future-dated grant is undecidable, not denied. if abs(env.issued_at - now) > env.skew_bound: raise TemporalIncoherence( f"clock skew {abs(env.issued_at - now):.1f}s exceeds bound {env.skew_bound}s; " f"grant is undecidable, route to pending-wait not denial" ) horizon = min(env.grant_not_after, env.policy_valid_until, env.next_update) if horizon <= now: raise TemporalIncoherence( f"grant envelope lapsed: min-validity field at {horizon:.1f} <= now {now:.1f}; " f"renegotiate, do not retry" ) if env.policy_valid_until >= now + planned_use_window and env.next_update >= now + planned_use_window: return GrantDecision.CACHEABLE if env.policy_valid_until > now and env.next_update > now: return GrantDecision.SINGLE_SHOT raise TemporalIncoherence( f"cannot bound use window {planned_use_window:.1f}s within envelope horizon " f"{horizon - now:.1f}s; renegotiate fresh attestation" ) def safe_cache_ttl(env: GrantEnvelope, now: float) -> float: # The bug from the trace: never cache on grant_not_after alone. ttl = min(env.grant_not_after, env.policy_valid_until, env.next_update) - now if ttl <= 0: raise TemporalIncoherence("refusing to cache a lapsed grant") return ttl ```