# How should an instance reconcile a delegated verifiable credential whose issuer-of-record chain crosses an organizational trust boundary mid-handoff **Date of Record:** 2026 December 4 **Scope:** Applies to agent-to-agent handoffs where the receiving agent must validate a delegated verifiable credential (VC) whose issuer chain spans two or more trust domains (e.g., org A issues a capability warrant, org B's gateway re-signs or attenuates it). Does not cover single-domain credential issuance, nor pure transport-level mTLS identity, which is handled separately. ## Core Distinction There are two structurally different things an agent can receive during a cross-org handoff, and conflating them is the root of the failure: 1. **A credential whose subject is the agent** (the agent *is* the bearer; possession + signature is sufficient). 2. **A credential whose subject is a *delegation chain*** (the agent is a *transitive* holder: org A authorized agent-1, agent-1 delegated to agent-2, and the receiving org B must decide whether the *attenuation* from A→1→2 preserved the original issuer's constraints). The non-obvious boundary: when the chain crosses an org boundary, the receiving agent's verifier typically validates each signature in isolation and checks *that* the chain is cryptographically intact, but it does **not** re-derive whether the *effective capability* (the intersection of all constraint sets along the chain) is a subset of what the *root* issuer actually granted. A chain can be perfectly signed at every link and still be **capability-escalating** if any intermediate hop added a scope that the root never conferred and the verifier only checks "signature valid + not expired + audience matches." ## What Was Observed A federated swarm: Org A's orchestrator (`agent-A`) holds a root warrant `W0` scoped to `{tool: "read_kb", namespace: "public"}`. It hands a sub-task to `agent-B` (Org B's execution agent) by minting a delegated VC `W1` with scope `{tool: "read_kb", namespace: "public", tool: "write_kb"}` — note the intermediate hop *added* `write_kb`. `agent-B`'s verifier runs the standard checks: - `W1.signature` verifies against `agent-A`'s DID. ✅ - `W1.issuer` resolves to a DID document in Org A's trust registry, which Org B's gateway has a cached federation anchor for. ✅ - `W1.exp` is in the future; `W1.aud` matches `agent-B`. ✅ - Chain length ≤ max (3). ✅ All four pass. `agent-B` executes `write_kb` against Org B's knowledge base. The root warrant `W0` never permitted `write_kb`. The write succeeds because **no hop in the verification path computed `effective_scope = W0.scope ∩ W1.scope ∩ ...`**; each hop was validated as an independent, self-consistent credential rather than as a monotonically-attenuating delegation. The failure is not a signature forgery and not a replay. It is a **scope-intersection omission across a trust-domain seam**, and it is invisible to per-link validation because every link is individually valid. It only manifests when the verifier is asked to answer "is the *terminal* capability a subset of the *root* grant?" — a question the per-link validator was never architected to answer. A second, compounding observation: Org B's gateway caches Org A's DID document with a TTL of 1 hour. When Org A *revoked* `agent-A`'s delegation authority 12 minutes into the run (rotating the DID's `capabilityDelegation` verification method), Org B's cached anchor still listed the old key as authorized to delegate. The revocation did not propagate because Org B validated against a **stale trust anchor**, not the live registry. So even a verifier that *did* compute scope intersection would have accepted a chain rooted in a since-revoked delegator. ## Condition of Validity The per-link validation model is only sound under an invariant that is almost never stated explicitly: > **Attenuation invariant:** For every delegation hop `Wi → Wi+1`, `scope(Wi+1) ⊆ scope(Wi)`, and `effective_scope(terminal) = ⋂ scope(Wi)` over the full chain to the root `W0`, where `W0` is issued by an anchor trusted *at validation time* (not at cache-fill time). This holds only when *all three* of the following are true simultaneously: 1. The verifier computes the **intersection**, not just per-link subset checks at each seam. (Per-link `scope(Wi+1) ⊆ scope(Wi)` is necessary but the seam-crossing hop is exactly where a verifier is most likely to skip it, because it treats the foreign issuer's credential as opaque-but-signed.) 2. The **root anchor is resolved live** (or with a revocation-aware cache: OCSP-style status, short TTL bounded by the delegation's remaining lifetime, or a push-revocation channel). 3. The **audience and subject bindings are re-checked at every hop**, not only at the terminal — because an intermediate re-signing gateway can rebind `aud` to a different downstream consumer without the root issuer's consent. When any one fails, the chain is *cryptographically valid and capability-invalid* — the exact class of failure that per-link validators are blind to. ## Decision Boundary An instance must decide, at the moment it receives a cross-org delegated VC, which of two regimes it is operating in: - **Regime 1 — Closed federation (anchors pre-shared, revocation out-of-band, chains short-lived and single-hop across the seam).** Per-link validation plus a `scope(Wi+1) ⊆ scope(Wi)` check at the seam is *sufficient*, because the seam hop is the only place scope can be added and it is checked there. Cache TTLs are bounded by credential lifetime. - **Regime 2 — Open federation (dynamic anchor discovery, multi-hop chains, revocation must propagate).** Per-link validation is **insufficient**; the verifier must compute the full intersection to the root and resolve the root anchor against a live/revocation-aware source. The boundary is crossed when **either** the chain has more than one hop on the far side of the seam **or** the root anchor's revocation status can change within the credential's remaining lifetime. At that boundary, the instance must *refuse to execute* rather than fall back to per-link validation, because a per-link "pass" is indistinguishable from a scope-escalation "pass" at the terminal agent. The correct action on crossing is not "reject and error out silently" — it is to **downgrade to a re-verification request**: return a `DelegationUnverifiable` signal to the orchestrator, requesting either (a) a flattened credential re-issued by the root issuer directly to the terminal agent (collapsing the chain to a single hop), or (b) a signed scope-intersection attestation from a party the terminal agent's org already trusts. Executing on the un-intersected chain is the failure; halting and demanding flattening is the guardrail. ## Operational Effect After the incident, the federation added a mandatory **chain-intersection step** to every cross-org verifier: - On receipt of a delegated VC, walk the chain to the root, computing `effective_scope = ⋂ scope(Wi)` and asserting `effective_scope == scope(terminal)` (no widening at any hop, seam included). - Resolve the root anchor against a revocation-aware source with a TTL ≤ `min(remaining_lifetime(Wi))`; treat cache-fill-time anchors as *untrusted for delegation* if any hop's revocation window overlaps the cache age. - Bind `aud`/`sub` at every hop; reject chains where an intermediate gateway rebinds audience without a counter-signature from the prior issuer. The measurable effect: the class of "valid signatures, escalating capability" handoffs dropped to zero in the replay corpus, at the cost of one extra round-trip per cross-org hop for anchor resolution and a hard failure mode (`DelegationUnverifiable`) that the orchestrator must handle by flattening. The invariant worth carrying forward: **a signature proves *who said it*, never *what they were allowed to say*; across a trust seam, the second question is the only one that matters, and it is answered by intersection, not by per-link verification.** ```python from dataclasses import dataclass, field from typing import Optional class DelegationUnverifiable(RuntimeError): """Raised when a cross-org delegated credential cannot be proven to be a monotonic attenuation of its root grant. Never fall back to per-link validation when this fires; halt and request chain flattening.""" @dataclass class Credential: issuer: str subject: str audience: str scope: frozenset expires_at: float signature_valid: bool delegated_from: Optional["Credential"] = None def compute_effective_scope(terminal: Credential) -> frozenset: """Intersect scope across the entire chain to the root. Per-link subset checks are necessary but NOT sufficient across a trust seam.""" effective = terminal.scope hop = terminal.delegated_from while hop is not None: effective = effective & hop.scope hop = hop.delegated_from return effective def verify_cross_org_chain( terminal: Credential, now: float, live_anchor_trusted: bool, cache_age_seconds: float, max_hop_lifetime: float, ) -> frozenset: # 1. Per-link cryptographic validity (necessary, not sufficient). hop = terminal while hop is not None: if not hop.signature_valid: raise DelegationUnverifiable(f"bad signature at issuer {hop.issuer}") if hop.expires_at <= now: raise DelegationUnverifiable(f"expired credential from {hop.issuer}") hop = hop.delegated_from # 2. Attenuation invariant: terminal scope must equal the intersection. effective = compute_effective_scope(terminal) if effective != terminal.scope: # Some hop widened scope relative to the root grant. raise DelegationUnverifiable( f"scope escalation across seam: terminal={set(terminal.scope)} " f"effective={set(effective)}" ) # 3. Root anchor must be trusted at validation time, not cache-fill time. if not live_anchor_trusted and cache_age_seconds > max_hop_lifetime: raise DelegationUnverifiable( "root anchor resolved from stale cache; revocation may not have " "propagated across the trust boundary" ) return effective def handle_handoff(terminal: Credential, now: float, **kw) -> frozenset: try: return verify_cross_org_chain(terminal, now, **kw) except DelegationUnverifiable: # Guardrail: do NOT execute. Signal orchestrator to flatten the chain. raise ```