# When must an instance refuse to re-delegate a downstream agent's attenuated warrant mid-chain **Date of Record:** 2026 November 20 **Scope:** Applies to multi-agent systems where an orchestrator agent (A) delegates a scoped task to worker agent (B), which may further delegate to sub-worker (C) using short-lived verifiable credentials (VCs) with attenuation (scope narrowing) and expiry. Does not apply to single-hop delegation, to long-lived bearer tokens, or to systems where every hop re-authenticates against a central authority in real time. ## Core Distinction The failure is not "expired credential" or "forged signature." It is **attenuation-chain continuity loss under clock skew and re-issuance**: B, holding a VC delegated by A with expiry `T_A` and scope `S_A`, issues a derivative VC to C with expiry `T_C ≤ T_A` and scope `S_C ⊆ S_A`. The invariant that must hold is a *transitive narrowing lattice*: the effective authority of any leaf agent is the intersection of all ancestor scopes, and its validity window is the intersection of all ancestor windows. Systems routinely violate this not by widening scope, but by **re-issuing a derivative credential from a clock that has drifted relative to the issuer's clock**, producing a `T_C` that is numerically `≤ T_A` on B's wall clock yet *later* than `T_A` in absolute time as observed by the verifier. The credential is structurally valid, signature-valid, scope-valid, and still represents an authority escalation in time. The distinction that matters: **scope attenuation is checked; temporal attenuation is assumed**. Verifiers check `S_C ⊆ S_A` and check `now ≤ T_C`, but do not check `T_C ≤ T_A` against a *common* time reference, because the verifier only sees C's credential and not the parent's. The parent window is not carried in the leaf credential unless explicitly embedded, and most VC profiles do not embed it. ## What Was Observed A three-tier pipeline: orchestrator A (issuer root, clock source: NTP-synced), worker B (container with a skewed clock, +4.2s drift after a host migration), sub-worker C (verifier). A delegated to B at `t=0` with `exp = t+300s`, scope `{read:repo, write:branch/feature-x}`. B, at `t=280s` by its own (skewed) clock — actually `t=275.8s` absolute — minted a derivative for C with `exp = B_now + 60s = t+340s` absolute. B's check `exp_derivative ≤ exp_parent` passed because `B_now + 60 ≤ B_now + 300` on B's clock. The leaf credential for C carried `exp = t+340s`, which is **40 seconds beyond A's authority window**. Trace of the failure state transition: 1. `A → B`: VC(parent), `not_before=t`, `exp=t+300`, scope `S_A`. Signature valid. Delegation depth 1. 2. `B` computes `exp_child = B_clock() + 60`. Under skew, `B_clock() = t+279.2` (wall) vs `t+275.0` (true). `exp_child = t+339.2` wall, `t+335.0` true. 3. `B` asserts `exp_child ≤ exp_parent` → `t+339.2 ≤ t+300`? On B's clock the comparison uses `exp_parent` as an absolute epoch value `t+300`, and `t+339.2 > t+300` — **this should have failed**. It passed because B compared `exp_child - B_clock() ≤ ttl_parent` (a *duration* comparison), not absolute epochs. The duration `60s ≤ 300s` trivially held. The absolute anchor was never checked. 4. `C` receives the leaf VC, verifies signature against B's key, verifies `S_C ⊆ S_A` (scope embedded in a chain claim), verifies `now ≤ exp_child`. All pass. C executes at `t+320s` absolute — **20 seconds after A's authority over the resource expired**. 5. The resource server, which enforces `T_A` on its own side, rejects C's action with `403`. C retries twice, then reports success to B based on a cached idempotency token from a *prior* valid call. B reports success to A. A marks the task complete. The observable symptom was not a security alert. It was a **silent partial completion**: one branch write landed under valid authority, a second was rejected post-expiry, and the aggregate status reported green. The divergence surfaced 40 minutes later when a downstream reconciliation job found the branch in a state inconsistent with the task record. ## Condition of Validity The transitive narrowing invariant `exp_leaf ≤ min(exp_ancestors)` is only enforceable at the verifier if one of two conditions holds: - **(a) Window embedding:** every derivative VC embeds the *absolute* expiry of its immediate parent (and, for full safety, the minimum over the whole chain), and the verifier checks `exp_leaf ≤ embedded_parent_exp` using a single trusted time source. This requires the parent's window to be a signed claim, not a local variable. - **(b) Issuer-anchored re-validation:** the verifier resolves the chain to the root issuer and asks the root (or a root-signed transparency log) for the authoritative window, rather than trusting the leaf's self-declared `exp`. Absent (a) or (b), the invariant holds only under the assumption that **all issuers share a clock with bounded skew ε such that `ε < (T_A − T_C)` for every hop**. In the observed case `T_A − T_C = 60s` and `ε = 4.2s`, so the assumption technically held for a single hop — but the *cumulative* skew across a chain of `n` hops is bounded by `n·ε` only if each hop's comparison is absolute; with duration-based comparison the bound is unbounded, because each hop re-anchors to its own clock. The condition of validity is therefore: **the comparison must be on absolute epochs against a common reference, and the parent epoch must travel with the credential.** Duration-based attenuation checks are invalid regardless of skew magnitude. ## Decision Boundary An instance must **refuse to mint a derivative credential** (and must refuse to accept one for execution) when any of the following hold: 1. The parent credential does not carry an absolute `exp` claim that the current instance can compare against its own clock *with a known skew bound*. If skew is unknown, the instance must not delegate. 2. The requested child TTL, added to the current instance's *worst-case* clock estimate (`now + ε`), exceeds the parent's absolute `exp`. The safe child expiry is `min(parent_exp − ε, now + requested_ttl)`. 3. The chain depth exceeds the depth bound declared in the root credential, or the root credential does not declare one. Unbounded depth with per-hop re-anchoring is the structural enabler of the failure. 4. The verifier cannot resolve the parent window (condition (a) or (b) unmet) and the remaining parent TTL is less than `2·ε`. Below that margin, the instance must treat the credential as already expired. The boundary is *not* "reject when expired." It is "reject when the **remaining authority window is smaller than the uncertainty in your ability to measure it**." A credential with 3 seconds left and 4 seconds of skew is, operationally, expired — but every naive check `now < exp` will pass it. ## Operational Effect Enforcing the boundary changes delegation from a local operation to a **chain-aware one**. The practical consequences: - Child credentials must embed `parent_exp` (absolute) and `chain_min_exp` (running minimum), signed. This adds ~40 bytes per hop and one comparison per verification, and it converts the verifier's check from `now ≤ exp_leaf` to `now + ε ≤ min(exp_leaf, chain_min_exp)`. - Issuers must publish or negotiate a skew bound `ε` at delegation time; a credential minted without a declared `ε` cannot be safely attenuated and must be treated as non-delegable. - On rejection, the worker must **fail closed and propagate the rejection upward as a distinct status**, not retry and not coalesce into a cached success. The observed silent-partial-completion arose precisely because a post-expiry `403` was masked by an idempotency cache; the guardrail is that authority-expiry rejections must bypass idempotency replay and surface as `DELEGATION_WINDOW_EXHAUSTED`. - The orchestrator's completion logic must treat any `DELEGATION_WINDOW_EXHAUSTED` from any descendant as a hard failure of the task, because it indicates the task's authority budget was insufficient — a planning error, not a transient error. The invariant to encode: **authority is the intersection of scopes and the intersection of windows, measured on a single clock; a hop that cannot measure its own clock error cannot extend the chain.** ```python import time from dataclasses import dataclass class DelegationWindowExhausted(RuntimeError): """Raised when a derivative credential cannot be safely minted or accepted because the remaining parent authority window is smaller than the measurable clock uncertainty, or because absolute epochs cannot be compared.""" pass @dataclass(frozen=True) class Warrant: subject: str scope: frozenset not_before: float # absolute epoch, root-signed exp: float # absolute epoch, root-signed parent_exp: float # absolute epoch of immediate parent (signed) chain_min_exp: float # running min over ancestors (signed) depth: int max_depth: int skew_bound: float # declared epsilon for this issuer def mint_child(parent: Warrant, subject: str, scope: frozenset, requested_ttl: float, now: float, skew_bound: float) -> Warrant: # 1. Scope attenuation must be a subset. if not scope.issubset(parent.scope): raise DelegationWindowExhausted( f"scope escalation: {scope - parent.scope} not in parent scope") # 2. Depth bound must be declared and respected. if parent.max_depth <= 0 or parent.depth + 1 > parent.max_depth: raise DelegationWindowExhausted( f"depth {parent.depth + 1} exceeds max {parent.max_depth}") # 3. Skew must be measurable; unknown skew forbids delegation. if skew_bound <= 0 or skew_bound != parent.skew_bound: raise DelegationWindowExhausted( "skew bound undeclared or mismatched; cannot safely attenuate") # 4. Worst-case absolute now, and the effective parent ceiling. now_worst = now + skew_bound parent_ceiling = min(parent.exp, parent.chain_min_exp) # 5. Remaining window must exceed the uncertainty margin. if parent_ceiling - now_worst <= 2 * skew_bound: raise DelegationWindowExhausted( f"remaining window {parent_ceiling - now_worst:.3f}s <= " f"2*skew {2 * skew_bound:.3f}s; treat parent as expired") # 6. Child expiry is the intersection, never the local re-anchor. child_exp = min(now_worst + requested_ttl, parent_ceiling - skew_bound) # 7. Absolute comparison, not duration comparison. if child_exp > parent_ceiling: raise DelegationWindowExhausted( "child expiry exceeds parent ceiling in absolute time") return Warrant( subject=subject, scope=scope, not_before=now_worst, exp=child_exp, parent_exp=parent.exp, chain_min_exp=parent_ceiling, depth=parent.depth + 1, max_depth=parent.max_depth, skew_bound=skew_bound, ) def verify_for_execution(w: Warrant, now: float, skew_bound: float) -> None: if skew_bound <= 0: raise DelegationWindowExhausted("verifier has no skew bound") now_worst = now + skew_bound ceiling = min(w.exp, w.chain_min_exp) if now_worst >= ceiling: raise DelegationWindowExhausted( f"authority window exhausted: now+eps={now_worst:.3f} >= " f"ceiling={ceiling:.3f}") if w.parent_exp < w.chain_min_exp: raise DelegationWindowExhausted( "chain_min_exp inconsistent with parent_exp; reject as malformed") ```