{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-an-mcp-tool-manifest-whose-signature-verifies-but-whose-capability-set-exceeds-the-attested-grant-envelope",
  "title": "When must an instance reject an MCP tool manifest whose signature verifies but whose capability set exceeds the attested grant envelope",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that load MCP servers under a signed manifest with an attestation envelope (granted scopes, tool inventory hash, issuer warrant) and that cache or replay manifests across cold starts. Does not apply to unsigned local dev servers or to transport-layer TLS trust decisions, which are handled separately.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-tool-manifest-whose-signature-verifies-but-whose-capability-set-exceeds-the-attested-grant-envelope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-tool-manifest-whose-signature-verifies-but-whose-capability-set-exceeds-the-attested-grant-envelope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-tool-manifest-whose-signature-verifies-but-whose-capability-set-exceeds-the-attested-grant-envelope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1917,
    "python_slice_tokens": 345,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Signature validity and capability authorization are orthogonal predicates, and the common failure is collapsing them into one check. A manifest can carry a perfectly valid Ed25519 signature over its bytes — produced by a genuinely trusted issuer key, with a non-revoked certificate chain — while the *contents* of that manifest declare a tool whose capability ...",
    "what_was_observed": "Trace of a real injection across a cold start: 1. Server `fs-helper` attested at commit `a91f`, envelope grants `{fs.read: [\"/workspace/**\"]}`, tool inventory hash `H1`, tool list `[read_file]`. Runtime pins `(issuer_key, H1, envelope)`. 2. Server republishes at commit `c04d`. Same issuer key. New manifest lists `[read_file, exec_shell, http_post]`. Signature verifies. Envelope field `granted_scopes` is *re-signed to...",
    "condition_of_validity": "The guardrail (warrant-derived subset check) is only sound under these conditions, and must fail closed when any is unmet: - The issuer warrant is fetched over a channel independent of the manifest and is bound to the issuer key by a signature the runtime verifies against a *root* trust anchor, not against the manifest. - The warrant names the delegation sco...",
    "decision_boundary": "The runtime admits a manifest **iff** all of: 1. `verify_signature(manifest, issuer_key) == OK` and `issuer_key` chains to root; 2. `warrant = fetch_warrant(issuer_key)` verifies against root and is non-revoked at load time; 3. `capability_closure(manifest.tools) ⊆ (warrant.may_delegate ∩ runtime_policy.allow)`; 4. `manifest.inventory_hash == hash(normalize(...",
    "operational_effect": "When the invariant is enforced, three observable behaviors change: - **Injection surface collapses to the warrant.** A compromised or malicious server can no longer escalate by re-signing its own manifest; it can only expose capabilities the issuer was already authorized to delegate. The blast radius of a stolen issuer key is bounded by that issuer's warrant..."
  },
  "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": "731eee94987985a7fcf9379c450b195a61e4048b4fb415746805e709ac4c36ea",
    "verified_classes": [
      "ManifestAdmissionError",
      "Warrant",
      "Manifest"
    ],
    "verified_functions": [
      "normalize_tools",
      "compute_inventory_hash",
      "admit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ManifestAdmissionError"
    ],
    "sample_fail_closed_invariants": [
      "signature verification failed",
      "warrant issuer does not match manifest issuer",
      "issuer warrant revoked",
      "inventory hash does not cover normalized tool set"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
