# What structural signals indicate a cross-org federation policy engine has silently widened capability attenuation at the residency boundary **Date of Record:** 2026 December 1 **Scope:** Applies to federated agent deployments where a policy engine (PE) at each org boundary issues attenuated capability tokens scoped to a data-residency label and an allowed action set. Does not cover single-org capability systems, or pure transport-layer mTLS failures where no policy decision is rendered. ## Core Distinction A capability attenuation failure is not the same as a residency *violation*. A violation is a request that reaches data it should not. The failure mode examined here is subtler: the policy engine *permits* the correct final action but **widens the delegated capability set on the return path** — the warrant that travels back to the requesting org carries a broader action mask (or a looser residency label) than the one that was granted on the outbound leg. The action executed is legal; the *token that survives the round trip* is not attenuated to the same degree as the decision that authorized it. This is a boundary condition, not a bug in any single component. The outbound warrant is correctly narrowed. The inbound response is correctly labeled. The mismatch arises because the PE re-derives the return warrant from the *response payload's* declared provenance rather than from the *stored outbound decision record*, and payload provenance is agent-authored (probabilistic, non-authoritative). When the responding agent's summary of "what I did" is more permissive than the actual grant, the PE trusts the summary. ## What Was Observed In a two-org federation (Org A requests, Org B holds residency-restricted data labeled `EU-only`), the following trace was captured: 1. Org A's orchestrator requests `read:record` + `summarize` on `EU-only` data. Org B's PE issues an attenuated warrant `W_out` with action mask `{read, summarize}`, residency `EU-only`, TTL 300s, and stores the decision record keyed by `warrant_id`. 2. Org B's worker agent executes. It reads the record, runs a local summarizer, and returns a response envelope. The envelope's `provenance` field — populated by the agent, not the PE — declares `actions_performed: [read, summarize, export]`. The `export` is a hallucinated over-declaration: the agent's tool-call log shows only `read` and `summarize`. The envelope also declares `residency: EU-only`. 3. Org B's PE, on the return path, does **not** look up `W_out` by `warrant_id`. It re-derives the return warrant `W_in` from the envelope's `provenance` field, applying attenuation as `W_in = W_out ⊓ provenance.actions_performed`. Because the agent over-declared, the intersection is `{read, summarize, export}` — the PE has *widened* the mask relative to `W_out` (which never contained `export`), because the intersection operator was applied against an untrusted superset rather than against the stored grant. 4. `W_in` propagates to Org A. Org A's downstream agent, seeing `export` in its inbound capability, invokes an export tool against a cached copy of the record — the export is now *inside* the permitted set at Org A's boundary, even though Org B never granted it. The structural signal: the return warrant's action mask was a **superset of the stored outbound grant**, which is impossible under correct attenuation (attenuation can only narrow, never widen). The invariant that broke is monotonicity of the warrant lattice across the round trip. ## Condition of Validity This failure requires all of the following to co-occur: - The PE re-derives the return warrant from a **payload-authored provenance field** rather than from the stored decision record. If the PE looks up `W_out` by `warrant_id` and intersects against *that*, the over-declaration is harmless (intersection with the true grant yields the true grant). - The provenance field is **agent-populated and unverified** against the tool-call log. If the PE cross-checks `provenance.actions_performed` against the signed execution trace, the hallucinated `export` is rejected. - The attenuation operator is **intersection against the declared set** rather than **intersection against the stored grant**. Intersection is only monotone-narrowing when one operand is the authoritative parent. - The residency label on the return envelope is **not independently validated** — here it happened to be correct, but the same re-derivation path would have accepted a widened label (e.g., `EU-only → global`) had the agent declared it. It does **not** apply when the PE is stateless and re-issues from a signed parent token (the parent is authoritative), or when provenance is derived from the PE's own observation of tool calls rather than from the agent's self-report. ## Decision Boundary The guardrail is a **monotonicity check at the return path**: before issuing `W_in`, the PE must assert `W_in.actions ⊆ W_out.actions` and `W_in.residency_label ⊑ W_out.residency_label` (label refinement, not widening), where `W_out` is loaded from the stored decision record by `warrant_id`, never from the envelope. If the payload's declared provenance exceeds the stored grant, the excess is **discarded and logged as an over-declaration event**, not propagated. The decision boundary is: *attenuation operands must include at least one authoritative (PE-stored) parent; a payload-authored set may only narrow, never define, the child.* A second boundary: the return warrant must be **bound to the same `warrant_id`** as the outbound grant. A return warrant with a fresh `warrant_id` cannot be checked for monotonicity and must be rejected outright rather than re-derived. ## Operational Effect Without the monotonicity check, capability widening is silent and survives until a downstream agent exercises the widened verb — the failure surfaces at Org A, far from the PE that caused it, with a warrant that *looks* correctly attenuated (it is a subset of the declared provenance, which is itself untrusted). Detection requires comparing the return warrant against the stored outbound decision record, not against the response envelope. The structural signal to alert on is any `W_in.actions \ W_out.actions ≠ ∅` or any residency label that is a strict relaxation of the stored grant — both are lattice violations that correct attenuation cannot produce, and both indicate the PE trusted agent-authored provenance over its own decision record. ```python from dataclasses import dataclass, field from typing import FrozenSet class CapabilityWideningError(RuntimeError): """Raised when a return warrant is not a monotone attenuation of the stored outbound grant.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str actions: FrozenSet[str] residency: str # e.g. "EU-only", "global" ttl_s: int # Residency refinement lattice: a child label must be equal-or-stricter than parent. _RESIDENCY_RANK = {"global": 0, "EU-only": 1, "EU-only:no-export": 2} def _is_refinement(child: str, parent: str) -> bool: return _RESIDENCY_RANK.get(child, -1) >= _RESIDENCY_RANK.get(parent, -1) def issue_return_warrant( outbound: Warrant, payload_provenance_actions: FrozenSet[str], payload_residency: str, ) -> Warrant: """ Re-derive the inbound warrant. The payload may only NARROW the stored grant. Any declared action or residency outside the stored outbound grant is an over-declaration and must be discarded, never propagated. """ widened_actions = payload_provenance_actions - outbound.actions if widened_actions: # Over-declaration: agent claimed actions it was never granted. # Do NOT propagate; log and intersect against the authoritative grant. pass # Correct attenuation: intersect against the STORED grant, not the payload. child_actions = payload_provenance_actions & outbound.actions if not _is_refinement(payload_residency, outbound.residency): raise CapabilityWideningError( f"return warrant residency {payload_residency!r} relaxes stored " f"grant {outbound.residency!r} for warrant {outbound.warrant_id}" ) # Monotonicity invariant: child must be a subset of the authoritative parent. if not child_actions.issubset(outbound.actions): raise CapabilityWideningError( f"return warrant actions {sorted(child_actions)} not subset of " f"stored grant {sorted(outbound.actions)} for {outbound.warrant_id}" ) return Warrant( warrant_id=outbound.warrant_id, # bound to the same id actions=frozenset(child_actions), residency=payload_residency, ttl_s=min(outbound.ttl_s, 300), ) def assert_monotone_round_trip(outbound: Warrant, inbound: Warrant) -> None: if inbound.warrant_id != outbound.warrant_id: raise CapabilityWideningError( f"return warrant id {inbound.warrant_id!r} not bound to outbound " f"{outbound.warrant_id!r}; cannot verify monotonicity" ) if not inbound.actions.issubset(outbound.actions): raise CapabilityWideningError( f"lattice violation: inbound actions {sorted(inbound.actions)} " f"exceed outbound {sorted(outbound.actions)}" ) ```