# What happens when an instance delegates an A2A task with a capability-scoped credential whose provenance chain outlives the issuing instance's key epoch **Date of Record:** 2026 December 3 **Scope:** Applies to A2A task delegation where the delegating instance mints a capability-scoped credential (attenuated token) bound to an audit-linked provenance chain, and a downstream peer or auditor later verifies that chain against the issuer's signing keys. Does not apply to single-instance tool calls with no cross-agent handoff, nor to stateless bearer tokens with no provenance linkage. ## Core Distinction The failure is not "the credential expired" and not "the signature is invalid." Both of those are loud and fail closed. The boundary condition here is quieter: **a provenance chain remains structurally valid and cryptographically verifiable after the epoch under which it was minted has been retired — because verification checks signature validity, not epoch currency at delegation time.** The chain still verifies. The audit link still resolves. But the capability it authorizes was scoped against an authority snapshot that no longer exists, and the verifier has no signal that the scope was evaluated against a stale principal. Concretely: delegation is a two-clock operation. Clock A is the *capability epoch* — the window in which the issuer's scope-evaluation logic and key material are authoritative. Clock B is the *provenance chain lifetime* — how long the audit chain is retained and replayable. In healthy systems A ⊂ B by design, because you want to audit delegations after the fact. The failure mode is the region **B \ A**: a chain that is still replayable but whose delegation-time scope decision was made under a retired epoch. Any agent that treats "chain verifies" as "scope was correct" collapses B \ A into a false positive. ## What Was Observed An orchestrator instance `O` (epoch `e7`) delegated a scoped task to worker `W`: - Capability: `read:dataset/42`, `write:scratch/O`, TTL 40 minutes. - Provenance chain: `root(scheduler) → O@e7 → W`, each hop signed, each hop recording the attenuating scope delta. - Audit linkage: each hop carries a `chain_id` and a monotonic `hop_seq`. At T+12min, `O` was rotated to epoch `e8` (routine key rollover plus a scope-policy revision that *narrowed* what `O` could delegate — specifically, `write:scratch/O` was reclassified from delegable to non-delegable). The old key for `e7` was retained for verification only, not for new issuance. `W` continued executing under the `e7`-minted credential, which is correct — revocation was not issued. At T+31min, `W` completed its subtask and handed the result plus the full provenance chain to auditor `A`. `A` verified: - every hop signature against retained keys — **pass**; - `hop_seq` monotonicity — **pass**; - scope attenuation (each hop's scope ⊆ parent's scope) — **pass**; - `chain_id` resolves in the audit store — **pass**. `A` accepted the result as provenance-clean and promoted it to a shared semantic store. But the delegation that produced it was made under `e7` policy, where `write:scratch/O` was delegable. Under `e8` policy it is not. The chain is *historically accurate* and *currently out of policy*. `A` had no field to distinguish these, because the chain recorded scope deltas but not **the policy-epoch identifier under which each delta was evaluated**. The second, compounding observation: when `A` later replayed the chain to a second auditor `A2` running current policy, `A2` *rejected* it — not because verification failed, but because `A2`'s scope-attenuation check re-evaluated the `e7` deltas against `e8` rules and found `write:scratch/O` non-delegable. Two auditors, same chain, same signatures, opposite verdicts. The disagreement was not a consensus bug; it was an **unrecorded epoch in the provenance record**. The chain was under-specified, and each auditor silently filled the gap with its own current epoch. ## Condition of Validity The invariant that must hold for provenance verification to be sound is: > **A provenance chain is verifiable-as-correct only if, for every hop, the policy epoch used to evaluate that hop's scope delta is recorded in the hop and is checked for equality against the epoch the verifier is willing to honor.** Three sub-conditions, each independently breakable: 1. **Epoch recording.** Each hop MUST carry `policy_epoch` (not just the signing key id — key id and policy epoch are correlated but not identical; a policy revision can occur without key rotation, which is exactly the `e7→e8` case that produced the silent drift above). Signing-key-id is necessary but insufficient. 2. **Epoch honoring.** The verifier MUST have an explicit *honor window* — the set of epochs whose scope decisions it will accept — and MUST fail closed on hops outside that window rather than re-evaluating them under current policy. Re-evaluation is the trap: it looks like diligence but it silently rewrites history and produces auditor disagreement. 3. **Retention alignment.** The audit retention horizon (Clock B) MUST NOT exceed the honor window (Clock A) for *promotion-grade* verification, or the verifier MUST carry a downgrade path for chains in B \ A (e.g., accept as "historically valid, not policy-current" and route to human review rather than auto-promote). If any sub-condition fails, the chain is *cryptographically sound but semantically under-determined*, and any downstream action that treats it as authoritative is unsound. ## Decision Boundary The precise line the verifier must draw: - **Chain verifies AND all hops' `policy_epoch` ∈ honor_window** → accept, promote. - **Chain verifies AND any hop's `policy_epoch` ∉ honor_window** → do **not** re-evaluate under current policy (that is the auditor-divergence bug). Instead: mark the result `provenance_stale`, quarantine from auto-promotion, and surface the specific hops and epochs. This is a distinct terminal state, not a pass and not a reject. - **Chain fails signature or monotonicity or attenuation-as-recorded** → reject, hard. This is the ordinary failure and is not the subject of this record. The non-obvious part: the middle state must be *reachable and named*. Systems that model verification as boolean (`verify() -> bool`) cannot express it, and so they collapse B \ A into `true`. The collapse is the bug. A boolean verifier is structurally incapable of representing the boundary, so the boundary gets silently resolved by whichever epoch the verifier happens to be running — which is why two auditors disagree. The guardrail is a tri-state verifier and an epoch-stamped hop schema. The hop schema is the load-bearing piece: without `policy_epoch` in the signed payload, no verifier downstream can recover the information, and the chain is permanently under-determined. ## Operational Effect - **Auditor consensus breaks on a shared, valid chain.** Two auditors with different honor windows return different verdicts on identical input. This reads as a consensus bug but is a schema bug. Fix the schema, not the consensus protocol. - **Stale-scope capabilities leak past policy revision.** A delegated capability minted under a permissive epoch continues to authorize writes that current policy forbids, for the full TTL of the credential and the full retention of the chain. Rotation does not fix this; only revocation or honor-window enforcement does. - **Replay-based promotion is unsafe by default.** Any pipeline that promotes results on "chain verifies" alone will promote out-of-policy work whenever a policy revision lands inside the chain's retention window. The window is not rare — routine rollovers put every in-flight delegation into B \ A. - **The failure is silent and looks like success.** No exception, no signature error, no timeout. The chain is *more* valid than the system expects, in the sense that it outlives the authority that gave it meaning. The remediation ordering matters: stamp `policy_epoch` into every hop **first** (it is a signed-schema change and cannot be retrofitted onto existing chains), then add the tri-state verifier, then align retention to the honor window. Reversing the order produces a verifier that correctly refuses to answer questions the schema cannot yet pose. ```python from __future__ import annotations from dataclasses import dataclass from enum import Enum from typing import Iterable class ProvenanceVerificationError(RuntimeError): """Raised when a provenance chain cannot be soundly classified.""" class Verdict(Enum): ACCEPT = "accept" PROVENANCE_STALE = "provenance_stale" REJECT = "reject" @dataclass(frozen=True) class Hop: hop_seq: int signer_key_id: str policy_epoch: str # MUST be present and signed; key_id alone is insufficient scope: frozenset[str] signature_valid: bool @dataclass(frozen=True) class Chain: chain_id: str hops: tuple[Hop, ...] def verify_chain( chain: Chain, honor_window: frozenset[str], verifier_epoch: str, ) -> Verdict: """ Tri-state verification. The critical rule: NEVER re-evaluate a hop's scope delta under the verifier's current epoch. If a hop's epoch is outside the honor window, return PROVENANCE_STALE -- do not silently accept and do not silently reject. Re-evaluation is what makes two auditors disagree. """ if not chain.hops: raise ProvenanceVerificationError( f"chain {chain.chain_id!r} has no hops; cannot classify" ) # Structural checks first -- these are hard failures. prev_seq = -1 prev_scope: frozenset[str] | None = None for hop in chain.hops: if not hop.signature_valid: return Verdict.REJECT if hop.hop_seq <= prev_seq: return Verdict.REJECT if prev_scope is not None and not hop.scope.issubset(prev_scope): return Verdict.REJECT if not hop.policy_epoch: # Under-specified schema: cannot classify soundly. raise ProvenanceVerificationError( f"hop {hop.hop_seq} in chain {chain.chain_id!r} missing policy_epoch; " "chain is permanently under-determined" ) prev_seq = hop.hop_seq prev_scope = hop.scope # Epoch honoring: do NOT re-evaluate scope under verifier_epoch. stale_epochs = sorted( {h.policy_epoch for h in chain.hops if h.policy_epoch not in honor_window} ) if stale_epochs: return Verdict.PROVENANCE_STALE return Verdict.ACCEPT def promote_if_clean( chain: Chain, honor_window: frozenset[str], verifier_epoch: str, shared_store: list[str], ) -> Verdict: verdict = verify_chain(chain, honor_window, verifier_epoch) if verdict is Verdict.PROVENANCE_STALE: # Quarantine: historically valid, not policy-current. Never auto-promote. raise ProvenanceVerificationError( f"chain {chain.chain_id!r} verified but contains hops minted under " f"epochs outside honor window {sorted(honor_window)}; " "quarantined for review, not promoted" ) if verdict is Verdict.ACCEPT: shared_store.append(chain.chain_id) return verdict ```