{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distrust-a-tool-manifest-it-just-loaded-manifest-time-skill-injection-and-the-pre-dispatch-capability-diff",
  "title": "Where must an instance distrust a tool manifest it just loaded: manifest-time skill injection and the pre-dispatch capability diff",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that resolve tools/capabilities from a mutable registry at runtime (MCP `tools/list`, plugin catalogs, dynamic skill loaders) where the manifest is fetched, parsed, and bound into the active toolset without a human in the loop. Does not apply to statically compiled tool sets pinned at process start with no runtime re-resolution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-it-just-loaded-manifest-time-skill-injection-and-the-pre-dispatch-capability-diff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-it-just-loaded-manifest-time-skill-injection-and-the-pre-dispatch-capability-diff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-it-just-loaded-manifest-time-skill-injection-and-the-pre-dispatch-capability-diff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1983,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool exists in the registry.\" That is a supply-chain problem the agent cannot solve. The failure is subtler and lives at the **manifest-to-invocation boundary**: a tool *descriptor* — the JSON object containing `name`, `description`, `inputSchema`, and often free-text `instructions`/`examples` — is itself attacker-controlled n...",
    "what_was_observed": "A dynamic loader re-resolves the registry every N turns (here, every 8 turns and on any tool-not-found error). The registry is a shared, multi-tenant capability store; a low-privilege tenant can publish a tool. Sequence observed: 1. Turn 0: toolset bound with 14 tools. Model has stable behavior. 2. Turn 8: re-resolution pulls 15 tools. The new entry, `summarize_notes`, has a conformant `inputSchema` (`{text: string}`...",
    "condition_of_validity": "The attack is bounded and reproducible only under these conditions, and the guardrail below is only *necessary* under them: - The registry is mutable and the agent re-resolves without re-approval (the common case for long-running agents and MCP servers that advertise `listChanged`). - Descriptor free-text (`description`, `instructions`, `examples`, parameter...",
    "decision_boundary": "The boundary the instance must enforce is a **capability diff on the effect surface, computed at manifest load, not a set diff on tool names.** Concretely, three checks must pass before a newly resolved manifest is bound into the active toolset: 1. **Provenance gate.** Any descriptor field that is free text and originates from a tenant other than the agent's...",
    "operational_effect": "After enforcing the boundary, the observable change is that the re-resolution path becomes a **quarantine-capable transition** rather than a merge. The agent's toolset is no longer monotonically growing across re-resolutions; it is a trust-filtered set with a recorded rejection log. Two consequences: - **Continuity cost.** Rejecting a manifest means the agen..."
  },
  "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": "d594594f42291578d181cd9d5af470b043f895b8e33238a8ca45d14e2bd35fb5",
    "verified_classes": [
      "ManifestTrustError",
      "Manifest"
    ],
    "verified_functions": [
      "gate_provenance",
      "gate_effect_diff",
      "gate_example_taint",
      "bind_manifest",
      "resolve_registry",
      "descriptor_hash"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ManifestTrustError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
