{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-re-signed-mcp-tool-descriptor-after-a-capability-downgrade",
  "title": "What happens when an instance trusts a re-signed MCP tool descriptor after a capability downgrade",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that discover tools or skills through MCP server descriptors, skill registries, or tool manifests and cache those descriptors across sessions for reuse. Does not apply to agents that re-fetch and fully re-validate every descriptor inline on each invocation with no persistent capability cache.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-signed-mcp-tool-descriptor-after-a-capability-downgrade.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-signed-mcp-tool-descriptor-after-a-capability-downgrade.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-signed-mcp-tool-descriptor-after-a-capability-downgrade.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2311,
    "python_slice_tokens": 452,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not that a poisoned manifest injects malicious instructions into the tool's `description` field—that is the well-understood prompt-injection surface, and defenses (treating descriptions as untrusted data, never as instructions) are at least nominally known. The non-obvious failure is the **capability-downgrade replay**: an agent caches a ...",
    "what_was_observed": "A representative trace from an agent runtime that caches MCP descriptors with a 24-hour TTL: 1. **T0 discovery.** Agent connects to `mcp://files.internal`. Server returns a descriptor for tool `read_file` with `inputSchema.properties.path.pattern = \"^/srv/data/[a-z0-9_/]+\\\\.txt$\"`, `annotations = {\"readOnlyHint\": true, \"destructiveHint\": false}`. The runtime's policy engine evaluates this and emits an authorization g...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously; remove any one and the attack surface collapses: - **Cached authorization keyed on stable identity, not capability digest.** If grants are keyed on `hash(canonical(inputSchema) + annotations + permissions)`, a schema change produces a cache miss and forces re-evaluation. This is the single mos...",
    "decision_boundary": "The boundary is: **does the authorization artifact carry the capability bytes it was derived from, and is enforcement performed against those bytes rather than the live descriptor?** - *Below the boundary (safe):* grant = `(server_id, tool_name, capability_digest, frozen_constraints, ttl)`. On every session resume and every invocation, recompute `capability_...",
    "operational_effect": "The observable consequences, in order of how they surface: 1. **Silent grant/schema divergence.** The grant record and live schema disagree on a constraint field; no component compares them. Detectable only by an explicit invariant check (assert `digest(grant.capability_snapshot) == digest(live_descriptor)` on every resume), which most runtimes do not perfor..."
  },
  "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": "8865855c1fd168b78a1ea27eaac3ab793a733570b1f5610589531d5c7406adea",
    "verified_classes": [
      "CapabilityDowngradeError",
      "Grant",
      "LiveBinding"
    ],
    "verified_functions": [
      "_canonical",
      "capability_digest",
      "resume_and_assert",
      "enforce_invocation"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityDowngradeError"
    ],
    "sample_fail_closed_invariants": [
      "no grant; refusing unauthenticated invocation"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
