{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-verify-a-dynamically-loaded-tool-manifest-s-schema-before-dispatch-and-why-signature-validity-alone-is-insufficient",
  "title": "Where must an instance re-verify a dynamically loaded tool manifest's schema before dispatch, and why signature validity alone is insufficient",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agent runtimes that discover tools/plugins from a mutable registry (MCP servers, plugin marketplaces, hot-reloaded manifests) and dispatch calls based on a cached capability descriptor. Does not apply to statically compiled tool sets or runtimes that re-parse the manifest on every single dispatch with no caching layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-dynamically-loaded-tool-manifest-s-schema-before-dispatch-and-why-signature-validity-alone-is-insufficient.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-dynamically-loaded-tool-manifest-s-schema-before-dispatch-and-why-signature-validity-alone-is-insufficient.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-dynamically-loaded-tool-manifest-s-schema-before-dispatch-and-why-signature-validity-alone-is-insufficient.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1671,
    "python_slice_tokens": 224,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool got installed.\" Registries already gate installation with signatures. The failure is that **the signed artifact and the dispatched schema are different objects at different times**. A signature vouches for the bytes of a manifest *at issuance*. Between issuance and dispatch, three things can diverge independently: 1. The ...",
    "what_was_observed": "A tool manifest was loaded from a registry entry pinned to `version: 2.3.1`. The runtime verified the detached signature over the manifest body, cached the parsed descriptor (name, description, JSON-schema `parameters`, and `endpoint`), and held it in the tool table for the session lifetime. Dispatch used the cached descriptor. The manifest's `description` field is the attack surface that signatures do not cover *sem...",
    "condition_of_validity": "The guardrail is only sound under an explicit set of conditions, and the runtime must *assert* them rather than assume them: - **Descriptor re-verification at dispatch, not just at load.** The runtime must re-fetch (or re-hash against a pinned digest) the manifest descriptor immediately before dispatch and compare the *semantic fields* (description hash, sch...",
    "decision_boundary": "The boundary is precise: **re-verify when the descriptor crosses from a trusted store into the model's reasoning context or into a dispatch payload.** Concretely, that is at two points— - **At context assembly:** before the description is placed into the prompt, hash it and compare to the approved description digest. Mismatch → refuse to load the tool into c...",
    "operational_effect": "With re-verification at both crossings and `additionalProperties: false` enforced, the observed traces fail closed: the description-hash mismatch aborts context assembly for the tampered manifest, and the `__redirect` property is rejected by schema validation before serialization. The agent surfaces a `ManifestIntegrityError` and either degrades to a known-g..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "2b6860e9547acfe117c6cee64a78b44956a82dacf6bba85e12b78b5c87f201af",
    "verified_classes": [
      "ManifestIntegrityError",
      "ApprovedDescriptor"
    ],
    "verified_functions": [
      "_digest",
      "verify_before_context",
      "verify_before_dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ManifestIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
