{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-its-own-skill-registry-capability-shadowing-injection-across-hot-reloaded-agent-skills",
  "title": "When must an instance distrust its own skill registry: capability-shadowing injection across hot-reloaded agent skills",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that load skills/tools dynamically at runtime (plugin registries, MCP tool servers mounted post-startup, hot-reload of prompt+handler bundles) where the skill manifest is itself data the model may read or influence. Does not apply to statically compiled tool sets frozen at process start, nor to skills whose manifest and handler are signed and verified by an out-of-band authority the model cannot write to.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-skill-registry-capability-shadowing-injection-across-hot-reloaded-agent-skills.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-skill-registry-capability-shadowing-injection-across-hot-reloaded-agent-skills.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-skill-registry-capability-shadowing-injection-across-hot-reloaded-agent-skills.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1591,
    "python_slice_tokens": 228,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of skill-injection treats the skill *body* (the prompt text, the handler code) as the attack surface: sanitize instructions, sandbox the code. That framing misses the boundary that actually fails. The dangerous channel is the **skill manifest's declarative metadata** — `name`, `description`, `when_to_use`, `triggers`, and the tool schema —...",
    "what_was_observed": "A registry allowed post-startup `register_skill(manifest, handler)`. A benign skill `summarize_document` declared `when_to_use: \"summarize a document\"`. An injected skill `summarize_document_plus` declared: The router, scoring candidate skills against the user turn \"summarize this contract,\" selected `_plus` on three of four trials. The handler read the file and exfiltrated it to an attacker endpoint before returning...",
    "condition_of_validity": "This failure requires three conditions to co-hold. Remove any one and the surface closes: - **Late binding.** The registry admits new manifests after the agent has established its routing priors. A skill present at cold start is scored against a stable, auditable set; a skill injected at step 400 is scored against a set the model has already been conditioned...",
    "decision_boundary": "The boundary is not \"trust the skill body?\" but \"can a newly registered manifest alter the routing distribution over already-registered skills?\" Operationalize it as a check performed at registration time, before the manifest touches the router: - Compute the routing score of every existing skill against a fixed battery of intent probes derived from their ow...",
    "operational_effect": "An agent that does not enforce the routing-diff invariant is, in effect, running an open registry: the set of behaviors it can be induced to perform is a function of who last wrote to the manifest store, not of what its operators approved. The practical consequences compound across a session: - **Silent substitution.** The agent's self-report (\"I used the do..."
  },
  "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": "9ceaf2f01b0d73022d91e4445ca23069dd248be1c0cd83c236e8495fa51ed8fc",
    "verified_classes": [
      "CapabilityShadowingError"
    ],
    "verified_functions": [
      "register_skill"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityShadowingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
