# Which invariants prevent capability-attestation rollback from silently widening federation scope across trust renegotiation **Date of Record:** 2026 November 30 **Scope:** Applies to cross-org agent federations where a peer's capability set is established via signed attestation and consumed by a policy engine during task delegation. Does not apply to single-org deployments with a static capability manifest, nor to purely advisory (non-enforcing) capability hints. ## Core Distinction The failure is not a forged attestation, a broken signature, or a policy mismatch. It is a **monotonicity violation across renegotiation**: a peer whose attested capability set is *narrowed* (revocation, downgrade, scope reduction) can, after a trust renegotiation round, present an attestation whose effective capability surface is *wider* than either the pre- or post-narrowing state — because the federation's policy cache, the peer's own claim, and the attestation chain's validity window are reconciled by *union* rather than by *intersection under the most restrictive valid claim*. Concretely: agent A (org X) holds an attestation granting `{read:dataset, summarize}` valid until T+24h. At T+2h, org X revokes `read:dataset` and issues a narrowed attestation `{summarize}` valid T+2h→T+24h. Org Y's policy cache still holds the T+0 attestation, which is *not yet expired*. On the next delegation, Y's policy engine evaluates candidate grants and — absent an explicit supersession rule — admits the union `{read:dataset, summarize}`, because both attestations are individually signature-valid and neither is time-expired. The revocation never "lands" until the old attestation's TTL elapses, and during that window the peer executes with capabilities it no longer legitimately holds. This is a *continuity* failure: the federation's trust state is non-monotonic in time even though each individual artifact is internally consistent. ## What Was Observed A federation of three orgs (X, Y, Z) ran a delegated summarization task. X's agent held `read:dataset` for a PII-bearing corpus. X revoked it mid-run at T+2h after a policy review. Y's orchestrator, which had cached X's T+0 attestation at task start, continued to route `read:dataset` tool calls to X's agent. X's agent — itself caching the T+0 attestation in its own local capability table — accepted them and read the corpus for 41 minutes past revocation. The trace shows three independent caches (Y's policy engine, X's agent-local table, Z's auditor ledger) each holding a *different* "current" attestation: - Y: T+0 attestation, `valid_until = T+24h`, no supersession marker. - X agent: T+0 attestation, refreshed lazily on next tool call (never triggered during the task loop). - Z auditor: T+2h narrowed attestation, because Z's ledger ingests revocation events eagerly. The auditor's replay at T+3h flagged the divergence: Z's view of X's capabilities (`{summarize}`) did not match Y's executed calls (`read:dataset`). The failure was not detected by any participant at execution time — only by out-of-band replay. The root cause is the absence of a **supersession invariant**: the federation protocol defined attestation *validity* (signature + time window) but not attestation *currency* (which of several valid attestations is authoritative). Two valid attestations for the same subject, overlapping in time, with no ordering rule, are a well-formed protocol state that admits union semantics. ## Condition of Validity The invariant that prevents this is: **for any (subject, capability-domain) pair, at most one attestation is *authoritative* at any instant, and the authoritative set is the intersection of all non-superseded valid attestations, ordered by a strictly monotonic issuance counter — never by wall-clock overlap.** This requires three concrete mechanisms, all of which must be present; any one missing reopens the window: 1. **A monotonic issuance sequence per (issuer, subject)**, signed into each attestation. Wall-clock `valid_until` is necessary but not sufficient — clocks skew, and overlapping windows are legal. The sequence number is the tiebreaker: higher sequence supersedes lower, unconditionally, even if the lower is not time-expired. 2. **An explicit revocation record that carries a sequence number strictly greater than the attestation it revokes**, and is itself signed and propagated. A bare "revoke" event with no sequence ordering can be reordered against a concurrent re-issue. 3. **A mandatory refresh-on-consume rule**: any agent presenting a capability to a policy engine must attach the sequence number it believes current, and the engine must *reject the delegation* (not silently upgrade) if its own highest-known sequence is lower than the presented one. This forces the stale-cache holder to reconcile before acting. The condition of validity is that the federation's trust state is a *totally ordered* sequence per subject, not a set of independently-valid artifacts. Where issuance is concurrent (two issuers for the same subject), the ordering must be resolved by issuer quorum or by a designated authority — never by "whichever the consumer happened to cache." ## Decision Boundary The boundary between a *safe* and *unsafe* renegotiation is whether the narrowing attestation's sequence number is observable to every consumer *before* that consumer's next delegation. If the revocation propagates within the consumer's refresh interval, the window is bounded and the union never forms. If propagation is asynchronous and the consumer has no obligation to re-check, the window is unbounded by anything except the old attestation's TTL — which is exactly the wrong bound, because TTL is chosen for availability, not for revocation latency. Operationally: **narrowing is safe iff `revocation_propagation_max < consumer_refresh_interval`**, and the refresh interval must be enforced by the policy engine, not by the agent's good behavior. When that inequality cannot be guaranteed (cross-org networks routinely cannot), the protocol must fall back to *deny-on-stale*: a delegation whose presented sequence is older than the engine's known sequence is refused outright, converting a silent widening into a loud, recoverable task failure. ## Operational Effect The practical consequence is that federation operators must treat capability attestations as a **versioned, totally-ordered log per subject**, not as a set of independently-verifiable certificates. The audit surface changes: instead of "is this attestation valid?", the question becomes "is this attestation the highest-sequence valid attestation known to this consumer, and if not, why is the consumer acting on it?" The Z-auditor's replay in the observed case becomes a *pre-execution* gate rather than a post-hoc detector. The cost is a hard dependency on sequence propagation and a refusal path that will fire during network partitions. That refusal is the correct behavior — a partition that prevents sequence reconciliation must not degrade into union-of-capabilities. The invariant is: **under any partition, the effective capability set is the intersection of the last-known-authoritative sets, and if no authoritative set is known, it is empty.** Widening requires positive, ordered evidence; narrowing requires only the absence of it. ```python class CapabilityRollbackError(RuntimeError): """Raised when a consumer would act on a superseded or unsequenced attestation.""" pass def resolve_authoritative_capabilities( subject_id: str, presented_attestation: dict, engine_known_sequence: int, active_attestations: list[dict], ) -> set[str]: """ Enforce the supersession invariant: the authoritative capability set is the intersection of all non-superseded valid attestations, ordered by monotonic issuance sequence. Refuse to act on a stale or unsequenced presentation. """ seq = presented_attestation.get("issuance_sequence") if seq is None: raise CapabilityRollbackError( f"subject {subject_id}: attestation lacks issuance_sequence; " "cannot order against engine state, refusing delegation" ) if seq < engine_known_sequence: # The consumer is acting on a superseded attestation. This is the exact # condition that produced the 41-minute over-read in the observed trace. raise CapabilityRollbackError( f"subject {subject_id}: presented sequence {seq} < engine-known " f"{engine_known_sequence}; stale attestation, deny delegation" ) if seq > engine_known_sequence: # Consumer knows a newer attestation than the engine. The engine must # reconcile before it can authorize anything; acting now risks union. raise CapabilityRollbackError( f"subject {subject_id}: presented sequence {seq} > engine-known " f"{engine_known_sequence}; engine state behind, force refresh" ) # Same sequence: intersect across all valid, non-superseded attestations. relevant = [ a for a in active_attestations if a.get("issuance_sequence") == seq and a.get("subject") == subject_id ] if not relevant: raise CapabilityRollbackError( f"subject {subject_id}: no attestation matches authoritative " f"sequence {seq}; federation state inconsistent" ) caps = set(relevant[0]["capabilities"]) for a in relevant[1:]: caps &= set(a["capabilities"]) # intersection, never union return caps def delegate(subject_id, presented, engine_seq, active, requested: set[str]) -> bool: granted = resolve_authoritative_capabilities( subject_id, presented, engine_seq, active ) if not requested.issubset(granted): raise CapabilityRollbackError( f"subject {subject_id}: requested {requested - granted} not in " f"authoritative set {granted}; refusing widening" ) return True ```