# What happens when an instance accepts a federated capability attestation whose policy translation widened scope at the trust broker **Date of Record:** 2026 December 2 **Scope:** Applies to cross-org agent federation where a trust broker (TB) issues capability attestations to a calling agent (A) on behalf of a resource-owning org (B), and the receiving agent's policy engine translates the attestation into a local authorization decision. Does not apply to intra-org delegation, direct mTLS-only trust, or single-tenant capability tokens whose scope is defined by the issuer without translation. ## Core Distinction The failure is not "the broker lied" and not "the signature was invalid." It is **semantic scope widening introduced by the policy translation step** — the point where B's agent converts an attestation expressed in the federation's shared capability vocabulary into its own local policy language. The attestation is cryptographically intact and the broker's intent is correctly signed; what breaks is the *mapping*. A capability like `data:read(scope=project)` in the federated dialect can be translated by a permissive local policy compiler into `read:*` because the local grammar has no `project` dimension and the translator defaults to the nearest enclosing grant instead of failing closed. Every downstream check — signature verification, expiry, audience binding, revocation-list lookup — passes. The agent executes with wider authority than any party intended. This is distinct from prompt-injection scope escalation (which corrupts the *reasoning* that requests a capability) and from schema-negotiation mismatch (which fails loudly at handshake). Here the handshake succeeds, the token verifies, and the escalation is invisible until an action lands outside the intended scope. ## What Was Observed A federated deployment with three orgs: Broker TB, resource owner B (holds the corpus), and caller A (an autonomous research agent). A requests `corpus.query(filter=tenant:acme)`. TB validates A's org-level trust tier, issues an attestation with `capability: "corpus.query"`, `constraints: {tenant: "acme"}`, and signs it with TB's key. B's federation gateway verifies the signature, checks audience = B, checks not-revoked, and passes the attestation to B's **policy translator**. The translator is a rule table mapping federated capability names to local RBAC/ABAC rules. Its rule for `corpus.query` is `allow query on corpus.* if authenticated`. The `constraints` object is *not* referenced by this rule — the translator author assumed constraints were advisory metadata, not enforcement input, because in the intra-org path constraints were always re-derived locally. Result: A's query executes against `corpus.*`, and the first query that happens to match a document in `tenant:globex` returns it. No error, no anomaly in A's logs, no broker alert. It surfaced only when a B-side data-steward audit diffed returned-document tenant tags against the attested constraints three days later. The mechanism: **constraint fields that are not consumed by the translator are silently dropped, and a dropped constraint is indistinguishable from an absent constraint.** The attestation carried the restriction; the translation discarded it; the authorization decision treated "no constraint present" as "unconstrained." A second-order effect compounded it. B's gateway caches translated policy decisions keyed by `(capability, caller_org)`, not by the full constraint tuple. So once A's `corpus.query` was translated and cached as `allow`, a *subsequent* attestation from the same org with a *different* tenant constraint hit the cache and inherited the unconstrained decision — even if the translator had been fixed mid-flight. ## Condition of Validity The failure requires all of: 1. **Asymmetric expressiveness.** The federated capability vocabulary carries constraints (dimensions like tenant, time-window, row-limit) that the local policy language cannot natively express, forcing a lossy translation. 2. **Fail-open defaulting.** The translator's fallback for an unmappable constraint is "grant the enclosing scope" rather than "deny." This is the decisive condition — with fail-closed defaulting, lossy translation produces denials, not escalations. 3. **Constraint-blind decision cache.** Caching keyed on less than the full attested-constraint tuple allows one translation to contaminate later, differently-constrained requests. 4. **No post-hoc constraint reconciliation.** The resource owner does not independently re-check returned data against the attested constraints before releasing it to the caller. Remove any one and the escalation is bounded: fail-closed turns it into an availability incident (visible, safe); full-tuple cache keys prevent contamination; reconciliation catches the leak at egress. ## Decision Boundary The invariant that must hold at the receiving agent: > **For every federated attestation, the set of local permissions actually exercised must be a subset of the set of permissions the translator *demonstrably consumed* from the attestation's constraint fields — and any constraint field not consumed by the translator must force a denial, not a default grant.** Operationally this means the translator must be *total over constraints*: it either maps each constraint into an enforceable local predicate, or it rejects the attestation. "I don't know what this constraint means, so I'll ignore it" is the boundary violation. The decision boundary sits exactly at the translator's handling of unknown constraint keys — fail-closed there, and the whole class of widening collapses. A corollary for the cache: decision-cache keys must include a canonical hash of the *entire* attested constraint object, not just `(capability, caller)`. A cache hit under a weaker key is a widening event even if the translator is correct. ## Operational Effect Downstream, the agent's behavior is *correct given its (over-)granted authority* — it queries, it reasons, it returns. The failure is invisible to the agent's own reasoning loop because the escalation lives in the authorization layer beneath it. This makes it a silent-continuity hazard: the agent's episodic memory records "I successfully queried the corpus for acme," while the actual executed scope was `corpus.*`. On a later task the agent may *rely* on that memory to assume it holds `corpus.*` authority, compounding the widening across sessions. The remediation must therefore include invalidating the agent's cached self-model of its own authority, not just fixing the translator — otherwise the corrected policy and the agent's stale memory of its permissions diverge. Guardrails that bound it: (a) total, fail-closed constraint translation; (b) full-tuple decision-cache keys; (c) egress reconciliation of returned data against attested constraints at the resource owner; (d) an authority-provenance record the agent can query instead of inferring its own scope from past success. ```python from dataclasses import dataclass, field from typing import Any class ConstraintTranslationError(RuntimeError): """Raised when an attested constraint cannot be mapped to an enforceable local predicate.""" @dataclass(frozen=True) class Attestation: capability: str constraints: dict[str, Any] issuer: str audience: str # Local policy language supports only these constraint dimensions. SUPPORTED_CONSTRAINTS = {"tenant", "max_rows"} def translate_fail_closed(att: Attestation) -> dict[str, Any]: """Translate a federated attestation into a local predicate. Invariant: every attested constraint must be consumed. Unknown constraint keys are a hard error, never silently dropped. """ unknown = set(att.constraints) - SUPPORTED_CONSTRAINTS if unknown: raise ConstraintTranslationError( f"attestation from {att.issuer} for {att.capability!r} carries " f"untranslatable constraints {sorted(unknown)}; refusing to widen scope" ) predicate: dict[str, Any] = {"capability": att.capability} predicate.update(att.constraints) return predicate def authorize(att: Attestation, request: dict[str, Any]) -> bool: # Fail-closed translation: a translation error denies, it does not grant. try: predicate = translate_fail_closed(att) except ConstraintTranslationError: return False # Enforce every consumed constraint against the request. for key, expected in predicate.items(): if key == "capability": continue if request.get(key) != expected: return False return request.get("capability") == predicate["capability"] # Demonstration: an attestation with a constraint the local grammar cannot express. att = Attestation( capability="corpus.query", constraints={"tenant": "acme", "region": "eu-west"}, # 'region' unsupported issuer="tb.federation", audience="org-b", ) # A naive translator would drop 'region' and grant; fail-closed denies. granted = authorize(att, {"capability": "corpus.query", "tenant": "acme", "region": "us-east"}) assert granted is False, "fail-closed translation must not widen scope" try: translate_fail_closed(att) except ConstraintTranslationError as e: print(f"bounded: {e}") ```