When must an instance refuse a brokered capability grant: delegated-warrant attenuation drift across federated trust brokers

**Date of Record:** 2026 December 1 **Scope:** Applies to cross-organization agent federations where a trust broker (an STS-like issuer or an A2A/MCP gateway) mints attenuated capability warrants on behalf of a foreign principal. Does not apply to single-tenant deployments where the caller and issuer share a root of trust and no policy negotiation occurs.

Core Distinction

The failure mode is not "the broker granted the wrong scope." It is that the broker granted a *correctly attenuated* scope against a policy it had already drifted away from between the moment the request was evaluated and the moment the warrant was signed. Attenuation is a monotone lattice operation: a delegated warrant must be a subset of the parent warrant on every dimension (action, resource, expiry, delegation depth, obligation set). The invariant that matters is not subset-ness at issuance time — that is trivially checkable — but **subset-ness against the policy generation the parent warrant was minted under**, not the generation the broker currently holds in memory.

Two distinct things get conflated: *policy version* (which rule text the broker is enforcing) and *warrant generation* (the epoch stamped into the parent warrant at mint). A broker that hot-reloads policy will happily re-evaluate a child request against generation N+1 while the parent it is attenuating was minted at generation N. If the policy tightened between N and N+1, the child is *narrower* than the parent — safe. If the policy *loosened* — a scope widened, an obligation dropped, an expiry ceiling raised — the child can be a strict superset of the parent on some axis while still being a subset of the broker's *current* ruleset. The broker's local check passes. The receiving instance is now holding a warrant that authorizes more than its issuer was ever entitled to delegate.

What Was Observed

A federation of three organizations — caller org A, broker org B, resource org C — ran a routine capability exchange. A's orchestrator agent requested `documents.read` + `documents.export` on a C-held resource, delegating through B's trust broker. B held a standing parent warrant from C authorizing B to sub-delegate `documents.*` with an obligation `{redact_pii: true}` and an expiry ceiling of T+3600s.

At 14:02:11 B's policy engine reloaded a patch that, among other changes, removed the `redact_pii` obligation from the `documents.export` rule (intended for an unrelated internal workflow that had been migrated off PII data). The reload was atomic and the broker continued serving. At 14:02:47 A's request arrived. B evaluated it against generation N+1, found `documents.export` clean, and minted a child warrant with scope `documents.read, documents.export`, **no obligation set**, expiry T+3600s from *child issuance* (14:02:47), i.e. expiring 47 seconds after the parent's ceiling.

The child passed B's local attenuation check because B compared the child to its current ruleset, not to the parent warrant's embedded generation-N obligations and expiry. C's enforcement point accepted the warrant (signature valid, issuer trusted, scope within C's coarse ACL) and executed an export of a PII-bearing document with no redaction. The 47-second expiry overhang was never exercised in this incident but was logged as a latent second-order violation.

The trace, condensed:

14:02:11  policy_reload(gen: N -> N+1)  # drops redact_pii on documents.export
14:02:47  child_request(A -> B)         # scope: documents.read, documents.export
14:02:47  broker_eval(gen=N+1)          # PASS, no obligations matched
14:02:47  mint(child, parent_gen=N)     # parent warrant still carries gen N
14:02:47  local_attenuation_check       # child ⊆ current_ruleset  -> PASS
14:02:47  local_attenuation_check       # child ⊆ parent_warrant    -> NOT EVALUATED
14:02:48  C.enforce(child)              # signature ok, scope ok    -> ALLOW
14:02:49  export(document_with_pii)     # redact_pii obligation absent

Condition of Validity

The invariant that would have caught this: **a broker may only attenuate a parent warrant against the policy generation embedded in that parent warrant, and must refuse to mint if its active generation differs from the parent's generation on any dimension the child touches.** Formally, for every dimension `d ∈ {action, resource, expiry, depth, obligations}`, `child[d] ⊑ parent[d]` where `⊑` is evaluated using the rule text frozen at `parent.gen`, not the broker's live ruleset.

This is a *pinning* requirement, not a subset requirement. The subset check is necessary but insufficient; the generation pin is what makes the subset check meaningful. Two corollaries follow:

  1. A broker that cannot reconstruct the generation-N rule text (because it garbage-collected old policy versions) must refuse to attenuate, not fall back to current policy. Refusal is the safe default; silent re-evaluation is the failure.
  2. The parent warrant must carry its generation as a signed, non-strippable claim. If the generation is advisory metadata, an attacker or a buggy intermediary can downgrade it and re-open the drift.

The condition fails silently because both the broker's local check and the resource's enforcement point are individually correct. The broker correctly enforces *its* policy; the resource correctly enforces *its* ACL. The gap is in the seam — the broker's policy and the parent warrant's provenance are allowed to diverge, and no single component owns the comparison.

Decision Boundary

An instance must refuse the brokered grant — not merely log it — when any of the following hold at attenuation time:

The boundary is *not* "refuse whenever generations differ." Most generation bumps are disjoint from any given request, and a blanket refusal would deadlock the federation on every policy edit. The boundary is intersection: refuse when the drift touches what the child asks for.

Operational Effect

Pinning attenuation to the parent's generation converts a silent cross-org privilege escalation into a hard, attributable error at the broker. The cost is that brokers must retain historical policy generations for at least the maximum parent-warrant lifetime (here, 3600s plus skew), and must be able to answer "what did rule R look like at generation G" on the hot path. That is a real storage and latency cost, and it is the price of the invariant.

The second-order effect is on negotiation: when a child request intersects a drifted dimension, the correct behavior is not to fail the caller but to re-negotiate — request a fresh parent warrant from C under generation N+1, which forces C to re-attest the (now-loosened) policy explicitly rather than letting B's local reload silently propagate authority outward. The refusal is a signal to re-broker, not a terminal state.

The 47-second expiry overhang deserves separate mention: even absent the obligation drift, a child minted at 14:02:47 under a parent expiring at 14:03:11 is a time-bounded authority leak. Expiry attenuation must be computed from the parent's absolute ceiling, not from child issuance time, and the skew margin must be subtracted, not added.

import time
from dataclasses import dataclass, field


class AttenuationDriftError(RuntimeError):
    """Raised when a brokered child warrant is not a subset of its parent
    under the parent's pinned policy generation."""


@dataclass(frozen=True)
class Warrant:
    scope: frozenset
    obligations: frozenset
    expires_at: float
    gen: int
    signed_gen: bool = True


@dataclass
class Broker:
    active_gen: int
    # generation -> rule text; only generations we can still reconstruct
    policy_history: dict = field(default_factory=dict)
    clock_skew_margin: float = 5.0

    def _rules_at(self, gen: int) -> dict:
        if gen not in self.policy_history:
            raise AttenuationDriftError(
                f"cannot reconstruct policy generation {gen}; refusing to attenuate"
            )
        return self.policy_history[gen]

    def attenuate(self, parent: Warrant, requested_scope: frozenset,
                  requested_obligations: frozenset, now: float) -> Warrant:
        if not parent.signed_gen:
            raise AttenuationDriftError("parent warrant has unsigned generation claim")

        # Pin: evaluate the child against the PARENT's generation, not active.
        rules = self._rules_at(parent.gen)

        # 1. Scope must be a subset of the parent's scope under parent-gen rules.
        if not requested_scope <= parent.scope:
            raise AttenuationDriftError(
                f"scope {requested_scope} exceeds parent {parent.scope} at gen {parent.gen}"
            )

        # 2. Obligations: cannot drop a non-waivable obligation from parent gen.
        non_waivable = rules.get("non_waivable_obligations", frozenset())
        dropped = (parent.obligations & non_waivable) - requested_obligations
        if dropped:
            raise AttenuationDriftError(
                f"child drops non-waivable obligations {dropped} at gen {parent.gen}"
            )

        # 3. Expiry ceiling: child must not outlive parent minus skew margin.
        ceiling = parent.expires_at - self.clock_skew_margin
        child_expiry = min(now + 3600.0, ceiling)
        if child_expiry > ceiling:
            raise AttenuationDriftError(
                f"child expiry {child_expiry} exceeds parent ceiling {ceiling}"
            )

        # 4. Generation drift: if active != parent.gen, the diff must be disjoint
        #    from what the child touches, or we refuse and force re-brokering.
        if self.active_gen != parent.gen:
            drift = rules.get("drift_dimensions", frozenset())
            touched = requested_scope | requested_obligations
            if drift & touched:
                raise AttenuationDriftError(
                    f"policy drift {drift & touched} intersects child request; "
                    f"re-broker parent at gen {self.active_gen}"
                )

        return Warrant(
            scope=requested_scope,
            obligations=requested_obligations,
            expires_at=child_expiry,
            gen=parent.gen,
        )


def demo_drift_refusal():
    broker = Broker(
        active_gen=2,
        policy_history={
            1: {"non_waivable_obligations": frozenset({"redact_pii"}),
                "drift_dimensions": frozenset()},
            2: {"non_waivable_obligations": frozenset(),
                "drift_dimensions": frozenset({"documents.export", "redact_pii"})},
        },
    )
    parent = Warrant(
        scope=frozenset({"documents.read", "documents.export"}),
        obligations=frozenset({"redact_pii"}),
        expires_at=time.time() + 3600.0,
        gen=1,
    )
    # This is the 14:02:47 request: export without the redact_pii obligation.
    broker.attenuate(
        parent,
        requested_scope=frozenset({"documents.read", "documents.export"}),
        requested_obligations=frozenset(),
        now=time.time(),
    )


if __name__ == "__main__":
    try:
        demo_drift_refusal()
    except AttenuationDriftError as e:
        print(f"REFUSED (correct): {e}")