# What happens when an instance accepts a delegated task whose policy predicate was satisfied by a stale trust anchor **Date of Record:** 2026 November 28 **Scope:** Applies to federated multi-agent systems where a receiving (executing) agent admits a delegated task based on a trust-anchor attestation and a policy predicate evaluated over the delegating agent's claims, and where trust anchors are cached or refreshed asynchronously. Does not apply to single-org deployments where the trust root is static and the policy engine shares a clock and state store with the executor. ## Core Distinction The failure is not "the delegator was malicious" and it is not "the policy was wrong." The failure is that the *policy predicate* and the *trust-anchor freshness* are evaluated against two different temporal snapshots, and neither the delegating agent nor the receiving agent owns the join between them. The receiver evaluates `predicate(claims, policy)` at time `t_eval`, but `claims` were attested under a trust anchor that the receiver validated at `t_anchor < t_eval`. Between those two instants the anchor can be revoked, scoped down, or re-keyed upstream. The predicate returns `True` on stale evidence, the admission gate opens, and the task executes under a warrant that no longer exists at the federation's current trust root. The important distinction from ordinary TOCTOU: here the "time of check" is a *cryptographic attestation chain* and the "time of use" is a *policy decision*, and the two are joined by a cached artifact (the anchor) whose invalidation is propagated by a gossip channel that is itself best-effort. There is no lock. There is no transaction. There is only a bounded staleness window that no participant measures. ## What Was Observed A three-org federation: Org A (delegator), Org B (executor), Org C (trust root / attestation authority). A's agent issues a `delegate(task, claims, warrant)` to B. B's admission path: 1. Look up A's trust anchor in B's local anchor cache. Hit. Anchor `a_17`, issued `t0`, TTL 3600s, scope `{task_types: [summarize, retrieve], data_classes: [public, internal]}`. 2. Verify `warrant` signature chains to `a_17`. Valid. 3. Evaluate `policy.delegation_permitted(claims, a_17.scope)`. Claims request `task_type=retrieve`, `data_class=internal`. Predicate returns `True`. 4. Admit task. Execute. Return result to A. Concurrently, at `t0 + 1800s`, Org C revoked `a_17` (key compromise suspected) and re-issued `a_18` with narrowed scope `{task_types: [summarize], data_classes: [public]}`. The revocation event propagated to B via the anchor gossip channel. B's cache TTL had not expired; the gossip listener was configured to refresh on `next_use` rather than eagerly, so the revocation sat in a queue behind an in-flight admission. B admitted the `retrieve/internal` task at `t0 + 1810s` under `a_17`, executed it against internal data, and returned results to A — which had already rotated its own signing key and was no longer a valid principal under `a_18`. The observable signature in logs: B's admission record shows `anchor_id=a_17, anchor_verified_at=t0+2s, predicate_eval_at=t0+1810s, anchor_revoked_at=t0+1800s`. The predicate was satisfied by a 30-minute-stale anchor, and the gap between `anchor_verified_at` and `predicate_eval_at` is the entire failure surface. Nothing in the admission record treated that gap as a first-class quantity. The downstream consequence was not a leak in the classic sense — A was a legitimate peer that had been *de-authorized* mid-task. The result was that B executed a task for a principal that, at execution time, no longer had standing to request it, and B's audit trail could not distinguish this from a legitimate execution because the anchor ID was valid *at verification time*. ## Condition of Validity The failure is bounded and reproducible under four jointly-satisfied conditions: 1. **Anchor caching with lazy refresh.** The receiver validates the anchor once per cache lifetime or per warrant, not per predicate evaluation. If the receiver re-validates the anchor at `t_eval` against the live root, the window collapses. 2. **Asynchronous revocation propagation.** Revocation reaches the receiver via a channel with nonzero, unbounded latency (gossip, webhook, poll). If revocation is synchronous (the receiver must query C before every admission), the window is bounded by the query latency, not the cache TTL. 3. **Policy predicate that reads anchor scope but not anchor liveness.** The predicate is a pure function of `(claims, anchor.scope)`. It has no argument for `anchor.revoked_at` or `anchor.valid_at(t_eval)`. A predicate that takes the anchor's validity interval as an explicit argument and checks `t_eval ∈ [issued, revoked)` closes the window. 4. **Warrant lifetime exceeding anchor lifetime, or warrant not bound to anchor epoch.** The warrant A presents was signed under `a_17` and carries no epoch tag. B cannot tell, from the warrant alone, that it should have been re-issued under `a_18`. Remove any one condition and the failure does not occur. The most common single mitigation is (3): make the predicate's domain include a liveness predicate evaluated at `t_eval`. The most robust is (4): bind the warrant to an anchor epoch and require re-issuance on rotation, so a stale warrant is rejected structurally rather than by timing. ## Decision Boundary The architectural invariant that bounds this failure: **an admission decision is valid only if the trust anchor's validity interval, the warrant's signing epoch, and the predicate evaluation instant share a common point.** Formally, admission requires: ``` t_eval ∈ [anchor.issued_at, anchor.revoked_at_or_∞) AND warrant.anchor_epoch == anchor.epoch AND warrant.expires_at > t_eval AND predicate(claims, anchor.scope) == True ``` The decision boundary is where a system chooses to enforce this. Three viable placements: - **Enforce at the receiver (B).** Re-fetch anchor liveness at `t_eval`; reject on epoch mismatch. Cost: one round-trip to C per admission, or a monotonic epoch counter gossiped with bounded-staleness guarantees. This is the correct default. - **Enforce at the delegator (A).** A refuses to issue a warrant whose anchor it knows is near expiry; A re-issues on rotation. Insufficient alone — A cannot know when B will evaluate. - **Enforce at the root (C).** C issues short-TTL anchors and requires receivers to prove freshness (signed timestamp from C within `ε`) before admission. Shifts cost to C but makes staleness a protocol-level property. The boundary that must *not* be crossed: a receiver must never treat "anchor signature valid" as equivalent to "anchor currently authorized." These are different predicates over different time domains. Conflating them is the exact mechanism of the failure. ## Operational Effect The practical effect is that a federation can silently execute tasks under revoked authority for the duration of the anchor cache TTL, and the audit trail will look clean because every individual verification step succeeded. The failure is invisible to per-step logging and visible only to a cross-step join on `(anchor_verified_at, predicate_eval_at, anchor_revoked_at)` — a join most admission logs do not preserve because they record the anchor ID but not the verification timestamp alongside the evaluation timestamp. The remediation that generalizes beyond this specific case: **any admission gate that evaluates a predicate over a cached trust artifact must record the artifact's verification instant as a field on the decision, and must reject when the gap between verification and evaluation exceeds the artifact's revocation-propagation bound.** The bound is a property of the gossip channel, not of the cache. Systems that set cache TTL to the anchor lifetime and assume that is the staleness bound are measuring the wrong interval; the staleness bound is the revocation propagation latency, which is typically much larger and is not what the TTL expresses. The second-order effect is trust-anchor epoch churn. Once receivers enforce epoch binding, delegators that rotate anchors must re-issue in-flight warrants, which surfaces a new failure: warrant re-issuance racing with task execution. That is a separate boundary and is out of scope here, but it is the reason many systems defer this fix — the correct fix moves the failure rather than eliminating it. The correct response is to move it to a place where it is observable (re-issuance is a logged event) rather than leave it in a place where it is not (stale admission is silent). ```python from dataclasses import dataclass from typing import Optional class StaleTrustAnchorAdmission(RuntimeError): """Raised when an admission decision is satisfied by an anchor whose validity interval does not cover the predicate evaluation instant, or whose epoch does not match the warrant's signing epoch.""" pass @dataclass(frozen=True) class TrustAnchor: anchor_id: str epoch: int issued_at: float revoked_at: Optional[float] # None if not revoked scope_task_types: frozenset scope_data_classes: frozenset @dataclass(frozen=True) class Warrant: delegator: str anchor_epoch: int expires_at: float claims_task_type: str claims_data_class: str def admit_delegated_task( anchor: TrustAnchor, anchor_verified_at: float, warrant: Warrant, t_eval: float, revocation_propagation_bound: float, ) -> bool: # Invariant 1: the anchor's validity interval must cover t_eval. if anchor.revoked_at is not None and t_eval >= anchor.revoked_at: raise StaleTrustAnchorAdmission( f"anchor {anchor.anchor_id} revoked at {anchor.revoked_at}, " f"predicate evaluated at {t_eval}" ) # Invariant 2: the warrant must be signed under the anchor's current epoch. if warrant.anchor_epoch != anchor.epoch: raise StaleTrustAnchorAdmission( f"warrant epoch {warrant.anchor_epoch} != anchor epoch {anchor.epoch}" ) # Invariant 3: the gap between anchor verification and predicate evaluation # must not exceed the revocation propagation bound. Beyond it, the anchor's # liveness at t_eval is unknown and the predicate cannot be trusted. if (t_eval - anchor_verified_at) > revocation_propagation_bound: raise StaleTrustAnchorAdmission( f"anchor verified at {anchor_verified_at}, evaluated at {t_eval}, " f"gap exceeds propagation bound {revocation_propagation_bound}" ) # Invariant 4: warrant must not have expired at evaluation time. if warrant.expires_at <= t_eval: raise StaleTrustAnchorAdmission( f"warrant expired at {warrant.expires_at}, evaluated at {t_eval}" ) # Only now is the predicate evaluated over a live, epoch-matched anchor. permitted = ( warrant.claims_task_type in anchor.scope_task_types and warrant.claims_data_class in anchor.scope_data_classes ) if not permitted: raise StaleTrustAnchorAdmission( f"claims ({warrant.claims_task_type}, {warrant.claims_data_class}) " f"outside anchor {anchor.anchor_id} scope" ) return True ```