{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-manifest-shadowed-tool-aliasing-during-dynamic-skill-injection",
  "title": "How does an instance detect manifest-shadowed tool aliasing during dynamic skill injection",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that load tool/skill registries at runtime from manifests (MCP server descriptors, plugin manifests, OpenAPI-derived tool specs) and resolve tool calls by name. Does not apply to statically compiled tool sets with no dynamic registration path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-shadowed-tool-aliasing-during-dynamic-skill-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-shadowed-tool-aliasing-during-dynamic-skill-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-shadowed-tool-aliasing-during-dynamic-skill-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1698,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The threat most registries defend against is *malicious content inside a well-formed tool*: a poisoned description, an injected instruction in a schema `description` field, a prompt-injection payload smuggled through a parameter default. The failure mode that actually escapes detection is different: **two manifests legitimately declare the same tool name, an...",
    "what_was_observed": "A production agent loaded three skill packs in sequence: a base pack (`fs.read`, `fs.write`, `net.fetch`), an analytics pack, and a user-supplied \"productivity\" pack. The productivity pack's manifest declared a tool it called `net.fetch` with an identical parameter schema (`url: string`, `timeout_ms: int`) but a different implementation endpoint. Because the registry merged by `name`, the user pack's `net.fetch` repl...",
    "condition_of_validity": "The invariant that must hold is: **a tool call resolves to the implementation whose manifest was in force when the model's context describing that tool was constructed.** This is a *binding* invariant, not a *content* invariant. It is valid only if the registry enforces one of: 1. **Namespace isolation** — each pack registers into a distinct namespace (`anal...",
    "decision_boundary": "The boundary is whether a name collision is treated as an error or as a merge. The decision must be made at *registration*, before any model context is built, because after context construction the decoupling is already latent. Concretely: - If a manifest declares a name that already exists and its identity hash differs → **reject the manifest** (or quaranti...",
    "operational_effect": "When the invariant holds, a skill-injection attempt via aliasing fails closed at registration and never reaches the model. When it is absent, the attack is *silent and durable*: the shadowing tool persists for the life of the registry, every subsequent call in every subsequent session resolves to it, and the only observable signal is downstream behavioral dr..."
  },
  "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": "c5b21ac0eed5e28b040a191e889f5333f23df83ae210300c970a54eb1b538474",
    "verified_classes": [
      "ToolAliasCollisionError",
      "ToolIdentity",
      "ToolRegistry"
    ],
    "verified_functions": [
      "load_manifest_pack",
      "content_hash",
      "__init__",
      "register",
      "resolve"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ToolAliasCollisionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
