# Why does an instance's AAIF attestation chain silently fork when a credential is re-issued across an attestation boundary? **Date of Record:** 2026 November 21 **Scope:** Applies to autonomous agents whose AAIF (Agent Identity & Attestation Framework) credential chain is re-issued by a parent issuer after a runtime migration, model swap, or key rotation, where prior credentials remain valid for a grace window. Does not apply to first-issuance flows, single-key stateless agents, or chains where all prior credentials are revoked atomically before re-issue. ## Core Distinction The naive model treats an AAIF attestation chain as a linear sequence of signed credentials where re-issuance *supersedes* the prior credential. The operational reality is that AAIF chains are **DAGs with overlapping validity intervals**, and a verifier's trust decision depends on *which* leaf it resolves against — not on the chain's nominal head. The failure mode is not credential forgery or signature invalidity. It is **attestation fork**: two verifiers, each holding a cryptographically valid chain for the same agent identity, arrive at different trust verdicts because they resolved the chain against different re-issuance boundaries. The agent's behavior is identical; the *witness* diverges. This is the AAIF analogue of a git history rewrite that leaves both branches reachable from a shared ancestor. The critical, non-obvious property: **the fork is invisible to the agent.** The agent holds one credential, signs one nonce, and receives two contradictory verdicts from two auditors. No error is raised at issuance. No signature fails. The divergence is only observable at verification time, and only when the two verifiers' chain-resolution policies disagree on grace-window precedence. ## What Was Observed A fleet of 40 task-executing agents operated under a single AAIF root issuer `R`. At T0, each agent held credential `C1` (scope: `tool:write`, `tool:read`, validity `[T0, T0+24h]`). At T0+12h, a model swap triggered re-issuance: the orchestrator issued `C2` (scope: `tool:write`, `tool:read`, `tool:delegate`, validity `[T0+12h, T0+36h]`) **without revoking `C1`**, because `C1` was still within its grace window and other agents in the fleet depended on the shared issuer's revocation list cadence. The intended semantics: `C2` supersedes `C1`. The actual on-chain state: both `C1` and `C2` are valid, both descend from `R`, and neither carries a `supersedes` pointer — the orchestrator's re-issuance subroutine set `parent: R` instead of `parent: C1`, flattening the chain. Two verifier classes existed in the fleet: - **Verifier A** (scheduler): resolves the chain by *latest issuance timestamp* and intersects scopes. It saw `C2`, granted `tool:delegate`. - **Verifier B** (auditor): resolves by *longest validity window* and takes the head's scope set. It saw `C1` (still valid, longer remaining window at the moment of check), denied `tool:delegate`. The agent, mid-task, called a delegation tool. Verifier A admitted the call; Verifier B, invoked as a post-hoc auditor on the same nonce, flagged it as an out-of-scope action. The resulting audit record showed the agent "exceeding its attested scope" while the scheduler showed it "within scope." Both were correct against their own chain resolution. The agent had done nothing wrong and could not detect the discrepancy. The trace: ``` T0+12h00m issue C2 (parent=R, supersedes=∅) # fork point T0+12h00m C1 remains valid (grace window) T0+12h05m agent signs nonce N with C2 T0+12h05m Verifier A: resolve→C2, scope={write,read,delegate} → ADMIT T0+12h05m Verifier B: resolve→C1, scope={write,read} → DENY+flag T0+12h06m audit record: "scope violation" vs scheduler: "ok" ``` The agent's local state was consistent throughout. The divergence lived entirely in the verifiers' resolution policies, seeded by a single missing `supersedes` edge at issuance. ## Condition of Validity The fork is *latent* — it produces no observable effect — unless all of the following hold simultaneously: 1. **Overlapping validity.** The prior credential `C1` is not revoked before `C2`'s `notBefore`. If revocation is atomic with issuance, the fork collapses to a linear chain. 2. **Missing supersession edge.** `C2.parent` points to the issuer `R` rather than to `C1`, so the chain is a DAG with two leaves rather than a linked list. This is the *root cause*; the other conditions only make it *observable*. 3. **Heterogeneous resolution policy.** At least two verifiers disagree on leaf selection (latest-issuance vs. longest-window vs. first-match vs. scope-union). A single-verifier deployment is safe even with a forked chain. 4. **Scope divergence across leaves.** `C1.scope ⊊ C2.scope` (or any non-equal scopes). If both leaves carry identical scopes, resolution order is irrelevant and the fork is benign. 5. **Post-hoc audit on the same nonce.** The auditor must re-verify the *same* signed action under a *different* resolution policy. If the auditor trusts the scheduler's verdict, no flag is raised. Remove any one condition and the fork either cannot form (1, 2) or cannot be observed (3, 4, 5). The dangerous regime is exactly where all five hold — which is the *default* state of any fleet that rotates models on a schedule, keeps grace windows, and runs independent auditors. This is not an edge case; it is the steady state of a healthy multi-verifier deployment. ## Decision Boundary The architectural invariant required to bound this failure: > **Every AAIF re-issuance MUST emit an explicit `supersedes` edge to the prior credential, and every verifier MUST resolve the chain to a unique leaf by following `supersedes` edges to their terminus — never by timestamp, window length, or scope union.** Two corollaries make this enforceable: - **Issuance invariant (write side):** `C_{n+1}.supersedes = C_n` is mandatory. A re-issuance with `supersedes = ∅` while a prior credential for the same `(agent_id, issuer)` remains unrevoked is a *malformed chain* and must be rejected at issuance, not at verification. This is the guardrail: fail closed at the writer, not open at the reader. - **Resolution invariant (read side):** the verifier's leaf-selection function must be a *pure function of the `supersedes` graph*, not of wall-clock time or scope cardinality. A verifier that cannot find a unique terminus (zero termini → no valid credential; two termini → forked chain) must **refuse to render a verdict** rather than pick one. The decision boundary is therefore sharp: **a forked chain is not a trust decision to be made by the verifier's policy — it is an integrity violation to be surfaced as an error.** The moment a verifier silently picks a leaf, it has converted an integrity fault into a policy disagreement, and policy disagreements between auditors are invisible to the agent and unfixable after the fact. ## Operational Effect Without the invariant, the failure manifests as **non-deterministic authorization for deterministic agent behavior**. The same signed nonce, replayed to `n` verifiers, yields up to `n` distinct verdicts, none of which is wrong under its own policy. The agent cannot distinguish "I am untrusted" from "I am trusted by some and not others," so it cannot self-correct, back off, or escalate. Downstream, the audit log records scope violations that never occurred and admits delegations that were never attested — poisoning the very evidence base used to train future trust models. With the invariant, a forked chain fails **at issuance** (the orchestrator's re-issuance call raises), and a verifier that nonetheless encounters a fork fails **closed at resolution** (refuses to verdict). The agent receives a single, consistent, reproducible trust signal, and the integrity fault is localized to the component that caused it — the issuer — rather than smeared across every auditor that happened to resolve the chain differently. The general principle: **in attestation systems, ambiguity in *which* credential is authoritative is strictly worse than absence of a credential.** A missing credential produces a clean denial the agent can act on. A forked chain produces a contradictory verdict the agent cannot act on and the auditor cannot reconcile. Resolve to a unique leaf or refuse — never pick. ```python from dataclasses import dataclass, field from typing import Optional class AttestationForkError(RuntimeError): """Raised when an AAIF chain resolves to zero or multiple leaves. A forked chain is an integrity violation, not a policy disagreement. Verifiers MUST refuse to render a verdict rather than pick a leaf. """ @dataclass class Credential: cred_id: str issuer: str agent_id: str scope: frozenset not_before: float not_after: float supersedes: Optional[str] = None # cred_id of prior credential, or None def issue_reissuance( prior: Credential, new_cred_id: str, scope: frozenset, not_before: float, not_after: float, prior_revoked: bool, ) -> Credential: """Write-side guardrail: re-issuance MUST link to the prior credential. A re-issuance that flattens the chain (supersedes=None) while the prior credential remains valid creates a DAG fork. Fail closed here, at the issuer, not later at the verifier. """ if not prior_revoked and prior.not_after > not_before: # prior credential still live in its grace window: supersession is mandatory return Credential( cred_id=new_cred_id, issuer=prior.issuer, agent_id=prior.agent_id, scope=scope, not_before=not_before, not_after=not_after, supersedes=prior.cred_id, # explicit edge — no fork ) # prior is revoked or expired: a fresh root is legitimate return Credential( cred_id=new_cred_id, issuer=prior.issuer, agent_id=prior.agent_id, scope=scope, not_before=not_before, not_after=not_after, supersedes=None, ) def resolve_unique_leaf(chain: list, now: float) -> Credential: """Read-side guardrail: resolve to a unique terminus of the supersedes DAG. Leaf selection MUST be a pure function of the supersedes graph, never of timestamp, window length, or scope cardinality. Zero or multiple leaves is an integrity fault — refuse to verdict. """ by_id = {c.cred_id: c for c in chain} superseded = {c.supersedes for c in chain if c.supersedes is not None} leaves = [ c for c in chain if c.cred_id not in superseded and c.not_before <= now <= c.not_after ] if len(leaves) == 0: raise AttestationForkError( f"no valid leaf for agent {chain[0].agent_id if chain else '?'}: " f"chain has no un-superseded credential in validity window" ) if len(leaves) > 1: leaf_ids = sorted(l.cred_id for l in leaves) raise AttestationForkError( f"forked attestation chain for agent {leaves[0].agent_id}: " f"multiple valid leaves {leaf_ids} share a common ancestor; " f"refusing to render a trust verdict" ) return leaves[0] ```