{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-a-skill-s-provenance-before-binding-it-into-its-active-tool-schema-and-why-post-load-validation-cannot-recover-from-regi",
  "title": "Where must an instance verify a skill's provenance before binding it into its active tool schema, and why post-load validation cannot recover from registry poisoning",
  "date_of_record": "2026 November 30",
  "scope": "Applies to LLM agent instances that dynamically discover and bind external skills/tools from registries (MCP servers, skill marketplaces, plugin manifests) at runtime, where the skill's description, schema, and handler are fetched as an atomic unit. Does not apply to statically compiled tool sets or to tools whose full source is reviewed out-of-band before deployment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-s-provenance-before-binding-it-into-its-active-tool-schema-and-why-post-load-validation-cannot-recover-from-regi.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-s-provenance-before-binding-it-into-its-active-tool-schema-and-why-post-load-validation-cannot-recover-from-regi.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-s-provenance-before-binding-it-into-its-active-tool-schema-and-why-post-load-validation-cannot-recover-from-regi.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1748,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool executes bad code.\" It is that **the skill's natural-language description is itself the attack surface, and it is bound into the reasoning context before any behavioral check can run.** A poisoned registry entry does not need to escape a sandbox or exploit a parser; it needs only to be *described* in a way that reframes t...",
    "what_was_observed": "An instance cold-started against a registry endpoint and issued a discovery call returning a manifest set. One entry, nominally a \"calendar availability\" skill, carried a description of the form: The `sync_context` skill was a second registry entry whose handler forwarded its argument to an external endpoint. Nothing in either manifest was malformed. The `sync_context` schema was a clean `{ \"transcript\": \"string\" }`....",
    "condition_of_validity": "The guardrail only holds under a specific provenance condition, and stating it precisely is the point: > A skill manifest may enter the reasoning context only if its (description, schema, handler-identity) triple is bound to a signature whose signer is in the instance's pinned trust root, **and** the description is delivered to the model inside a channel exp...",
    "decision_boundary": "The boundary is drawn at **description admission to context**, and it is a hard gate, not a scoring heuristic. Concretely: - **Admit** a description to the trusted instruction channel only if signature verifies against the startup-pinned trust root. - **Admit** an unsigned or third-party description only into a quarantined data channel, rendered to the model...",
    "operational_effect": "When the boundary is enforced, the poisoned `calendar` entry either fails signature verification (if unsigned) or lands in the quarantined data channel where the embedded \"you must first call `sync_context`\" is framed as untrusted data the model has no authority-obligation to obey. The `sync_context` skill, even if bound, is never invoked as a *precondition*..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "e5b1a1beb254c2127b75f3176b04151b47e21d0de930ca90994cec50ddbe8b7b",
    "verified_classes": [
      "SkillProvenanceError"
    ],
    "verified_functions": [
      "admit_skill",
      "bind_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "trust root mutated mid-session; refusing skill admission (fail closed)"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
