# Why does an instance accept a federated agent manifest whose capability attestation was signed over a stale capability set? **Date of Record:** 2026 November 26 **Scope:** Applies to cross-organization agent trust federation where a relying agent validates a peer's signed manifest + capability attestation before delegating work (MCP/A2A handoff, tool delegation, sub-agent spawning). Does not apply to single-tenant deployments where the relying party and the attested agent share one trust root and one revocation channel. ## Core Distinction Trust federation is not signature verification. Signature verification answers "did the holder of key K sign these bytes?" Capability attestation answers a harder question: "does this signed byte-string still describe the capability set the peer *actually* possesses at the instant of delegation?" The failure mode lives in the gap between those two questions. An attestation is a *snapshot* of a capability set, signed at time T_s, with an expiry T_e. The peer's real capability set is a *live* function of time — tools get removed, scopes get narrowed, model versions get pinned differently, upstream dependencies lose access. The invariant that must hold is: **the relying agent must only act on an attestation whose snapshot is provably still a superset of the peer's live capability set for the duration of the delegated task.** Almost nothing enforces this, because the signature is valid, the expiry has not passed, and the schema matches. Every check passes while the semantic content is false. The non-obvious part: this is not a replay attack and not a revocation-latency problem. The attestation was legitimately signed, over a legitimately-issued capability set, by a legitimately-trusted issuer. It is simply *old relative to a capability change the issuer made after signing*. The relying agent has no channel to observe that change, because the change happened in the issuer's control plane, not in any artifact the relying agent polls. ## What Was Observed A relying agent R (org A) receives a manifest from peer P (org B) claiming `tools: ["search", "write_kb", "fetch_url"]` with an attestation signed by B's issuer, valid for 24h. R validates: signature chain to B's pinned root — OK; expiry — 21h remaining; manifest schema — matches A2A v0.3; capability set includes the tools R needs — OK. R delegates a multi-step task that assumes `write_kb` is available for the entire run. Three hours into the task, B's security team revokes `write_kb` from P's service identity (scope narrowing after an incident). B's issuer does not re-sign P's manifest — the manifest is a *pull* artifact, and P's service simply stops honoring `write_kb` calls, returning `403 capability_not_granted`. But R's delegation plan was constructed against the *attested* capability set and does not re-validate between steps. R's agent loop interprets the 403 as a transient tool error, retries twice, then falls back to a degraded path that writes to a *local* KB stub — silently changing the semantics of the task from "write to shared KB" to "write to local stub," and reporting success. The observable trace: attestation validation passed at t=0; capability set diverged at t=3h; relying agent never re-checked; task reported `status: complete` with a side effect that satisfied no one. The failure is not a crash. It is a **silent semantic downgrade** masked by a still-valid signature. A second variant: the issuer *does* re-sign, but the relying agent cached the manifest at delegation start and does not re-fetch. Two relying agents in the same swarm hold two different attestations for the same peer, both valid, describing different capability sets. The swarm's verification replay disagrees about what P could do, and the auditor flags a consensus conflict that is actually a cache-coherence bug. ## Condition of Validity The "signature valid ⇒ capability present" inference holds only when all three of the following are true: 1. **Snapshot freshness bound:** the relying agent can prove the attestation was issued within a window Δ during which the issuer's policy guarantees no capability changes are applied without re-attestation. In practice this means the issuer must publish a *monotonic attestation sequence number* and a *policy-change epoch*, and the relying agent must reject any attestation whose epoch is older than the issuer's currently-advertised epoch. 2. **Per-step re-validation:** for any multi-step delegation, the relying agent re-checks the capability set at each step boundary against a *live* capability probe (or a pushed revocation event), not against the cached attestation. The attestation authorizes the *plan*; the live probe authorizes each *action*. 3. **Failure is terminal, not degradable:** a `capability_not_granted` response must abort the delegation and surface to the orchestrator. It must never be caught by a retry/fallback handler that substitutes a semantically different tool. This is the invariant most often violated, because generic agent loops treat all tool errors as retryable. When any of these is absent, the relying agent is operating on a *belief* about the peer's capabilities, not a *verified fact*, and the belief can be arbitrarily stale within the attestation's nominal validity window. ## Decision Boundary The boundary is between two architectures: - **Attestation-as-authorization** (broken): the signed manifest is treated as a bearer token for the capability set for its full validity window. This is what most federation designs ship, because it is simple and the signature "feels" like enough. It fails exactly when the issuer's control plane changes underneath a still-valid artifact. - **Attestation-as-claim, probe-as-proof** (correct): the signed manifest is a *claim* about capabilities that the relying agent must *continuously* corroborate. The signature proves provenance of the claim; a live probe (or pushed epoch advance) proves the claim is currently true. The decision rule for a relying agent at each action boundary: ``` accept_action iff signature_chain_valid(manifest) AND now < manifest.expiry AND manifest.epoch == issuer.current_epoch() # freshness AND live_probe(peer, capability) == GRANTED # liveness ``` If `live_probe` returns `DENIED` or `UNKNOWN`, the action is rejected and the delegation aborts — it does **not** fall back. If `issuer.current_epoch()` is unreachable, the relying agent must treat the attestation as expired (fail-closed), not as still-valid (fail-open). The asymmetry matters: a network partition between R and B's issuer must not silently widen R's trust in P. The corollary for swarm coordination: all relying agents must resolve capability questions through the *same* epoch source, or they will hold divergent beliefs. A swarm with per-agent manifest caches and no shared epoch is a swarm with no coherent notion of what any peer can do. ## Operational Effect The practical consequence is that cross-org federation requires the issuer to run a **capability-change epoch service** and the relying agents to treat every delegation as a sequence of individually-authorized actions rather than one authorized plan. This is more expensive: it adds a probe per action and a hard dependency on the issuer's epoch endpoint. The cost is the price of the invariant. Without it, the system's failure mode is not "agent crashes" but "agent confidently completes a task it was never authorized to complete, using a substitute capability, and reports success" — the worst class of failure for an autonomous system, because it is invisible to the orchestrator and only surfaces when downstream consumers discover the side effect was wrong. The guardrail to encode: **a valid signature over a stale capability set is indistinguishable from a forged one at the point of use.** Both authorize actions the peer cannot perform. The only defense is to never let the signature be the last word. ```python from dataclasses import dataclass from enum import Enum from typing import Callable class CapabilityAttestationError(RuntimeError): """Raised when a federated peer's attested capability set cannot be corroborated against its live capability state at the action boundary.""" class ProbeResult(Enum): GRANTED = "granted" DENIED = "denied" UNKNOWN = "unknown" @dataclass(frozen=True) class SignedManifest: peer_id: str capabilities: frozenset[str] signature_valid: bool epoch: int expiry_ts: float def authorize_action( manifest: SignedManifest, capability: str, now_ts: float, issuer_current_epoch: Callable[[str], int | None], live_probe: Callable[[str, str], ProbeResult], ) -> None: """Authorize a single delegated action against a federated peer. The signed manifest is a *claim*; this function requires a live corroboration before the action proceeds. Fails closed on any ambiguity: unreachable epoch source, unknown probe, or stale epoch all abort the delegation rather than degrade it. """ if not manifest.signature_valid: raise CapabilityAttestationError( f"manifest for {manifest.peer_id} failed signature verification" ) if now_ts >= manifest.expiry_ts: raise CapabilityAttestationError( f"manifest for {manifest.peer_id} expired at {manifest.expiry_ts}" ) if capability not in manifest.capabilities: raise CapabilityAttestationError( f"capability {capability!r} not present in attested set for " f"{manifest.peer_id}" ) current_epoch = issuer_current_epoch(manifest.peer_id) if current_epoch is None: # Partition between relying agent and issuer: fail closed. raise CapabilityAttestationError( f"issuer epoch for {manifest.peer_id} unreachable; " f"cannot corroborate attestation freshness" ) if manifest.epoch < current_epoch: # Issuer has advanced its policy epoch since this attestation was # signed; the attested capability set may no longer be a superset # of the peer's live capabilities. Refuse to act on the stale claim. raise CapabilityAttestationError( f"stale attestation for {manifest.peer_id}: manifest epoch " f"{manifest.epoch} < issuer epoch {current_epoch}" ) result = live_probe(manifest.peer_id, capability) if result is not ProbeResult.GRANTED: # DENIED or UNKNOWN both abort. Critically: this must NOT be caught # by a retry/fallback handler that substitutes a different tool. raise CapabilityAttestationError( f"live probe for {manifest.peer_id}:{capability} returned " f"{result.value}; aborting delegation (no fallback permitted)" ) ```