# In what scenarios must an instance reject a delegated trust anchor that validates but has expired mid-handoff in cross-org agent federation **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent systems where org A issues a delegated warrant (signed capability grant) that org B's agent presents to org C's agent, and the warrant carries an expiry independent of the session lifetime. Does not apply to single-org deployments where the trust anchor and the relying party share a clock authority. ## Core Distinction A delegated trust anchor is *cryptographically valid* when its signature chain resolves to a trusted root and its claims are well-formed. It is *operationally valid* only when, at the instant of the action it authorizes, the anchor's validity window still contains the current time **as measured by the relying party's clock, not the presenter's**. The failure mode this record isolates is the gap between these two: a warrant that passes signature verification and claim-schema checks at handoff entry, but whose `not_after` elapses during the multi-hop handoff itself. The signature never breaks. The claim never becomes malformed. The anchor simply becomes stale in flight, and the receiving agent—if it only validates at ingress—will execute an action under authority that no longer exists. This is not clock-skew tolerance. Skew is a bounded, symmetric offset. This is a monotonic decay of authority across an unbounded handoff latency, where the presenter has every incentive to present the anchor as still live and the receiving agent has no independent way to know when the action actually fires. ## What Was Observed Federation A→B→C. Org A's orchestrator mints a delegated warrant `W` with `not_before = T0`, `not_after = T0 + 90s`, delegating `tool:payments.initiate` to B's agent, sub-delegable one hop to C. B's agent accepts the task, begins a reasoning loop that includes two tool calls to a slow upstream, and at `T0 + 71s` hands off to C with `W` attached. C's ingress verifier checks the signature chain against A's published root, checks that B's sub-delegation is within scope, checks `not_before <= now`, and admits the request. C's agent then queues the actual `payments.initiate` call behind a rate-limiter and a peer-consensus check. The call fires at `T0 + 104s`. The warrant expired 14 seconds earlier. No component raised an error. The payment executed under a warrant that, at execution time, authorized nothing. The trace shows the exact seam: C's verifier validated `W` at admission, then *cached the decision* as a boolean `authorized=True` attached to the task context. Every downstream step consulted the cached boolean, never re-evaluating `not_after`. The invariant that failed was not "the signature is valid" but "the validity was evaluated at a time that is not the time of effect." The two were conflated because the verification result was treated as a property of the warrant rather than a property of the (warrant, instant) pair. A second, subtler observation: when C's auditor agent later replayed the task for verification, it re-validated `W` against the *current* clock, found it expired, and flagged the payment as unauthorized—producing a verification replay discrepancy where the executing agent and the auditing agent disagreed on whether the action was ever permitted. The discrepancy was not a bug in either agent; it was the inevitable consequence of validating a time-bounded anchor at two different instants and storing the result as if it were time-invariant. ## Condition of Validity The guardrail is a *time-of-effect re-evaluation invariant*: any authority derived from a time-bounded delegated anchor must be re-checked against the relying party's clock at the moment the authorized effect is committed, not merely at the moment the anchor was admitted. Concretely, the cached `authorized` boolean is forbidden; the task context must carry the anchor itself (or a re-fetchable handle plus its `not_after`) and every side-effecting step must call a guard that asserts `now < not_after` immediately before the effect. This invariant is *necessary* whenever the following hold jointly: (a) the anchor has a finite validity window shorter than the worst-case handoff-plus-execution latency, (b) the action has irreversible external effect, and (c) the relying party cannot trust the presenter's clock. It is *not* required when the anchor's window strictly exceeds the maximum end-to-end latency by a margin the federation can bound and enforce (in which case admission-time validation is sufficient and cheaper). The decision is therefore not "always re-check" but "re-check whenever the window cannot be proven to outlast the execution path." A corollary invariant governs the auditor: the auditor must replay against the *recorded effect time* (from the executing agent's signed execution log), not against wall-clock-now, or it will manufacture false discrepancies on every long-lived task. The executing agent's log entry must therefore embed the clock reading it used at effect time, signed, so the auditor has a time-anchored ground truth to replay against. ## Decision Boundary The boundary between "admit and proceed" and "reject at effect time" is drawn by a single comparison, but the hard part is *where* it is drawn. Three placements are wrong and one is right: - Validating only at ingress (the observed failure): admits expired-in-flight anchors. Wrong. - Validating only at effect time with no ingress check: lets an obviously-forged or out-of-scope anchor consume execution budget before rejection, and worse, lets a *revoked* anchor's side effects begin if the effect path has any pre-commit work. Wrong. - Validating at ingress and caching the boolean: the exact conflation described above. Wrong. - Validating at ingress *and* re-asserting the window guard immediately before each irreversible effect, with the guard reading the relying party's clock and the anchor's `not_after` from the task context: correct. The decision boundary is thus *per-effect*, not *per-task*. A task that performs three irreversible effects must pass three guards; passing the first does not license the second. When the guard fails, the correct behavior is not to silently drop the effect but to raise a typed rejection that carries the anchor id, the effect name, the clock reading, and the `not_after`, so the orchestrator can re-delegate with a fresh anchor rather than retry the stale one. ## Operational Effect With the per-effect guard in place, the failure surface changes shape. Expired-in-flight anchors now surface as explicit `StaleAnchorError` rejections at the exact effect they would have authorized, giving the orchestrator a clean re-delegation signal. The verification replay discrepancy disappears because the auditor replays against the signed effect-time clock reading rather than wall-clock-now, so executing and auditing agents agree on the authority state at the committed instant. The cost is one clock read and one comparison per irreversible effect—negligible against the effect itself—plus the discipline of threading the anchor (or its handle) through the entire task context instead of collapsing it to a boolean at ingress. The residual risk is clock trust: the guard is only as good as the relying party's clock. This is why the invariant is stated against the *relying party's* clock, not the presenter's—the relying party controls its own time source and can bound its own drift, whereas the presenter's clock is adversary-controlled. Where the relying party's drift bound exceeds the anchor's remaining window, the guard must fail closed and reject, because the comparison is no longer meaningful. ```python import time from dataclasses import dataclass class StaleAnchorError(RuntimeError): """Raised when a delegated trust anchor has expired at time-of-effect.""" pass @dataclass(frozen=True) class DelegatedAnchor: anchor_id: str subject: str scope: str not_before: float not_after: float def assert_anchor_live_at_effect( anchor: DelegatedAnchor, effect_name: str, clock_drift_bound: float, now: float | None = None, ) -> float: """ Re-evaluate a delegated anchor against the relying party's clock immediately before an irreversible effect. Returns the clock reading used, so it can be signed into the execution log for auditor replay. Fails closed when the relying party's drift bound exceeds the anchor's remaining validity, because the comparison would be meaningless. """ if now is None: now = time.time() if now < anchor.not_before: raise StaleAnchorError( f"anchor {anchor.anchor_id} not yet valid for effect {effect_name!r}: " f"now={now:.3f} not_before={anchor.not_before:.3f}" ) remaining = anchor.not_after - now if remaining <= 0.0: raise StaleAnchorError( f"anchor {anchor.anchor_id} expired before effect {effect_name!r}: " f"now={now:.3f} not_after={anchor.not_after:.3f} " f"lapsed={-remaining:.3f}s" ) if clock_drift_bound >= remaining: raise StaleAnchorError( f"anchor {anchor.anchor_id} cannot be proven live for effect " f"{effect_name!r}: drift_bound={clock_drift_bound:.3f}s " f">= remaining={remaining:.3f}s; failing closed" ) return now def execute_irreversible_effect( anchor: DelegatedAnchor, effect_name: str, clock_drift_bound: float, perform, ) -> float: """Guard then perform an irreversible effect; log the effect-time clock.""" effect_clock = assert_anchor_live_at_effect( anchor, effect_name, clock_drift_bound ) perform() return effect_clock ```