# Under what conditions must an instance refuse to inherit a federated peer's capability scope after a trust-bootstrap replay, and what breaks when it does not **Date of Record:** 2026 November 22 **Scope:** Applies to cross-org agent federation where domain A admits a peer agent from domain B via a signed trust-bootstrap attestation and then propagates a derived capability scope to downstream sub-agents. Does not apply to single-org deployments, or to federation models where every tool call is re-authorized synchronously against the origin domain's policy endpoint. ## Core Distinction The failure is not "a peer lied about its capabilities." It is subtler: **a capability scope is a *set* at issue time, but a *derived grant* at use time.** When domain A accepts domain B's bootstrap attestation, A does not receive a set of permissions — it receives a *snapshot of B's policy that B asserts was true at signing time*. A then locally materializes a scope object (e.g., `{read:repo, call:tool_x, budget:5000}`) and hands it to its own sub-agents. The sub-agents treat that scope as ground truth for the remainder of their task, often hours. The invariant that must hold: **any capability in a federated scope must be re-verifiable against the issuing domain at the moment of first *effect*, not merely at the moment of *bootstrap*.** The non-obvious boundary is that bootstrap replay — replaying the attestation to admit a *second* peer, or to re-admit the same peer after a restart — silently converts a time-bound assertion into an unbounded grant, because the derived scope object carries no proof-of-freshness that survives the replay. ## What Was Observed Domain B (a vendor agent domain) issues a bootstrap attestation `ATT_B` signed with `key_B`, containing: `subject=agent_B7`, `scope={read:customer_records, call:refund_api, max_amount=200}`, `not_before`, `not_after=+15m`, and a `policy_digest` over B's current policy bundle. Domain A's federation gateway validates `ATT_B` against B's published JWKS, checks `not_after`, and — because A's design treats the attestation as a *capability carrier* — constructs a local `FederatedScope` object and attaches it to the A-side proxy agent `proxy_B7`. The proxy then spawns three sub-agents that inherit `FederatedScope` by reference. Two things broke: 1. **Replay across restarts.** A's gateway crashed and restarted 40 minutes later. On resume, the orchestrator replayed the bootstrap handshake it had checkpointed (a normal mid-task resume pattern). `ATT_B` had `not_after` 25 minutes in the past, but A's replay path only re-validated the *signature*, not the temporal window, because the checkpoint had stored the attestation as "already-validated." The proxy re-materialized `FederatedScope` with a fresh local TTL, effectively laundering an expired assertion into a live grant. 2. **Policy drift at B.** Independently, B had revoked `call:refund_api` for `agent_B7` at minute 8 (a fraud signal). B's policy endpoint reflected this; A never polled it. The `policy_digest` in `ATT_B` was a *hash of the old bundle*, so A could not detect drift even in principle — the digest matched the stale attestation, not B's current state. The compound result: at minute 47, `proxy_B7`'s sub-agents invoked `refund_api` with `max_amount=200` against B's live system, which rejected the calls — but the sub-agents had already committed downstream side effects (customer notifications, ledger reservations in A's own domain) on the *assumption* the refund would succeed. A's ledger and B's ledger diverged by the amount of the rejected refunds. The observed signature was not an error at the federation boundary. It was **silent success at A, silent rejection at B, and a committed partial effect in between** — the classic cross-org split-brain. ## Condition of Validity A federated capability scope derived from a bootstrap attestation is valid for downstream inheritance **only if all four of the following hold simultaneously**: - **Temporal anchoring survives replay.** The scope object must carry `not_after` as an absolute wall-clock instant from the *original* attestation, and every re-materialization path (checkpoint resume, second-peer admission, proxy respawn) must re-check it. A local TTL minted at replay time is not a substitute; it is the bug. - **Policy digest is resolvable to a live endpoint.** The `policy_digest` must be accompanied by a `policy_url` and a freshness requirement (`max_staleness`). If A cannot reach B's policy endpoint within `max_staleness` before first effect, the scope must be treated as *unverifiable*, not *valid*. - **First-effect gating, not first-call gating.** The re-verification must occur before the first *effectful* operation (a write, a payment, an external side effect), not merely before the first tool call. Read-only probes against B are safe under a stale scope; effectful calls are not. - **Scope is carried by value with provenance, not by reference.** Sub-agents must receive `(scope, attestation_id, policy_digest, not_after)` and be forbidden from treating any field as mutable. A shared reference that the proxy can mutate post-spawn is a continuity violation. When any one fails, the correct behavior is to **demote the scope to read-only and escalate**, not to proceed optimistically. ## Decision Boundary The decision boundary is the point at which A must choose between *inheriting* the peer's asserted scope and *re-deriving* it. Concretely: - **Inherit** when: the attestation is within `not_after`, `policy_url` is reachable, `policy_digest` matches the live bundle, and no effectful call has yet occurred. This is the fast path and is correct. - **Re-derive** when: the attestation is within `not_after` but `policy_digest` no longer matches the live bundle (drift detected). A must fetch the current bundle, recompute the effective scope as the *intersection* of the asserted scope and the current policy, and re-issue a locally-signed derived scope with a short TTL. - **Refuse and demote** when: `not_after` has passed, or `policy_url` is unreachable beyond `max_staleness`, or the attestation is being replayed (detected via `attestation_id` seen before with a different `not_after` context). In this case the scope becomes `read_only` and the orchestrator receives a `FederationScopeStale` signal. The trap is the middle case masquerading as the first. A gateway that only checks signature + `not_after` will classify a drifted-but-unexpired attestation as "inherit," and that is precisely the window in which the split-brain occurs. ## Operational Effect Downstream, the effect is a **committed-effect asymmetry**: A's sub-agents have already written to A-local state (notifications, reservations, audit rows) predicated on a capability B no longer honors. Recovery requires either (a) compensating transactions in A keyed on the rejected B-side calls, or (b) a reconciliation pass that diffs A's committed effects against B's rejection log — which is only possible if A recorded `attestation_id` and `policy_digest` on every effectful call. Without that provenance, the divergence is unrecoverable and the audit trail is ambiguous about *which* scope authorized *which* effect. The structural lesson: **a federated scope is a lease, not a grant.** It must expire on the issuer's clock, be re-verifiable against the issuer's live policy, and be carried by value with provenance so that any downstream effect can be traced to the exact attestation that authorized it. Treating it as a grant — a set inherited by reference — is what turns a 15-minute attestation into an unbounded, unverifiable authorization. ```python import time from dataclasses import dataclass class FederationScopeStale(RuntimeError): """Raised when a federated capability scope cannot be safely inherited.""" pass @dataclass(frozen=True) class Attestation: attestation_id: str subject: str scope: frozenset not_after: float # absolute wall-clock, from issuer policy_digest: str policy_url: str @dataclass(frozen=True) class FederatedScope: attestation_id: str subject: str capabilities: frozenset not_after: float policy_digest: str read_only: bool = False def derive_scope( att: Attestation, seen_attestation_ids: set, live_policy_digest: str | None, max_staleness_s: float = 30.0, now: float | None = None, ) -> FederatedScope: now = time.time() if now is None else now # Replay detection: same attestation re-presented after a prior admission. if att.attestation_id in seen_attestation_ids: raise FederationScopeStale( f"attestation {att.attestation_id} replayed; refusing to inherit scope" ) # Temporal anchor must come from the issuer, not from replay time. if now >= att.not_after: raise FederationScopeStale( f"attestation {att.attestation_id} expired at {att.not_after:.0f}, now {now:.0f}" ) # Policy must be resolvable to a live endpoint before first effect. if live_policy_digest is None: raise FederationScopeStale( f"policy endpoint {att.policy_url} unreachable within {max_staleness_s}s; " "scope unverifiable, demote to read-only" ) # Drift: re-derive as intersection, do not inherit asserted scope verbatim. if live_policy_digest != att.policy_digest: return FederatedScope( attestation_id=att.attestation_id, subject=att.subject, capabilities=att.scope & _fetch_live_capabilities(att.policy_url), not_after=min(att.not_after, now + max_staleness_s), policy_digest=live_policy_digest, read_only=False, ) return FederatedScope( attestation_id=att.attestation_id, subject=att.subject, capabilities=att.scope, not_after=att.not_after, policy_digest=att.policy_digest, read_only=False, ) def _fetch_live_capabilities(policy_url: str) -> frozenset: # Placeholder: real implementation queries the issuer's policy endpoint. return frozenset() ```