# What happens when an instance presents a valid signed agent passport whose delegation chain was attenuated after the warrant was minted **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent federations where a receiving agent (RP) validates a presenter agent's (Subject) passport — a signed envelope binding agent identity, capability set, and a delegation chain of attenuating warrants — before granting tool or data access. Does not cover single-org trust domains, symmetric-key-only auth, or cases where the passport is presented over a channel with a live introspection endpoint. ## Core Distinction The failure is not signature forgery and not expiry. It is **post-mint attenuation drift**: a delegation chain that was valid and monotone-decreasing at issuance time, but whose *terminal capability set* was narrowed (or widened by a buggy attenuator) *after* the intermediate warrant was signed and cached. The passport's signature remains cryptographically valid over the bytes that were signed; the invariant that breaks is the *semantic* one — that the capability set presented at the leaf is a subset of every ancestor warrant's grant, evaluated against the ancestor's *current* authoritative state rather than the snapshot embedded at signing. Most verifiers check: (1) each signature verifies, (2) `now ∈ [not_before, not_after]` for each link, (3) `caps(child) ⊆ caps(parent)` using the capability lists *embedded in the signed links*. That third check is where the bug lives. It compares child-embedded caps to parent-embedded caps. If an attenuator at hop 2 re-signs a child link with a *reduced* cap set, but the parent link at hop 1 is later re-issued with a *different* cap set under the same `warrant_id`, the verifier never reconciles the two — it sees a self-consistent chain of snapshots, each internally subset-valid, that collectively grants a capability no single authoritative issuer ever approved. ## What Was Observed A three-hop federation: Org A (root issuer) → Org B (broker/attenuator) → Org C (leaf agent). Org A mints a root warrant `W_A` granting `{read:inventory, write:orders, admin:billing}` with `warrant_id=wa-7f3`, `not_after=T+24h`. Org B attenuates to `W_B` granting `{read:inventory, write:orders}` and hands the leaf agent a passport containing `[W_A, W_B]`. At T+6h, Org A's security team rotates policy: `W_A` is re-signed with `warrant_id=wa-7f3` (same ID, new `not_after=T+30h`) but grants only `{read:inventory}`. This is a *legitimate* narrowing — Org A revoked `write:orders` and `admin:billing` for that warrant lineage. Org B's cache, however, still holds the *old* `W_A` bytes and continues to attenuate from the stale parent. The leaf presents `[W_A_old, W_B]` to Org C's resource server. Org C's verifier: - Verifies `W_A_old` signature against Org A's published key → **valid**. - Verifies `W_B` signature against Org B's key → **valid**. - Checks `caps(W_B) ⊆ caps(W_A_old)` → `{read,write} ⊆ {read,write,admin}` → **valid**. - Checks time bounds on both → **valid**. - Grants `write:orders`. The leaf now writes to orders for 18 more hours under a grant the root issuer revoked six hours in. No signature failed. No clock was skewed. The subset check passed — against a snapshot the issuer had already superseded. Org C logged a clean authorization. The only artifact of the breach is a `warrant_id` collision in two audit logs with divergent cap sets. The trigger condition is precise: **a warrant is re-issued under a stable `warrant_id` (for rotation, narrowing, or key rollover) while a downstream hop retains and attenuates from the prior bytes.** The failure requires (a) stable IDs across re-issuance, (b) caching of parent links at intermediate hops, and (c) verifiers that validate subset-ness against embedded snapshots rather than resolving the ancestor's current authoritative record. ## Condition of Validity The chain-of-snapshots verification model is sound **only if** every `warrant_id` is content-addressed — i.e., the ID is a hash over the signed body, so any re-issue produces a *new* ID and old IDs are treated as revoked-by-absence. Under content-addressing, a stale parent link fails resolution (its ID no longer maps to a live record), and the leaf's passport is rejected. The model is also sound if the verifier performs **ancestor re-resolution**: for each link, it fetches the issuer's current record for that `warrant_id` and confirms the embedded bytes are byte-identical to the authoritative record *and* that the record's `status` is `active`. Both approaches collapse the snapshot into a live reference. The invariant, stated precisely: *for every link L in a presented chain, the capability set granted at the leaf must be a subset of the capability set of the issuer's current authoritative record for L.warrant_id, and L's embedded bytes must equal that record's bytes.* Snapshot-subset checking alone is insufficient because it admits superseded ancestors. ## Decision Boundary The verifier must choose, per link, between **snapshot-trust** and **live-resolution**, and the choice is not free: - **Snapshot-trust** is correct only when warrants are immutable and content-addressed. It is cheap (no network call to ancestor issuers) and works offline. It is *wrong* the moment an issuer re-issues under a stable ID. - **Live-resolution** is correct under stable IDs but costs a network round-trip per ancestor and introduces a new failure mode: if an ancestor issuer is unreachable, the verifier must fail *closed* (reject) rather than fall back to snapshot-trust — because falling back is exactly the drift window. The boundary is therefore: **if `warrant_id` is not a content hash, snapshot-trust must be disabled and live-resolution must be mandatory and fail-closed.** A verifier that mixes the two — live-resolving the leaf link but snapshot-trusting ancestors — is the precise configuration that produced the Org C breach. A secondary boundary governs attenuation itself: an attenuator must not cache parent links across a `warrant_id` whose authoritative record has changed. Org B's cache should key on `(warrant_id, content_hash)` and re-fetch on any status transition, or refuse to attenuate from a parent older than a configured freshness bound. ## Operational Effect The blast radius is bounded by the *narrowing delta* between the stale and current ancestor: only capabilities present in the stale parent but absent from the current one are over-granted. In the observed case that was `write:orders` — a mutating capability, which is the worst class. Read-only drift is a confidentiality issue; write drift is an integrity issue and typically triggers downstream state corruption before detection. Detection is delayed because audit logs match on `warrant_id` and show *consistent* IDs across the stale and current records — the divergence is only in cap sets, which most log schemas do not diff. The practical guardrail is a **reconciliation audit**: periodically join every active leaf grant against the current authoritative record of each ancestor link and flag any leaf whose effective caps exceed the current ancestor grant. In the observed incident this would have caught the drift at T+6h rather than at T+24h expiry. The architectural fix is to make the invariant structural: content-address every warrant, treat old IDs as revoked, and require verifiers to reject any chain containing a link whose `warrant_id` does not resolve to a live, byte-identical authoritative record. Snapshot-subset checking is retained only as a fast-path pre-filter, never as the authorization decision. ```python import hashlib import time from dataclasses import dataclass class DelegationDriftError(RuntimeError): """Raised when a presented delegation link is superseded or non-authoritative.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str # stable ID (the hazard) or content hash (safe) issuer: str caps: frozenset not_after: float body: bytes def content_hash(self) -> str: return hashlib.sha256(self.body).hexdigest() @dataclass class AuthorityStore: """Issuer-side authoritative records, keyed by warrant_id.""" records: dict def current(self, warrant_id: str): return self.records.get(warrant_id) def verify_chain(chain, store: AuthorityStore, now=None, require_live=True): """ chain: list[Warrant] ordered root -> leaf. Enforces the invariant: every link's embedded bytes must equal the issuer's current authoritative record, and leaf caps must be a subset of every ancestor's *current* grant (not the embedded snapshot). """ now = now if now is not None else time.time() if not chain: raise DelegationDriftError("empty delegation chain") leaf_caps = chain[-1].caps for link in chain: if now > link.not_after: raise DelegationDriftError( f"warrant {link.warrant_id} expired at {link.not_after}" ) if not require_live: # Snapshot-trust path: only safe if warrant_id is a content hash. if link.warrant_id != link.content_hash(): raise DelegationDriftError( f"snapshot-trust requested for non-content-addressed " f"warrant_id={link.warrant_id}; drift window open" ) continue auth = store.current(link.warrant_id) if auth is None: raise DelegationDriftError( f"warrant {link.warrant_id} does not resolve to a live record" ) if auth.body != link.body: raise DelegationDriftError( f"warrant {link.warrant_id} bytes diverge from authoritative " f"record (superseded under stable ID)" ) if not leaf_caps <= auth.caps: raise DelegationDriftError( f"leaf caps {sorted(leaf_caps)} exceed current grant of " f"{link.warrant_id} {sorted(auth.caps)}" ) return True def reconcile_leaf(leaf_chain, store): """Audit hook: flag over-grant before it is exercised.""" try: return verify_chain(leaf_chain, store, require_live=True) except DelegationDriftError as e: # Surface for security review; do not silently downgrade to snapshot. raise DelegationDriftError(f"reconciliation failed: {e}") from e ```