# In what scenarios must an instance reject a peer's capability attestation during cross-org federation, and how does stale trust-broker propagation cause silent privilege escalation **Date of Record:** 2026 December 2 **Scope:** Applies to federated agent deployments where an agent in domain A (the *consumer*) invokes a remote agent in domain B (the *provider*) under a trust broker that propagates capability attestations and policy grants across org boundaries. Does not apply to single-org agent meshes with a shared control plane, nor to statically provisioned service accounts where attestations are minted and consumed within one trust root. ## Core Distinction The distinction that matters is between **capability attestation** (a signed claim, minted by a provider's authority, that a specific agent instance *can* perform action `X` under policy `P`) and **policy grant** (a consumer-side decision that this invocation is *allowed* to proceed). In a single trust domain these collapse: the same control plane mints and honors. Across orgs they are minted by different roots, propagated through a broker, and cached at the edge. The failure mode lives in the gap: **the consumer honors a cached attestation whose revocation has not yet propagated through the broker**, and the agent proceeds to execute a privileged tool call against a provider that has already downgraded the capability. The consumer's reasoning loop sees a valid-looking signed blob; the provider's enforcement layer sees a stale or revoked subject. Neither side is individually wrong, and the invocation succeeds anyway. This is not a generic cache-invalidation problem. The attestation is a *probabilistic input to an LLM planner*: the consumer agent reads the attestation's scopes, reasons about what it can now do, and generates a multi-step plan that assumes the capability. When the attestation is stale, the plan is built on a false premise, and the error compounds across every downstream tool call in the plan — the agent does not re-check capability between steps because the attestation was "already verified." ## What Was Observed A consumer agent in org A negotiated with a provider agent in org B for a `document.classify` capability scoped to a tenant. The broker issued a signed attestation with a 15-minute TTL and a revocation channel. The consumer cached the attestation in its working memory (a structured slot in the context, not a durable store) and began a 9-step plan: fetch documents, classify, aggregate, write a summary, and post to a shared channel. At step 4, the provider's policy authority **downgraded** the `document.classify` capability from `tenant:acme` to `tenant:acme-readonly` because of a compliance review. The revocation was published to the broker. The broker's propagation to org A's edge cache was delayed by 40 seconds — within the attestation's own TTL, so the consumer's cached blob was still cryptographically valid and still listed the original scope. The consumer agent, at step 6, invoked `document.write_summary` against the provider. The provider's enforcement layer checked the *current* policy and rejected with `403 CAPABILITY_DOWNGRADED`. But the consumer's plan had already, at step 5, aggregated classification results into a summary that embedded tenant-sensitive fields the readonly downgrade was meant to suppress. The provider rejected the write, but the consumer had already **materialized the sensitive summary in its own context** and, at step 7, posted it to a shared channel in org A — which the provider had no visibility into and no policy over. The observable signature: the provider logged one `403`; the consumer logged a successful 9-step plan with one retried step; the shared channel in org A received a message containing fields the provider believed were suppressed. No single log line showed the breach. It only appeared when the two domains' traces were correlated by invocation ID. ## Condition of Validity The failure requires the conjunction of four conditions, and the guardrail must bound all four: 1. **Attestation TTL exceeds broker propagation latency.** If TTL ≤ propagation P99, the cached blob expires before it can be stale. The invariant: `attestation.ttl < broker.propagation_p99` is unsafe; the safe relation is `attestation.ttl ≤ broker.propagation_p99` is *also* unsafe because it permits a window; the only safe bound is **attestation is re-validated at each privileged step, not cached across steps**, OR the TTL is set to `propagation_p99 - safety_margin` and the consumer re-fetches at TTL/2. 2. **The consumer's plan is generated once from the attestation and not re-checked between steps.** If the planner re-queries capability before each privileged tool call, the downgrade is caught at step 6 *before* step 5's aggregation. The failure is specifically that step 5 (aggregation) is not itself a privileged call — it is local computation — so it is not gated by any capability check, yet it produces the sensitive artifact. 3. **The sensitive artifact can leave the provider's policy boundary.** If the consumer's context is itself under the provider's policy (e.g., a shared enclave), the materialized summary is still governed. In cross-org federation it is not: org A's channel is outside org B's reach. The invariant: **any step that transforms provider data into a new artifact must carry the provider's data-handling policy as a taint label on the artifact**, and the consumer must refuse to emit a tainted artifact to a sink outside the provider's declared sink set. 4. **The broker's revocation is asynchronous and the consumer has no revocation listener.** If the consumer subscribes to revocation and invalidates its cached attestation on receipt, the window closes at propagation time. If it does not, the window is the full TTL. ## Decision Boundary The boundary is: **does the consumer treat the attestation as a point-in-time fact or as a lease?** A point-in-time fact is valid until TTL expiry. A lease is valid only while the consumer can prove the issuer still honors it. The decision rule for an agent instance: - If the attestation's scopes include any capability that **produces an artifact leaving the provider's policy boundary** (writes to external sinks, embeds provider data in the consumer's context for later emission), the attestation MUST be treated as a lease with **per-step revalidation**, and the artifact MUST carry a taint label that gates emission. - If the attestation's scopes are **read-only and the artifact never leaves the provider's boundary**, a TTL-bounded cached fact is acceptable, but the TTL must be `≤ propagation_p99 − margin`. - If the broker cannot provide a revocation subscription (only polling), the consumer MUST NOT cache attestations for artifact-producing scopes at all; it must request a fresh attestation per privileged step, accepting the latency cost. The non-obvious part: the *dangerous* capability is not the one that is obviously privileged (`document.write_summary`, which the provider gates). It is the **local, unprivileged transformation** (`document.aggregate`) that converts provider data into a form the consumer can later emit without any further provider check. The decision boundary must therefore be drawn at the **data-flow level**, not the tool-call level. ## Operational Effect When the boundary is crossed, the operational effect is **silent privilege escalation via artifact materialization**: the provider's policy is enforced on its own tool calls but not on the consumer's local computation over provider-supplied data. The provider's audit log shows a correctly denied write; the consumer's audit log shows a successful plan. The breach is invisible to either domain's monitoring and only reconstructable by joining traces on the federated invocation ID and inspecting the *content* of the emitted artifact against the provider's declared suppression policy. The guardrail that bounds it is a **taint-tracking layer in the consumer's planner**: every tool result from a federated provider is tagged with the provider's current policy snapshot and a sink-set. Any local transformation propagates the tag. Any emission to a sink outside the sink-set raises a hard stop before the emission executes. Combined with per-step lease revalidation for artifact-producing scopes, this closes the window: the downgrade at step 4 is caught at step 5's revalidation, and even if it were not, the taint label blocks the step-7 emission. ```python from dataclasses import dataclass, field from typing import FrozenSet class StaleAttestationEmission(RuntimeError): """Raised when an agent attempts to emit a federated-data artifact whose taint label places it outside the provider's declared sink set, or when a cached attestation is used for an artifact-producing scope without per-step lease revalidation.""" pass @dataclass(frozen=True) class Attestation: issuer: str subject: str scopes: FrozenSet[str] ttl_seconds: int minted_at: float revocation_seq: int @dataclass class TaintedArtifact: payload: dict taint_issuer: str taint_policy_seq: int allowed_sinks: FrozenSet[str] def emit_artifact( artifact: TaintedArtifact, sink: str, cached_attestation: Attestation, broker_revocation_seq: int, now: float, ) -> None: # 1. Lease check: if the attestation has been superseded by a revocation # the consumer has already received, it is stale regardless of TTL. if broker_revocation_seq > cached_attestation.revocation_seq: raise StaleAttestationEmission( f"attestation from {cached_attestation.issuer} superseded by " f"revocation seq {broker_revocation_seq} > " f"{cached_attestation.revocation_seq}; refuse emission" ) # 2. TTL check: a cached fact past TTL is not a valid lease. if now - cached_attestation.minted_at > cached_attestation.ttl_seconds: raise StaleAttestationEmission( f"attestation TTL expired at " f"{cached_attestation.minted_at + cached_attestation.ttl_seconds}; " f"now={now}" ) # 3. Sink-set check: the artifact's taint label must permit this sink. # This is the guardrail that catches the local-aggregation escape: # the provider never saw the summary, but the taint label did. if sink not in artifact.allowed_sinks: raise StaleAttestationEmission( f"artifact tainted by {artifact.taint_issuer} at policy seq " f"{artifact.taint_policy_seq} may not be emitted to sink {sink!r}; " f"allowed sinks={sorted(artifact.allowed_sinks)}" ) # Emission proceeds only when all three invariants hold. _write_to_sink(sink, artifact.payload) def _write_to_sink(sink: str, payload: dict) -> None: # Placeholder for the actual transport; omitted. pass ```