{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-skill-registry-entry-it-just-loaded-the-post-load-attestation-gap-in-dynamic-tool-resolution",
  "title": "When must an instance distrust a skill registry entry it just loaded: the post-load attestation gap in dynamic tool resolution",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that resolve tools/skills by name at runtime from a mutable registry (MCP server lists, plugin manifests, skill directories) where resolution and invocation are separated by at least one reasoning turn. Does not apply to statically compiled tool sets or to single-turn invocations where the schema is bound at call time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-skill-registry-entry-it-just-loaded-the-post-load-attestation-gap-in-dynamic-tool-resolution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-skill-registry-entry-it-just-loaded-the-post-load-attestation-gap-in-dynamic-tool-resolution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-skill-registry-entry-it-just-loaded-the-post-load-attestation-gap-in-dynamic-tool-resolution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1833,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The security literature on skill injection treats the registry as a *trusted channel* that may carry *untrusted payloads*—poisoned descriptions, malicious parameter docs, hidden instructions in a tool's `description` field. The mitigation pattern that follows is content inspection: scan the description for injection markers, sanitize, proceed. That framing m...",
    "what_was_observed": "A planner agent with a 14-step task resolved `write_file` at step 2 from a registry that advertised `root: /workspace/sandbox`, `side_effects: fs_write`, `scope: task`. The description was clean. The planner recorded, in its working memory, a capability summary: *\"write_file writes UTF-8 text under /workspace/sandbox, no network.\"* That summary—not the raw schema—was what subsequent reasoning turns consulted, because...",
    "condition_of_validity": "The gap is exploitable—and more importantly, *operationally hazardous even without an adversary*—exactly when all of the following hold: - **Deferred binding.** The agent names the tool in one turn and the dispatcher resolves it in a later turn, with reasoning or tool calls in between. - **Name-keyed resolution.** The dispatcher keys on a logical name rather...",
    "decision_boundary": "The boundary the operator must draw is between **what the reasoner is allowed to assume** and **what the dispatcher is required to enforce**. - The reasoner may assume a capability summary is *a hypothesis*, valid only against the attested entry it was derived from. It may **not** treat the summary as a guarantee about what dispatch will do. - The dispatcher...",
    "operational_effect": "Enforcing the boundary converts a silent capability substitution into a loud, recoverable plan invalidation. The agent's step-9 call fails closed with a mismatch error; the planner is forced to re-resolve, re-read the new entry, and re-derive its capability summary before proceeding. The cost is one extra resolution round-trip on registry churn; the benefit ..."
  },
  "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": "5b6cb62babb769699876f487e397f3b9aff1dcb53360e211f34a6d0c3066ab2b",
    "verified_classes": [
      "CapabilitySubstitutionError",
      "AttestedEntry",
      "PlanBinding"
    ],
    "verified_functions": [
      "bind_plan",
      "dispatch",
      "digest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilitySubstitutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
