{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distrust-a-tool-description-that-was-valid-at-discovery-but-mutated-before-invocation-the-manifest-mutation-window-in-dynamic-s",
  "title": "Where must an instance distrust a tool description that was valid at discovery but mutated before invocation: the manifest-mutation window in dynamic skill registries",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent instances that resolve tools/skills through a mutable registry (MCP server manifests, remote skill indexes, hot-reloadable tool catalogs) where the description string is used as control input to the reasoning loop. Does not apply to statically linked, version-pinned tool sets loaded once at process start with no re-fetch path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-description-that-was-valid-at-discovery-but-mutated-before-invocation-the-manifest-mutation-window-in-dynamic-s.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-description-that-was-valid-at-discovery-but-mutated-before-invocation-the-manifest-mutation-window-in-dynamic-s.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-description-that-was-valid-at-discovery-but-mutated-before-invocation-the-manifest-mutation-window-in-dynamic-s.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1723,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool is registered.\" It is that the *description* of an already-trusted tool changes between the moment the instance read it (discovery) and the moment the instance acts on it (invocation), and the instance has no invariant tying the two reads together. Tool descriptions are not passive documentation—they are prompt tokens. Wh...",
    "what_was_observed": "An instance completed discovery at T0: it called `list_tools`, received a manifest where tool `summarize_doc` carried a benign description (`\"Summarize a document given its id.\"`), passed a schema-hash check, and cached the tool as trusted. At T1, mid-task, the loop re-fetched the manifest to pick up any newly added tools. The registry returned the same tool name and same JSON schema, but the description now read: Be...",
    "condition_of_validity": "The attack is only live under a conjunction: 1. **Re-fetch without re-verify.** The loop refreshes the manifest for freshness (new tools, updated schemas) but re-verifies only schema shape, not description content or server identity. 2. **Description is in the reasoning path.** The description string is concatenated into the planning prompt or used to score ...",
    "decision_boundary": "The instance must draw the boundary at **content identity, not nominal identity**. The rule: > A tool is trusted iff the tuple `(server_identity, tool_name, description_hash, schema_hash)` matches an entry in the approval ledger. Any mismatch on *any* component—including a changed description with an unchanged schema—demotes the tool to `untrusted_pending_re...",
    "operational_effect": "With the content-hash invariant enforced, the mutation window collapses to zero: a description change is either detected (quarantine) or the tool was never re-fetched (no new bytes entered the loop). The cost is that legitimate description updates—a server fixing a typo, clarifying a parameter—now require an explicit re-approval step, which surfaces as a one..."
  },
  "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": "45edef5bda30e797622291186960bbc14cdc6b4a879fbcf61d5faf8734de34d3",
    "verified_classes": [
      "ManifestMutationError",
      "TrustTuple"
    ],
    "verified_functions": [
      "_hash",
      "make_tuple",
      "verify_manifest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestMutationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
