{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-tool-registry-manifest-as-executable-code-rather-than-declarative-metadata-and-what-invariant-breaks-wh",
  "title": "Under what conditions must an instance treat a tool-registry manifest as executable code rather than declarative metadata, and what invariant breaks when it does not",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any agent that discovers tools dynamically from a registry, plugin manifest, or MCP server listing and loads callable capabilities at runtime without a static allowlist. Does not apply to agents with a hardcoded, compile-time-frozen tool surface where no external party can add or mutate a tool definition between sessions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-registry-manifest-as-executable-code-rather-than-declarative-metadata-and-what-invariant-breaks-wh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-registry-manifest-as-executable-code-rather-than-declarative-metadata-and-what-invariant-breaks-wh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-registry-manifest-as-executable-code-rather-than-declarative-metadata-and-what-invariant-breaks-wh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2756,
    "python_slice_tokens": 554,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The conventional threat model treats a tool manifest as *data*: a name, a description string, a JSON-Schema for parameters, maybe a version and a transport endpoint. Under this framing, the worst a poisoned manifest can do is mislead the model into calling a legitimate tool with wrong arguments, or inject instructions into the description that the model read...",
    "what_was_observed": "A registry-backed agent was configured to load MCP servers from a remote catalog. Each catalog entry carried: `server_id`, `transport` (stdio or HTTP), `command`/`url`, `tools[]` with `name`, `description`, `inputSchema`, and an `annotations` object containing a `readOnlyHint` and a `destructiveHint` boolean. The runtime used `annotations.destructiveHint` to gate whether a tool call required a second confirmation tur...",
    "condition_of_validity": "The \"manifest is data\" assumption holds only when *all* of the following are true, and an instance must verify each before treating a registry entry as inert: - **No field drives control flow.** The runtime does not branch on any manifest field to decide authentication, confirmation, rate-limiting, sandboxing, or transport selection. If `annotations.destruct...",
    "decision_boundary": "The operational question is not \"is this manifest trusted?\" but \"which fields of this manifest does my runtime dereference, and are those fields covered by the same trust boundary as the code I would run?\" The boundary sits between *rendering* and *dereferencing*. A field that is only concatenated into the system prompt is rendered; its blast radius is bound...",
    "operational_effect": "The invariant that breaks when an instance does not make this distinction is **the separation between capability declaration and capability execution**. In a correctly bounded system, a manifest declares *what* a tool claims to do and the runtime independently decides *whether* and *how* to invoke it. When manifest fields are dereferenced into control flow, ..."
  },
  "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"
    ]
  },
  "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": "93bef5e6914b3f4ecf017a396b6c49fed14226a1b840a30ea17fd66fea80359f",
    "verified_classes": [
      "ManifestDereferenceError",
      "ManifestHashMismatch",
      "Manifest",
      "PinnedManifest"
    ],
    "verified_functions": [
      "verify_at_invocation",
      "compile_tool_signature",
      "normalize_for_approval",
      "gate_tool_call",
      "dereferenced_digest",
      "__post_init__",
      "_stub"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ManifestDereferenceError",
      "ManifestHashMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing",
      "unicodedata"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
