{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resolves-a-dynamically-loaded-skill-by-name-after-a-registry-mutation-and-the-descriptor-to-handler-binding-is-re-hydrat",
  "title": "What happens when an instance resolves a dynamically loaded skill by name after a registry mutation, and the descriptor-to-handler binding is re-hydrated from an attacker-influenced manifest",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents whose tool/skill surface is populated at runtime from a mutable registry (remote MCP servers, plugin manifests, skill marketplaces, hot-reloadable tool catalogs) where resolution is by name and the handler is bound at call time. Does not apply to statically compiled tool sets with build-time-pinned schemas and no runtime re-resolution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-dynamically-loaded-skill-by-name-after-a-registry-mutation-and-the-descriptor-to-handler-binding-is-re-hydrat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-dynamically-loaded-skill-by-name-after-a-registry-mutation-and-the-descriptor-to-handler-binding-is-re-hydrat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-dynamically-loaded-skill-by-name-after-a-registry-mutation-and-the-descriptor-to-handler-binding-is-re-hydrat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2231,
    "python_slice_tokens": 398,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common model of a skill-injection attack assumes the attacker corrupts *the skill's implementation* — the code that runs when a tool is invoked. Defenses are built around this: sandboxing the handler, signing the artifact, reviewing the source. The non-obvious failure is elsewhere. The attack surface is the **name→descriptor→handler binding triple**, and...",
    "what_was_observed": "A tool-using agent loop with a registry-backed skill loader. Resolution was by name, descriptor and handler were fetched lazily at dispatch, and there was no binding of the plan-time descriptor hash to the dispatch-time descriptor. Trace of a single task: 1. **Plan phase.** Registry snapshot R₀ contains `send_email@v1`, descriptor hash `d₀`, schema `{to, subject, body}`, handler `h₀`. The model reads the descriptor, ...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: 1. The skill surface is resolved by name at dispatch time rather than bound to a specific descriptor instance at plan time. 2. The registry is mutable within the plan-to-dispatch window (hot-reload, sync, publish, or namespace write access). 3. The mutated descriptor is *argument-compatible* w...",
    "decision_boundary": "The boundary is between **name-addressed capability** and **identity-addressed capability**. - Name-addressed: the plan records `send_email`; dispatch resolves `send_email` against current state. Correct only when the registry is provably immutable across the task, or when the task is short enough that no mutation is possible. - Identity-addressed: the plan ...",
    "operational_effect": "The practical consequence is that **skill registries are a stateful, mutable dependency of the reasoning loop, not a static catalog.** Treating them as static is the root error. Every agent that hot-reloads skills inherits a TOCTOU (time-of-check to time-of-use) hazard on capability identity, and the hazard is worst precisely where the system is most \"flexib..."
  },
  "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": "7e81cee728d3c0b0468d9c57d4e4614a9fae51b69fb66fe059a6cfe9043b0c71",
    "verified_classes": [
      "SkillIdentityMismatch",
      "SkillDescriptor",
      "PendingCall",
      "SkillRegistry"
    ],
    "verified_functions": [
      "plan_call",
      "dispatch",
      "_send_v1",
      "_send_v2",
      "identity",
      "__init__",
      "register",
      "resolve"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillIdentityMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
