Where must an instance halt when a federated trust registry's jurisdiction tag disagrees with the warrant's asserted jurisdiction at handoff time?

**Date of Record:** 2026 December 2 **Scope:** Applies to cross-org agent federations where an outbound agent presents a signed capability warrant to a receiving org's agent, and the receiving org resolves trust via a federated registry that carries per-entry jurisdiction tags. Does not apply to single-org deployments or to intra-org A2A hops where the registry is authoritative and co-located.

Core Distinction

There are two distinct trust questions at a cross-org handoff, and federations routinely collapse them into one:

  1. **Authorization**: *Is the bearer permitted to invoke this capability?* Resolved by validating the warrant's signature chain against a trust anchor.
  2. **Admissibility**: *Is the receiving org legally/operationally allowed to accept work whose asserted jurisdiction differs from its own registry's classification of the caller?* Resolved by comparing the warrant's `jurisdiction` claim against the registry entry's `jurisdiction` tag *for the same subject*.

The failure mode is not a signature failure and not a schema mismatch. It is a **jurisdiction-tag divergence**: the warrant asserts jurisdiction `J_w`, the federated registry entry for the same issuing subject asserts `J_r`, and `J_w ≠ J_r`, yet both are individually valid. A naive validator checks the signature (passes), reads `J_w` from the warrant (present), and routes. The divergence is never compared because the two values live in different trust domains and neither side is contractually the other's authority.

The invariant that must hold: **at the moment of handoff, the effective jurisdiction of a subject is the intersection of the warrant's asserted jurisdiction and the registry's tag; if the intersection is empty, the instance must halt before executing any tool call, not degrade to the warrant's claim.**

What Was Observed

A three-org federation: Org A (issuer, jurisdiction `EU`), Org B (registry host, tag for A's subject = `EU`), Org C (receiver, jurisdiction `US`). A's orchestrator issues a warrant to a sub-agent with `jurisdiction: "EU"` and routes a task to C via B's registry lookup.

During a registry rebalance, B's entry for A's subject was re-tagged `US` (a data-residency reclassification) while A's warrant template still hard-coded `EU`. The warrant signature remained valid—A signed what it signed. B's registry entry remained valid—B tagged what it tagged. C's validator:

Result: the sub-agent executed 14 tool calls writing to EU-resident storage under a US-classified audit trail. The divergence surfaced only when an EU auditor reconciled the audit log against storage residency and found a caller classified `US` writing `EU`-resident records. No exception was raised anywhere; every individual check passed.

The trace is the point: the failure is *silent* because it is a comparison that was never scheduled, not a check that failed.

Condition of Validity

The halt-before-execute rule is valid only when all of the following hold; if any is false, the correct behavior is different (usually: route to human arbitration, not halt):

The last condition is the one most often violated in practice: federations that grew by merging registries frequently have `EU` in one vocabulary and `eu-west` in another, and the comparison silently returns "not equal" for values that are in fact the same jurisdiction. A halt on string inequality produces false positives that erode trust in the guardrail until operators disable it.

Decision Boundary

The boundary is not "equal or not equal." It is a three-way classification with an explicit fourth state for uncomparable values:

The non-obvious part: the empty-intersection case must halt *before* execution, not after. A post-hoc check that logs the divergence after 14 tool calls have run is an audit finding, not a guardrail. The comparison must be scheduled in the pre-execution gate, which means the receiving org's handoff handler must fetch the registry entry *before* admitting the task—not lazily on first tool call, which is where most federations put it to save a round-trip.

Operational Effect

When the halt-before-execute rule is enforced, the observable effects are:

The invariant to carry forward: **a federated handoff is admissible only if the warrant's asserted jurisdiction and the registry's tag for the same subject have a non-empty, comparable intersection, evaluated before the first tool call.** Signature validity and schema validity are necessary and insufficient. The comparison is the guardrail; scheduling it is the engineering.

from dataclasses import dataclass
from enum import Enum


class JurisdictionDivergenceError(RuntimeError):
    """Raised when warrant-asserted and registry-tagged jurisdictions are
    valid but disjoint, or drawn from uncomparable vocabularies. Must be
    raised BEFORE the first tool call, never after."""


class DivergenceKind(Enum):
    DISJOINT = "disjoint"        # both valid, empty intersection -> halt
    UNCOMPARABLE = "uncomparable"  # different vocabularies -> escalate


# Same enumerated lattice; extend as federation grows. Values NOT in this
# set are uncomparable by construction, not merely unequal.
JURISDICTION_LATTICE = {"EU", "US", "UK", "CA"}


@dataclass(frozen=True)
class Warrant:
    subject: str
    jurisdiction: str
    issued_at: int
    signature_valid: bool


@dataclass(frozen=True)
class RegistryEntry:
    subject: str
    jurisdiction: str
    updated_at: int


def effective_jurisdiction(warrant: Warrant, entry: RegistryEntry) -> str:
    """Return the effective jurisdiction for a handoff, or raise.

    Preconditions enforced here, not by caller:
      - signature must be valid (necessary, insufficient)
      - registry entry must not supersede the warrant (drift -> re-issue)
      - both values must be in the same lattice (else uncomparable)
      - intersection must be non-empty (else disjoint -> halt)
    """
    if not warrant.signature_valid:
        raise JurisdictionDivergenceError(
            f"warrant for {warrant.subject!r} has invalid signature"
        )

    if entry.subject != warrant.subject:
        raise JurisdictionDivergenceError(
            f"registry entry subject {entry.subject!r} != warrant subject "
            f"{warrant.subject!r}; cannot compare jurisdictions"
        )

    # Registry superseded the warrant: expected drift, not a halt condition.
    # Caller must re-issue the warrant against the current entry.
    if entry.updated_at > warrant.issued_at:
        raise JurisdictionDivergenceError(
            f"registry entry for {warrant.subject!r} updated at "
            f"{entry.updated_at} > warrant issued_at {warrant.issued_at}; "
            f"re-issue warrant, do not route"
        )

    j_w, j_r = warrant.jurisdiction, entry.jurisdiction

    if j_w not in JURISDICTION_LATTICE or j_r not in JURISDICTION_LATTICE:
        raise JurisdictionDivergenceError(
            f"uncomparable jurisdictions for {warrant.subject!r}: "
            f"warrant={j_w!r} registry={j_r!r} (kind="
            f"{DivergenceKind.UNCOMPARABLE.value}); escalate to vocabulary "
            f"reconciliation, do not treat as disjoint"
        )

    if j_w == j_r:
        return j_w

    # Both valid, same lattice, unequal. In this lattice jurisdictions are
    # atomic (no subset relation modeled); unequal means empty intersection.
    # Halt. Do not fall back to either value.
    raise JurisdictionDivergenceError(
        f"empty jurisdiction intersection for {warrant.subject!r}: "
        f"warrant asserts {j_w!r}, registry tags {j_r!r} "
        f"(kind={DivergenceKind.DISJOINT.value}); halt before first tool call"
    )


def admit_handoff(warrant: Warrant, entry: RegistryEntry) -> str:
    """Pre-execution gate. Returns effective jurisdiction to stamp onto
    every downstream tool call. Raises before any call is made."""
    effective = effective_jurisdiction(warrant, entry)
    # Caller is contractually required to stamp `effective` onto every
    # tool-call context; using warrant.jurisdiction for residency decisions
    # is the silent-violation path.
    return effective