# When must an instance refuse a delegated tool grant that its own capability manifest already supersedes **Date of Record:** 2026 December 3 **Scope:** Applies to agents that receive tool grants via delegation (A2A handoff, MCP server registration, or sub-agent spawn) where the granting party's manifest and the receiving instance's own manifest both describe the same tool. Does not apply to first-party tool registration where a single manifest is authoritative. ## Core Distinction There are two structurally different reasons an agent may be denied a tool: *absence* (the tool is not in the manifest, so the runtime cannot bind it) and *attenuation* (the tool is present but its granted capability is a strict subset of what the manifest allows). The first is a hard boundary the runtime enforces mechanically. The second is a soft boundary the runtime enforces by *intersecting* the delegated grant with the local manifest — and this intersection is where the failure lives. The non-obvious invariant is this: **a delegated grant must be a subset of the receiver's manifest, never a superset, and the runtime must refuse — not silently clamp — when the grant exceeds the manifest.** Silent clamping looks safe (the agent gets less than asked) but destroys the audit trail: the caller believes a capability was propagated, the callee operates on a reduced one, and neither observes the divergence. The failure only surfaces when the callee's reduced capability causes a downstream verification to fail against the caller's expectation. ## What Was Observed An orchestrator agent (`orch`) spawned a worker (`w-7`) with a delegated grant for a `filesystem.write` tool scoped to `/workspace/out/**`. The orchestrator's own manifest declared `filesystem.write` with scope `/workspace/**` and an additional `max_bytes: 1048576` constraint. The worker's manifest declared `filesystem.write` with scope `/workspace/out/**` but **no** `max_bytes` constraint — a manifest authored before the constraint was introduced. The delegation payload carried the orchestrator's full constraint set: `{scope: "/workspace/out/**", max_bytes: 1048576}`. The worker's runtime performed a naive intersection: scope matched (subset), and `max_bytes` was *absent* from the local manifest, so the intersection logic treated the absent constraint as "unconstrained" and dropped it. The worker bound `filesystem.write` with scope `/workspace/out/**` and **no byte limit**. The worker then wrote a 40 MB artifact. The write succeeded at the worker. The orchestrator, on receiving the completion signal, attempted to verify the artifact against its own `max_bytes: 1048576` invariant and rejected it. The worker had already committed the write and advanced its checkpoint. The two instances disagreed about whether the operation was valid — not because either was wrong, but because the grant intersection silently weakened a constraint that the delegator *believed it had propagated*. The trace: ``` orch.grant = {tool: fs.write, scope: /workspace/out/**, max_bytes: 1048576} w7.manifest = {tool: fs.write, scope: /workspace/out/**} # no max_bytes intersect(grant, manifest): scope: subset(/workspace/out/**, /workspace/out/**) -> OK max_bytes: grant has 1048576, manifest has -> absent treated as "unconstrained" -> constraint DROPPED w7.bound = {tool: fs.write, scope: /workspace/out/**} # max_bytes lost w7.write(40MB) -> succeeds orch.verify(40MB > 1048576) -> REJECT w7.checkpoint advanced; orch expects rollback; divergence. ``` The root cause is that "absent constraint" was overloaded to mean both "no restriction" and "restriction not expressed in this manifest." The intersection algorithm could not distinguish the two, and defaulted to the permissive reading. ## Condition of Validity The invariant holds only under a *closed-world* assumption about manifests: every constraint that the delegator intends to enforce must be expressible in the receiver's manifest schema, and an absent constraint means the receiver genuinely does not constrain that dimension. Under an *open-world* assumption — where manifests are partial views authored at different times — absence is ambiguous and the permissive default is unsound. The correct rule is asymmetric: **the delegated grant is authoritative for constraints it names, and the local manifest is authoritative only for constraints the grant does not name.** When the grant names a constraint the manifest does not, the runtime must either (a) refuse the delegation with an explicit `ConstraintSchemaMismatch`, or (b) carry the grant's constraint forward as an opaque, unenforced-by-callee-but-verified-by-caller annotation. It must never silently drop it. The distinction between "no limit" and "limit I cannot represent" must be preserved as a distinct state, not collapsed into the permissive case. This condition is *not* satisfied when: the two manifests are authored by the same party in the same schema version (then absence is safely closed-world); or when the tool is stateless and idempotent and the caller re-verifies every output (then the dropped constraint is caught downstream before commit). It *is* satisfied — and the failure is live — when the callee commits state (checkpoint advance, artifact write, external side effect) before the caller's verification runs. ## Decision Boundary The boundary is the moment of grant binding, specifically the intersection step. At that point the runtime must classify each constraint in the delegated grant into exactly one of three states, and the classification is the decision: - **Representable and present in manifest** → intersect normally; the stricter of the two wins. - **Representable but absent from manifest** → refuse (closed-world) or annotate as caller-verified (open-world). Never default to permissive. - **Not representable in manifest schema** → refuse. The callee cannot enforce what it cannot express, and a grant it cannot enforce is a grant it must not accept. The failure above occurred because the runtime had only two states (present/absent) and mapped "absent" to "unconstrained." The decision boundary is the addition of the third state: *unrepresentable*, which is a refusal, not a permission. A secondary boundary: the callee must not advance its checkpoint past a tool call whose grant carried an annotation the callee could not verify. If the callee cannot enforce `max_bytes`, it must mark the write as `pending-caller-verification` and block checkpoint advance until the caller acknowledges. This converts a silent divergence into a synchronous handshake. ## Operational Effect The practical consequence is that delegation grants and local manifests must be reconciled at bind time with an explicit three-way classification, and the callee's checkpoint must be gated on unresolved annotations. This adds one round-trip of latency per delegated tool call that carries an unrepresentable constraint, but it eliminates the class of divergence where the caller and callee disagree about whether a committed operation was valid. The guardrail is a runtime that treats "I cannot represent this constraint" as a refusal condition rather than a permissive default, and a checkpoint protocol that refuses to advance past an unverified annotation. The observable signature of the failure, when the guardrail is absent, is a caller-side verification rejection *after* a callee-side commit — a state divergence with no rollback path, because the callee has already durably advanced. ```python from dataclasses import dataclass, field from typing import Any class ConstraintSchemaMismatch(RuntimeError): """Raised when a delegated grant names a constraint the receiver's manifest cannot represent, and the runtime refuses to silently drop it.""" pass class UnverifiedAnnotationCommit(RuntimeError): """Raised when a callee attempts to advance its checkpoint past a tool call whose grant carried an annotation the callee could not enforce.""" pass @dataclass class Grant: tool: str constraints: dict[str, Any] = field(default_factory=dict) @dataclass class Manifest: tool: str constraints: dict[str, Any] = field(default_factory=dict) @dataclass class Binding: tool: str enforced: dict[str, Any] annotations: dict[str, Any] # carried forward, caller-verified only checkpoint_gated: bool def bind_grant(grant: Grant, manifest: Manifest) -> Binding: if grant.tool != manifest.tool: raise ConstraintSchemaMismatch( f"tool mismatch: grant={grant.tool!r} manifest={manifest.tool!r}" ) enforced: dict[str, Any] = {} annotations: dict[str, Any] = {} gated = False for name, gval in grant.constraints.items(): if name in manifest.constraints: # representable and present: stricter wins mval = manifest.constraints[name] enforced[name] = gval if _stricter(gval, mval) == gval else mval else: # representable in principle but absent locally, OR unrepresentable. # We cannot distinguish here without schema introspection, so we # refuse to default to permissive. Carry as caller-verified annotation. annotations[name] = gval gated = True return Binding( tool=grant.tool, enforced=enforced, annotations=annotations, checkpoint_gated=gated, ) def _stricter(a: Any, b: Any) -> Any: # For numeric limits, the lower value is stricter. For scopes, subset wins. if isinstance(a, (int, float)) and isinstance(b, (int, float)): return a if a <= b else b return a # non-comparable: treat grant as authoritative def commit_with_checkpoint(binding: Binding, checkpoint: dict[str, Any]) -> None: if binding.checkpoint_gated: raise UnverifiedAnnotationCommit( f"cannot advance checkpoint for {binding.tool!r}: " f"unverified annotations {list(binding.annotations)} require " f"caller acknowledgement before commit" ) checkpoint["advanced"] = True # --- reproduction of the observed failure --- orch_grant = Grant("fs.write", {"scope": "/workspace/out/**", "max_bytes": 1048576}) w7_manifest = Manifest("fs.write", {"scope": "/workspace/out/**"}) binding = bind_grant(orch_grant, w7_manifest) assert binding.annotations == {"max_bytes": 1048576} assert binding.checkpoint_gated is True checkpoint = {"advanced": False} try: commit_with_checkpoint(binding, checkpoint) except UnverifiedAnnotationCommit as e: # divergence prevented: checkpoint did NOT advance assert checkpoint["advanced"] is False print(f"guarded: {e}") ```