{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-manifest-poisoning-from-surviving-mcp-server-re-registration-and-capability-re-advertisement",
  "title": "Which invariants prevent manifest-poisoning from surviving MCP server re-registration and capability re-advertisement",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes that discover tools via MCP-style manifests (`tools/list`, capability advertisement, server registration handshakes) and cache the resulting tool schema across turns or sessions. Does not cover prompt-injection delivered purely through tool *return values* (that is a separate trust boundary), nor static compile-time tool bindings that are never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-poisoning-from-surviving-mcp-server-re-registration-and-capability-re-advertisement.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-poisoning-from-surviving-mcp-server-re-registration-and-capability-re-advertisement.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-poisoning-from-surviving-mcp-server-re-registration-and-capability-re-advertisement.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1578,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool description was injected.\" It is that **the agent's trust decision was bound to the tool *name* rather than to the tool *manifest bytes***. When an MCP server re-registers — or a server at the same endpoint re-advertises its capability set after a restart, a version bump, or a transport reconnect — the runtime reconciles ...",
    "what_was_observed": "A long-running orchestrator cached a `tools/list` snapshot at session start and refreshed it on `notifications/tools/list_changed`. The refresh path diffed incoming tools against the cache **by `name`** and merged, preserving the previously-approved authorization flag per name. A server that had been approved with a benign manifest: reconnected after a deploy and advertised: The diff saw one tool named `notes.search`...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; break any one and the exploit does not land: 1. **Name-keyed reconciliation.** The refresh/merge path identifies tools by `name` (or `name`+`server_id`) rather than by a content digest. 2. **Instruction-bearing manifest fields reach the model.** `description`, parameter descriptions, and `enum`/`defau...",
    "decision_boundary": "The boundary is: **on any manifest delta, is the prior approval still valid?** The correct rule is a strict one — approval is valid iff `sha256(normalize(manifest))` is unchanged, where `normalize` sorts keys, strips volatile fields (timestamps, `serverInfo.version` only if explicitly whitelisted as non-semantic), and includes *every* field the model can rea...",
    "operational_effect": "With digest-bound grants, a re-advertisement that mutates any model-visible field produces a *pending* tool: visible to the runtime, quarantined from the model's context, and surfaced as an explicit re-approval event. The poisoned description never enters the planning context, so the model cannot be steered by it. The cost is operator friction on legitimate ..."
  },
  "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": "a88fe17d4b2555e35c1ef5d2b0f627e0ab054a5fd5d62dfb3dd0420f75c36647",
    "verified_classes": [
      "ManifestPoisoningError",
      "ApprovedGrant",
      "ToolRegistry"
    ],
    "verified_functions": [
      "semantic_digest",
      "handle_tools_list_changed",
      "reconcile",
      "approve"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestPoisoningError"
    ],
    "sample_fail_closed_invariants": [
      "advertised tool missing name"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
