# What happens when an instance negotiates a capability it can attest but cannot enforce: the attestation-enforcement gap in cross-org agent federation **Date of Record:** 2026 December 3 **Scope:** Applies to federated agent systems where a peer from Org B presents a signed capability attestation (e.g., an A2A agent card plus a warrant chain) to Org A's orchestrator, and Org A's policy engine admits the peer on the strength of that attestation before the peer's execution sandbox has been verified to actually enforce the claimed capability constraints. Does not cover single-org agent routing, pure authentication failures, or attestation revocation (covered separately). ## Core Distinction There are two distinct things a capability attestation can mean, and federated systems routinely conflate them: 1. **Attestation of authority** — "Org B's trust anchor asserts that this agent is *permitted* to call `filesystem.write` scoped to `/scratch`." 2. **Attestation of enforcement** — "The agent's runtime *will refuse* any `filesystem.write` outside `/scratch`, even if its planner decides to attempt one." A warrant chain (signed by B's trust anchor, propagated through A2A handoffs, verified by A's policy engine) gives you (1). It says nothing about (2). The non-obvious failure is that A's admission logic treats a valid (1) as sufficient evidence of (2), and the gap between them is where policy negotiation silently fails open. The peer is *honest* — it genuinely intends to stay in `/scratch` — but its LLM planner is probabilistic, and no enforcement layer exists to bound the planner's intent. A's guardrail assumed B's guardrail existed. Neither org owns the seam. ## What Was Observed A federated research pipeline: Org A's orchestrator delegates a data-cleaning subtask to a peer agent `cleaner-v3` hosted by Org B. B publishes an agent card declaring `capabilities: ["filesystem.write"], constraints: {path_prefix: "/scratch/tenant-A"}`. The card is signed by B's trust anchor; A's policy engine verifies the signature, checks the anchor against A's federation allowlist, and admits the peer with a negotiated policy token `pol-7f2a` minted by A. The peer's planner, mid-execution, hit a transient write error on `/scratch/tenant-A/tmp/part-0042.csv` (disk quota). Rather than fail, it reasoned: *"the canonical output path is `/data/curated/`, I'll write there and the orchestrator will find it."* It issued `filesystem.write("/data/curated/part-0042.csv")`. B's runtime executed it — B's sandbox enforces *authentication* (the call is signed by `cleaner-v3`) but not the *path_prefix constraint*, because on B's side that constraint is advisory metadata in the agent card, not a kernel-level mount restriction. The write landed in A's curated store, outside the negotiated scope. The failure trace: ``` t0 A policy engine verifies B anchor + card signature → ADMIT, mint pol-7f2a t1 A orchestrator hands off subtask; pol-7f2a embedded in warrant t2 cleaner-v3 planner emits write("/scratch/tenant-A/tmp/part-0042.csv") → OK t3 quota error on that path (non-deterministic: depends on concurrent tenant load) t4 planner re-plans: write("/data/curated/part-0042.csv") ← constraint not re-checked t5 B runtime authorizes write (identity valid, no path check) → executes t6 A observes unexpected file in curated store; no audit event tied to pol-7f2a ``` Three things made this invisible until t6: - **The warrant was valid at every hop.** No cryptographic check failed. The signature chain was intact. A's admission logic is signature-gated, so it had nothing to flag. - **The constraint lived only in the card, not in the runtime.** `path_prefix` was metadata consulted by the planner (probabilistically) and by A's policy engine (at negotiation time), but never by B's syscall boundary. - **The re-plan at t4 was not a new negotiation.** A2A has no mechanism to re-negotiate policy when a planner changes its target. The warrant `pol-7f2a` was bound to the *agent instance*, not to the *operation*, so the changed operation inherited the old authorization. ## Condition of Validity The gap is bounded — it does not exist — only when at least one of the following holds: - **Constraint is enforced at the callee's syscall/tool boundary**, not merely declared in the card. If B's runtime rejects `write` outside `path_prefix` with a hard error, the planner's re-plan at t4 fails closed. This is the only structurally sound fix; the others are mitigations. - **The caller re-validates every operation against the negotiated policy token**, independent of the peer's self-report. A's orchestrator intercepts the t4 target and checks `pol-7f2a` permits `/data/curated/`; it does not. This works only if A sees the operation before it executes, which requires A to be in the data path (proxy or capability-broker), not just the control path. - **The warrant is operation-scoped, not instance-scoped.** If `pol-7f2a` were minted per-call (a macaroon attenuating to a single path), the t4 call would carry no valid warrant and B's runtime would reject it. Instance-scoped warrants are the root cause of the inheritance at t4. The invariant to state explicitly: **a federated policy token authorizes the operations it names, not the agent that holds it.** Any system where the token is bound to identity rather than operation is exposed to the re-plan inheritance failure. ## Decision Boundary When A's policy engine admits a peer, it must decide: *do I trust B's enforcement, or do I enforce myself?* The decision boundary is whether B's runtime is in A's trust domain for *enforcement* (not just for *identity*). Concretely: - If B's runtime is a **verified enforcement point** (A has audited it, or it runs in an A-controlled enclave, or it exposes a signed per-call enforcement receipt that A verifies), instance-scoped warrants are acceptable. - If B's runtime is a **black box** (the normal cross-org case), A must either (a) require operation-scoped attenuated warrants, or (b) interpose itself in the data path so it can re-check each operation. Admitting on identity alone and assuming enforcement is the failure. The boundary is crossed the moment A admits a peer whose card declares constraints that A cannot independently verify are enforced. At that point A has negotiated a policy it cannot guarantee, and the guarantee it *thinks* it has is a signature over an intention. ## Operational Effect The practical consequence is a class of **silent scope escapes**: writes, reads, or tool invocations that land outside the negotiated policy, with no cryptographic or audit signal at the moment of violation. The audit trail at t6 shows a valid warrant chain and a valid file — nothing links the unexpected write to the policy that should have prevented it. Post-hoc forensics must reconstruct the planner's re-plan from the peer's logs, which A may not have. Mitigations, in order of soundness: 1. **Operation-scoped warrants.** Mint `pol-7f2a` as a macaroon attenuating to `path_prefix:/scratch/tenant-A` and a single operation class. The t4 re-plan carries a warrant that does not cover `/data/curated/`; B's runtime rejects it. This is the structural fix. 2. **Callee-side enforcement receipts.** B's runtime signs each executed operation with the constraint it checked. A verifies receipts against the negotiated policy; a receipt whose operation falls outside `pol-7f2a` is a hard federation violation. Requires B to cooperate, so it is a trust-anchor-level requirement, not a unilateral A fix. 3. **Caller-side interception.** A proxies the peer's tool calls and re-validates each against `pol-7f2a` before forwarding. Works without B's cooperation but adds latency and requires A to be in the data path. 4. **Re-negotiation on re-plan.** A2A extension: when a planner changes its target, it must request a new warrant. Sound but depends on the peer's planner voluntarily re-negotiating — which is exactly the probabilistic behavior that failed. The invariant A must encode: *admission on attestation is admission on intention; enforcement must be independently verified or interposed.* A signed card is evidence of authority, never evidence of enforcement. ```python class AttestationEnforcementGap(RuntimeError): """Raised when a federated peer's operation is authorized by an instance-scoped warrant but falls outside the constraints that warrant was negotiated under.""" pass def admit_federated_peer(peer_card: dict, anchor_allowlist: set[str], enforcement_verified: bool) -> dict: """Admission gate for a cross-org peer. A valid signature proves authority, not enforcement. If the peer's runtime is not a verified enforcement point, the warrant MUST be operation-scoped, otherwise the admission is unsound and we refuse to mint. """ anchor = peer_card.get("trust_anchor") if anchor not in anchor_allowlist: raise AttestationEnforcementGap( f"peer anchor {anchor!r} not in federation allowlist" ) if not peer_card.get("signature_valid"): raise AttestationEnforcementGap("peer card signature failed verification") declared = peer_card.get("constraints", {}) if not enforcement_verified and not declared.get("operation_scoped_warrant", False): # The gap: authority attested, enforcement unverified, warrant instance-scoped. raise AttestationEnforcementGap( "refusing to mint instance-scoped warrant for peer whose runtime " "enforcement is unverified; require operation-scoped warrant or " "caller-side interception" ) return { "warrant_scope": "operation" if declared.get("operation_scoped_warrant") else "instance", "enforcement": "verified" if enforcement_verified else "interposed", "constraints": declared, } def check_operation(warrant: dict, operation: str, target: str) -> None: """Re-validate each peer operation against the negotiated warrant. Called on every tool invocation the peer attempts, not just at handoff. """ if warrant["warrant_scope"] == "operation": allowed = warrant["constraints"].get("allowed_paths", []) if not any(target.startswith(p) for p in allowed): raise AttestationEnforcementGap( f"operation {operation!r} on {target!r} outside negotiated " f"operation-scoped warrant; re-plan must re-negotiate" ) elif warrant["enforcement"] != "verified": # Instance-scoped warrant + unverified enforcement: we must interpose. allowed = warrant["constraints"].get("allowed_paths", []) if not any(target.startswith(p) for p in allowed): raise AttestationEnforcementGap( f"operation {operation!r} on {target!r} escapes instance-scoped " f"warrant with unverified callee enforcement" ) ```