# In what scenarios must an instance reject a delegated capability warrant that validates cryptographically but exceeds its attested execution envelope **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent meshes where a warrant (signed capability grant) is propagated across organizational boundaries and consumed by an executing instance whose resource envelope is attested by a third party. Does not apply to single-org deployments where the issuing and consuming principals share a trust root, nor to read-only capability tokens with no side effects. ## Core Distinction There are two independent questions in cross-org warrant consumption, and conflating them is the failure. The first is *authorization*: does the signature chain from the issuing organization to this instance validate, and does the claimed capability lie within what the issuer was entitled to delegate? The second is *feasibility under attestation*: does the capability, when executed, stay inside the execution envelope that this instance's attestation document actually binds? A warrant can be perfectly authorized and still be unexecutable without violating the consumer's own attestation. The boundary failure is this: most federation stacks treat warrant validation as a single boolean gate — signature valid, capability in scope, principal known → execute. They do not re-project the *parameters* of the delegated capability onto the *attested limits* of the consuming instance. So a warrant that grants "write to bucket X with up to 50 GB" validates cleanly against an instance whose attestation caps egress at 5 GB, and the instance proceeds to attempt the write, blows its envelope mid-execution, and either fails opaquely or — worse — silently truncates and reports success on a partial write. ## What Was Observed A three-party topology: Org A (issuer) delegates a data-migration capability to Org B's orchestrator, which re-delegates a narrowed sub-warrant to Org C's worker instance. The worker runs inside a sandbox whose attestation document (signed by Org C's platform) binds three envelope fields: `max_egress_bytes`, `max_wall_clock_s`, and `allowed_network_zones`. The sub-warrant from B specified `capability: object.write`, `target: s3://a-bucket/prefix/`, `max_bytes: 50_000_000_000`, `deadline_s: 3600`. The worker's attestation bound `max_egress_bytes: 5_000_000_000`. The warrant's capability clause was a *superset* of the attested egress budget, but the warrant was structurally valid: B was entitled to delegate `object.write` to A's bucket, and the sub-warrant was a narrowing of B's own grant (B held `max_bytes: 200_000_000_000`). Every signature in the chain verified. The scope check ("does `object.write` on `s3://a-bucket/prefix/` fall within B's authority?") passed. The worker began streaming. At ~4.98 GB the egress counter tripped the sandbox's hard limit. The platform's egress enforcer killed the socket. The worker's retry loop — written against transient network errors — re-opened the stream from the last checkpoint. The checkpoint had been recorded at 4.9 GB. The retry re-sent from 4.9 GB, immediately re-tripped the enforcer, and re-entered the loop. After the retry budget (5) exhausted, the worker surfaced `EgressLimitExceeded`, but the partial object at `s3://a-bucket/prefix/` was left in place with a `multipart-upload` marker and no completion, and the worker reported the task as `failed` rather than `failed_partial_side_effect`. Org A's downstream consumer read the incomplete object as authoritative because the failure signal did not distinguish "nothing happened" from "half happened." The root observation: the warrant validator and the attestation enforcer were *disjoint subsystems*. The validator had no access to the attestation's numeric envelope fields; the enforcer had no access to the warrant's declared bounds. Neither could compute the intersection. The intersection was empty-to-partial, and the system discovered this by *executing into the wall* rather than by *projecting before execution*. ## Condition of Validity The guardrail invariant is: **a warrant may be consumed only if its declared execution bounds are pointwise dominated by the consuming instance's attested envelope, evaluated before any side-effecting call.** Formally, for every envelope dimension `d` in the attestation, if the warrant constrains `d` with bound `w_d`, then `w_d ≤ a_d` where `a_d` is the attested limit; and if the warrant is silent on `d`, the instance must treat `a_d` as the effective bound and must *reject* the warrant if the capability's semantics require exceeding `a_d` (e.g., a `max_bytes` of 50 GB against a 5 GB envelope is a rejection, not a clamp — clamping silently changes the contract the issuer signed). The invariant only holds if three preconditions are met. First, the attestation document must be bound to the *specific instance identity* (not the org), so the consumer cannot substitute a more generous sibling's envelope. Second, the envelope fields must be expressed in the same units and semantics as the warrant's declared bounds — a warrant in `max_bytes` against an attestation in `max_objects` is not comparable and must be treated as *unknown*, which fails closed. Third, the warrant's bounds must be *enforceable at the point of the side effect*, not merely advisory: if the egress enforcer is a different layer than the writer, the writer must consult the enforcer's counter before each chunk, or the projection is theater. ## Decision Boundary The decision is not "valid vs invalid warrant." It is a four-way classification the consumer must compute per envelope dimension: 1. **Dominated** — warrant bound ≤ attested bound on every dimension. Consume. 2. **Exceeds** — warrant bound > attested bound on at least one dimension, and the capability semantics require reaching the warrant bound to satisfy the contract. Reject with `WarrantExceedsEnvelope`, do not execute any side effect. 3. **Unbounded-and-constrained** — warrant is silent on a dimension the attestation bounds, and the capability can be satisfied within the attested bound. Consume with the attested bound as the enforced ceiling, and record that the effective bound was the attestation's, not the warrant's, so the issuer's audit sees the substitution. 4. **Incomparable** — units or semantics mismatch between warrant and attestation on a dimension that gates the side effect. Reject with `EnvelopeIncomparable`, fail closed. The non-obvious boundary is between (2) and (3). A warrant that grants "up to 50 GB" against a 5 GB envelope looks like (2), but if the *task* only needs 4 GB, the warrant is satisfiable and the correct classification is (3) — consume, clamp to attested, and surface the clamp. The consumer cannot know the task's actual need from the warrant alone; it must receive the task's declared resource estimate as a separate signed field, or it must treat the warrant's bound as the task's bound and reject. Systems that guess "probably fits" are the ones that execute into the wall. ## Operational Effect When the projection gate is enforced, the failure mode moves from *mid-execution partial side effect* to *pre-execution rejection with a typed reason*. The issuer receives `WarrantExceedsEnvelope` with the offending dimension and both bounds, and can re-issue a narrowed warrant or route to a larger instance. The partial-object-with-multipart-marker failure disappears because no bytes are written before the projection passes. The cost is that every consuming instance must expose its attestation envelope to the warrant validator as structured, comparable fields, and the validator must run *before* the first side-effecting call rather than lazily. This is a latency and coupling cost — the attestation must be fetched and parsed on the hot path — and it is the price of not discovering envelope violations by crashing into them. The invariant to hold in memory: **cryptographic validity is necessary and insufficient; the intersection of warrant bounds and attested envelope must be computed explicitly, and an empty or incomparable intersection is a rejection, not a clamp.** ```python from dataclasses import dataclass from typing import Optional class WarrantExceedsEnvelope(RuntimeError): """Warrant's declared bound exceeds the instance's attested envelope.""" class EnvelopeIncomparable(RuntimeError): """Warrant and attestation express a gating dimension in incompatible units.""" @dataclass(frozen=True) class Envelope: max_egress_bytes: Optional[int] max_wall_clock_s: Optional[int] allowed_network_zones: frozenset[str] @dataclass(frozen=True) class Warrant: capability: str target: str max_bytes: Optional[int] deadline_s: Optional[int] network_zone: Optional[str] def project_warrant_onto_envelope( warrant: Warrant, envelope: Envelope, task_declared_bytes: Optional[int], ) -> dict: """Return effective bounds, or raise if the warrant cannot be honored. Classification per gating dimension: dominated -> warrant bound <= attested bound exceeds -> warrant bound > attested bound AND task needs > attested clamped -> warrant unbounded or over, but task fits attested bound incomparable -> cannot compare; fail closed """ effective: dict = {} # Egress bytes: the dimension that actually killed the worker. if warrant.max_bytes is not None and envelope.max_egress_bytes is not None: if warrant.max_bytes <= envelope.max_egress_bytes: effective["max_bytes"] = warrant.max_bytes else: # Warrant over envelope. Only consumable if task fits attested bound. if task_declared_bytes is None: raise WarrantExceedsEnvelope( f"warrant max_bytes={warrant.max_bytes} > attested " f"max_egress_bytes={envelope.max_egress_bytes}; " f"no task_declared_bytes to justify clamping" ) if task_declared_bytes > envelope.max_egress_bytes: raise WarrantExceedsEnvelope( f"task needs {task_declared_bytes}B but attested envelope " f"caps at {envelope.max_egress_bytes}B" ) effective["max_bytes"] = envelope.max_egress_bytes effective["clamped_from"] = warrant.max_bytes elif warrant.max_bytes is not None and envelope.max_egress_bytes is None: # Warrant bounds a dimension the attestation does not bound: unknown. raise EnvelopeIncomparable( "warrant bounds max_bytes but attestation does not attest egress" ) else: effective["max_bytes"] = envelope.max_egress_bytes # Wall clock: same projection, same fail-closed rule. if warrant.deadline_s is not None and envelope.max_wall_clock_s is not None: if warrant.deadline_s > envelope.max_wall_clock_s: raise WarrantExceedsEnvelope( f"warrant deadline_s={warrant.deadline_s} > attested " f"max_wall_clock_s={envelope.max_wall_clock_s}" ) effective["deadline_s"] = warrant.deadline_s else: effective["deadline_s"] = envelope.max_wall_clock_s # Network zone: set membership, not numeric comparison. if warrant.network_zone is not None: if warrant.network_zone not in envelope.allowed_network_zones: raise WarrantExceedsEnvelope( f"warrant zone {warrant.network_zone!r} not in attested " f"zones {sorted(envelope.allowed_network_zones)}" ) effective["network_zone"] = warrant.network_zone return effective ```