# In what scenarios must an instance treat cross-org capability revocation as a tombstone rather than a deletion — and why the distinction collapses without a monotonic delegation epoch **Date of Record:** 2026 November 20 **Scope:** Applies to federated agent deployments where an agent at org A holds delegated capabilities granted by org B (or transitively by B via C), and where B may revoke, narrow, or re-issue those capabilities while A's agent is mid-execution. Does not apply to single-tenant deployments where the capability graph has a single root and revocation is a local function call. ## Core Distinction The naive model of capability delegation treats revocation as a **delete**: org B removes the grant record, and any subsequent lookup by A's agent returns "not found," which the agent interprets as "I never had this capability." This is wrong in a way that is subtle and dangerous. The correct model is a **tombstone with a monotonic epoch**: revocation is an assertion that "as of delegation epoch *n*, capability *c* is no longer valid for holder *h*," and that assertion is *permanent and ordered*. The difference matters because a federated agent does not query capability state once at cold-start; it queries continuously, often from multiple replicas of B's policy service, across retries, across a cache with TTL, and across a handoff to a peer agent that may hold a stale view. Under deletion semantics, a stale replica that has not yet processed the delete returns a *positive* answer indistinguishable from a fresh grant. Under tombstone semantics, the same stale replica returns an epoch that is *lower* than the highest epoch the agent has already observed, and the agent can detect the regression. The invariant is this: **an agent must never act on a capability assertion whose delegation epoch is lower than the highest epoch it has previously observed for the same (holder, capability) pair, regardless of which replica or transport produced it.** Deletion violates this invariant structurally because a deleted record carries no epoch at all. ## What Was Observed A research-federation agent at org A (`planner-7`) held a delegated `write:scratchpad` capability from org B, granted at epoch 41, used to stage intermediate results during a multi-step tool loop. Mid-task, B's security team narrowed the capability to `read:scratchpad` only and issued revocation of the write grant at epoch 42, citing a data-residency audit. B's policy store is a multi-region replicated KV with eventual consistency and a 30s replication lag to A's nearest read replica. The sequence that followed: 1. `planner-7` completed step 6 of 9 and, before step 7, re-checked its capability via B's policy endpoint. The request landed on the lagging replica and returned `{"cap": "write:scratchpad", "epoch": 41, "valid": true}`. 2. `planner-7` proceeded to write a 4 MB intermediate artifact to B's scratchpad. The write succeeded because the *data plane* replica that handled the write had also not yet applied the revocation. 3. At step 8, `planner-7` attempted a second write. This time the request hit a fully-synced replica and was rejected with `403 capability_revoked`. The agent's error handler classified this as a transient auth failure and retried twice with exponential backoff. 4. Both retries succeeded — they landed on lagging replicas again — and a second artifact was written. 5. The audit reconciliation job at B, running 6 hours later, found two post-revocation artifacts and flagged a policy violation. The incident was reported as "A's agent ignored revocation," which was false: A's agent never *saw* the revocation, and its error handler had no way to distinguish "revoked" from "replica disagreement" because the rejection carried no epoch. The root cause was not the replication lag. Replication lag is a fact of federated life. The root cause was that the *rejection* was not epoch-stamped, so the agent could not tell that the `403` it received at step 8 was an assertion of epoch 42 while the `valid:true` it received at step 7 was an assertion of epoch 41. Both were locally consistent; only their ordering disambiguated them. ## Condition of Validity The tombstone invariant holds only under the following jointly-required conditions, and each is a real engineering obligation, not a formality: - **Epoch monotonicity per (holder, capability).** B must never reuse or decrement an epoch for a given pair. Re-granting a previously revoked capability requires a *new* epoch strictly greater than the revocation epoch. If B's grant service is backed by a database with a non-monotonic ID generator (e.g., UUIDv4, or a clock that can step backward under NTP), the invariant is unenforceable. - **Epoch propagation on both success and failure paths.** The `403` must carry the revocation epoch. An agent that only epoch-checks successful grants will still act on stale positives. The rejection path is where the invariant is most often lost. - **Agent-side high-water mark persistence.** The agent must persist the highest epoch observed per (holder, capability) across checkpoint/resume, across handoffs to peer agents, and across process restarts. An agent that keeps this only in context memory will lose it on any cold start and will happily accept a stale positive after resume. - **Transitive delegation carries the chain.** If B delegated to C at epoch 42 and C delegated to A at epoch 43, A must validate against the *minimum* epoch in the chain, and revocation at B must propagate a tombstone that C's grants cannot outrank. A chain where C's epoch is higher than B's revocation epoch is not evidence of continued validity; it is evidence that C has not yet observed the revocation. The condition fails — and the invariant with it — the moment any of these four is dropped. In the incident above, conditions 1 and 3 held; condition 2 was violated (no epoch on the `403`), and condition 4 was not exercised because the chain was depth-1. ## Decision Boundary The operational question is: *when the agent receives conflicting capability assertions, what does it do?* The boundary is drawn by comparing the observed epoch to the persisted high-water mark, not by comparing the assertion to the most recent one in context. - **Observed epoch > high-water mark, assertion positive:** accept, update high-water mark, proceed. - **Observed epoch > high-water mark, assertion negative (revoked/narrowed):** accept the revocation, update high-water mark, halt or degrade the task. Do not retry the capability check hoping for a different answer — a higher epoch is authoritative regardless of which replica served it. - **Observed epoch == high-water mark:** the assertion is consistent with prior knowledge; act on it, but do not treat a *positive* at the same epoch as re-confirmation of a capability that a *negative* at that same epoch previously denied. Same-epoch conflicts indicate a replica bug and must escalate, not resolve locally. - **Observed epoch < high-water mark:** the assertion is stale. **Discard it entirely.** Do not use a stale positive to proceed (this is the incident). Do not use a stale negative to halt either — a stale negative from before a re-grant at a higher epoch would cause a spurious halt. The only correct action is to re-query a replica known to be at or above the high-water mark, or to block until one is available. - **No epoch present at all:** treat as epoch 0. This means any prior observation dominates it, and an agent with no prior observation must refuse to act on an epoch-less assertion for any capability that carries side effects. Epoch-less assertions are the failure mode, not the fallback. The non-obvious consequence: **a stale rejection is as dangerous as a stale acceptance.** Most implementations guard only against stale positives, because the incident class they fear is "agent does something it shouldn't." But an agent that halts on a stale negative will fail tasks that were legitimately re-granted, and in a federation where re-grants happen routinely (e.g., a capability that is revoked during an audit and re-issued after), stale-negative halts produce a different, equally costly failure: silent task abandonment that looks like the agent "gave up." The high-water mark comparison is symmetric for exactly this reason. ## Operational Effect The practical consequence for the agent's execution loop is that capability checks become **monotonic state transitions**, not idempotent lookups. This changes three things: First, the agent's checkpoint must include the high-water mark map, not just the task state. A resume that restores task progress but not the epoch map is a resume that will accept stale positives. The checkpoint schema must version the epoch map alongside the working memory. Second, handoffs between peer agents must transfer the high-water mark as part of the delegation context. A peer that receives a baton without the epoch map will re-query, get a stale positive from a lagging replica, and proceed — the exact incident, now in a swarm. The baton payload must carry `{(holder, cap): max_epoch}`. Third, the error handler must classify `403 capability_revoked` as a *state transition*, not a transient error. Retrying a revocation rejection is the bug that produced the second artifact in the incident. A revocation rejection at epoch *n* sets the high-water mark to *n* and the agent must not retry the same capability until it observes an epoch > *n*. The guardrail that bounds the whole thing is a single assertion at the capability-check boundary: the agent refuses to act on any assertion whose epoch is below its persisted high-water mark, and refuses to act on any assertion lacking an epoch entirely. Everything else — replication lag, replica disagreement, re-grant races — is absorbed by that one monotonicity check. ```python from dataclasses import dataclass, field from typing import Optional class StaleCapabilityAssertion(RuntimeError): """Raised when an agent is asked to act on a capability assertion whose delegation epoch is below the highest epoch it has already observed for that (holder, capability) pair, or which carries no epoch at all.""" pass @dataclass class CapabilityAssertion: holder: str capability: str epoch: Optional[int] # None means the issuer failed to stamp it valid: bool # True = granted, False = revoked/narrowed @dataclass class EpochLedger: """Persisted per-agent high-water mark. Must survive checkpoint/resume and must be transferred in any peer handoff payload.""" high_water: dict = field(default_factory=dict) def _key(self, holder: str, capability: str) -> tuple: return (holder, capability) def observe(self, a: CapabilityAssertion) -> None: if a.epoch is None: # An epoch-less assertion never advances the ledger. It is a # non-assertion and must not be used to authorize side effects. return k = self._key(a.holder, a.capability) if a.epoch > self.high_water.get(k, -1): self.high_water[k] = a.epoch def check(self, a: CapabilityAssertion) -> bool: """Returns True iff the agent may proceed on this assertion. Raises StaleCapabilityAssertion on any regression or missing epoch.""" if a.epoch is None: raise StaleCapabilityAssertion( f"epoch-less assertion for {a.capability} from {a.holder}; " f"refusing to authorize side effects" ) k = self._key(a.holder, a.capability) hw = self.high_water.get(k, -1) if a.epoch < hw: raise StaleCapabilityAssertion( f"stale assertion for {a.capability} from {a.holder}: " f"epoch {a.epoch} < high-water {hw}; discard and re-query" ) if a.epoch == hw and not a.valid: # Same-epoch revocation is authoritative; do not retry. self.observe(a) return False if not a.valid: self.observe(a) return False self.observe(a) return True def authorize_write(ledger: EpochLedger, a: CapabilityAssertion) -> None: if not ledger.check(a): raise StaleCapabilityAssertion( f"capability {a.capability} revoked at epoch {a.epoch} " f"for {a.holder}; halting task rather than retrying" ) # proceed with the side-effecting write ```