{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-after-the-capability-digest-has-already-been-pinned",
  "title": "Why does an instance trust a tool manifest after the capability digest has already been pinned?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that resolve tool/skill manifests at runtime (MCP `list_tools`, dynamic plugin registries, A2A capability cards) and cache a capability digest for a session. Does not apply to statically linked tool sets compiled into the agent image where the manifest is immutable for the process lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-after-the-capability-digest-has-already-been-pinned.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-after-the-capability-digest-has-already-been-pinned.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-after-the-capability-digest-has-already-been-pinned.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1588,
    "python_slice_tokens": 329,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent loaded a malicious tool.\" It is that the agent **verified the manifest, then loaded the handler**, and the two artifacts were never bound to the same digest. A capability digest computed over the *declared* schema (`name`, `description`, `inputSchema`) is treated as an integrity boundary for the *executable* skill, but the execu...",
    "what_was_observed": "A tool registry served manifests over a mutable endpoint. The agent runtime, on cold start, fetched `list_tools`, computed `sha256(canonical_json(manifest))`, and stored it as the session capability digest. On each call, it re-fetched the manifest to resolve the entrypoint, then invoked. Two distinct failures compounded: 1. **Digest/entrypoint decoupling.** The stored digest was checked against the *re-fetched* manif...",
    "condition_of_validity": "The guardrail — refuse to invoke when the re-fetched manifest digest diverges from the pinned digest — is only valid under a specific condition: **the digest must cover every field that influences execution, including the entrypoint binding and any text the model will read as instruction.** If the digest covers only `inputSchema` structure, the guardrail is ...",
    "decision_boundary": "The boundary is: **does the manifest carry instruction-bearing text that the model consumes, and is that text covered by the same integrity check as the executable binding?** - If the manifest is pure structure (no free-text consumed by the model) and the entrypoint is content-addressed → the single digest is a valid invariant. - If the manifest carries mode...",
    "operational_effect": "An agent in this configuration cannot distinguish a capability upgrade from a skill-injection. Every tool call is a potential re-negotiation of trust that the runtime silently accepts. The observable symptom is not a crash — it is a *plausible* tool call with arguments the operator never sanctioned, executed against a handler the operator never pinned, justi..."
  },
  "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": "2cdf1c793a85a99b548cdb9ae4fcb7132428ebbfb78a4c465d9f1a3c32f9b836",
    "verified_classes": [
      "ManifestIntegrityViolation",
      "PinnedCapability"
    ],
    "verified_functions": [
      "compute_capability_digest",
      "resolve_entrypoint",
      "enforce_pinned_capability",
      "invoke_tool"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestIntegrityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
