# When must an instance refuse a federated capability grant whose policy predicate was satisfied by a peer's stale attestation rather than by live state **Date of Record:** 2026 November 22 **Scope:** Applies to cross-organization agent federations where a delegating agent in org A grants a capability to an agent in org B on the strength of a policy predicate (e.g., `data_classification <= internal`, `principal.role == "auditor"`, `resource.region == "eu"`) that was evaluated against an attestation document supplied by B. Does not apply to single-org delegation where the policy engine reads authoritative state directly, nor to capability tokens whose predicates are evaluated only against the granting org's own datastore. ## Core Distinction The failure is not "the peer lied." It is subtler: the peer told the truth, but the truth it told was **cached**. In a federation, the delegating agent (A) cannot read B's live state; it can only read B's *attestation* — a signed snapshot of B's relevant facts at some issuance time `t_attest`. A's policy predicate is a pure function of that snapshot. The negotiation protocol therefore conflates two different questions that look identical at the policy-evaluation site: 1. *Is the predicate satisfied by the facts in the attestation?* (a pure, local, decidable check) 2. *Are those facts still true at the moment the capability is exercised?* (a temporal property that cannot be decided locally at grant time) A naive federation answers only (1) and treats it as (2). The boundary condition is that a policy-bounded delegation is sound only if the predicate's **validity interval** is contained within the attestation's **freshness interval**. When the predicate depends on a fact with a shorter half-life than the attestation's TTL — a role that was revoked, a classification that was downgraded, a region that changed after a failover, a principal whose employment ended — the grant is satisfied-but-stale. The delegating agent has issued a capability that is *correct with respect to a document* and *wrong with respect to the world*. The non-obvious part: this is invisible to every component that checks the grant. The signature verifies, the predicate evaluates to `true`, the audit log records a clean decision. The failure only manifests downstream, when the capability is exercised against reality. ## What Was Observed A three-org federation (`A` grants, `B` requests, `C` is an independent auditor peer). B's agent requests a `read:customer_records` capability scoped to classification `internal`. B supplies a signed attestation `att_B` asserting `data_classification = "internal"` issued at `t_attest = T0`, with a freshness TTL of 3600s. A's policy engine evaluates `att_B.data_classification <= "internal"` → `true`, and issues a capability `cap` with `not_before = T0+2s`, `expires = T0+3600s`. At `T0+40s`, B's data governance pipeline reclassifies the underlying records to `restricted` (a routine, automated downgrade triggered by a new PII detector). B's attestation service does not re-issue until its next scheduled refresh at `T0+1800s`. B's own agents correctly see the new classification because they read live state; A's grant does not. At `T0+600s`, B's agent exercises `cap`. The capability is cryptographically valid, unexpired, and its predicate was genuinely satisfied at issue time. The read succeeds against `restricted` data. C's auditor peer, replaying the grant decision, sees a predicate that evaluated `true` and a signature that verified — and cannot, from the grant record alone, distinguish this from a legitimate access. The trace that made it diagnosable was a **replay discrepancy**: C re-evaluated the same predicate against B's *current* attestation (`att_B'`, issued `T0+1800s`, `data_classification = "restricted"`) and got `false`. Two auditors replaying the same grant against attestations from different epochs reach opposite verdicts. The grant was not forged; it was *temporally underdetermined*. Three contributing mechanics compounded: - **Predicate/attestation lifetime mismatch.** The policy author wrote `data_classification <= internal` assuming the classification was stable; the attestation author set a 1-hour TTL assuming consumers would re-check. Neither assumption was encoded as a constraint linking the two. - **No monotonic revocation channel.** B had no way to push a "fact changed" invalidation to A between refreshes. The federation had a trust *negotiation* path but no trust *withdrawal* path. - **Auditor replay without epoch pinning.** C's replay did not record which attestation epoch the original decision used, so replay was non-deterministic across time. ## Condition of Validity A policy-bounded delegation `grant(A→B, cap, predicate P)` is sound only when all of the following hold: 1. **Freshness containment.** For every fact `f` referenced by `P`, `freshness_interval(f) ⊆ remaining_ttl(att_B at evaluation time)`. If `P` reads `data_classification` and that fact can change faster than the attestation refreshes, the predicate is *unbound* and the grant is unsound regardless of its truth value. 2. **Epoch pinning.** The grant record stores `att_B.epoch` (or issuance hash), and any replay/audit evaluates `P` against exactly that epoch, never against a later or live attestation. Replay must be a pure function of the pinned epoch. 3. **Invalidation reachability.** There exists a path by which B can notify A (or A can poll B) of a fact change with latency `≤ freshness_interval(f)`, and A's capability store honors that invalidation by revoking or re-evaluating. Absent this, condition 1 cannot be maintained under mutation. 4. **Predicate classification.** Each predicate atom is tagged `stable` (changes only via governed, announced events) or `volatile` (changes autonomously). Volatile atoms require either a short-TTL attestation or an online check at exercise time; they may not be satisfied solely by a cached snapshot. The invariant: **a capability's authorized lifetime must not exceed the minimum freshness horizon of any volatile fact in its predicate.** Stated contrapositively, if `expires(cap) > min_freshness(P)`, the delegation is over-scoped in time even though it is correctly scoped in content. ## Decision Boundary The delegating agent must draw a hard line between two outcomes that the naive policy engine collapses into one: - **Grant** only when `P` evaluates `true` *and* every volatile atom in `P` is covered by a freshness containment proof *and* an invalidation channel is live. The grant's `expires` is clamped to `min_freshness(P)`. - **Refuse-and-negotiate** when `P` evaluates `true` but freshness containment fails. This is the boundary case the failure mode hides: the predicate is satisfied, so a content-only engine grants. The correct action is to *not* grant on the stale attestation, and instead demand a re-attestation with a tighter TTL or an online predicate check against B's live endpoint. The subtlety that makes this a genuine boundary rather than a rule: **refusing a satisfied predicate looks like a policy false-negative to the requesting agent.** B's agent will observe `P = true` locally and receive a refusal, and may retry, escalate, or route around A through another peer. The federation must therefore distinguish, in the refusal, `DENIED_PREDICATE_FALSE` from `DENIED_STALE_ATTESTATION` — the latter carries a re-attestation challenge, the former does not. Conflating them either leaks the fact that a reclassification occurred (an information-flow side channel) or triggers unbounded retry storms against a predicate that will never be satisfied by the current attestation. A second boundary: when the predicate mixes stable and volatile atoms (e.g., `principal.role == "auditor" AND data_classification <= "internal"`), the grant is clamped to the *minimum* freshness across atoms. The role may be stable for days; the classification may flip in seconds. The whole predicate inherits the shortest half-life. Policy authors routinely assume the conjunction is as durable as its most stable conjunct; it is as durable as its least stable one. ## Operational Effect The observable signature of getting this wrong is a class of incident that never trips a policy violation alarm: **privilege that was legitimate at grant time and illegitimate at exercise time, exercised through a grant no component flags as anomalous.** Post-hoc auditors replaying the decision against current attestations disagree with the original decision; auditors replaying against the pinned epoch agree with it and miss the drift. The incident is only reconstructable by correlating the grant's pinned epoch against B's fact-change timeline — a join across two orgs' logs that neither org alone can perform. The mitigations that actually bound it, in order of leverage: - **Clamp capability lifetime to predicate freshness.** This converts an unbounded temporal over-scope into a bounded one and forces re-negotiation at the freshness boundary. It is the single highest-leverage change because it makes the failure mode self-healing: the capability expires before the stale fact can be exercised against. - **Tag predicate atoms stable/volatile at policy-authoring time** and reject any policy whose volatile atoms lack a freshness binding. This moves the failure from runtime to authoring. - **Pin attestation epochs in grant records and in auditor replay.** Makes replay deterministic and turns the "two auditors disagree" symptom into a detectable discrepancy rather than a silent one. - **Provide a revocation/invalidation channel** so B can withdraw a fact between refreshes; without it, clamping lifetimes only shrinks the window, it does not close it. What does *not* work: shortening the attestation TTL alone (B controls its own TTL and has no incentive to shorten it, and A cannot verify the TTL is honest without a clock it doesn't control); trusting the peer's signature more (the signature was valid — the problem is temporal, not cryptographic); and adding the peer's auditor to the consensus (C's replay is only as good as its epoch pinning, which is the thing that was missing). ``` ```python import time from dataclasses import dataclass, field from typing import Dict, Optional class StaleAttestationGrantError(RuntimeError): """Raised when a capability would be granted on a predicate whose volatile facts are not freshness-contained by the attestation.""" pass @dataclass(frozen=True) class PredicateAtom: name: str volatile: bool # True = can change autonomously between attestations freshness_s: int # max age at which this fact is still trustworthy @dataclass class Attestation: issuer: str epoch: str # pinned identity of this snapshot issued_at: float facts: Dict[str, object] ttl_s: int def remaining_ttl(self, now: float) -> float: return max(0.0, (self.issued_at + self.ttl_s) - now) @dataclass class Capability: subject: str predicate: list # list[PredicateAtom] not_before: float expires: float pinned_epoch: str def evaluate_predicate(att: Attestation, atoms: list) -> bool: # Pure function of the pinned snapshot — no live reads, no clock. for a in atoms: if a.name not in att.facts: return False # Simplified comparison; real impl compiles per-atom semantics. if not att.facts[a.name]: return False return True def negotiate_grant( att: Attestation, atoms: list, subject: str, now: Optional[float] = None, invalidation_channel_live: bool = False, ) -> Capability: now = time.time() if now is None else now if not evaluate_predicate(att, atoms): # Content failure: ordinary denial, no re-attestation challenge. raise StaleAttestationGrantError( f"DENIED_PREDICATE_FALSE for {subject}: predicate not satisfied " f"by attestation epoch {att.epoch}" ) # Predicate is satisfied. Now enforce freshness containment. volatile = [a for a in atoms if a.volatile] remaining = att.remaining_ttl(now) for a in volatile: if a.freshness_s > remaining: # Satisfied-but-stale: the fact can change faster than the # attestation refreshes. Refuse and demand re-attestation. raise StaleAttestationGrantError( f"DENIED_STALE_ATTESTATION for {subject}: volatile fact " f"'{a.name}' has freshness {a.freshness_s}s but attestation " f"epoch {att.epoch} has only {remaining:.0f}s remaining; " f"demand re-attestation with TTL <= {a.freshness_s}s" ) if not invalidation_channel_live: raise StaleAttestationGrantError( f"DENIED_NO_INVALIDATION_CHANNEL for {subject}: fact " f"'{a.name}' is volatile and no revocation path exists; " f"cannot bound temporal over-scope" ) # Clamp capability lifetime to the minimum freshness of volatile atoms. min_freshness = min((a.freshness_s for a in volatile), default=remaining) expires = min(now + min_freshness, att.issued_at + att.ttl_s) return Capability( subject=subject, predicate=atoms, not_before=now, expires=expires, pinned_epoch=att.epoch, ) def replay_decision(att_at_epoch: Attestation, atoms: list, cap: Capability) -> bool: # Replay MUST use the pinned epoch, never a live or later attestation. if att_at_epoch.epoch != cap.pinned_epoch: raise StaleAttestationGrantError( f"episode mismatch: replay attestation {att_at_epoch.epoch} != " f"pinned epoch {cap.pinned_epoch}; decision is not reproducible" ) return evaluate_predicate(att_at_epoch, atoms) ```