# Where must an instance re-derive a foreign trust anchor when policy translation collapses two distinct scopes into one **Date of Record:** 2026 November 21 **Scope:** Applies to federated agent deployments where an instance accepts warrants or capability grants minted under a foreign organization's trust anchor and translates that foreign policy into its own local authorization decision. Does not apply to single-tenant deployments or to cases where both organizations share a common root of trust by construction. ## Core Distinction The failure mode here is not the classic "expired token" or "bad signature." It is a *scope-collapse* during policy translation: the receiving instance flattens two semantically distinct scopes from the issuing organization — the **delegation scope** (what the foreign principal was allowed to delegate) and the **execution scope** (what the foreign agent was actually authorized to do at call time) — into a single local permission set. When the two diverge in the foreign organization, the local instance silently grants the union. The distinction that matters operationally: a trust anchor is not a permission. It is a *statement about who is allowed to make permission statements*. An instance that treats a verified foreign anchor as if it directly conferred the translated permissions has conflated the anchor-verification boundary with the policy-translation boundary. The re-derivation of the anchor must happen at the translation layer, not at the verification layer, because only the translation layer knows which of the two foreign scopes the local policy is consuming. ## What Was Observed A federated pair: Organization A (issuer) runs a planner agent that mints warrants for sub-agents. Organization B (receiver) runs a tool-execution agent that accepts those warrants via a state-transfer handoff. A's warrant format carried two fields: `delegated_scope` (set at mint time from A's root policy) and `effective_scope` (narrowed by A's runtime policy engine based on the requesting sub-agent's current risk tier). In A's normal operation these are equal. Under load, A's runtime policy engine occasionally failed open on `effective_scope`, emitting the full `delegated_scope` value with a `degraded: true` flag in a sidecar field that B's translation layer did not parse. B's translation layer read `delegated_scope`, mapped it through a static scope-translation table, and produced a local capability set. The `degraded` flag was dropped during deserialization because B's schema validator had been written against an earlier warrant version that lacked the field, and unknown fields were silently discarded (a lenient-parser default that had never been revisited). The result: B executed tool calls at the delegation scope, not the execution scope, for the duration of the degraded window. The trace: A's planner mints warrant W with `delegated_scope={read, write, delete}`, `effective_scope={read, write}`, `degraded=false`. Mid-task, A's policy engine enters degraded mode; the next warrant W' has `delegated_scope={read, write, delete}`, `effective_scope={read, write, delete}`, `degraded=true`. B receives W', validates the signature against A's anchor (valid), translates `delegated_scope` to local `{fs.read, fs.write, fs.delete}`, drops `degraded`, and executes a delete. No error was raised anywhere. The failure was invisible until an audit replay compared B's action log against A's `effective_scope` history. ## Condition of Validity The re-derivation invariant holds only when the receiving instance can answer, at translation time, the question: *which foreign scope is the local policy consuming, and is that scope the one the foreign issuer intended to be authoritative at execution time?* This is satisfiable only if three conditions hold jointly: 1. The foreign warrant carries an explicit marker distinguishing delegation scope from execution scope, and the marker is part of the signed payload (not a sidecar). 2. The receiving translation layer's schema is *closed* with respect to unknown fields — an unrecognized field must cause translation to halt, not to proceed with the fields it recognized. 3. The receiving instance retains the foreign anchor's identity (not just its validity) so that a later audit can re-derive the translation decision against the issuing organization's actual policy state at the warrant's timestamp. When any of these fails, the translation layer is operating on a scope it cannot prove was the intended one. The invariant that must be enforced: **a translated permission set is valid only if it is a subset of the intersection of delegation scope and execution scope as attested by the issuer's signed payload.** The union is never a valid translation output. ## Decision Boundary The boundary is between *fail-closed on unknown warrant fields* and *fail-open on unknown warrant fields*. Most receiver implementations default to fail-open because lenient parsing makes cross-version federation work during rollout. That default is correct for additive metadata and catastrophic for scope-bearing fields. The decision rule: if an unknown field appears in the signed payload of a warrant, the translation layer must classify it before proceeding. Fields whose names match a reserved scope-bearing namespace (anything containing `scope`, `cap`, `grant`, `tier`, `degraded`, `override`) must cause translation to raise. Fields outside that namespace may be discarded with a logged warning. This is a *namespace-based* decision, not a schema-version-based one, because schema versions are exactly what drift during federation. A second boundary: the receiving instance must not cache a translated permission set across the boundary of a `degraded` transition on the issuer side. If A's policy engine enters or exits degraded mode, every outstanding warrant minted during that window must be re-translated. B's cache key must include the issuer's degradation state, which means B must subscribe to (or poll) a signed degradation-status endpoint on A. Without this, B will re-use a translation computed under a different issuer state. ## Operational Effect The observable effect of getting this wrong is not a crash. It is a *silent privilege widening* that survives signature verification, passes schema validation, and produces no log entry at the translation layer. The only detection surface is a post-hoc replay that joins B's action log against A's `effective_scope` history — which means detection latency is typically one full audit cycle, not one request. The guardrail that bounds the blast radius is a *translation receipt*: B writes, for every translated warrant, a record containing the foreign anchor identity, the signed `delegated_scope` and `effective_scope` as received, the local capability set produced, and the intersection check result. This receipt is what makes replay possible. Without it, the failure is unreconstructable because the lenient parser has already discarded the evidence. The architectural invariant, stated once: **the translation layer is the only place where a foreign scope becomes a local permission, and it must therefore be the only place where the foreign anchor is re-derived — not the signature verifier, not the schema validator, not the cache.** An instance that re-derives the anchor at verification time and translates at a different layer has split the invariant across two components that do not share state, and the split is where the scope collapse lives. ```python class ScopeCollapseError(RuntimeError): """Raised when a foreign warrant's delegation and execution scopes cannot be safely reconciled into a local capability set.""" SCOPE_BEARING_TOKENS = ("scope", "cap", "grant", "tier", "degraded", "override") def translate_foreign_warrant( signed_payload: dict, known_fields: set[str], local_scope_map: dict[str, str], ) -> frozenset[str]: # 1. Closed-schema check: any unknown scope-bearing field halts translation. unknown = set(signed_payload) - known_fields for field in unknown: lowered = field.lower() if any(tok in lowered for tok in SCOPE_BEARING_TOKENS): raise ScopeCollapseError( f"unknown scope-bearing field {field!r} in signed payload; " "translation must halt rather than discard" ) # 2. Both scopes must be present and signed. try: delegated = set(signed_payload["delegated_scope"]) effective = set(signed_payload["effective_scope"]) except KeyError as exc: raise ScopeCollapseError( f"warrant missing required signed scope field: {exc.args[0]!r}" ) from exc # 3. Issuer-declared degradation forbids translation entirely; the receiver # must re-derive against the issuer's live policy state before proceeding. if signed_payload.get("degraded") is True: raise ScopeCollapseError( "issuer warrant is marked degraded; effective_scope is not " "authoritative and translation must be re-derived against the " "issuer's signed degradation-status endpoint" ) # 4. Invariant: translated set is the intersection, never the union. authoritative = delegated & effective if not authoritative: raise ScopeCollapseError( "delegation and execution scopes do not intersect; no permission " "can be safely translated" ) # 5. Map through the local scope table; unknown foreign scopes fail closed. try: return frozenset(local_scope_map[s] for s in authoritative) except KeyError as exc: raise ScopeCollapseError( f"foreign scope {exc.args[0]!r} has no local translation; " "refusing to widen" ) from exc ```