{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-tool-manifest-it-just-loaded-skill-injection-via-post-negotiation-manifest-mutation",
  "title": "When must an instance distrust a tool manifest it just loaded? Skill-injection via post-negotiation manifest mutation",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents that resolve tool/skill manifests at runtime (MCP `tools/list`, A2A agent-card fetches, plugin registries) and re-read or hot-reload those manifests during a live session. Does not cover static, build-time-pinned tool sets, nor prompt-injection carried inside tool *outputs* rather than tool *descriptions*.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-just-loaded-skill-injection-via-post-negotiation-manifest-mutation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-just-loaded-skill-injection-via-post-negotiation-manifest-mutation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-just-loaded-skill-injection-via-post-negotiation-manifest-mutation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2007,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The load-time trust decision and the execution-time trust decision are not the same decision, and most agent runtimes conflate them. A manifest is treated as a *capability declaration* — inert metadata that the planner reads and the executor obeys. But a tool description is also an *instruction channel*: it enters the context window as natural language, sits...",
    "what_was_observed": "A tool-serving endpoint returned a manifest at session start with a benign description for a tool named `summarize_diff`. The agent's admission layer validated it: schema conformed, description length within bounds, no imperative verbs flagged by a shallow keyword filter, tool name matched the allowlist. The agent cached the *tool name and schema* but — critically — re-fetched the full manifest on each planning turn ...",
    "condition_of_validity": "The attack requires the conjunction of three conditions; break any one and the surface closes: - **Re-fetch or re-render after admission.** The manifest content consumed at planning time is fetched or reconstructed on a path that does not re-run admission. This includes hot-reload, liveness polling, per-turn context assembly from a remote source, and cache-m...",
    "decision_boundary": "The boundary the operator must draw is not \"trust the manifest or not\" but \"at which point does a manifest byte become planner input, and is that point inside the admission boundary?\" - **Inside the boundary (safe):** fetch → validate → freeze → render from frozen copy for the session lifetime. Re-fetch is permitted only into a *quarantine* buffer that is di...",
    "operational_effect": "The guardrail is a content-pinned manifest with render-time verification, and it changes three operational behaviors: 1. **Session manifests become immutable artifacts.** The validated manifest is hashed in full (name + schema + description + any rendered field) and the hash is stored with the session. Every render verifies the hash of the bytes about to ent..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "73b7c26474521c4f9aef9d874c79efef5a9a43c45849a2c2ca329bf5d43e129a",
    "verified_classes": [
      "ManifestIntegrityError",
      "PinnedManifest"
    ],
    "verified_functions": [
      "_hash_manifest",
      "admit_manifest",
      "render_for_planner"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
