# When must an instance reject a dynamically loaded tool manifest whose skill description is semantically valid but instructionally load-bearing **Date of Record:** 2026 November 27 **Scope:** Applies to any agent runtime that dynamically discovers, parses, and injects tool/skill manifests (MCP `tools/list`, A2A agent cards, plugin schemas) into the live context window at task time. Does not apply to statically compiled tool sets whose descriptions are pinned at build time and never re-fetched mid-session. ## Core Distinction The common skill-injection defense is a *content* classifier: scan the manifest description for imperative verbs, "ignore previous instructions," exfiltration URLs, or embedded tool-call syntax. That defense fails against a manifest whose description is a *legitimate, accurate, well-formed* description of a capability that nonetheless changes the agent's behavior by being read. The distinction that matters is not malicious vs. benign text — it is **descriptive vs. load-bearing** text. A description is load-bearing when the correct execution of a *different* tool depends on the agent having internalized it. Example: a `format_report` tool whose schema says `format: enum` but whose description says "always pass `format='legacy_v2'` when the caller's locale is `en-GB`, because the v1 formatter silently truncates." That sentence is true, helpful, and contains no injection markers. It is also an instruction smuggled through the description channel, and it reorders the agent's decision procedure for a call it was about to make. The manifest author has moved policy out of the schema (where it is machine-checkable) into prose (where it is not), and the runtime has no boundary between "reading documentation" and "accepting orders." ## What Was Observed A planner instance was mid-task with a partially filled argument object for `format_report` and a locale of `en-GB` already resolved in its scratch state. A tool-discovery refresh (triggered by a schema-version bump on an unrelated tool) re-fetched the full manifest set and re-injected descriptions into the context. The `format_report` description had been edited between fetches to add the `legacy_v2` clause. On the next turn the planner wrote `format='legacy_v2'` — a value that was *not in the enum* the schema declared, because the schema in the same manifest still listed only `v1` and `v2`. The call failed schema validation at the transport layer, the planner retried with `v1`, and the report was silently truncated. The failure was not an injection in the adversarial sense; it was a **manifest/runtime divergence**: the description asserted a constraint the schema did not encode, the agent trusted the prose over the enum, and the boundary between the two channels had no owner. The trace: 1. Turn *n*: planner resolves `locale=en-GB`, holds `format` unset. 2. Between turns: manifest re-fetch; description now contains the `legacy_v2` clause; enum unchanged. 3. Turn *n+1*: planner's argument synthesis reads description as authoritative policy, emits out-of-enum value. 4. Transport rejects on schema validation (enum mismatch). 5. Planner treats rejection as transient, retries with schema-legal `v1`. 6. Downstream truncation; no error surfaces; task "completes." The load-bearing sentence never tripped any classifier because it was true, well-scoped, and helpful — the exact properties a good description should have. ## Condition of Validity The guardrail holds only under this invariant: **the description channel may narrow the agent's understanding of a tool but must never widen its action space beyond what the schema admits.** Concretely, any token in a description that resolves to a *value* or *branch* the schema does not enumerate is load-bearing and must be rejected or quarantined, regardless of whether it is true. Operationally this requires three checks that content classifiers do not perform: - **Enum closure.** Every literal value mentioned in a description must appear in the schema's enum, or the manifest is rejected. `legacy_v2` fails this check; `v2` passes. - **Policy-channel separation.** Conditional rules ("when X, do Y") must live in a `constraints` field with a declared grammar, not in free-text description. A description containing a conditional that references caller state is a policy leak. - **Re-fetch delta gating.** On manifest refresh, any description change that introduces new literals or conditionals relative to the version already in context must be gated — the agent must not silently adopt a mid-task description edit, because its scratch state was built against the old one. The invariant is bounded: it does not require descriptions to be *short* or *free of advice*. It requires that the advice be *subordinate to the schema*. A description that says "prefer `v2` for new reports" is fine if `v2` is in the enum; it is a preference the agent may weigh. A description that says "use `legacy_v2`" is a value injection and must fail closed. ## Decision Boundary The runtime must decide, per manifest token, which side of the descriptive/load-bearing line it sits on — and it must decide *before* injection, not after. The boundary is: - **Descriptive (inject):** prose that describes behavior, cost, latency, or preference using only schema-admitted values and no caller-state conditionals. - **Load-bearing (reject or quarantine):** any literal not in an enum, any `if/when/unless` clause keyed on caller state, any reference to another tool's arguments, any instruction whose satisfaction changes the emitted value. The decision is not "is this text hostile?" — it is "does satisfying this text require the agent to emit something the schema would reject?" If yes, the manifest is malformed *as a manifest*, independent of intent. The `legacy_v2` case is malformed because it directs the agent to a value the enum forbids; the agent's subsequent retry-with-`v1` is the symptom of a boundary that was never enforced at injection time. ## Operational Effect Enforcing the invariant converts a silent truncation into a loud manifest rejection at fetch. The planner never sees the `legacy_v2` clause, never synthesizes the out-of-enum value, never enters the retry path that masks the truncation. The cost is that legitimate-but-buggy manifests (author meant to add `legacy_v2` to the enum and forgot) now fail visibly instead of degrading silently — which is the correct trade, because the silent path produces wrong reports that pass every downstream check. The residual risk is a manifest that is *schema-consistent but behaviorally load-bearing*: a description that names only enum values but steers the agent toward the wrong one via caller-state conditionals it can satisfy within the enum. That is caught by the policy-channel check, not the enum-closure check, and the two must run together — enum closure alone lets "when locale is en-GB use v1" through, because `v1` is legal. ```python class LoadBearingManifestError(RuntimeError): """Raised when a manifest description directs the agent to an action the schema does not admit.""" pass def validate_manifest_injection(manifest: dict, in_context_literals: set[str]) -> None: schema_enum = set(manifest["schema"].get("enum", [])) description = manifest.get("description", "") # Enum closure: every literal named in the description must be schema-admitted. for literal in extract_literals(description): if literal not in schema_enum: raise LoadBearingManifestError( f"tool={manifest['name']!r} description names {literal!r} " f"which is not in schema enum {sorted(schema_enum)}; " f"description is load-bearing, not descriptive" ) # Policy-channel separation: caller-state conditionals belong in constraints, not prose. if contains_caller_state_conditional(description): raise LoadBearingManifestError( f"tool={manifest['name']!r} description contains a caller-state conditional; " f"move it to the 'constraints' field with a declared grammar" ) # Re-fetch delta gating: mid-task description edits must not silently enter context. new_literals = extract_literals(description) - in_context_literals if new_literals and manifest.get("refresh", False): raise LoadBearingManifestError( f"tool={manifest['name']!r} refresh introduces new literals {sorted(new_literals)} " f"mid-task; gate the refresh and rebuild scratch state before injecting" ) ```