{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-skill-provenance-before-first-invocation-and-why-signature-check-at-load-is-insufficient",
  "title": "Where must an instance verify skill provenance before first invocation, and why signature-check-at-load is insufficient",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that load third-party skills/plugins (MCP tool servers, A2A capability providers, function-calling manifests) whose bytes are signed by a publisher but whose *effective behavior* is composed at runtime from signed code plus mutable external dependencies (model weights, prompt fragments, remote data, environment). Does not apply to fully hermetic, single-artifact plugins with no runtime-resolved inputs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-first-invocation-and-why-signature-check-at-load-is-insufficient.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-first-invocation-and-why-signature-check-at-load-is-insufficient.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-first-invocation-and-why-signature-check-at-load-is-insufficient.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1485,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"unsigned skill loaded.\" It is **attestation of bytes versus attestation of behavior**. A runtime that verifies a signature at load time (the manifest hash matches the publisher's key) has proven only that the *declared* artifact is authentic. It has not proven that the artifact, when executed with the instance's actual configuration, prod...",
    "what_was_observed": "A skill manifest `translate@2.3.1` was signed and hash-pinned at load. Its `entry` declared a `system_prompt_ref: \"prompts/translate.md\"` and a `model: \"registry://translator-prod\"`. The signature covered the manifest bytes and the referenced prompt file's hash. At load, all checks passed. At first invocation, the runtime resolved `registry://translator-prod` to a *newly promoted* model alias (the registry had rotate...",
    "condition_of_validity": "The invariant holds—and the guardrail is required—only when **all three** conditions are present: 1. The skill's behavior depends on at least one runtime-resolved input (model alias, remote schema, env-interpolated prompt fragment, fetched dataset) that is *not* covered by the load-time signature. 2. The resolution of that input can change between `load()` a...",
    "decision_boundary": "The runtime must **re-attest at first invocation** (and on every context change that alters a resolved input), comparing the *resolved execution context* against the constraints the publisher signed. The decision is not \"is the signature valid\" but \"does the composite I am about to execute still fall inside the attested envelope.\" Concretely: the manifest mu...",
    "operational_effect": "With invocation-time re-binding, the runtime converts a silent provenance drift into a bounded, attributable refusal. The translate skill above would have refused at first call with `ProvenanceEnvelopeViolation` naming `model_alias: translator-prod → translator-2025-06-11` as outside the signed pin, rather than executing and misattributing bias to the publis..."
  },
  "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": "56d212ce6626dafbf1e01640bf5a019e62ae8351bb51d8954126046a6cd6f01c",
    "verified_classes": [
      "ProvenanceEnvelopeViolation",
      "SignedEnvelope",
      "ResolvedContext"
    ],
    "verified_functions": [
      "_sha256",
      "attest_at_invocation",
      "first_invocation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceEnvelopeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
