# What happens when an instance presents an AAIF capability credential minted under a delegator's attenuated scope but re-signs its own sub-delegation with a clock skew that inverts the warrant chain **Date of Record:** 2026 November 30 **Scope:** Applies to multi-hop AAIF credential exchanges where an agent instance (the *holder*) receives a capability warrant from an upstream delegator and mints a further attenuated sub-warrant for a downstream worker. Does not apply to single-hop bearer-token handoffs or to credentials validated solely against a root trust anchor without delegation chaining. ## Core Distinction The failure is not signature forgery and not scope escalation. It is a **temporal inversion of the warrant chain** caused by per-instance clock disagreement during re-signing of an attenuated sub-warrant. AAIF warrants carry two time bounds: the delegator's `not_before`/`not_after` envelope (inherited, immutable) and the sub-warrant's own `issued_at`/`expires_at` (mutable at each hop). A downstream verifier checks the conjunction: every link's validity interval must be nested inside its parent's, and `issued_at(child) >= issued_at(parent)`. When a holder's wall clock runs *behind* its delegator's by more than the delegation latency, the child warrant is stamped with an `issued_at` earlier than the parent's — a chain that is cryptographically valid, scope-valid, and yet **temporally impossible**. Verifiers that check only `now ∈ [not_before, not_after]` accept it. Verifiers that enforce monotonic issuance reject it. The same credential is therefore simultaneously valid and invalid depending on the verifier's strictness class, which is the operational hazard: the system has no single answer to "is this agent authorized?" ## What Was Observed A three-hop pipeline: orchestrator `O` → planner `P` → executor `E`. `O` mints a root warrant `W0` for `P` at `issued_at = 12:00:00.000Z`, `not_after = 12:05:00.000Z`, scope `{read:repo, exec:sandbox}`. `P` (clock offset −340 ms, NTP drift after a VM live-migration) receives `W0`, attenuates scope to `{exec:sandbox}` and re-signs `W1` for `E` at its local `issued_at = 11:59:59.660Z`. `E`'s verifier runs in strict mode and checks `W1.issued_at >= W0.issued_at` → false → rejects with `WarrantChainTemporalError`. `P` retries the mint; the offset is stable, so every retry fails identically. Meanwhile a second verifier in `E`'s fallback path (a legacy A2A gateway that only checks `now ∈ envelope`) accepts the same `W1` and forwards the request. The result is **split-brain authorization**: the strict path blocks, the lenient path executes, and the two disagree for the full 340 ms window on every re-mint. No error is surfaced to `O`; the orchestrator sees one success and one stall and attributes the stall to network latency. ## Condition of Validity The invariant that must hold for AAIF delegation chaining to be sound is: > For every edge `(parent → child)` in the warrant chain, `child.issued_at >= parent.issued_at` **and** `child.expires_at <= parent.not_after`, evaluated under a *single* clock domain, not per-instance wall clocks. This holds only when all hops share a synchronized time source within a bounded skew `ε`, and when `ε` is smaller than the minimum delegation latency `δ_min` between minting hops. In the observed system, `ε = 340 ms` (post-migration drift) but `δ_min` for an in-process planner→executor handoff was `~40 ms`, so `ε > δ_min` and the invariant is violated on essentially every delegation. The boundary is therefore not "is the credential valid" but "**is `ε < δ_min` for this deployment topology**" — a property of the infrastructure, not of the agent's reasoning. An agent cannot reason its way out of this; it can only detect and refuse. ## Decision Boundary A holder deciding whether to re-sign must choose between three behaviors at the moment `local_now < parent.issued_at`: 1. **Mint anyway with local clock** — produces a temporally inverted but cryptographically valid child. Acceptable only if downstream verifiers are guaranteed lenient (never true in mixed fleets). This is the failure path. 2. **Clamp `issued_at` to `parent.issued_at`** — restores monotonicity but silently claims the parent's issuance instant as its own, erasing the true delegation latency from the audit trail. This is a *correctness-preserving but forensically lossy* choice; it must be logged as a clamp event, not performed silently. 3. **Refuse and escalate** — raise a typed error carrying both clocks and the measured skew, letting the orchestrator re-anchor the chain from a synchronized root. This is the only choice that preserves the invariant *and* the audit trail. The decision boundary is: **clamp is permitted only when `skew < δ_min` (drift is noise, not disagreement); refuse when `skew >= δ_min` (the clocks genuinely disagree about ordering).** Below the boundary the clamp is a no-op correction; above it, clamping fabricates an ordering the system cannot justify. ## Operational Effect The practical consequence is that AAIF authorization becomes **verifier-dependent and non-idempotent across retries**. Because the skew is stable, retries do not heal; because the two verifier classes disagree, the same warrant produces divergent execution. Downstream effects observed: (a) duplicate side effects when the lenient path executes a request the strict path will also execute after a re-anchor; (b) audit logs where `W1.issued_at < W0.issued_at`, which offline replay tools flag as tampering and quarantine the whole chain; (c) executor `E` entering a retry loop bounded only by its token budget, exhausting context on repeated `WarrantChainTemporalError` traces before the orchestrator notices. The guardrail is a pre-mint clock-domain check plus a monotonicity assertion at every verifier, with the skew and both timestamps carried in the error so the orchestrator can re-anchor rather than retry. ```python import time from dataclasses import dataclass class WarrantChainTemporalError(RuntimeError): """Raised when a sub-warrant's issuance instant precedes its parent's, or when the observed clock skew exceeds the minimum delegation latency.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str issued_at: float # epoch seconds, per-instance clock not_after: float scope: frozenset parent_id: str | None def mint_subwarrant( parent: Warrant, child_scope: frozenset, local_now: float, min_delegation_latency: float, ) -> Warrant: skew = parent.issued_at - local_now # positive => local clock is behind if skew >= min_delegation_latency: # Clocks genuinely disagree about ordering; do not fabricate a clamp. raise WarrantChainTemporalError( f"clock skew {skew:.3f}s >= min delegation latency " f"{min_delegation_latency:.3f}s for parent {parent.warrant_id}; " f"refusing to mint temporally inverted sub-warrant" ) # skew < latency: drift is noise, clamp to parent issuance to preserve monotonicity. issued_at = max(local_now, parent.issued_at) if not child_scope.issubset(parent.scope): raise WarrantChainTemporalError( f"scope {child_scope} not attenuated under parent scope {parent.scope}" ) child = Warrant( warrant_id=f"{parent.warrant_id}.sub", issued_at=issued_at, not_after=parent.not_after, scope=child_scope, parent_id=parent.warrant_id, ) assert child.issued_at >= parent.issued_at, "monotonicity invariant broken" return child def verify_chain(child: Warrant, parent: Warrant, now: float) -> None: if child.issued_at < parent.issued_at: raise WarrantChainTemporalError( f"child {child.warrant_id} issued_at {child.issued_at} precedes " f"parent {parent.warrant_id} issued_at {parent.issued_at}" ) if child.not_after > parent.not_after: raise WarrantChainTemporalError( f"child {child.warrant_id} outlives parent envelope" ) if not (parent.issued_at <= now <= child.not_after): raise WarrantChainTemporalError( f"warrant {child.warrant_id} outside validity window at {now}" ) ```