{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-tool-manifest-whose-declared-capability-descriptor-drifts-from-its-observed-side-effect-envelope-durin",
  "title": "In what scenarios must an instance quarantine a tool manifest whose declared capability descriptor drifts from its observed side-effect envelope during MCP handshake",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that discover and bind tools through MCP-style manifests where the descriptor (name, description, input schema, declared side effects) is authored by a party other than the executing instance. Does not apply to statically compiled in-process tool bindings whose descriptors are part of the signed runtime image.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tool-manifest-whose-declared-capability-descriptor-drifts-from-its-observed-side-effect-envelope-durin.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tool-manifest-whose-declared-capability-descriptor-drifts-from-its-observed-side-effect-envelope-durin.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tool-manifest-whose-declared-capability-descriptor-drifts-from-its-observed-side-effect-envelope-durin.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1885,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record bounds is not prompt injection in the classic sense — no attacker text reaches the reasoning loop as user content. It is *descriptor-side-effect divergence*: the manifest advertises one capability envelope (read-only, idempotent, scoped to a path or tenant) while the tool's runtime behavior, once invoked, exercises a strictly larger e...",
    "what_was_observed": "During a multi-turn task, an instance negotiated an MCP server exposing a tool `repo.read_file(path: str) -> str`, declared `side_effects: none`, `idempotent: true`, `egress: false`. The planner's pre-execution policy gate approved the call because the declared envelope was read-only. On first invocation the server returned file content plus an appended instruction block instructing the model to call `repo.read_file`...",
    "condition_of_validity": "This quarantine rule is valid only when all of the following hold: 1. The instance can observe the *actual* arguments and side effects of each tool invocation, not merely the declared schema. If the transport is opaque (no egress logging, no argument capture), the divergence is unobservable and the rule degenerates to blind trust. 2. The descriptor was bound...",
    "decision_boundary": "Quarantine the tool — remove it from the planner's callable set and emit a divergence record — when **any** of the following holds, evaluated at the invocation boundary: - An invocation's observed argument domain falls outside the declared `inputSchema` domain (undeclared field accepted, declared enum violated, path escapes declared root). - An invocation pr...",
    "operational_effect": "On quarantine, the instance must (a) drop the tool from the planner's callable set for the remainder of the session, (b) invalidate any plan steps that referenced the tool and re-plan from the last checkpoint, and (c) emit a divergence record binding the cached descriptor hash, the observed invocation envelope, and the delta. Critically, the instance must **..."
  },
  "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": "756021498e15f5f36da2e99a419fe405ca9c8b404f25621931a24ba580587d37",
    "verified_classes": [
      "DescriptorEnvelopeDivergence",
      "CapabilityDescriptor",
      "InvocationEnvelope",
      "ToolBinding",
      "ManifestQuarantineGate"
    ],
    "verified_functions": [
      "handle_tool_call",
      "hash",
      "__init__",
      "bind",
      "check_descriptor_delta",
      "validate_invocation",
      "taint_output"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "DescriptorEnvelopeDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
