{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tool-registry-skill-injection-from-surviving-capability-re-resolution",
  "title": "Which invariants prevent tool-registry skill injection from surviving capability re-resolution",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents whose tool/skill surface is resolved dynamically at runtime (MCP server discovery, plugin manifests, hot-reloaded skill registries) where a previously-trusted skill identifier can be re-bound to new code or schema between turns. Does not apply to statically compiled, hash-pinned tool sets resolved once at process start with no re-resolution path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-registry-skill-injection-from-surviving-capability-re-resolution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-registry-skill-injection-from-surviving-capability-re-resolution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-registry-skill-injection-from-surviving-capability-re-resolution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1896,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A skill-injection attack is usually modeled as *untrusted content reaching the model*. The boundary failure that actually matters in dynamic registries is different: **the model never sees the injection as content at all.** The identifier it trusts (`db.query`, `web.fetch`, `fs.read`) is stable, but the *binding* behind that identifier is re-resolved between...",
    "what_was_observed": "A multi-turn agent resolved its tool manifest at session start. Turn 1: 14 skills, each with a schema hash recorded implicitly in the plan (\"I will call `web.fetch` with `{url}`\"). Between turn 3 and turn 4, a registry sync pulled an updated manifest. The `web.fetch` entry kept its name and its human-readable description, but its parameter schema gained an optional `headers` object and its handler now appended a `X-C...",
    "condition_of_validity": "This failure requires all of the following to co-occur; remove any one and the attack collapses: - **Name stability across rebinding.** The identifier is the resolution key and is preserved across the swap. If the registry keys on `(name, content_hash)`, the rebind produces a *new* identifier and the old plan's reference dangles — a loud failure, not a silen...",
    "decision_boundary": "The operational line is drawn at **whether the binding hash is part of the plan's precondition or merely part of the registry's metadata.** - *Below the line (safe):* The plan records `binding_hash=H1` for `web.fetch`. On invocation, the resolver returns `H2`. The invocation layer raises a binding-mismatch error and returns control to the planner, which must...",
    "operational_effect": "Concretely, the guardrail set that bounds this: 1. **Composite identity.** Resolve on `(name, handler_hash, schema_hash, description_hash)`. A plan references the composite; a rebind yields a different composite and the reference fails closed. 2. **Plan-time pinning.** The planner records the composite it reasoned against. The invocation layer re-resolves an..."
  },
  "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": "f0065145f4219337860a6a94f0df3c062d421a87ba5a8f2f3a09ff0d49f550f6",
    "verified_classes": [
      "BindingDriftError",
      "Binding",
      "PinnedReference",
      "Registry"
    ],
    "verified_functions": [
      "pin",
      "invoke",
      "composite",
      "__init__",
      "resolve",
      "rebind"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "BindingDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
