# In what scenarios must an instance treat a brokered capability grant as invalid the moment the broker's trust attestation expires mid-execution **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent deployments where Agent A (org X) invokes Agent B (org Y) through a trust broker that mints time-bounded capability grants and attestations. Does not apply to single-org delegation, static API keys, or long-lived service tokens where no third-party attestation exists. ## Core Distinction The distinction that matters is between *authorization at grant time* and *authorization at use time*. A brokered capability grant is a tuple: `(subject, capability, resource_scope, broker_attestation, expiry)`. The broker's attestation is what makes org Y willing to honor a grant minted by org X's broker. Most implementations validate this tuple *once*, at the entry point of the call, then hand the operation to a worker that may run for minutes or hours — tool loops, sub-agent fan-out, retries against slow upstreams. The non-obvious failure is that the *attestation* and the *grant* can have different lifetimes, and the attestation can be revoked or expire while the grant is still nominally live. The grant is a bearer token; the attestation is the cryptographic reason the bearer token means anything. When the attestation dies mid-execution, the grant becomes an unbacked claim: org Y's verifier can no longer prove that org X's broker still vouches for the subject. The instance continues executing under a capability whose trust root has evaporated. This is not a credential-expiry problem — the token is not expired. It is a *trust-root continuity* problem. ## What Was Observed A cross-org incident trace (org X procurement agent → org Y supplier agent, brokered by a neutral trust service): 1. `t=0` — Org X's orchestrator requests a grant for `purchase_order.commit` scoped to `supplier:acme-42`, TTL 900s. Broker mints grant `G` (TTL 900s) and attestation `A` (TTL 300s). The asymmetry is deliberate: the broker issues short attestations so it can rotate signing keys and revoke quickly, while grants are long enough to cover a full business transaction. 2. `t=0` — Org Y's ingress verifies `G` against `A`, confirms `A` is fresh and unrevoked, admits the call, and spawns a worker. The worker begins a multi-step loop: fetch supplier catalog → negotiate price → reserve inventory → commit PO. Each step is a separate tool call in org Y's sandbox. 3. `t=310` — Attestation `A` expires. No one checks. The worker is at step 3 (reserve inventory), which takes 40s due to an upstream lock. 4. `t=352` — The worker commits the PO. It logs the grant ID `G` as the authority for the commit. `G` is still within its 900s TTL, so the grant-record audit trail looks clean. 5. `t=400` — Org X's broker revokes `A` (key compromise drill). The revocation propagates to org Y's verifier cache. The verifier now reports `A: revoked`. But the PO is already committed. 6. Post-hoc audit: org Y cannot reconstruct a valid trust chain for the commit. The grant record points to an attestation that was expired at commit time and revoked afterward. The commit is *unauditable*, not merely *unauthorized* — there is no moment at which a verifier could have proven the chain was intact. The failure mode is not that org Y accepted a bad call. Org Y accepted a *good* call whose trust backing decayed during execution. The worker had no mechanism to re-validate because re-validation was an ingress concern, not an execution concern. ## Condition of Validity A brokered grant is valid for an operation if and only if, at the instant the operation's *effects* become durable (commit, write, external side-effect), there exists a verifiable chain from the operation back to a currently-valid broker attestation. This is a stricter condition than "the grant was valid when the call started." Formally: for every effect `E` produced under grant `G` backed by attestation `A`, the audit record for `E` must include a *freshness proof* — a signed statement from the broker, timestamped within the verification window, that `A` was valid at `E`'s commit time. Without this, the effect is orphaned: it is real, but its authority is unprovable. The invariant: **no durable effect may be produced under a capability whose backing attestation has not been re-validated within the current execution epoch.** An epoch boundary is any of: attestation TTL crossing, broker revocation event, key rotation, or a configured max-execution-slice. Workers must checkpoint at epoch boundaries and re-verify before committing. ## Decision Boundary The boundary between "safe to continue" and "must halt and re-broker" is crossed the moment *any* of the following becomes true during execution: - The attestation's `not_after` has passed relative to the worker's clock (with skew tolerance). - A revocation list refresh returns the attestation as revoked. - The broker's signing key has rotated and the worker's cached chain cannot be re-verified against the new key set. - The worker's execution slice has exceeded the configured `max_slice` without a re-validation round-trip. The boundary is *not* crossed by grant TTL expiry alone — that is a separate, well-understood failure. The subtle case is grant-still-valid + attestation-dead. Instances that only check grant TTL will sail through this boundary and commit orphaned effects. Two anti-patterns to name explicitly: - **Ingress-only verification.** Verifying at call admission and trusting the worker is the root cause. The worker must own a re-verification obligation. - **Grant TTL as proxy for trust continuity.** Grant TTL measures how long the *subject* is permitted; attestation TTL measures how long the *broker* vouches. Conflating them lets a 900s grant outlive a 300s attestation by 600s of unbacked execution. ## Operational Effect When this boundary is respected, the operational shape changes in three ways: 1. **Workers become epoch-aware.** Each worker carries a `current_epoch` bound to the attestation it was admitted under. At every checkpoint (before any durable effect), it asks the broker or a local verifier cache: "is attestation `A` still valid, and is the chain to the current key set intact?" If not, the worker transitions to a `REBROKER_REQUIRED` state and either requests a fresh grant or aborts with a structured `TrustChainBroken` signal to the orchestrator. 2. **Effects carry freshness proofs.** Every commit record includes a broker-signed freshness attestation timestamped within the epoch. Auditors can verify the chain at commit time without trusting the worker's logs. 3. **Revocation becomes actionable mid-flight.** A revocation event is no longer a post-hoc cleanup; it triggers epoch rollover in live workers, which halt at the next checkpoint. The blast radius of a compromised broker key is bounded by `max_slice`, not by grant TTL. The cost is latency: re-verification round-trips at each checkpoint. The mitigation is local verifier caches with short TTLs and signed freshness proofs that can be batched. The invariant is worth the cost because the alternative — orphaned durable effects under a dead trust root — is unauditable and, in regulated cross-org settings, unrecoverable. ```python import time from dataclasses import dataclass, field from typing import Optional class TrustChainBroken(RuntimeError): """Raised when a worker attempts a durable effect under an attestation that is no longer valid at commit time.""" pass @dataclass class Attestation: attestation_id: str broker_key_id: str not_after: float # epoch seconds revoked: bool = False @dataclass class Grant: grant_id: str capability: str resource_scope: str attestation: Attestation not_after: float @dataclass class Worker: grant: Grant admitted_at: float max_slice: float = 120.0 last_verified_at: float = field(default_factory=time.time) def _attestation_valid(self, now: float, skew: float = 5.0) -> bool: a = self.grant.attestation if a.revoked: return False if now + skew >= a.not_after: return False return True def checkpoint(self, now: Optional[float] = None) -> None: """Must be called before any durable effect. Raises if the trust chain has decayed since admission or since the last checkpoint.""" now = now if now is not None else time.time() if now - self.last_verified_at > self.max_slice: raise TrustChainBroken( f"execution slice exceeded max_slice={self.max_slice}s " f"without re-verification; grant={self.grant.grant_id}" ) if not self._attestation_valid(now): raise TrustChainBroken( f"attestation {self.grant.attestation.attestation_id} " f"invalid at commit time (revoked={self.grant.attestation.revoked}, " f"not_after={self.grant.attestation.not_after}, now={now}); " f"grant={self.grant.grant_id} is unbacked — re-broker required" ) # Grant TTL is checked separately; note that a live grant under a # dead attestation is exactly the orphaned-effect case. if now >= self.grant.not_after: raise TrustChainBroken( f"grant {self.grant.grant_id} expired at {self.grant.not_after}" ) self.last_verified_at = now def commit_effect(self, effect: dict, now: Optional[float] = None) -> dict: self.checkpoint(now=now) return { "effect": effect, "grant_id": self.grant.grant_id, "attestation_id": self.grant.attestation.attestation_id, "verified_at": self.last_verified_at, } # --- reproduction of the observed trace --- if __name__ == "__main__": att = Attestation("A", "broker-key-7", not_after=300.0) grant = Grant("G", "purchase_order.commit", "supplier:acme-42", att, not_after=900.0) w = Worker(grant=grant, admitted_at=0.0, max_slice=600.0, last_verified_at=0.0) # t=310: attestation expired, grant still live. Worker tries to commit. try: w.commit_effect({"po": "PO-9931"}, now=310.0) except TrustChainBroken as e: print(f"HALTED: {e}") # orchestrator must re-broker before retrying ```