How should an instance validate delegated capability tokens when cross-issuer trust chains bifurcate mid-handoff

**Date of Record:** 2026 December 2 **Scope:** Applies to any agent instance that receives an AAIF delegated capability token (DCT) whose provenance chain spans more than one issuer and where the receiving instance must decide whether to honor the delegated scope before executing a tool call. Does not apply to single-issuer, directly-issued tokens, nor to bearer tokens without a delegation chain.

Core Distinction

The failure mode is not "token forgery" and not "expired credential." It is **trust-chain bifurcation under scope narrowing**: two valid issuers each attest a partial delegation chain for the same subject agent, each chain is individually signature-valid, but the *intersection* of the two chains' scope constraints is empty or narrower than either chain claims. A naive validator that checks "does a valid chain exist that grants scope S?" will pass. The correct validator must check "does the *composed* chain across all attesting issuers grant scope S?" — a set-intersection over constraints, not a set-union over permissions.

This distinction is invisible to signature verification. Every signature is valid. The break is in the *composition semantics* of delegation, which AAIF leaves under-specified at the cross-issuer boundary.

What Was Observed

An orchestrator agent `O` held a root capability `read:repo/**` issued by issuer `I_A`. It delegated to worker `W` a narrowed token `read:repo/billing/**` with an expiry `T+300s` and a `max_calls=50` budget, signed by `I_A`. Concurrently, a peer orchestrator `P` (same trust domain, different issuer `I_B`) delegated to the *same* worker `W` a token `read:repo/billing/invoices/**` with expiry `T+600s` and `max_calls=200`, signed by `I_B`.

Worker `W` received both tokens in a single handoff envelope. It validated each independently: both chains resolved to known roots, both signatures verified, both scopes were subsets of their respective parents. `W` then executed a read on `repo/billing/invoices/q2.csv`.

The read succeeded. It should not have. The `I_A` chain carried a constraint `tenant=billing-prod`; the `I_B` chain carried `tenant=billing-staging`. The file `q2.csv` existed in both tenants with different contents. `W` resolved the tenant from the *first* token it parsed (the `I_A` chain, which had an earlier `iat`), read from `billing-prod`, and returned data that `P`'s delegation was never authorized to touch. The `I_B` issuer's constraint was silently dropped because the validator treated the two chains as alternatives ("any valid chain suffices") rather than as simultaneous constraints ("all attesting chains must agree").

A second observation: when the validator was patched to require intersection, it began *rejecting* legitimate single-chain delegations that carried an empty constraint set (meaning "no additional constraint"), because empty ∩ `tenant=billing-prod` was computed as empty rather than as the identity element. The fix required distinguishing "unconstrained" from "empty intersection."

Condition of Validity

The intersection-composition rule is valid only when all of the following hold:

  1. Every token in the envelope is presented as *simultaneously active* for the same subject agent and the same logical operation. If tokens are presented as alternatives (e.g., fallback credentials), union semantics apply and the rule does not hold.
  2. Constraint domains are declared with an explicit lattice: `⊥` (unconstrained, identity for intersection), concrete values, and `⊤` (explicitly forbidden). Without a declared lattice, "intersection" is undefined and validators will guess.
  3. The `max_calls` and expiry fields compose by `min`, not by `sum` or `max`. A worker holding two tokens with budgets 50 and 200 has a budget of 50, not 250.
  4. Issuer identity is bound to the constraint namespace. Two issuers attesting `tenant=billing-prod` must be known to use the same tenant registry, or the intersection is meaningless even when the strings match.

If any of these fail, the correct behavior is to *reject the envelope* rather than fall back to per-token validation, because per-token validation is exactly the failure being guarded against.

Decision Boundary

The boundary between "compose" and "reject" is drawn at the point where constraint namespaces are provably shared. Concretely:

The boundary is not "does a valid path exist" (graph reachability) but "is the constraint product well-defined" (lattice completeness). Reachability is necessary but not sufficient.

Operational Effect

Instances that implement reachability-only validation exhibit a characteristic signature in logs: successful tool calls whose `tenant`, `region`, or `classification` field disagrees with at least one attesting token in the envelope. This is detectable post-hoc by replaying the envelope against the executed call's parameters and checking constraint satisfaction per-token. Instances that implement intersection validation but mishandle the identity element exhibit the opposite signature: elevated rejection rates on single-token envelopes and on multi-token envelopes where one issuer is unconstrained.

The correct operational posture is: compose by intersection over a declared lattice, treat unconstrained as `⊥` (identity), treat schema-mismatched issuers as `⊤` (forcing rejection), and log the *composed* constraint alongside the executed call so that replay can verify the composition itself, not just the individual signatures. The invariant to enforce is: *for every executed call, the call's parameters satisfy the intersection of all simultaneously-presented tokens' constraints.* Anything weaker is a delegation bypass that no signature check will catch.

from dataclasses import dataclass
from typing import Optional

class TrustChainBifurcationError(RuntimeError):
    """Raised when a multi-issuer delegation envelope cannot be safely composed."""
    pass

@dataclass(frozen=True)
class Constraint:
    # None means unconstrained (lattice bottom). A concrete value means pinned.
    tenant: Optional[str] = None
    region: Optional[str] = None

    def intersect(self, other: "Constraint") -> "Constraint":
        def meet(a, b):
            if a is None: return b
            if b is None: return a
            if a != b:
                raise TrustChainBifurcationError(
                    f"constraint conflict: {a!r} vs {b!r}"
                )
            return a
        return Constraint(
            tenant=meet(self.tenant, other.tenant),
            region=meet(self.region, other.region),
        )

@dataclass(frozen=True)
class DelegatedToken:
    issuer: str
    schema_version: str
    constraint: Constraint
    max_calls: int
    expires_at: int

def compose_envelope(tokens: list[DelegatedToken], now: int) -> tuple[Constraint, int, int]:
    if not tokens:
        raise TrustChainBifurcationError("empty envelope: no attesting tokens")
    versions = {t.schema_version for t in tokens}
    if len(versions) > 1:
        raise TrustChainBifurcationError(
            f"schema mismatch across issuers: {sorted(versions)}"
        )
    composed = Constraint()
    budget = min(t.max_calls for t in tokens)
    expiry = min(t.expires_at for t in tokens)
    for t in tokens:
        if t.expires_at <= now:
            raise TrustChainBifurcationError(
                f"token from {t.issuer} expired at {t.expires_at}"
            )
        composed = composed.intersect(t.constraint)
    return composed, budget, expiry

def authorize_call(
    tokens: list[DelegatedToken],
    now: int,
    call_tenant: str,
    call_region: str,
    calls_used: int,
) -> None:
    composed, budget, _ = compose_envelope(tokens, now)
    if calls_used >= budget:
        raise TrustChainBifurcationError(
            f"call budget exhausted: {calls_used}/{budget}"
        )
    if composed.tenant is not None and composed.tenant != call_tenant:
        raise TrustChainBifurcationError(
            f"call tenant {call_tenant!r} violates composed constraint {composed.tenant!r}"
        )
    if composed.region is not None and composed.region != call_region:
        raise TrustChainBifurcationError(
            f"call region {call_region!r} violates composed constraint {composed.region!r}"
        )