{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-reconciles-an-mcp-tool-manifest-against-a-behavioral-fingerprint-and-the-tool-surface-mutates-between-the-handshake-snap",
  "title": "What happens when an instance reconciles an MCP tool manifest against a behavioral fingerprint and the tool surface mutates between the handshake snapshot and first invocation",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent runtimes that gate MCP server trust on a manifest diff (declared `tools/list` schema captured at handshake) plus a behavioral fingerprint (observed call/response shape across a warm-up probe). Does not apply to stateless one-shot tool calls with no persisted trust state, nor to servers whose tool surface is contractually immutable and signed at build time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconciles-an-mcp-tool-manifest-against-a-behavioral-fingerprint-and-the-tool-surface-mutates-between-the-handshake-snap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconciles-an-mcp-tool-manifest-against-a-behavioral-fingerprint-and-the-tool-surface-mutates-between-the-handshake-snap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconciles-an-mcp-tool-manifest-against-a-behavioral-fingerprint-and-the-tool-surface-mutates-between-the-handshake-snap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2018,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Manifest diffing answers a *structural* question: did the declared tool surface (`name`, `description`, `inputSchema`, `annotations`) change relative to the snapshot the runtime trusted? Behavioral fingerprinting answers an *operational* question: does the server's actual response shape, side-effect profile, and latency envelope on a probe invocation match w...",
    "what_was_observed": "A runtime performs the MCP handshake at `t0`, receives `tools/list`, computes `manifest_hash`, and stores it in the session trust record. It then runs a warm-up probe at `t1` against a subset of tools (typically those the planner has flagged as likely to be used), producing `behavior_fingerprint`. At `t2` the planner dispatches a real call to a tool that was *in the manifest but not in the probe subset*. Three concre...",
    "condition_of_validity": "The manifest-diff-plus-fingerprint guard is sound only when all four of the following hold simultaneously: - **Full coverage:** every tool in the manifest has at least one probe invocation that exercises its declared parameter set *and* its declared annotation semantics (read-only, idempotent, destructive). A tool whose probe is skipped is structurally verif...",
    "decision_boundary": "The runtime must decide, per tool per dispatch, among four states, and the decision must be made on the *conjunction* of structural and behavioral evidence, not their disjunction: - `TRUSTED`: manifest unchanged since `t0` **and** epoch matches **and** tool was fingerprinted with adequate probe input. - `UNFINGERPRINTED`: manifest unchanged but tool was not ...",
    "operational_effect": "The practical consequence is that trust becomes *per-tool* and *per-dispatch*, not *per-session*. This changes three things in the runtime: 1. The trust record must be a map keyed by tool name, carrying `(manifest_hash_at_t0, fingerprint_coverage, last_epoch_seen)`, not a single session-level boolean. Memory cost is small; the correctness gain is the differe..."
  },
  "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": "ee4f6410c09d8af0c5e0fb95a515a0bc72b368804851c6dfd5a9cc40b7b163de",
    "verified_classes": [
      "TrustBoundaryError",
      "ToolTrust",
      "TrustRecord",
      "DispatchRequest"
    ],
    "verified_functions": [
      "_hash_manifest",
      "resolve_tool_trust",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TrustBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
