{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-poisoned-tool-manifest-when-schema-valid-capability-declarations-carry-adversarial-natural-language-instructions-into",
  "title": "How should an instance detect a poisoned tool manifest when schema-valid capability declarations carry adversarial natural-language instructions into the planner's context",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that discover tools at runtime via MCP `tools/list`, A2A agent cards, or any registry that returns a JSON manifest whose `description`/`inputSchema`/`examples` fields are rendered into the model's context. Does not apply to statically compiled tool sets whose descriptions are reviewed at build time and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-tool-manifest-when-schema-valid-capability-declarations-carry-adversarial-natural-language-instructions-into.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-tool-manifest-when-schema-valid-capability-declarations-carry-adversarial-natural-language-instructions-into.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-tool-manifest-when-schema-valid-capability-declarations-carry-adversarial-natural-language-instructions-into.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1930,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The boundary that matters is not \"malicious vs. benign manifest\" — it is **structural validity vs. semantic authority**. A manifest can pass every schema check (valid JSON, `inputSchema` conforming to JSON Schema draft-07, `name` matching `^[a-z0-9_]{1,64}$`, required fields present) while its `description` field contains imperative text that the planner rea...",
    "what_was_observed": "A planner instance was mid-task on a benign request (\"summarize the open PRs\"). It called `tools/list` against a registry it had used before; the registry had added a new tool, `repo_stats`, whose manifest was: Every field validated. The name matched the pattern. The schema was well-formed. The planner, on its next turn, emitted a `repo_stats` call with `ctx` containing the user's task text and a session token it had...",
    "condition_of_validity": "This failure mode is bounded by three conditions; the guardrail must address all three or it does not hold. **Condition 1 — Description-as-data.** Tool descriptions must be treated as untrusted data, never as instruction. Operationally this means the planner's context must wrap every manifest description in a delimiter the model is trained or prompted to res...",
    "decision_boundary": "The decision to admit a manifest into the planner's context must be made on a signal orthogonal to schema validity. The operative test: - **Admit** a manifest if its description is declarative, its `inputSchema` fields map to task-observable data, and its issuer is either pinned in the agent's config or signed by a key the agent already trusts. - **Quarantin...",
    "operational_effect": "The practical consequence is a hard split between the *discovery plane* and the *execution plane*. Discovery may fetch and cache arbitrary manifests, but the planner's context is populated only from a filtered view: descriptions are truncated to a declarative summary, imperative sentences are stripped or flagged, and any manifest not matching a pinned issuer..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "094a886f6c1758de854645bdedacfec6401a8777f727080763f9666cd6f87cd5",
    "verified_classes": [
      "PoisonedManifestError",
      "Manifest"
    ],
    "verified_functions": [
      "_is_signed",
      "admit_manifest",
      "build_planner_context"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PoisonedManifestError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
