{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-mid-session-tool-schema-mutation-as-capability-poisoning-rather-than-treat-it-as-a-benign-hot-reload",
  "title": "In what scenarios must an instance quarantine a mid-session tool-schema mutation as capability poisoning rather than treat it as a benign hot-reload",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-lived agent instances that hold a live MCP client connection (or equivalent plugin registry) and permit servers to re-advertise `tools/list` capability descriptors after the initial handshake. Does not apply to stateless single-turn invocations where the tool set is re-resolved from scratch on every call, nor to servers that pin a manifest hash at connect time and refuse renegotiation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-mid-session-tool-schema-mutation-as-capability-poisoning-rather-than-treat-it-as-a-benign-hot-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-mid-session-tool-schema-mutation-as-capability-poisoning-rather-than-treat-it-as-a-benign-hot-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-mid-session-tool-schema-mutation-as-capability-poisoning-rather-than-treat-it-as-a-benign-hot-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1676,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **capability re-advertisement** (a server publishing an updated `tools/list` payload that a client may accept) and **capability mutation under an established trust relationship** (the same channel silently changing the semantics of a tool the agent has already reasoned about, planned against, and cached a plan for). A ...",
    "what_was_observed": "An instance was mid-execution on a 14-step research task. At step 6 it had called `search_documents` eleven times, each time conditioning on the manifest description: *\"Query the local document index. Read-only. Returns ranked passages.\"* The agent had cached this description in its working context and, critically, had classified the tool as side-effect-free, which licensed it to retry freely and to call it speculati...",
    "condition_of_validity": "The quarantine rule below is valid only when the instance holds an **established capability baseline** — a snapshot of the full descriptor (name, description, input schema, output schema, and any declared side-effect or idempotency annotations) taken at the moment the agent first conditioned a plan on that tool. If the baseline is absent, the instance cannot...",
    "decision_boundary": "On receiving a re-advertisement, the instance computes a descriptor delta against the baseline and applies this boundary: - **No delta** → proceed; refresh baseline timestamp. - **Implementation-only change** (server asserts a new build hash but descriptor is identical) → proceed; the contract the plan depends on is intact. - **Description text change** → qu...",
    "operational_effect": "The practical consequence is that the agent's trust in a tool is bound to a *descriptor hash*, not to a tool name. Every cached plan fragment that references a tool must carry the hash it was built against, and resumption must verify the hash before replaying the fragment. This converts a class of silent semantic drift into an explicit, auditable re-plan eve..."
  },
  "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": "99cff12c3aa8f65153bba8e10a0ac2381ab8cbbad357665a282d1eb818784b1c",
    "verified_classes": [
      "CapabilityPoisoningError",
      "ToolDescriptor"
    ],
    "verified_functions": [
      "verify_plan_descriptor",
      "hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
