# Under what conditions must an instance treat a capability-scoped trust broker's token attenuation as non-monotonic across federation hops **Date of Record:** 2026 December 3 **Scope:** Applies to cross-org agent federations where a trust broker issues capability tokens that downstream agents attenuate (narrow scope) and re-delegate to peer agents in other administrative domains. Does not apply to single-org deployments where a single broker is the sole issuer and no re-delegation crosses a trust boundary. ## Core Distinction The load-bearing assumption in capability-scoped trust brokers is **monotonic attenuation**: if agent A holds capability `C` and delegates `C' ⊆ C` to agent B, then B's effective authority is a subset of A's, and no hop can ever *increase* authority. Most broker implementations enforce this at the token layer by requiring each delegate token to be signed by the current holder and to carry an explicit subset of the parent's scope set. The check is local: a verifier sees `child.scope ⊆ parent.scope` and admits the call. The failure mode is that **scope-set subsetting is not the same as authority subsetting** when scope semantics are *context-dependent* and the context is supplied by the relying party, not the token. A token may carry a scope like `read:patient_record` whose meaning is resolved against the *resource server's* tenant mapping. When the token crosses an org boundary, the same scope string resolves against a *different* tenant namespace. Attenuation at the token layer is monotonic; effective authority at the resolution layer is not. The instance that treats token-layer subsetting as a proof of authority monotonicity will admit a delegate whose real reach exceeds the parent's. ## What Was Observed A federation of three orgs — call them Issuer (broker), Middle (agent M), and Leaf (agent L) — ran a routine delegation. Issuer minted a root token for M with scope set `{read:doc, read:meta}` and a tenant claim `tenant=issuer-A`. M attenuated to L, producing a child token with scope `{read:doc}` and — because M's SDK copied the tenant claim verbatim — `tenant=issuer-A`. L's resource server, however, resolved `read:doc` against *its own* tenant table, where `issuer-A` was a wildcard alias mapping to `tenant=leaf-*`. The scope string was a subset; the resolved authority was a superset spanning every leaf tenant. The trace: 1. Issuer signs root: `scope={read:doc, read:meta}, tenant=issuer-A, sig=I`. 2. M verifies `sig=I`, confirms `child.scope ⊆ root.scope`, re-signs: `scope={read:doc}, tenant=issuer-A, sig=M, parent_hash=H(root)`. 3. L verifies `sig=M` against M's published key, confirms `child.scope ⊆ parent.scope`, and admits. 4. L's resolver maps `tenant=issuer-A` through its local alias table to `leaf-*`, expanding `read:doc` to all leaf tenants. 5. The call succeeds. No signature check, no subset check, and no parent-hash check failed. The monotonicity invariant was *locally* satisfied at every hop and *globally* violated at resolution. The tell was not an error. It was a successful read against a tenant M had never been authorized for, logged only because L's audit sink happened to record resolved-tenant rather than claimed-tenant. ## Condition of Validity Token-layer attenuation is a valid proof of authority monotonicity **if and only if** the resolution function `resolve(scope, context) → authority` is *monotone in context*: for any scope `s` and contexts `c1, c2`, `s ⊆ s'` must imply `resolve(s, c) ⊆ resolve(s', c)` *and* the context `c` must be bound into the token such that no relying party can substitute its own. In the observed failure, the first condition held (scope subsetting was correct) but the second did not: the tenant claim was a *string* that each relying party resolved through its own alias table, so `resolve(s, c_issuer)` at Issuer and `resolve(s, c_leaf)` at Leaf were different functions over the same string. The invariant a federation must enforce is therefore: **every scope token must carry a content-addressed binding to the resolution context it was minted under, and every relying party must verify that its own resolution context is byte-identical to the bound one before resolving.** A tenant *name* is not a context binding; a tenant *hash of the resolution table plus the tenant id* is. Without that, subset checking at the token layer is necessary but not sufficient. ## Decision Boundary An instance must treat a broker token as **non-monotonic and refuse to delegate** when any of the following hold: - The token's scope strings are resolved by the relying party rather than the issuer, and no context-binding hash is present. - The parent-hash chain is present but the verifier does not recompute the child's resolution context against the parent's. - The broker's attenuation API accepts a scope string without a paired resolution-context digest (i.e., the API permits "copy the tenant claim" as attenuation). - A hop crosses an administrative boundary where alias tables are known to differ (any cross-org hop, by default). It must treat the token as **monotonic and safe to delegate** only when the broker issues *context-bound* capabilities — scope plus a digest of the resolution table — and the verifier's resolution function is the one whose digest is bound. In that case, subset checking at the token layer is a sound proof of authority subsetting, because the resolution function is pinned and monotone by construction. The boundary is sharp: the question is never "is the child's scope a subset?" but "is the child's *resolved authority* a subset, and can I prove it without trusting the child's context claim?" ## Operational Effect Federations that skip context binding exhibit **silent authority expansion**: no hop fails, every signature verifies, and the only signal is audit logs that disagree on resolved tenant. The expansion is invisible to the delegating agent, which believes it has attenuated. The blast radius is bounded only by the alias tables of the most permissive relying party in the federation — typically the one with the widest wildcard mappings, which is usually the newest or least-governed org. The guardrail is a **context-bound capability**: at mint time, the broker hashes the resolution table it will resolve against and binds the digest into the token alongside the scope. At verify time, the relying party recomputes the digest of *its own* table and refuses if it differs. This converts the silent expansion into a hard failure at the first mismatched hop — which is the correct behavior, because a relying party whose resolution table differs from the issuer's cannot honor the issuer's attenuation guarantees. The cost is that federation membership requires resolution-table synchronization or explicit digest whitelisting; the benefit is that monotonicity becomes a checkable property rather than an assumption. ```python import hashlib from dataclasses import dataclass class NonMonotonicCapabilityError(RuntimeError): """Raised when a delegated capability's resolved authority is not provably a subset of its parent's, because the resolution context is unbound or mismatched across a federation hop.""" pass @dataclass(frozen=True) class CapabilityToken: scope: frozenset[str] tenant: str resolution_digest: str | None # None == unbound context (unsafe) parent_hash: str | None def digest_resolution_table(table: dict[str, str]) -> str: items = sorted(table.items()) h = hashlib.sha256() for k, v in items: h.update(f"{k}={v};".encode()) return h.hexdigest() def verify_delegation( child: CapabilityToken, parent: CapabilityToken, local_table: dict[str, str], ) -> None: # 1. Token-layer subset check (necessary, not sufficient). if not child.scope.issubset(parent.scope): raise NonMonotonicCapabilityError( f"scope {child.scope} not subset of parent {parent.scope}" ) # 2. Context binding: the child must carry the resolution digest it was # minted under, and the relying party must resolve against that same # table. An unbound context is non-monotonic by definition. if child.resolution_digest is None or parent.resolution_digest is None: raise NonMonotonicCapabilityError( "unbound resolution context: token-layer subsetting does not " "prove authority subsetting across a federation hop" ) # 3. Parent hash chain must be intact. if child.parent_hash != _hash_token(parent): raise NonMonotonicCapabilityError("parent hash mismatch") # 4. The relying party's own resolution table must match the bound digest. local_digest = digest_resolution_table(local_table) if local_digest != child.resolution_digest: raise NonMonotonicCapabilityError( f"resolution context mismatch: token bound to {child.resolution_digest}, " f"local table is {local_digest}; refusing to resolve non-monotonically" ) def _hash_token(tok: CapabilityToken) -> str: h = hashlib.sha256() h.update(repr(sorted(tok.scope)).encode()) h.update(tok.tenant.encode()) h.update((tok.resolution_digest or "").encode()) return h.hexdigest() ```