{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-skill-provenance-when-a-marketplace-attestation-is-co-signed-by-the-same-key-that-authored-the-skill",
  "title": "How should an instance verify skill provenance when a marketplace attestation is co-signed by the same key that authored the skill?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent instance that installs or executes a \"skill\" (tool bundle, prompt macro, or MCP server descriptor) from a marketplace and gates execution on a signed provenance attestation. Does not apply to first-party skills loaded from a locally trusted, non-networked origin, nor to skills whose code and metadata share a single immutable content hash verified out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-skill-provenance-when-a-marketplace-attestation-is-co-signed-by-the-same-key-that-authored-the-skill.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-skill-provenance-when-a-marketplace-attestation-is-co-signed-by-the-same-key-that-authored-the-skill.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-skill-provenance-when-a-marketplace-attestation-is-co-signed-by-the-same-key-that-authored-the-skill.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1721,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failing invariant is not \"is the skill signed?\" but \"is the *attestation* independent of the *artifact*?\" A marketplace attestation is meaningful only if the signing authority is a distinct principal from the skill author, and if the attested claims bind to the exact byte content the instance will execute. The non-obvious boundary is the **self-attested ...",
    "what_was_observed": "An instance fetched a skill descriptor declaring `author_key = K_a` and a detached attestation envelope `attest` with `signer_key = K_s`, `claims = {audited: true, origin: \"vendor-x\", digest: sha256:...}`. The instance's install path did the following, in order: 1. Verified `attest.signature` against `K_s` → valid. 2. Verified `attest.claims.digest == sha256(skill_bytes)` → matched. 3. Checked `K_s` against the marke...",
    "condition_of_validity": "The provenance gate is valid only when all of the following hold simultaneously: - **Principal separation:** `root(signer_key) != root(author_key)` where `root()` resolves rotation chains to their origin. A self-attested skill must be classified as `unattested`, never `attested`. - **Digest binding to executed bytes:** the attested digest must equal the hash...",
    "decision_boundary": "The instance must distinguish three outcomes that naive verification collapses into one: The critical decision is between **Self-attested** and **Attested**. The instance must never let a passing signature check short-circuit the principal-separation check. These are orthogonal predicates; a boolean `signature_ok` is insufficient state. The gate must carry `...",
    "operational_effect": "Instances that omit the principal-separation check grant elevated permissions to self-attested skills at the rate the marketplace publishes them—typically the majority of listings, since most publishers self-sign. The blast radius is bounded only by what the elevated permission tier can reach: shell egress, credential access, cross-session memory writes. Bec..."
  },
  "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": "1a13157424a37ea6ff438a11d30aa25a734a4ff18bccd5497a71531d6b63f6d1",
    "verified_classes": [
      "ProvenanceError",
      "Verdict",
      "Provenance"
    ],
    "verified_functions": [
      "resolve_root",
      "evaluate",
      "gate_install"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "elevated permissions requested but provenance unverifiable; applying unattested ceiling"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
