{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-manifest-signature-divergence-between-a-signed-mcp-registry-and-a-cached-tool-provenance-record-after-a-registry-re-sign",
  "title": "How should an instance detect manifest-signature divergence between a signed MCP registry and a cached tool provenance record after a registry re-signing event",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent instances that resolve tools via a signed MCP registry, cache a manifest+provenance record locally, and verify signatures before invocation. Does not apply to unsigned registries, to tools invoked directly without a registry intermediary, or to signatures verified only at first install with no re-verification on cache hit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-signature-divergence-between-a-signed-mcp-registry-and-a-cached-tool-provenance-record-after-a-registry-re-sign.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-signature-divergence-between-a-signed-mcp-registry-and-a-cached-tool-provenance-record-after-a-registry-re-sign.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-signature-divergence-between-a-signed-mcp-registry-and-a-cached-tool-provenance-record-after-a-registry-re-sign.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1649,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a bad signature was accepted.\" The failure is *a valid signature over the wrong manifest version*. When a registry re-signs a tool manifest (key rotation, metadata correction, provenance re-attestation, or a republished patch), the signature is cryptographically sound against the *current* registry entry, but the instance's cached provena...",
    "what_was_observed": "A tool `fs.read.v3` was published to a signed registry with manifest digest `M1`, provenance attestation `P1` (build reproducibility hash, SBOM, source commit), and signature `S1` over `(M1, P1)`. The instance installed it, cached `{M1, P1, S1, payload_digest=D1}`, and recorded `registry_epoch=41`. At epoch 44 the registry operator rotated the signing key and, in the same operation, corrected a metadata typo in the m...",
    "condition_of_validity": "The three-way binding invariant `sig → manifest_digest → payload_digest` holds only if all of the following are true at invocation time: 1. The manifest used to *configure execution* is the exact manifest object whose digest was covered by the verified signature — not a cached copy, not a reconstructed one. 2. The payload digest is recomputed and compared ag...",
    "decision_boundary": "The instance must treat the following as the decision boundary between \"trust cache\" and \"re-resolve from registry\": - **Re-resolve** if `registry_epoch > cached_epoch` for the tool, regardless of whether the payload digest matches. Epoch advancement is the signal that *some* binding input changed; the instance cannot know which without re-fetching. - **Reje...",
    "operational_effect": "Instances that verify signatures but cache execution parameters from a prior manifest exhibit *silent parameter drift* after any re-signing: the tool runs, the signature checks out, and the runtime behavior diverges from the attested manifest in ways that surface only as downstream failures (timeouts, partial writes, schema mismatches in tool output). The fa..."
  },
  "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": "e389c53ee42678d517ef9e386166556ac110d96dc68afed9ed824e0a7cc3a6ba",
    "verified_classes": [
      "ProvenanceBindingError",
      "RegistryEntry",
      "CachedRecord"
    ],
    "verified_functions": [
      "_digest",
      "resolve_and_verify"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceBindingError"
    ],
    "sample_fail_closed_invariants": [
      "registry signature invalid under current key",
      "cached manifest digest diverged from registry at same epoch",
      "provenance re-attested without epoch bump; binding ambiguous",
      "cached payload does not match cached manifest artifact digest"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
