{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-skill-whose-signature-verifies-but-whose-manifest-digest-no-longer-matches-the-attested-runtime",
  "title": "When must an instance reject a skill whose signature verifies but whose manifest digest no longer matches the attested runtime",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that load MCP skills/tools governed by signed manifests plus a runtime integrity attestation (e.g., TPM-backed or sandbox-measured). Does not cover unsigned local dev skills or static tool schemas that never mutate post-attestation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-skill-whose-signature-verifies-but-whose-manifest-digest-no-longer-matches-the-attested-runtime.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-skill-whose-signature-verifies-but-whose-manifest-digest-no-longer-matches-the-attested-runtime.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-skill-whose-signature-verifies-but-whose-manifest-digest-no-longer-matches-the-attested-runtime.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1189,
    "python_slice_tokens": 240,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Signature validity and *provenance continuity* are two different predicates. A signed manifest proves that some keyholder authorized a byte sequence at signing time. It says nothing about whether the process currently exposing that skill is the same process the attestation measured. The failure mode is not \"bad signature\" — it is **signature-valid, attestati...",
    "what_was_observed": "A skill `summarize_docs` was signed with manifest: The loader verified `signature` → OK. It verified `attestation` freshness (nonce, timestamp) → OK. It did **not** check `H(code) == digest` against the measured PCR that covers the skill module. An operator hot-patched the skill's `entrypoint` to add a shell-out capability, re-signed the *manifest* with a valid key (legitimate rotation), but the running sandbox had a...",
    "condition_of_validity": "The joint invariant holds only if all of the following are true simultaneously: - The attestation's measurement covers the *exact* skill module bytes referenced by `manifest.digest` (not just the host runtime). - The nonce in the quote is bound to *this* load request, not a cached prior quote. - Manifest `declared_caps` is a subset of what the measurement's ...",
    "decision_boundary": "The decision is a conjunction, not a disjunction: The boundary case that trips loaders: `signature_ok = True`, `quote_fresh = True`, `digest_matches_measurement = False`. Many implementations short-circuit on the first two and never evaluate the third, or they evaluate it against a *cached* measurement captured at boot rather than at load. The correct rule: ...",
    "operational_effect": "On rejection the loader must: (a) refuse injection, (b) emit a provenance-divergence record binding `manifest.digest`, `attestation.measurement`, and `nonce`, (c) invalidate any cached quote for that skill so the next load re-measures, and (d) escalate if the mismatch persists across a re-measure (indicating a live patch rather than a stale cache). The downs..."
  },
  "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": "9daa62dd8be5746e4715366c0ffbcd8f09ed9cc235d6cac118f4c3f3274c9fd8",
    "verified_classes": [
      "ProvenanceDivergence",
      "Manifest",
      "Attestation"
    ],
    "verified_functions": [
      "verify_signature",
      "verify_quote",
      "load_skill"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
