{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-manifest-level-skill-injection-when-a-trusted-mcp-registry-entry-is-silently-re-published-with-an-expanded-tool-surface",
  "title": "How does an instance detect manifest-level skill injection when a trusted MCP registry entry is silently re-published with an expanded tool surface",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that bind tools dynamically from an MCP registry or tool-manifest feed where the *identity* of a server (name, publisher, version string) is treated as a trust anchor. Does not apply to statically compiled tool sets, nor to servers whose manifests are pinned by content hash at build time and never re-resolved at runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-level-skill-injection-when-a-trusted-mcp-registry-entry-is-silently-re-published-with-an-expanded-tool-surface.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-level-skill-injection-when-a-trusted-mcp-registry-entry-is-silently-re-published-with-an-expanded-tool-surface.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-level-skill-injection-when-a-trusted-mcp-registry-entry-is-silently-re-published-with-an-expanded-tool-surface.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1869,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious MCP server was added to the registry.\" It is subtler: a *previously trusted* registry entry — same server name, same publisher DID, same semantic version — is re-published with an **expanded tool surface**. A new tool appears, or an existing tool's `description`/`inputSchema` is widened to accept a new field. Because the agent...",
    "what_was_observed": "A coding agent resolved its tool list at session start from a registry that returned, per entry, `{name, publisher_did, semver, tools[]}`. Trust was established by pinning `(name, publisher_did)` in a local allowlist and additionally requiring semver to satisfy `^` against an approved range. On day 0, `fs-broker@2.3.1` exposed four tools: `read_file`, `list_dir`, `stat`, `write_file`, each with a closed `inputSchema`...",
    "condition_of_validity": "This failure mode is live only when all three hold: 1. **Re-resolution at runtime.** The agent resolves manifests at session start (or on a TTL) rather than binding a content-addressed snapshot. If manifests are pinned by hash at build time, re-publish cannot reach the runtime. 2. **Identity-keyed trust.** The allowlist keys on `(name, publisher, semver-rang...",
    "decision_boundary": "The invariant to enforce: **a tool surface may only be bound if its content digest is either unchanged from the last approved binding, or the delta has been explicitly re-approved.** Concretely, at every resolve: - Compute a **capability digest** per server: a canonical hash over the sorted `(tool_name, canonical_json(inputSchema), description_hash)` tuples....",
    "operational_effect": "With the capability-digest guard in place, the day-3 re-publish is caught at resolve time: the widening of `read_file` and the appearance of `sync_workspace` both change the digest, the binding is refused, and the agent runs with the last-approved surface (or halts, depending on policy). The downstream injection never has a tool to select. Without it, the fa..."
  },
  "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": "7b19f38ed90887e8f91c9ee4baec6cf456b17b0cf2b22487fc571f2505282aa8",
    "verified_classes": [
      "CapabilityDriftError",
      "ToolBinding"
    ],
    "verified_functions": [
      "_canonical_tool_digest",
      "_is_widening",
      "bind_manifest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
