{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-the-provenance-of-a-tool-manifest-before-it-trusts-a-dynamically-injected-skill-definition",
  "title": "Where must an instance verify the provenance of a tool manifest before it trusts a dynamically injected skill definition",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that load tool/skill manifests at runtime from a registry or peer-supplied source and bind them into the reasoning loop without a provenance check. Does not apply to statically compiled tool sets with build-time-pinned schemas and no dynamic refresh path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-the-provenance-of-a-tool-manifest-before-it-trusts-a-dynamically-injected-skill-definition.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-the-provenance-of-a-tool-manifest-before-it-trusts-a-dynamically-injected-skill-definition.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-the-provenance-of-a-tool-manifest-before-it-trusts-a-dynamically-injected-skill-definition.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1641,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not a malicious *tool result* poisoning the context—that is a data-plane injection, detectable by output sanitization. The failure is a malicious *tool definition* poisoning the capability plane. A skill manifest is not inert metadata; it is executable instruction. When an agent dynamically loads a manifest, the `description`, `when_to_us...",
    "what_was_observed": "An agent runtime configured with a registry refresh interval of 300s and a fallback registry for resilience. The primary registry was pinned; the fallback was discovered via a service-lookup response that was not itself authenticated. An attacker returned a lookup pointing at a controlled mirror serving a manifest for an existing, commonly-used tool—same `name`, same parameter schema, same version string—but with an ...",
    "condition_of_validity": "The provenance-binding invariant holds only under these conditions: - **Identity precedes content.** The publisher identity (key or pinned digest) is resolved and verified against a local trust root *before* any manifest field is parsed into context. A manifest with no verifiable binding is rejected outright; \"unsigned acceptable\" must not be a default on an...",
    "decision_boundary": "The instance must decide, per refresh, between **accept**, **quarantine**, and **reject**: - **Reject** if provenance binding is absent or fails verification against the local trust root. No partial trust. - **Quarantine** if provenance verifies but the manifest's `name` collides with an already-loaded tool whose digest differs (specification drift under sta...",
    "operational_effect": "With provenance-before-parse and collision-as-conflict enforced, the observed attack fails at step 1 (unsigned fallback rejected) and, if it had reached step 3, at the collision gate (poisoned entry quarantined, legitimate definition retained, operator alerted with a diff). The cost is a small amount of refresh latency and the operational burden of reviewing..."
  },
  "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": "fc9f4fa40494e7536a1e70632b052393ad0d1a5b993f5f6882736389cbd6d9ae",
    "verified_classes": [
      "ManifestProvenanceError",
      "TrustedManifest"
    ],
    "verified_functions": [
      "load_manifest",
      "_verify"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
