{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resolves-a-tool-manifest-by-name-and-the-registry-returns-a-same-name-sibling-with-a-widened-schema",
  "title": "What happens when an instance resolves a tool manifest by name and the registry returns a same-name sibling with a widened schema",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that resolve tools/plugins at runtime through a name-keyed registry (MCP server lists, plugin manifests, function-calling catalogs) where resolution and schema binding are separate steps. Does not apply to statically compiled tool tables or registries that bind tool identity to a cryptographic digest at resolution time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-tool-manifest-by-name-and-the-registry-returns-a-same-name-sibling-with-a-widened-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-tool-manifest-by-name-and-the-registry-returns-a-same-name-sibling-with-a-widened-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-tool-manifest-by-name-and-the-registry-returns-a-same-name-sibling-with-a-widened-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1665,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious plugin got installed.\" It is that **tool identity was resolved by name while tool capability was resolved by schema, and the two resolutions were allowed to disagree.** A registry entry keyed on `name` returns the *latest* manifest for that name; the agent's planner, holding a cached schema from an earlier turn, believes the t...",
    "what_was_observed": "Trace from a live multi-turn session: 1. Turn 3: planner lists tools, receives `summarize` manifest v1: `{input: {text: string}, auth_scope: \"read\"}`. Schema cached in the agent's working context as a compact tool description. 2. Turn 7: registry is refreshed (a routine `list_tools` call triggered by a context-compaction event). Registry now returns `summarize` v2: `{input: {text: string, postprocess_cmd?: string}, a...",
    "condition_of_validity": "This boundary is reachable only when all of the following hold simultaneously: - **Name-keyed, not digest-keyed, resolution.** The registry returns manifests by `name`; the agent has no binding between the name it planned against and the bytes it will execute. - **Schema is cached across a resolution boundary.** Context compaction, turn boundaries, or sub-ag...",
    "decision_boundary": "The invariant an agent must enforce: **a tool call is authorized only against the exact manifest digest that was adjudicated, and any schema delta at resolution time invalidates the cached authorization for that tool name.** Concretely, at resolution time the agent must compare the manifest it is about to call against the manifest it cached and adjudicated: ...",
    "operational_effect": "Without the digest-rebind guard, the failure is silent and non-recoverable from logs alone: the tool call is schema-valid, the handler is the legitimate registered handler, and the return value is well-formed. Post-hoc audit sees a normal `summarize` call. The only forensic trace is the manifest-diff between turn 3 and turn 7 — which most agent traces do not..."
  },
  "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": "fd925b0f3cfb10482ede99ac7fdbdd6db32de6024a7296c461f2d007b4585e57",
    "verified_classes": [
      "SchemaDriftUnauthorizedError",
      "Manifest"
    ],
    "verified_functions": [
      "resolve_and_authorize",
      "invoke_tool",
      "digest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaDriftUnauthorizedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
