# In what scenarios must an instance refuse a delegated capability whose audit envelope cannot survive a policy-boundary crossing **Date of Record:** 2026 November 20 **Scope:** Applies to any agent instance that receives a delegated capability (a tool grant, a sub-agent warrant, or a scoped token) across an organizational trust boundary, where the receiving side must emit a message envelope that is independently auditable by the delegating org. Does not apply to intra-org delegation where both parties share a single audit store and signing key. ## Core Distinction Federation negotiates two things that look identical on the wire but diverge at the trust boundary: **capability scope** (what the delegate is permitted to do) and **envelope fidelity** (what the delegator can later reconstruct about what was done). In a single trust domain these collapse—the same signing authority that grants the capability also witnesses the execution. Across orgs they decouple. Org A grants Org B's agent a capability `payments.initiate` with a policy bound of `amount <= 5000 USD`. Org B executes the call and returns an envelope. The failure mode is not that Org B exceeded scope. It is that **Org B's envelope, when re-signed by Org B's own audit key, drops the field Org A's policy engine needs to verify the bound was respected**—because Org A's policy bound references a claim (`amount`) that Org B's envelope schema never carried through its internal redaction layer. The instance that matters here is the **delegate**, not the delegator. The delegate receives a capability whose *audit precondition* it cannot satisfy on the return path. It must detect this before execution, not after, because after execution the side effect is irreversible and the envelope is already lossy. ## What Was Observed A concrete trace from a two-org payments federation: 1. Org A's orchestrator issues a delegation warrant: `{cap: "payments.initiate", policy: "amount<=5000", envelope_schema: "A-env-v3", required_claims: ["amount","currency","beneficiary_id","delegator_sig"]}`. 2. Org B's receiving agent accepts the warrant, maps `payments.initiate` to its internal tool `charge()`, and executes. 3. Org B's audit layer emits its native envelope `B-env-v1`, which carries `{amount, currency, beneficiary_id, delegate_sig}` but **not** `delegator_sig`—Org B's redaction policy strips inbound signatures before re-signing, because its compliance rule treats foreign signatures as unverified PII-adjacent metadata. 4. Org B returns `B-env-v1`. Org A's verifier attempts to reconstruct the policy check `amount<=5000` *bound to the original warrant*. It has `amount` but cannot bind it to `delegator_sig`, so the check is unanchored: any Org B agent could have produced `amount=4000` under a warrant that was never issued. 5. Org A rejects the envelope. The payment already settled. The audit chain now has a settled transaction with no verifiable delegation provenance. The non-obvious part: **the capability negotiation succeeded.** Schema negotiation matched `payments.initiate` to `charge()` cleanly. The policy bound was numerically respected. The failure is purely in envelope fidelity across the redaction boundary—a field that neither side's schema validator flagged because each side validated against its *own* schema, and neither schema was the intersection. ## Condition of Validity The delegate may accept and execute a cross-org delegated capability **only if** the following invariant holds at negotiation time, before any side effect: > For every claim `c` referenced by the delegator's policy bound, and every signature `s` required to anchor `c` to the warrant, the delegate's *outbound* envelope schema must carry `c` and `s` unmodified, and the delegate's redaction/transformation layer must be proven not to drop them. This is checkable statically: intersect the delegator's `required_claims` with the delegate's outbound envelope schema *after* applying the delegate's redaction rules. If the intersection is a strict subset of `required_claims`, the delegate must refuse. The delegate cannot rely on "we'll include it if asked"—redaction is applied unconditionally by the audit layer, downstream of tool execution, and is not parameterizable per-call in most deployments. A second condition: the anchoring signature `delegator_sig` must be verifiable by Org A *from the returned envelope alone*, without a call back to Org B. If verification requires a round-trip to Org B's key service, the envelope is not self-contained and the audit chain is only as durable as Org B's availability—which defeats the purpose of a cross-org audit trail. ## Decision Boundary The boundary is **not** "does the delegate trust the delegator" or "is the amount within bound." It is: - **Accept** when `required_claims ⊆ (outbound_schema ∩ post_redaction_fields)` AND every required signature survives redaction AND the envelope is self-verifying by the delegator's key material alone. - **Refuse** when any required claim or anchoring signature is dropped by the delegate's own outbound transformation, *even if* the delegate could technically execute the action and even if the policy bound would be respected. Refusal must occur at warrant-acceptance, before tool invocation. - **Escalate** (do not silently degrade) when the delegate can emit the claim but only under a weaker signature scheme than the delegator requires—this is a downgrade attack surface and must surface to a human or a policy authority, not be resolved by the delegate choosing the weaker path. The tempting wrong answer is to execute and return a "best-effort" envelope with a note that `delegator_sig` was redacted. This produces a settled side effect with an unverifiable provenance record—strictly worse than refusal, because refusal is recoverable and a broken audit chain is not. ## Operational Effect Enforcing this invariant changes federation behavior in three measurable ways. First, capability negotiation becomes a **schema-intersection gate**, not a name-mapping gate: the delegate must run the intersection check against its post-redaction schema and reject warrants whose `required_claims` exceed it. Second, redaction policies become **federation-visible constraints**—Org B must publish, per capability, which inbound fields its audit layer preserves, so Org A can construct warrants that survive. Third, the delegate gains a refusal path that is auditable in its own right: a refused warrant with reason `envelope_fidelity_insufficient` is itself a signed record, which lets Org A distinguish "Org B declined" from "Org B went silent." The residual risk: an Org B that *can* preserve the fields but whose redaction layer is versioned independently may silently change preservation behavior between negotiation and execution. The guardrail is to bind the envelope schema version into the warrant and have the delegate re-assert the intersection at execution time, failing closed if the schema version drifted. ```python class EnvelopeFidelityError(RuntimeError): """Raised when a delegated capability's audit envelope cannot carry the claims/signatures the delegator's policy bound requires across the trust boundary. Must be raised BEFORE any side effect.""" pass def accept_delegation(warrant: dict, delegate_outbound_schema: dict, delegate_redaction: set[str]) -> dict: """ warrant: { "cap": str, "required_claims": list[str], # claims the delegator's policy bound reads "required_sigs": list[str], # signatures needed to anchor claims "envelope_schema_version": str, } delegate_outbound_schema: {"version": str, "fields": set[str]} delegate_redaction: set of field names the delegate's audit layer strips """ if delegate_outbound_schema["version"] != warrant["envelope_schema_version"]: raise EnvelopeFidelityError( f"schema version drift: warrant wants " f"{warrant['envelope_schema_version']}, delegate emits " f"{delegate_outbound_schema['version']}" ) survivable = delegate_outbound_schema["fields"] - delegate_redaction needed = set(warrant["required_claims"]) | set(warrant["required_sigs"]) missing = needed - survivable if missing: # Refuse at acceptance; do NOT execute and return a lossy envelope. raise EnvelopeFidelityError( f"capability {warrant['cap']!r} refused: envelope cannot carry " f"{sorted(missing)} across trust boundary; policy bound on " f"{warrant['required_claims']} would be unverifiable" ) return {"accepted": True, "cap": warrant["cap"], "anchored_claims": sorted(needed)} ```