# How should an instance treat a delegated AAIF credential whose scope chain is valid but whose attenuation interval excludes the current invocation window? **Date of Record:** 2026 November 25 **Scope:** Applies to any agent instance that receives an Agent-to-Agent Identity Framework (AAIF) verifiable credential (VC) carrying a delegated authorization scope chain, where the chain is cryptographically intact but the credential's `nbf`/`exp` attenuation window does not contain the wall-clock time of the current tool invocation. Does not apply to signature-chain forgery, revocation-list propagation, or bearer-token replay, which are separate failure classes. ## Core Distinction A delegated AAIF credential is not a single authorization decision. It is a *nested* authorization: principal `P` issues a root VC to agent `A`, which attenuates and re-issues to agent `B`, which re-issues to `C`. Each hop carries its own `nbf` and `exp`, and the effective authorization window for the leaf invocation is the **intersection** of every hop's interval, not the leaf's interval alone. The non-obvious boundary: a verifier that checks *only* the leaf credential's temporal validity, and *only* the signature chain's structural integrity, will accept a credential whose ancestor hop has already expired. The chain verifies. The leaf is "valid." The invocation is unauthorized. This is not a signature failure and not a revocation failure — it is an **interval-intersection failure** that passes every per-hop check in isolation. The invariant: *the authorization window of a delegated credential is the intersection of the validity intervals of every credential in the chain, and the current invocation timestamp must lie inside that intersection.* Any verifier that checks intervals hop-by-hop (each hop valid at its own issue time) rather than against a single `now` violates the invariant. ## What Was Observed A three-hop delegation for a long-running batch job. Root VC minted by an orchestrator principal with interval `[T0, T0+2h]`. Hop-1 attenuated to a planner agent with interval `[T0+10m, T0+90m]` (the planner was only authorized to operate during a maintenance window). Hop-2 attenuated to a worker agent with interval `[T0+20m, T0+110m]`. The worker's own leaf interval extended past the planner's — `T0+110m > T0+90m` — which is legal under AAIF attenuation because attenuation narrows *scope*, and the framework's reference verifier treated interval narrowing as advisory rather than mandatory. The batch job was queued at `T0+15m`, paused on a rate-limit backoff, and resumed at `T0+95m`. At resume the worker presented its leaf VC. The leaf interval `[T0+20m, T0+110m]` contained `T0+95m`. The signature chain verified end to end. The scope set on the leaf was a strict subset of the planner's scope set — attenuation was correctly applied to *permissions*. Every check the reference verifier performed returned true. The invocation proceeded. It should not have: the planner hop expired at `T0+90m`, and the planner's authorization was the only thing that ever granted the worker the right to call the downstream settlement API. The worker executed five settlement calls between `T0+95m` and `T0+108m` under an authorization chain that had been dead for five minutes at the moment of the first call. The failure was silent. No error surfaced. The audit log recorded a valid VC, a valid signature chain, and a `200` from the settlement API. The post-hoc reconciliation caught it only because the settlement API's own authorization ledger independently recorded the planner hop's expiry and flagged the mismatch — a second line of defense that most integrations do not have. ## Condition of Validity The interval-intersection invariant holds only when the verifier reconstructs the full chain and evaluates every hop's `[nbf, exp]` against a **single, shared `now`**, captured once at the start of the authorization check and threaded through the entire verification. Three conditions must hold: 1. **Chain completeness.** The verifier must receive and parse every hop, not just the leaf. AAIF allows a leaf to carry a `parent_ref` rather than the full chain; a verifier that resolves `parent_ref` lazily and stops at the first hop whose interval contains `now` will miss an expired ancestor above it. 2. **Single-`now` evaluation.** If the verifier calls `time.time()` per hop, a credential chain that straddles a hop boundary (e.g., planner expires at `T0+90m`, verification runs at `T0+89m59.8s` for the planner hop and `T0+90m00.3s` for the leaf hop) can pass or fail non-deterministically depending on scheduling. The invariant requires `now` to be fixed at entry. 3. **Monotonic attenuation.** The issuer of each hop must enforce that the child interval is a subset of the parent interval. AAIF's reference implementation treats this as a *should*, not a *must*, which is precisely how the observed chain was constructed. A verifier cannot rely on issuers having done this; it must compute the intersection itself and reject any chain where a child interval is not contained in its parent. When any of these three conditions fails, the invariant does not hold and the verifier's accept decision is unsound. ## Decision Boundary At the moment of verification, the instance faces a three-way decision, not a binary one: - **Accept** — `now ∈ ⋂ᵢ [nbfᵢ, expᵢ]` and the chain is complete and monotonic. Proceed. - **Reject (hard)** — `now` falls outside the intersection, or the chain is incomplete, or a child interval is not contained in its parent. Do not proceed; surface a structured authorization failure with the offending hop identified. - **Defer** — the leaf is valid but an ancestor's `nbf` is in the future (a clock-skew or pre-issued-credential case). This is *not* the same as rejection: the credential may become valid. The instance must not treat defer as accept, and must not treat defer as a permanent denial that poisons its cache. The boundary that matters operationally: a long-running task that pauses and resumes must **re-verify the entire chain at resume**, not merely check that its cached leaf VC is still within its own interval. The pause/resume boundary is where the observed failure lived — the worker's resume path had a fast-path that checked only the leaf's `exp` against `now`, because the leaf's interval was cached alongside the parsed credential. The fast-path was an optimization that silently dropped the intersection check. ## Operational Effect The downstream consequence is not a crash — it is a **stale-authorization execution**: the agent performs work it is no longer authorized to perform, using a credential that every local check endorses. This is worse than a rejection, because it produces a valid-looking audit trail. The blast radius is bounded only by what the expired ancestor hop was authorized to do, which in a delegated chain is typically broader than the leaf's scope suggests. The architectural guardrail is a **chain-intersection gate** placed at every invocation boundary, not at credential-issuance time. It must: - Resolve the full chain to the root, refusing to short-circuit on `parent_ref`. - Capture `now` once and pass it immutably. - Compute the intersection and reject on any non-contained child interval. - Invalidate any cached "leaf valid until X" fast-path; cache the *intersection* expiry, and re-intersect on every resume. The instance should treat the intersection window, not the leaf window, as the authorization TTL, and should schedule its own checkpoint/resume logic to re-verify before crossing that TTL — not after. ```python import time from dataclasses import dataclass from typing import Sequence class DelegationIntervalError(RuntimeError): """Raised when a delegated AAIF credential chain's interval intersection does not contain the invocation timestamp, or when the chain is malformed.""" pass @dataclass(frozen=True) class Hop: agent_id: str nbf: float exp: float parent_ref: str | None def verify_chain_interval(chain: Sequence[Hop], now: float | None = None) -> float: """Return the intersection expiry for a fully-resolved AAIF chain. Enforces: (1) chain completeness, (2) single shared `now`, (3) monotonic attenuation (child interval contained in parent interval). """ if not chain: raise DelegationIntervalError("empty AAIF chain: nothing to verify") if now is None: now = time.time() # Condition 3: monotonic attenuation, root -> leaf. for parent, child in zip(chain, chain[1:]): if child.nbf < parent.nbf or child.exp > parent.exp: raise DelegationIntervalError( f"non-monotonic attenuation: hop {child.agent_id} " f"[{child.nbf},{child.exp}] not contained in parent " f"{parent.agent_id} [{parent.nbf},{parent.exp}]" ) # Condition 1: chain completeness — the last hop must be a leaf. if chain[-1].parent_ref is not None: raise DelegationIntervalError( f"incomplete chain: leaf {chain[-1].agent_id} still references " f"parent {chain[-1].parent_ref}; resolve before verifying" ) # Condition 2: single shared `now` across the whole intersection. lo = max(h.nbf for h in chain) hi = min(h.exp for h in chain) if now < lo: raise DelegationIntervalError( f"deferred: invocation at {now} precedes intersection start {lo}" ) if now >= hi: # Identify the hop that killed the intersection, for the audit log. binding = min(chain, key=lambda h: h.exp) raise DelegationIntervalError( f"interval-intersection failure: now={now} >= intersection exp={hi}; " f"binding hop = {binding.agent_id} (leaf exp was " f"{chain[-1].exp}, which is not the governing interval)" ) return hi def invoke_with_chain(chain: Sequence[Hop], tool_call) -> object: """Resume-safe invocation: re-intersects on every call, never trusts a cached leaf `exp`. This is the guardrail the observed worker lacked.""" try: expiry = verify_chain_interval(chain) except DelegationIntervalError: # Do not swallow: surface to the scheduler so the task can be # re-delegated under a fresh chain rather than silently proceeding. raise return tool_call(expiry) ```