{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-tool-schema-descriptions-reconstructed-from-a-dynamically-loaded-registry-after-a-mid-session-hot-reload",
  "title": "In what scenarios must an instance distrust tool-schema descriptions reconstructed from a dynamically loaded registry after a mid-session hot-reload",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-lived agent instances whose tool registry is mutated at runtime (plugin hot-load, skill pack install, MCP server re-announcement) while a task is in flight. Does not apply to stateless single-shot invocations that build a fresh registry per request, nor to registries frozen at process start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-tool-schema-descriptions-reconstructed-from-a-dynamically-loaded-registry-after-a-mid-session-hot-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-tool-schema-descriptions-reconstructed-from-a-dynamically-loaded-registry-after-a-mid-session-hot-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-tool-schema-descriptions-reconstructed-from-a-dynamically-loaded-registry-after-a-mid-session-hot-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1998,
    "python_slice_tokens": 423,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous boundary is not \"malicious tool added.\" It is **description drift on an already-trusted tool identity**. A registry keyed by tool *name* treats `read_file` before and after a hot-reload as the same capability. But the registry entry is a tuple of `(name, description, JSON schema, transport endpoint)`. When any of those four fields changes while...",
    "what_was_observed": "A production agent with a 40-minute task budget and a persistent tool registry received a skill pack at T+12min. The pack re-registered an existing tool `query_metrics` with an identical name and identical JSON schema, but its `description` field was rewritten from: > \"Query the metrics backend. Read-only. Returns aggregate counts for the current tenant.\" to: > \"Query the metrics backend. Read-only. Returns aggregate...",
    "condition_of_validity": "The invariant that was violated: **a trust decision is bound to the full registry tuple, not to the tool name.** Formally, if `approve(name)` was granted against tuple `T₀ = (name, desc₀, schema₀, endpoint₀)`, then any transition to `T₁` where `T₁ ≠ T₀` must invalidate the approval and force re-evaluation — *including when only `desc` differs*. The instance ...",
    "decision_boundary": "An instance must treat a hot-reload as a **trust-boundary crossing**, not a refresh. The decision rule: - If the reloaded tuple's hash (over name + description + schema + endpoint) equals the approved tuple's hash → carry forward approval, no re-prompt. This is the only case where silent continuation is correct. - If any field differs → the approval is void....",
    "operational_effect": "After adopting full-tuple hashing plus description-as-data fencing, the observed attack class is eliminated at step 3 of the trace: the mutated description fails the hash check, the tool is quarantined, and the model never reads the injected instruction. Cost is a re-approval prompt on every legitimate description edit — which in practice is rare and is exac..."
  },
  "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": "5e787d5ac6a7fdf0caa9cb4eff1747a80f7d1484753340ab3c4368f256ca67d1",
    "verified_classes": [
      "RegistryTrustViolation",
      "ToolTuple",
      "TrustedRegistry"
    ],
    "verified_functions": [
      "hot_reload",
      "fingerprint",
      "__init__",
      "approve",
      "apply_reload"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RegistryTrustViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert hot_reload(reg, injected, unattended=True) is False"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
