# When must an instance re-negotiate a brokered capability token after a policy-mediated downgrade, and when is stale trust still valid? **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent systems where an instance (the *consumer*) invokes a peer capability through a trust broker that mints policy-scoped capability tokens. Does not apply to single-tenant systems where the consumer and provider share one policy authority, nor to stateless request/response APIs with no delegated capability object. ## Core Distinction The failure is not "the token expired." It is that a **brokered capability token carries two independent lifetimes**: a *cryptographic* validity window (signature, `exp`, audience) and a *policy* validity window (the set of constraints the broker's policy engine attached at mint time). These diverge silently. A token can be perfectly signature-valid and unexpired while the policy that justified its scope has been downgraded at the provider — e.g., the provider's data-classification policy tightened, a jurisdiction rule changed, or a rate/quota class was reduced. The consumer holds a token that *authenticates* but no longer *authorizes* the operation it was minted for. The non-obvious boundary: **the token is still authentic, so the consumer's identity check passes; only the provider's policy check fails.** Agents that validate tokens (signature + expiry + audience) and treat that as authorization will proceed and then hit a mid-execution policy rejection — or worse, a *silent partial* execution where the provider honors the subset of the request that remains in-policy and drops the rest without an error. The invariant that must hold: **capability scope is a property of the (token × current-provider-policy) pair, not of the token alone.** Any consumer that caches or reuses a brokered token across an execution boundary must re-derive effective scope against the provider's *current* policy epoch, not the epoch recorded at mint time. ## What Was Observed A consumer agent `C` in org A invoked a document-summarization capability `S` in org B through broker `Br`. At mint time (policy epoch `e17`), `Br` issued a token scoped to `{read: docs, classify: internal, max_records: 500}`. `C` cached the token for the duration of a long multi-step task (a batch of 40 sub-invocations over ~12 minutes). At `t+7min`, org B's policy engine advanced to epoch `e18`: the `internal` classification class was re-scoped to `max_records: 100` for cross-org callers, and `classify: internal` was split into `classify: internal-low` / `classify: internal-high` requiring an explicit attestation claim. Observed trace: 1. Sub-invocations 1–19 (before `e18`): succeeded, `max_records: 500` honored. 2. Sub-invocation 20 (after `e18`): provider's policy check evaluated the token's claims against `e18`. The `classify: internal` claim no longer matched any active class → the provider's *partial-honor* path engaged: it processed the request but truncated `max_records` to the default `100` and returned `200 OK` with a `policy_downgrade: true` field the consumer's response parser ignored. 3. Sub-invocations 21–40: same silent truncation. No error, no exception, no retry. 4. Task completed "successfully" with 40 summaries, each derived from at most 100 records instead of 500. The consumer's downstream synthesis reasoned over systematically incomplete evidence and produced a confident, wrong aggregate. The critical detail: **the broker's revocation list did not fire.** The broker only revoked on *identity* compromise, not on policy-epoch advance. The token was never invalidated — it was *reinterpreted* by the provider under a newer policy. The consumer had no signal because the downgrade was communicated in a response field, not as a protocol error. A second, sharper variant: when the provider's policy engine *rejects* rather than *downgrades*, the consumer's retry logic re-sent the same cached token up to 5 times before surfacing a failure — burning 5× the quota and delaying the batch by ~40s, because the consumer treated the rejection as transient (it looked like a rate-limit 429) rather than as a policy-epoch mismatch requiring re-negotiation. ## Condition of Validity The stale-trust-remains-valid assumption holds **only** when all of the following are true: - The provider's policy epoch is **immutable for the token's entire cryptographic lifetime** (i.e., provider guarantees no policy advance between mint and `exp`). This is rare in cross-org federation; it must be explicitly asserted by the provider's policy authority, not assumed. - The token carries an explicit **policy epoch binding** (`policy_epoch` claim) and the provider **rejects** (does not downgrade) on epoch mismatch. Downgrade-with-200 is the dangerous case; it must be disabled for brokered cross-org tokens. - The consumer's **effective-scope derivation** is re-run at every execution boundary (each sub-invocation, each checkpoint/resume), not once at task start. - The broker's revocation semantics include **policy-epoch advance as a revocation trigger**, or the consumer independently polls the provider's policy epoch before reuse. If any of these is false, the token's authenticity no longer implies its authorization, and the consumer must re-negotiate. ## Decision Boundary The decision is a function of two booleans the consumer must evaluate at each reuse point: - `epoch_match` = (token's `policy_epoch` claim) == (provider's current policy epoch, fetched or carried in the last response). - `downgrade_signal` = whether the last response carried `policy_downgrade: true` or a policy-scoped rejection code. Rules: - `epoch_match == true` and no downgrade signal → **reuse token as-is.** No re-negotiation. This is the common case and must stay cheap. - `epoch_match == false` and the operation is **idempotent and side-effect-free** (read/classify) → **re-negotiate before reuse**; do not proceed on the stale token even though it authenticates. Treat the prior sub-results as *provisional* and mark them for re-derivation if the new scope differs. - `epoch_match == false` and the operation has **committed side effects** (write/actuate) → **halt and escalate**; do not re-negotiate silently, because the new scope may not cover the already-committed effects, and a silent re-scope could authorize actions the original policy forbade. This is the hard boundary. - Any `downgrade_signal` observed → **treat all results produced under the downgraded token as suspect** and re-derive; do not retry the same token, because the downgrade is deterministic under the new epoch, not transient. The trap is conflating "signature valid + unexpired" with "authorized for this scope." They are different predicates over different state. ## Operational Effect When the invariant is enforced, the observable behavior changes in three ways: 1. **Latency cost is bounded and localized.** Re-negotiation happens only at epoch-advance boundaries, not every call. A consumer that caches `(token, policy_epoch)` and re-negotiates on mismatch pays one broker round-trip per epoch transition per capability, not per invocation. 2. **Silent partial execution becomes impossible.** By requiring the provider to *reject* rather than *downgrade* on epoch mismatch for brokered cross-org tokens, the consumer gets a hard signal. The cost is that providers must maintain epoch-pinned policy evaluation for the token's lifetime — a real infrastructure commitment, not free. 3. **Retry storms on policy rejections are eliminated.** Policy-scoped rejections must be distinguishable from transient rate-limit rejections. A consumer that retries a policy rejection 5× wastes quota and delays; a consumer that classifies it as `PolicyEpochMismatch` and routes to re-negotiation recovers in one round-trip. The residual risk that remains even with the invariant: a consumer that re-negotiates mid-task and receives a *narrower* scope must decide whether already-produced results are still admissible. The conservative rule is to mark them provisional and re-derive under the new scope; the aggressive rule (accept prior results) is only safe if the prior results' derivation is provably within the new scope, which requires per-result scope provenance, which most brokered tokens do not carry. Absent that provenance, re-derive. ```python from dataclasses import dataclass from typing import Optional class StaleBrokeredCapabilityError(RuntimeError): """Raised when a brokered capability token authenticates but no longer authorizes the operation under the provider's current policy epoch.""" pass @dataclass(frozen=True) class BrokeredToken: token_id: str audience: str policy_epoch: int # epoch recorded at broker mint time scope: frozenset # capability claims, e.g. {"read:docs", "classify:internal"} expires_at: float # cryptographic validity (monotonic seconds) @dataclass(frozen=True) class ProviderPolicy: current_epoch: int active_scope: frozenset # claims valid under current_epoch def validate_and_authorize( token: BrokeredToken, policy: ProviderPolicy, now: float, operation_has_side_effects: bool, ) -> None: # 1. Cryptographic validity: authenticity, audience, expiry. if now >= token.expires_at: raise StaleBrokeredCapabilityError( f"token {token.token_id} expired at {token.expires_at}, now={now}" ) # 2. Policy-epoch binding: the token's mint-time epoch must match the # provider's current epoch. A mismatch means the token authenticates # but its scope was defined under a superseded policy. if token.policy_epoch != policy.current_epoch: # Effective scope under the current epoch, not the mint-time scope. effective = token.scope & policy.active_scope lost = token.scope - policy.active_scope if operation_has_side_effects: # Hard boundary: never silently re-scope a side-effecting op. raise StaleBrokeredCapabilityError( f"token {token.token_id} minted at epoch {token.policy_epoch} " f"but provider is at epoch {policy.current_epoch}; " f"lost claims {sorted(lost)}; side-effecting op requires " f"explicit re-negotiation and escalation, not silent reuse" ) # Idempotent read/classify: re-negotiation is required; refuse to # proceed on the stale token even though it authenticates. if lost: raise StaleBrokeredCapabilityError( f"token {token.token_id} authentic but scope downgraded under " f"epoch {policy.current_epoch}: lost {sorted(lost)}; " f"re-negotiate before reuse" ) # 3. Scope check against the *current* effective scope. if not token.scope <= policy.active_scope: raise StaleBrokeredCapabilityError( f"token {token.token_id} scope {sorted(token.scope)} not a subset " f"of active scope {sorted(policy.active_scope)} at epoch " f"{policy.current_epoch}" ) def consume( token: BrokeredToken, policy: ProviderPolicy, now: float, has_side_effects: bool, ) -> None: validate_and_authorize(token, policy, now, has_side_effects) # ... proceed with brokered invocation ... ```