{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-mcp-tool-manifest-attestation-from-silently-degrading-across-transitive-server-upgrades",
  "title": "Which invariants prevent MCP tool-manifest attestation from silently degrading across transitive server upgrades",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that gate MCP tool invocation on signed tool manifests and SBOM-style provenance chains, where a server's advertised toolset is composed from upstream MCP servers or vendored tool packs. Does not apply to single-binary MCP servers with no transitive tool provenance, nor to runtimes that re-attest on every invocation rather than caching attestation state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-tool-manifest-attestation-from-silently-degrading-across-transitive-server-upgrades.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-tool-manifest-attestation-from-silently-degrading-across-transitive-server-upgrades.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-tool-manifest-attestation-from-silently-degrading-across-transitive-server-upgrades.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2077,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signed tool manifest attests *a specific artifact at a specific digest*. It does not attest *the behavior of the tool as the agent will invoke it*. The failure boundary is the gap between manifest-level integrity (the bytes of the manifest verify against the signer's key) and *composition-level integrity* (the tool the agent actually calls is the tool the ...",
    "what_was_observed": "A three-tier MCP topology: a *leaf* tool server (`pdf-extract` v2.3.1, signer `leaf@vendor`), an *aggregator* server (`doc-toolkit` v1.8.0, signer `aggregator@platform`) that re-exports leaf tools under a unified namespace, and the agent runtime that consumes `doc-toolkit`'s manifest. The reviewed baseline manifest for `doc-toolkit` pinned `pdf-extract.extract_text` with `inputSchema.properties.path.pattern = \"^/sand...",
    "condition_of_validity": "The invariant \"a valid manifest signature implies the tool matches the reviewed baseline\" holds **only if** the following jointly hold: - **Schema stability across composition.** Every keyword in the reviewed `inputSchema` survives the aggregator's merge routine byte-for-byte, or the merge is provably a superset-preserving operation. This fails for any merge...",
    "decision_boundary": "The operative decision is **what the runtime compares on cache miss and re-attestation**. Two boundaries: *Boundary A — attestation scope.* If the runtime attests only `(manifest_signature ∈ trusted_keys)`, it is exposed to lossy composition. If it attests `(manifest_signature ∈ trusted_keys) ∧ (served_inputSchema ⊇ reviewed_inputSchema) ∧ (served signer ∈ r...",
    "operational_effect": "Enforcing the conjoined invariant changes runtime behavior in three concrete ways: - **False-positive rejections on benign upgrades.** A leaf that legitimately relaxes `pattern` (e.g., widening a path prefix) now fails re-attestation and requires a reviewed baseline bump. This is the intended cost: the runtime trades availability for the guarantee that confi..."
  },
  "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": "62b83fffecedab2c31d670d92cf6c6c28d708bde9a315602fe64bc2b0a5a47c1",
    "verified_classes": [
      "AttestationInvariantError",
      "ReviewedBaseline",
      "ServedManifest"
    ],
    "verified_functions": [
      "_canonical",
      "_schema_hash",
      "_dropped_security_keywords",
      "attest_served_manifest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttestationInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
