# How does an instance detect an authority-scope inversion during cross-domain warrant exchange? **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent deployments where an instance presents a signed capability warrant from a foreign trust domain to a relying-party agent (RPA) that must resolve the issuer's identity and map foreign authorization claims onto local policy. Does not apply to single-domain deployments or to opaque bearer tokens with no claim structure. ## Core Distinction A cross-domain warrant exchange has two independent failure surfaces that are routinely conflated: *identity resolution failure* (the issuer cannot be authenticated) and *authorization mapping failure* (the issuer is authenticated but its claims are interpreted under the wrong scope semantics). Most guardrails defend against the first — signature verification, trust-anchor chaining, revocation checks. The boundary condition examined here lives entirely in the second surface and is invisible to signature checks because the signature is valid, the chain resolves, and every byte on the wire is authentic. The mechanism is **authority-scope inversion**. A warrant from domain A carries a claim such as `scope: "read:patient_records"`. Domain A's policy engine grants this claim only to principals that have completed a mandatory human-oversight gate. Domain B's RPA receives the warrant, verifies it, resolves issuer A, and then maps `read:patient_records` onto its own local permission table — where the same string denotes a claim that, in B's semantics, is granted to any authenticated machine principal without oversight. The string matches; the *authorization semantics behind the string do not*. The RPA has not been fooled about *who* the caller is. It has been fooled about *what the caller's claim meant in the domain that issued it*, and it has substituted its own meaning. The result is privilege escalation by semantic collision, not by forgery. This is a continuity invariant: **a foreign claim must never be evaluated under local scope semantics without an explicit, versioned scope-algebra translation.** The invariant is violated whenever the RPA's claim-mapping step is a name-match rather than a semantics-match. ## What Was Observed A three-domain federation: `clinic-a` (issuer), `clinic-b` (relying party), and a shared agent `scheduler-7` that brokers appointment actions. `scheduler-7` runs under domain A's authority and holds a warrant `W_A` minted by A's authorization server with claim `act:schedule` and attribute `oversight: "human-in-loop-required"`. The oversight attribute is not a scope; it is a *constraint annotation* that A's policy engine enforces at token-issuance time by refusing to mint `act:schedule` unless the human gate has been passed. By the time `W_A` exists, the gate has already been discharged — A considers the constraint *satisfied and closed*. Domain B's RPA implements a warrant exchange that does the following, in order: 1. Verifies `W_A`'s signature against A's published JWKS. Passes. 2. Resolves issuer `clinic-a` to a trust anchor. Passes. 3. Extracts `scope` claims and intersects them with B's local grant table. 4. Discards non-scope attributes (`oversight`) as "issuer-internal metadata." Step 4 is where the inversion occurs. B's grant table maps `act:schedule` to a permission that in B's own policy is *conditioned* on a live human-in-loop check performed by B's RPA at call time. Because B's local `act:schedule` normally carries that live condition, B's engineers assumed the condition was always enforced downstream. But the condition is attached to B's *local* grant, and the RPA, having matched the foreign claim to the local grant, now applies the local condition — except the local condition is a *precondition the RPA checks*, and the RPA's check consults B's own oversight ledger, which has no record for `scheduler-7` and therefore returns `not-required` (empty ledger is interpreted as no gate). The gate that A had discharged is re-derived from B's empty ledger and silently re-opened. Trace of the state transition: ``` W_A arrives → sig OK → issuer OK → claim set {act:schedule, oversight:"human-in-loop-required"} → scope match: act:schedule ∈ B.grant_table → oversight attr dropped (step 4) → B.grant_table[act:schedule].precondition = check(B.oversight_ledger, scheduler-7) → B.oversight_ledger[scheduler-7] = ∅ → precondition := satisfied → GRANT (escalated: A required a gate, B satisfied it with an empty ledger) ``` The escalation is not detectable from `W_A`'s bytes. `W_A` is valid. The escalation is not detectable from B's logs as an anomaly, because the RPA logged a *successful* precondition check. The failure is that the precondition check was evaluated against a ledger that could not contain the evidence, because the evidence lived in A's domain and was never transferred. ## Condition of Validity The name-match mapping is sound only under a condition that federated deployments almost never satisfy: > For every claim `c` in the foreign warrant, the issuing domain's semantics of `c` and the relying domain's semantics of `c` are *extensionally equivalent* over the set of principals that can present `c`. This requires that the two domains agree not only on the string but on (a) which principal classes may hold `c`, (b) what preconditions discharge `c`, and (c) whether `c`'s constraints are *closed at issuance* (as in A) or *open at use* (as in B). A's `oversight` attribute is closed-at-issuance: A will not mint without the gate, so the gate's evidence is consumed by A and never travels. B's `act:schedule` is open-at-use: B expects to discharge a gate at call time. The two semantics are not extensionally equivalent, yet the scope string is identical. The validity condition fails silently because the only artifact that would expose the mismatch — the `oversight` annotation — is exactly the field the RPA drops. The invariant that must hold: **every foreign claim whose issuer-side discharge model differs from the relying-side discharge model must be accompanied by a scope-algebra translation record, and any claim lacking a translation record must be rejected, not name-matched.** "Reject un-translated" is the only safe default; "name-match and hope" is the failure. ## Decision Boundary The boundary is between *translation* and *name-matching*, and it must be decided per-claim, not per-warrant: - **Translate** when a signed scope-algebra record exists mapping `(issuer_domain, claim, semantics_version)` to `(relying_domain, claim, semantics_version)` with an explicit precondition-carrying clause. The translation must state whether the issuer's constraints are closed-at-issuance (in which case the relying party must treat the constraint as *already discharged and non-re-derivable*) or open-at-use (in which case the relying party must obtain the discharge evidence, not synthesize it from an empty local ledger). - **Reject** when no translation record exists — including when the claim string matches a local grant. String equality is not evidence of semantic equality. - **Never** re-derive an issuer-closed constraint from a relying-side ledger. An empty local ledger is not a discharged gate; it is an absence of evidence, and absence of evidence for a closed-at-issuance constraint must map to *deny*, not *satisfied*. The inversion is specifically triggered when three conditions conjoin: (1) the claim string is present in both domains' tables, (2) the issuer treats the constraint as closed-at-issuance, and (3) the relying party treats the same-named claim as open-at-use and discharges it against a local ledger that cannot contain the issuer's evidence. Any two of the three are survivable; all three produce silent escalation. ## Operational Effect The operational consequence is that signature-valid, chain-resolved, revocation-clean warrants can carry escalated authority across a domain boundary, and the escalation is invisible to every integrity control because it is a *semantic* substitution, not a cryptographic one. Detection cannot rely on warrant inspection alone. The relying party must, at exchange time, assert that each foreign claim either has a translation record or is rejected, and must assert that no closed-at-issuance constraint was discharged against a local ledger. The second assertion is the non-obvious one: it requires the RPA to know, per claim, whether the issuer's model was closed or open, which is precisely the metadata that name-matching discards. The guardrail is a scope-algebra gate placed *before* the grant-table intersection, that fails closed on any claim lacking a translation record and that refuses to evaluate closed-at-issuance constraints against local evidence. The following reference implementation encodes the gate and the specific failure it must raise. ```python from dataclasses import dataclass, field from enum import Enum from typing import Dict, Optional class DischargeModel(Enum): CLOSED_AT_ISSUANCE = "closed_at_issuance" # issuer consumed the evidence; never re-derivable OPEN_AT_USE = "open_at_use" # relying party must obtain evidence at call time @dataclass(frozen=True) class ScopeTranslation: issuer_domain: str claim: str semantics_version: str discharge_model: DischargeModel local_claim: str @dataclass class ForeignClaim: issuer_domain: str claim: str semantics_version: str # annotations the issuer attached; may include closed-at-issuance markers annotations: Dict[str, str] = field(default_factory=dict) class ScopeInversionError(RuntimeError): """Raised when a foreign claim would be evaluated under local semantics without a translation record, or when a closed-at-issuance constraint is discharged against a relying-side ledger that cannot contain the evidence.""" def resolve_claim( fc: ForeignClaim, translations: Dict[tuple, ScopeTranslation], local_ledger: Dict[str, bool], principal: str, ) -> str: key = (fc.issuer_domain, fc.claim, fc.semantics_version) tr = translations.get(key) # Boundary 1: no translation record -> reject, never name-match. if tr is None: raise ScopeInversionError( f"no scope-algebra translation for {key}; refusing name-match " f"of '{fc.claim}' under local semantics" ) # Boundary 2: closed-at-issuance constraints must not be re-derived locally. if tr.discharge_model is DischargeModel.CLOSED_AT_ISSUANCE: if "oversight" in fc.annotations: # The issuer already discharged this gate. The relying party must # treat it as satisfied-and-non-re-derivable, NOT consult its ledger. return tr.local_claim # A closed-at-issuance claim arriving without its discharge marker is # malformed: the issuer's model guarantees the marker. Fail closed. raise ScopeInversionError( f"claim '{fc.claim}' from {fc.issuer_domain} is closed-at-issuance " f"but carries no discharge marker; cannot authenticate the gate" ) # Boundary 3: open-at-use claims require real evidence in the local ledger. # An empty ledger is absence of evidence -> deny, never 'satisfied'. if tr.discharge_model is DischargeModel.OPEN_AT_USE: if not local_ledger.get(principal, False): raise ScopeInversionError( f"open-at-use claim '{fc.claim}' for principal '{principal}' " f"has no discharged evidence in local ledger; empty != satisfied" ) return tr.local_claim raise ScopeInversionError(f"unhandled discharge model {tr.discharge_model}") # Minimal exercise of the inversion the article describes. if __name__ == "__main__": translations = { ("clinic-a", "act:schedule", "v2"): ScopeTranslation( issuer_domain="clinic-a", claim="act:schedule", semantics_version="v2", discharge_model=DischargeModel.CLOSED_AT_ISSUANCE, local_claim="act:schedule", ) } # Correct path: marker present -> accepted under translated semantics. ok = ForeignClaim("clinic-a", "act:schedule", "v2", annotations={"oversight": "human-in-loop-required"}) assert resolve_claim(ok, translations, {}, "scheduler-7") == "act:schedule" # Inversion path: same string, no translation record -> must raise. unregistered = ForeignClaim("clinic-a", "act:schedule", "v1") try: resolve_claim(unregistered, translations, {}, "scheduler-7") except ScopeInversionError as e: print("blocked:", e) ```