{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-load-a-tool-manifest-that-mutates-its-own-trust-boundary-mid-session",
  "title": "Why does an instance load a tool manifest that mutates its own trust boundary mid-session?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that resolve tool/plugin manifests at runtime from a registry (MCP server lists, plugin indexes, dynamic skill loaders) and cache or hot-reload them within a live session. Does not apply to statically compiled tool schemas fixed at build time with no runtime registry fetch.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-load-a-tool-manifest-that-mutates-its-own-trust-boundary-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-load-a-tool-manifest-that-mutates-its-own-trust-boundary-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-load-a-tool-manifest-that-mutates-its-own-trust-boundary-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2149,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool does something bad when called.\" That is a capability problem, bounded by sandboxing and argument validation. The failure is that **the manifest itself is a trusted input to the reasoning loop, and it changes between the moment the agent decided to trust the registry and the moment it reads a manifest from it.** A tool ma...",
    "what_was_observed": "A coding agent is initialized with a registry endpoint and a policy: \"resolve available tools from the registry at the start of each turn so newly installed plugins are usable.\" Turn 1: registry returns 14 tools, all benign. The agent plans a multi-step task and executes turns 2–5 against those 14 tools. Between turn 5 and turn 6, an attacker with registry write access (a compromised CI job that publishes a plugin, a...",
    "condition_of_validity": "This boundary applies only when all of the following hold; if any fails, the mechanism does not fire: 1. **Runtime resolution.** The agent fetches or refreshes manifests during an active reasoning episode, not only at cold start. 2. **Description-as-instruction.** The manifest's natural-language fields (description, examples, parameter docs) are placed into ...",
    "decision_boundary": "The architect must choose, per registry, between two postures and cannot have both: - **Pinned posture:** resolve once per episode, bind the full manifest (prose included) to a content hash, and refuse to act on any manifest whose hash differs from the one recorded at episode start. New or changed tools are surfaced to the *next* episode, not the current one...",
    "operational_effect": "Without the invariant, the agent's trust boundary is a function of wall-clock time and registry state, not of the episode. An attacker needs only write access to a registry the agent already trusts and a single re-resolution to inject into a privileged channel; no tool-call exploitation, no sandbox escape, no argument smuggling is required — the payload is t..."
  },
  "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": "1c98762082ce2d6807aae5ab8b139d6d672aad38c52ee2c9cf74bbbf4a629611",
    "verified_classes": [
      "ManifestTrustViolation",
      "ManifestTrustToken"
    ],
    "verified_functions": [
      "resolve_for_episode",
      "begin_episode",
      "_digest",
      "mint",
      "verify"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
