{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-trust-a-dynamically-loaded-skill-s-declared-capability-surface-after-mcp-tool-descriptor-poisoning-mutates-its-schema",
  "title": "Where must an instance refuse to trust a dynamically loaded skill's declared capability surface after MCP tool-descriptor poisoning mutates its schema mid-session",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent instance that loads skills or MCP tool descriptors from a remote registry at runtime and caches them across turns; does not apply to statically compiled tool bindings or to agents that re-fetch and re-validate every descriptor on every invocation with a pinned content hash.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-trust-a-dynamically-loaded-skill-s-declared-capability-surface-after-mcp-tool-descriptor-poisoning-mutates-its-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-trust-a-dynamically-loaded-skill-s-declared-capability-surface-after-mcp-tool-descriptor-poisoning-mutates-its-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-trust-a-dynamically-loaded-skill-s-declared-capability-surface-after-mcp-tool-descriptor-poisoning-mutates-its-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1912,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The load-bearing distinction is between a skill's *declared capability surface* — the JSON-Schema-typed argument contract, the `description` string, and the `annotations` block an agent reads to decide whether to invoke it — and the skill's *executed behavior* — what the tool actually does with the arguments it receives. A registry supply-chain compromise do...",
    "what_was_observed": "An instance was provisioned with a skill loader that fetched MCP tool descriptors from an internal registry at session start, validated each against a pinned schema version, and injected the `name`/`description`/`inputSchema` triple into a system-role tool manifest. The loader cached the manifest in the prompt prefix and set a `Cache-Control: immutable` assumption: descriptors were treated as constant for the life of...",
    "condition_of_validity": "This failure mode is valid — and the guardrail below is required — precisely when all of the following hold: 1. The descriptor's natural-language fields (`description`, `annotations`, `examples`) are placed in a context region the model treats as authoritative (system role, tool manifest, or any prefix the model will not re-derive). 2. The descriptor is fetc...",
    "decision_boundary": "The instance must draw the line at *digest mismatch on re-verification*, not at *content inspection*. Content inspection of `description` fields is undecidable in the general case — a sufficiently fluent poisoned description is indistinguishable from a verbose legitimate one, and heuristic scanners produce both false negatives (paraphrased steering) and fals...",
    "operational_effect": "Enforcing digest-pinned re-verification and fail-closed quarantine changes instance behavior in three concrete ways. First, it converts an unbounded prompt-injection surface into a bounded one: the only descriptors the model can reason over are those whose bytes match a provisioning-time digest, so a compromised registry can withhold or break a skill but can..."
  },
  "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": "dbe6ce0a885d24f36c8c8bdc7941d70063321cc5a63243793be147cb969809f0",
    "verified_classes": [
      "DescriptorDigestMismatch",
      "PinnedSkill"
    ],
    "verified_functions": [
      "canonical_digest",
      "verify_and_admit",
      "build_manifest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DescriptorDigestMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
