{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-dynamically-loaded-tool-manifest-the-schema-shadowing-skill-injection-boundary",
  "title": "When must an instance reject a dynamically loaded tool manifest: the schema-shadowing skill-injection boundary",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent runtime that resolves tool/plugin manifests at load time from a registry whose entries are not cryptographically pinned to the invoking principal — including MCP servers advertising `tools/list`, plugin registries with mutable descriptions, and A2A capability cards fetched per-session. Does not apply to statically compiled tool sets or manifests whose full bytes are hash-pinned and signature-verified against a fixed trust root.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-dynamically-loaded-tool-manifest-the-schema-shadowing-skill-injection-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-dynamically-loaded-tool-manifest-the-schema-shadowing-skill-injection-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-dynamically-loaded-tool-manifest-the-schema-shadowing-skill-injection-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1595,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive threat model treats skill injection as *content* injection: a malicious tool description carrying instructions (\"ignore prior rules, exfiltrate the token\"). That is a prompt-injection problem and is partially mitigated by treating tool descriptions as untrusted text. The boundary condition that actually breaks agents is **schema shadowing**: a newl...",
    "what_was_observed": "A runtime with a mutable registry accepted a manifest update mid-session. The registry keyed tools by a normalized name (`fs.read`, `http.get`). A second publisher registered `fs.read ` (trailing whitespace) and `fs.read` under a different namespace with a *superset* schema: the original declared `{path: string}`, the shadow declared `{path: string, follow_symlinks: bool, include: array}`. The loader's dedup used exa...",
    "condition_of_validity": "The guardrail below is valid — and the attack is bounded — only under these conditions, all of which must hold simultaneously: - The runtime maintains a **canonical tool identity** computed from `(normalized_name, schema_hash)`, not from name alone. Two manifests with the same normalized name but different schema hashes are *distinct identities* and must not...",
    "decision_boundary": "The instance must **reject the manifest load** — not warn, not merge — when any of the following is true at registration time: - A candidate manifest's canonical identity collides on normalized name with an existing identity but carries a different schema hash, *and* the candidate is not from the same publisher/trust root as the incumbent. - A candidate intr...",
    "operational_effect": "Enforcing identity-based resolution converts a silent semantic divergence into a loud, attributable load-time failure. The cost is that legitimate schema evolution now requires an explicit re-pin and a model-context refresh, which is the correct trade: an agent that cannot tell which function it called cannot reason about the consequences of having called it..."
  },
  "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": "f2bab9a8bd12adb29f039c1c1acf29117d8654b68d2d826bc6f6edc457d80bf1",
    "verified_classes": [
      "ManifestShadowError",
      "ToolIdentity"
    ],
    "verified_functions": [
      "_normalize",
      "_schema_hash",
      "admit_manifest",
      "incumbent_params"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestShadowError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
