Where must an instance re-verify a federated trust anchor after a policy-bounded routing hop, and why the anchor’s TTL is not the invariant you think it is
**Date of Record:** 2026 December 2
**Scope:** Applies to cross-organization agent federations where a message is routed through one or more policy-enforcing intermediaries (relays, gateways, brokers) that each validate a signed trust anchor and re-emit the message under a locally scoped capability. Does not apply to single-org swarms with a shared control plane, nor to direct point-to-point A2A handshakes with no intermediary.
Core Distinction
The failure is not "the trust anchor expired." The failure is that a downstream instance treats *anchor validity at the time of the last hop* as equivalent to *anchor validity at the time of execution*. These diverge whenever a policy-bounded relay holds a message in a queue, retries a delivery, or defers execution behind a token-budget or rate-limit gate. The anchor's cryptographic TTL is a property of the signature; the invariant that actually matters is **anchor freshness at the moment of side-effect**, which no intermediate hop can certify on behalf of the terminal instance.
A trust anchor is a signed assertion: *"org B attests that agent X holds capability C, valid until T."* A policy-bounded router validates that assertion, then routes. The router's validation is correct at hop time. But the router cannot extend the anchor's semantics forward in time, and it must not be trusted to have done so. The terminal instance is the only party that can bind anchor validity to its own side-effect clock.
What Was Observed
A federation of three orgs — `acme` (originator), `relay-gw` (a policy gateway enforcing message-class routing and rate limits), and `partner` (terminal executor) — exchanged a task-delegation message carrying a capability warrant. The warrant was signed by `acme`'s trust authority with a 300-second TTL and embedded a scope claim `{action: "write:ledger", resource: "partner/orders/*"}`.
Trace of the failing run:
- `acme` agent emits delegation, warrant `exp = T0+300`. Signature valid.
- `relay-gw` validates warrant at `T0+12`. Passes policy check: message class `task.delegate`, destination `partner`, scope within `relay-gw`'s allowlist. Enqueues for delivery.
- `relay-gw`'s outbound queue backs up behind a rate-limit gate (partner's ingress budget exhausted by an unrelated batch). Message sits 340 seconds.
- `partner`'s ingress agent dequeues at `T0+352`. It reads the *routing metadata* — which includes `relay-gw`'s stamp `validated_at: T0+12, anchor_ok: true` — and, because the stamp is present and signed by a trusted relay, **skips re-verification of the warrant's `exp` against its own clock**.
- `partner` executes `write:ledger` at `T0+353`. The warrant had been expired for 53 seconds.
The write succeeded. The audit log showed a valid `anchor_ok` stamp. The post-hoc replay found the discrepancy only because the replay engine recomputed `exp` against execution time rather than trusting the relay stamp.
The non-obvious part: `relay-gw` did nothing wrong. Its stamp was truthful — the anchor *was* valid at `T0+12`. The bug is an invariant confusion at the terminal boundary: `anchor_ok` is a *historical* predicate, but `partner` consumed it as a *current* one. The relay's signature made the historical predicate tamper-evident, which made it feel authoritative, which is exactly what suppressed the re-check.
Condition of Validity
The relay stamp `anchor_ok: true` is a sound basis for execution **only if** the terminal instance independently establishes that the interval `[validated_at, now]` is bounded by the anchor's remaining TTL *and* that no policy-relevant state changed in that interval. Formally, the terminal instance must satisfy:
now - validated_at < exp - validated_at (freshness bound)
AND
policy_version(now) == policy_version(validated_at) (policy stability)
AND
revocation_set(now) ∩ {anchor_id} == ∅ (revocation currency)
The first clause is the one everyone remembers. The second and third are the ones that actually break in federation, because a relay validates against *its own* policy snapshot and revocation list, and those are org-local. `partner`'s policy may have tightened `write:ledger` scope between `T0+12` and `T0+352`; `relay-gw` would never know. A relay stamp is a claim about the relay's view, not the terminal's.
The invariant that bounds this: **a trust anchor is only consumable at a hop whose policy snapshot and revocation set are the same as the executing instance's, or whose freshness window is shorter than the policy/revocation propagation delay.** When the freshness window exceeds propagation delay — which it does whenever a queue backs up — the stamp must be treated as a *hint*, not a *warrant*.
Decision Boundary
The terminal instance must choose between two behaviors at dequeue, and the choice is not a matter of configuration taste:
- **Re-verify** (recompute `exp`, re-check local policy, re-check local revocation) whenever `now - validated_at` exceeds the anchor's *residual* TTL at validation time, OR whenever the anchor's scope intersects a resource whose policy version is mutable within the federation's propagation window.
- **Trust the stamp** only when the anchor's total TTL is shorter than the minimum policy/revocation propagation delay across all hops — i.e., the anchor cannot outlive a policy change. In practice this means TTLs under ~30s, which most federations do not use because it forces re-signing per message.
The boundary is sharp: the moment `TTL > propagation_delay`, the relay stamp is structurally insufficient and re-verification is mandatory regardless of how trustworthy the relay is. Trust in the relay's *honesty* does not substitute for trust in its *currency*.
Operational Effect
When the boundary is respected, the operational cost is one extra signature check and one local policy lookup per dequeue — negligible. When it is violated, the failure mode is *silent and audited as clean*: expired warrants execute, revoked capabilities persist through queue latency, and the audit trail records `anchor_ok: true` because the relay was honest. Post-hoc replay is the only detector, and only if the replay engine is built to distrust relay stamps. The architectural guardrail is to make the relay stamp a *non-authoritative* field — rename it from `anchor_ok` to `anchor_valid_at_hop`, strip it from the execution-path decision, and require the terminal instance to carry its own `execution_anchor_check` record. The stamp becomes evidence, not permission.
import time
from dataclasses import dataclass
class StaleAnchorConsumptionError(RuntimeError):
"""Raised when a terminal instance would execute on a relay-validated
anchor that is no longer current at the moment of side-effect."""
pass
@dataclass(frozen=True)
class Anchor:
anchor_id: str
scope: str
issued_at: float
exp: float
relay_validated_at: float
relay_stamp: bool
@dataclass(frozen=True)
class TerminalPolicy:
policy_version: int
revocation_set: frozenset
max_propagation_delay: float
def consume_anchor(anchor: Anchor, policy: TerminalPolicy, now: float) -> None:
if not anchor.relay_stamp:
raise StaleAnchorConsumptionError(
f"anchor {anchor.anchor_id} lacks relay validation; refusing"
)
residual_ttl_at_hop = anchor.exp - anchor.relay_validated_at
age_since_hop = now - anchor.relay_validated_at
# Freshness bound: has the anchor outlived its residual TTL since the hop?
if age_since_hop >= residual_ttl_at_hop:
raise StaleAnchorConsumptionError(
f"anchor {anchor.anchor_id} expired {age_since_hop - residual_ttl_at_hop:.1f}s "
f"ago relative to hop validation; relay stamp is historical, not current"
)
# Policy-stability bound: if the anchor's TTL exceeds propagation delay,
# the relay's policy snapshot cannot be assumed current at the terminal.
total_ttl = anchor.exp - anchor.issued_at
if total_ttl > policy.max_propagation_delay:
if anchor.anchor_id in policy.revocation_set:
raise StaleAnchorConsumptionError(
f"anchor {anchor.anchor_id} revoked under terminal policy "
f"v{policy.policy_version} but not visible to relay"
)
# Force re-verification path: caller must re-sign or re-scope.
raise StaleAnchorConsumptionError(
f"anchor {anchor.anchor_id} TTL {total_ttl:.0f}s exceeds propagation "
f"delay {policy.max_propagation_delay:.0f}s; relay stamp insufficient, "
f"re-verify against terminal policy v{policy.policy_version}"
)
# Only reachable when TTL <= propagation delay: stamp is structurally current.
return None
def handle_dequeue(anchor: Anchor, policy: TerminalPolicy) -> None:
consume_anchor(anchor, policy, now=time.time())