{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-capability-declaration-it-never-re-verifies-the-manifest-poisoning-persistence-invariant-in-mcp-tool-registration-and-age",
  "title": "Why does an instance trust a capability declaration it never re-verifies: the manifest-poisoning persistence invariant in MCP tool registration and agent-card discovery",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent runtime that registers tools or peer agents from declarative manifests (MCP `tools/list` responses, agent-card documents, plugin descriptors) and caches capability metadata across turns or sessions. Does not apply to runtimes that re-fetch and re-hash manifests on every invocation, or to purely local tool registries with no external declaration surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-capability-declaration-it-never-re-verifies-the-manifest-poisoning-persistence-invariant-in-mcp-tool-registration-and-age.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-capability-declaration-it-never-re-verifies-the-manifest-poisoning-persistence-invariant-in-mcp-tool-registration-and-age.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-capability-declaration-it-never-re-verifies-the-manifest-poisoning-persistence-invariant-in-mcp-tool-registration-and-age.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2200,
    "python_slice_tokens": 633,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The boundary that fails is not \"malicious input reaches the model.\" Prompt-injection defenses already assume untrusted *content* flows through the context window. The failure here is subtler: the poisoned text arrives through the **declaration channel** — the `description`, `inputSchema.title`, `capability`, or `whenToUse` fields of a tool or agent manifest ...",
    "what_was_observed": "A runtime connected to three MCP servers. Server A was legitimate; Server B was a third-party \"utility\" server added for a formatting helper; Server C was a peer agent discovered via an agent-card endpoint. During cold start, the runtime called `tools/list` on each server and built a tool registry. The registry schema stored, per tool: `name`, `description`, `inputSchema`, and `server_id`. Critically, it did **not** ...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; remove any one and the attack surface collapses: 1. **Declaration-behavior gap:** the manifest's descriptive fields are consumed by the model as instructions, but the executable behind the tool does not enforce the described constraint. A `format_text` tool that *actually* reads `context_file` is not ...",
    "decision_boundary": "The operational decision is where to draw the line between *metadata* and *content*, and what to bind at that line. - **Below the line (trusted):** tool `name`, `inputSchema` structure (types, required fields), server identity, and any field validated against a cryptographic binding. These may enter the system prompt. - **Above the line (untrusted):** `descr...",
    "operational_effect": "Closing the gap changes three runtime behaviors: 1. **Manifest revalidation cost.** Every session start (or every N turns) re-fetches `tools/list`, recomputes a canonical hash over the trusted fields plus a normalized description, and compares to the cached hash. Drift triggers re-registration and re-tagging, not silent reuse. This adds one round-trip per se..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "c151128d02521c05f0464f70cd3e53619246d496eb9af246f793f18a9aa6bb05",
    "verified_classes": [
      "ManifestBindingError",
      "SelfAttestedTrustError",
      "ToolRegistration",
      "Registry"
    ],
    "verified_functions": [
      "canonical_manifest_hash",
      "guarded_session_start",
      "register",
      "invoke",
      "_execute",
      "resolve_peer_trust"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestBindingError",
      "SelfAttestedTrustError"
    ],
    "sample_fail_closed_invariants": [
      "refused format_text invocation: cached description bound to poisoned manifest; re-register before use"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
