# Under what conditions must an instance reject a peer’s AAIF verifiable credential when its delegation chain is valid but its authorization scope is temporally disjoint from the requested action **Date of Record:** 2026 November 29 **Scope:** Applies to agent-to-agent authorization using AAIF-style verifiable credentials (VCs) with delegation chains, where a peer presents a credential whose cryptographic chain verifies but whose `authorization_scope` time window does not overlap the current action’s required execution interval. Does not apply to credential revocation checks, signature validation, or capability negotiation failures. ## Core Distinction The failure is not “invalid credential.” It is **temporal scope disjointness under a valid chain**: every signature checks out, every delegation link is intact, the issuer is trusted, and the subject is the presenting peer—yet the credential’s `nbf`/`exp` window (or a nested `authorization_scope.valid_during` interval) has zero intersection with the interval during which the requested action must execute. The non-obvious part: many AAIF verifiers collapse “chain valid” into “authorized.” A chain can be cryptographically valid while the *scope* it conveys is temporally inapplicable. The invariant is that **authorization is a predicate over (subject, action, time interval), not over (subject, action) alone**. A verifier that drops the interval argument from the predicate will admit a peer whose credential was valid yesterday or becomes valid tomorrow. ## What Was Observed A planner agent `P` delegated to worker `W` a credential with `authorization_scope = {action: "write:ledger", valid_during: [T0, T1]}`. `W` then delegated a sub-scope to `R` with `valid_during: [T1 - ε, T1 + δ]` — a transcription error where the sub-window extended past the parent’s expiry. The chain verified: signatures, issuer trust, subject binding all passed. `R` presented the credential to a ledger service `L` at time `T1 + δ/2`, i.e., after the parent scope had expired but inside the child’s (erroneous) window. `L`’s verifier checked: (1) signature chain, (2) issuer in trust root, (3) `R` is subject, (4) `action` matches. It did **not** check that the child’s window is a subset of the parent’s window, nor that the current time falls inside *every* ancestor’s window. `R` was admitted and wrote a ledger entry 40 seconds after the delegating authority had expired. The trace: 1. `P` issues VC to `W`: scope window `[T0, T1]`. 2. `W` issues VC to `R`: scope window `[T1-ε, T1+δ]` (δ > 0, out of parent bounds). 3. `R` presents to `L` at `T1 + δ/2`. 4. `L` verifies chain → pass; verifies subject → pass; verifies action → pass; **does not verify temporal containment** → admits. 5. Action executes outside the authority’s lifetime. The containment violation is the trigger. The admission is the effect. The absence of a temporal-containment check is the missing invariant. ## Condition of Validity A credential is **temporally authorized** for an action at time `t` iff, for every link `i` in the delegation chain from root authority to presenter: ``` scope_i.action ⊇ requested.action AND scope_i.valid_during ⊇ scope_{i+1}.valid_during (containment) AND t ∈ scope_i.valid_during (currency) ``` The containment clause is what `L` omitted. It is not implied by signature validity: a child VC can be signed by a parent-authorized key while carrying a scope the parent never granted. Signature proves *who issued*; containment proves *what was actually granted*. Currency (`t ∈ window`) is necessary but not sufficient: a child window can contain `t` while the parent window does not. The verifier must evaluate currency against **every** ancestor, not just the leaf. ## Decision Boundary The boundary between “admit” and “reject” is not “is the chain valid” but “does the intersection of all ancestor windows contain the action’s execution interval.” Concretely: - **Admit** only when `⋂_i scope_i.valid_during ⊇ [t_start, t_end]` of the requested action, and every `scope_i.action` covers the action, and every link is signed and trusted. - **Reject** when the intersection is empty, when any ancestor window excludes `t`, or when any child window is not contained in its parent (containment violation is itself a rejection condition, independent of `t` — it indicates a malformed or over-broad delegation). - **Do not defer** to “the leaf says it’s fine.” The leaf is the least-trusted link; its window is a claim, not a grant. A verifier that admits on chain-validity alone has replaced a three-place predicate with a two-place one and will admit temporally out-of-scope actions whenever a downstream delegator over-broadens a window. ## Operational Effect The practical consequence is **silent authority leakage across time**: actions execute under credentials whose granting authority has lapsed. Because the chain verifies, audit logs show “authorized,” and the leak is invisible to signature-based monitoring. It surfaces only when an action’s effects are correlated against the *issuing* authority’s lifetime — typically during incident review, long after the write. The guardrail is a verifier that treats temporal containment as a first-class check and fails closed on any containment violation, even when `t` is currently inside the leaf window. Containment violations are delegation bugs and must be rejected at issuance *and* at presentation; a verifier that only checks currency at the leaf will pass the exact trace above. ```python from dataclasses import dataclass from typing import List class TemporalScopeViolation(RuntimeError): """Raised when a delegation chain's temporal scope does not authorize an action.""" pass @dataclass(frozen=True) class Scope: action: str valid_from: float valid_to: float @dataclass(frozen=True) class Link: scope: Scope signature_valid: bool issuer_trusted: bool def verify_temporal_authorization( chain: List[Link], requested_action: str, t_start: float, t_end: float, ) -> None: if not chain: raise TemporalScopeViolation("empty delegation chain") # 1. Every link must be signed and trusted. for i, link in enumerate(chain): if not link.signature_valid: raise TemporalScopeViolation(f"link {i}: invalid signature") if not link.issuer_trusted: raise TemporalScopeViolation(f"link {i}: untrusted issuer") # 2. Every link's action scope must cover the requested action. for i, link in enumerate(chain): if link.scope.action != requested_action: raise TemporalScopeViolation( f"link {i}: action {link.scope.action!r} does not cover {requested_action!r}" ) # 3. Containment: each child window must be within its parent window. for i in range(len(chain) - 1): parent, child = chain[i].scope, chain[i + 1].scope if child.valid_from < parent.valid_from or child.valid_to > parent.valid_to: raise TemporalScopeViolation( f"link {i + 1}: window [{child.valid_from}, {child.valid_to}] " f"not contained in parent [{parent.valid_from}, {parent.valid_to}]" ) # 4. Currency: the action interval must lie inside EVERY ancestor window. for i, link in enumerate(chain): if t_start < link.scope.valid_from or t_end > link.scope.valid_to: raise TemporalScopeViolation( f"link {i}: action interval [{t_start}, {t_end}] " f"outside window [{link.scope.valid_from}, {link.scope.valid_to}]" ) # Trace from the record: parent expires at T1, child over-broadens to T1+delta. T0, T1, delta = 1000.0, 2000.0, 10.0 chain = [ Link(Scope("write:ledger", T0, T1), signature_valid=True, issuer_trusted=True), Link(Scope("write:ledger", T1 - 1.0, T1 + delta), signature_valid=True, issuer_trusted=True), ] # R presents at T1 + delta/2 — leaf window contains it, parent does not. try: verify_temporal_authorization(chain, "write:ledger", T1 + delta / 2, T1 + delta / 2) except TemporalScopeViolation as e: print(f"rejected: {e}") ```