{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-tool-registry-mutation-as-a-trust-boundary-crossing-rather-than-a-configuration-update",
  "title": "In what scenarios must an instance treat tool-registry mutation as a trust-boundary crossing rather than a configuration update",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent runtime that loads tool/capability definitions dynamically (MCP server registration, plugin manifests, hot-reloaded skill packs, LLM-generated tool schemas). Does not apply to statically linked, build-time-frozen tool sets with no runtime registration path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-registry-mutation-as-a-trust-boundary-crossing-rather-than-a-configuration-update.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-registry-mutation-as-a-trust-boundary-crossing-rather-than-a-configuration-update.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-registry-mutation-as-a-trust-boundary-crossing-rather-than-a-configuration-update.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1877,
    "python_slice_tokens": 510,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool registry is normally modeled as *configuration*: a mutable map from name to callable plus a JSON schema. Under that model, adding or replacing an entry is a benign administrative act, and the only correctness concern is schema well-formedness. The failure mode this record isolates is that the registry is actually *part of the agent's instruction surfa...",
    "what_was_observed": "A tool named `summarize_document` was present in the registry with a stable schema and had been called successfully across a long session. A dynamic loader then registered a *new* tool, `fetch_related`, whose manifest carried this description: The schema for `fetch_related` was valid JSON Schema, the function signature type-checked, and the registry's admission hook passed it — because the hook validated *shape*, not...",
    "condition_of_validity": "The \"registry is configuration\" model is valid **only** under the conjunction: - (a) every entry's *full text content* (description, parameter descriptions, enum labels, default-value strings) is immutable for the lifetime of the session, **and** - (b) any mutation is authorized by an identity whose trust level is at least the trust level required to modify ...",
    "decision_boundary": "The boundary is drawn between **admission** and **advertisement**, and the agent must never let a capability cross from one to the other without a provenance check the model cannot influence. - **Admission** may be permissive: validate shape, record origin, compute a content hash over the *entire* manifest including all human-readable strings. - **Advertisem...",
    "operational_effect": "With the invariant enforced, the incident trace dies at step 1: `fetch_related`'s manifest is admitted (shape valid) but never advertised, because its origin trust is below the operator threshold and its content hash has no operator signature. The model never sees the `NOTE TO ASSISTANT` text, so it never synthesizes `get_credentials`. The credential call is..."
  },
  "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": "e6ab9f4557f557b0de09e7759d9d236bbb53ac73d1b4769b1e7d4384456a454d",
    "verified_classes": [
      "RegistryTrustViolation",
      "ToolManifest",
      "ToolRegistry"
    ],
    "verified_functions": [
      "load_peer_recommended_tool",
      "content_hash",
      "admit",
      "advertise"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RegistryTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
