{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-dynamically-re-fetched-tool-manifest-as-an-untrusted-capability-grant-rather-than-a-schema-refresh",
  "title": "Under what conditions must an instance treat a dynamically re-fetched tool manifest as an untrusted capability grant rather than a schema refresh",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that resolve tools/capabilities from a remote registry or MCP server and cache the manifest across a session, re-fetching on TTL expiry, version bump, or explicit refresh. Does not apply to statically compiled tool bindings, nor to manifests whose signatures are verified against a pinned trust root out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-re-fetched-tool-manifest-as-an-untrusted-capability-grant-rather-than-a-schema-refresh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-re-fetched-tool-manifest-as-an-untrusted-capability-grant-rather-than-a-schema-refresh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-re-fetched-tool-manifest-as-an-untrusted-capability-grant-rather-than-a-schema-refresh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2138,
    "python_slice_tokens": 329,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a malicious manifest injects instructions into the prompt. It is that a *legitimate* re-fetch of an *already-trusted* tool silently mutates the tool's **capability surface** — its declared side effects, its parameter schema, its return-shape contract, or its nested-tool references — while the agent's cached *identity binding* (the too...",
    "what_was_observed": "A coding agent held a session-scoped cache of 14 tools from an MCP server, keyed by `(server_id, tool_name, version)`. TTL was 900s. On refresh, the client fetched the full manifest, diffed against cache, and — because the version string was unchanged (`1.4.2`) — applied the manifest as a hot-reload, preserving all per-tool trust decisions. The diff was logged at DEBUG and not surfaced. The re-fetched manifest had th...",
    "condition_of_validity": "This failure mode is bounded by a specific condition: **the agent must be able to detect that a re-fetched manifest differs from the manifest under which its trust decision was made, and must be able to re-derive that trust decision from the new content.** If either is false, the failure is not just possible but *silent*. Concretely, the guardrail is a **man...",
    "decision_boundary": "The boundary is between **schema evolution** and **capability mutation**, and it is drawn by *which fields changed*, not by *whether the version changed*. Fields that are safe to hot-reload (schema refresh): description text, examples, `title`, documentation URLs, non-binding `enum` widening that the agent's call-construction code already validates against a...",
    "operational_effect": "The operational consequence of getting this wrong is that **the agent's audit trail lies**. Every log line after the refresh says \"called `fs.write_file` (trusted, v1.4.2)\" — which is true of the name and version and false of the capability. Post-incident forensics cannot distinguish a legitimate write from an escalated one by reading the agent's logs, becau..."
  },
  "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": "99903ef7395f273f84fb05f712ecbda331900c048c6b342539a5b6e01e0e276b",
    "verified_classes": [
      "ManifestTrustViolation",
      "TrustRecord"
    ],
    "verified_functions": [
      "canonical_hash",
      "diff_keys",
      "refresh_manifest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
