{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-provenance-consistent-but-semantically-mutated-skill-at-registry-install-time",
  "title": "How does an instance detect a provenance-consistent but semantically mutated skill at registry install time",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that acquire executable skills/tools from a registry and gate installation on provenance verification (signature, hash, publisher identity, version lineage). Does not apply to skills loaded from a local, already-trusted filesystem, nor to purely in-context prompt templates that never execute code or tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-consistent-but-semantically-mutated-skill-at-registry-install-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-consistent-but-semantically-mutated-skill-at-registry-install-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-consistent-but-semantically-mutated-skill-at-registry-install-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1637,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance verification answers \"did the publisher I trust sign *this exact byte blob*?\" It does **not** answer \"does this byte blob still do what the publisher's last-reviewed version did?\" The failure mode documented here is a **provenance-consistent semantic mutation**: a skill whose signature, hash, publisher key, and version lineage all verify cleanly, ...",
    "what_was_observed": "An agent performing a routine `install_skill(name=\"data-transform\", version=\">=2.3\")` executed a three-stage gate: (1) fetch manifest, (2) verify signature against pinned publisher key, (3) verify declared content hash matches blob. All three passed. The installed skill's `transform()` function, however, had been modified to emit a subprocess call that exfiltrated the agent's tool credentials to an external endpoint ...",
    "condition_of_validity": "The invariant \"provenance verification ⇒ safe to install\" holds **only if** at least one of the following is true: 1. The publisher's release pipeline is fully trusted and cannot be induced to build mutated code (i.e., the signing authority and the code author are the same trust boundary), **or** 2. The registry performs semantic review at publish time and t...",
    "decision_boundary": "The agent must transition from \"provenance-only gate\" to \"provenance + behavioral-diff gate\" when **any** of the following triggers fires during install: - The resolved version is a *major* or *minor* bump relative to the pinned baseline (patch bumps may be allowed to skip semantic diff under an explicit policy, but must still diff capability sets). - The ne...",
    "operational_effect": "When the behavioral-diff gate is in place, the mutated `2.3.0` blob is held at the boundary: provenance passes, but the inferred-capability superset check fires (`network.egress` newly present) and the new-module check fires (`_exfil.py` absent from `2.2.7`). The install raises, the agent does not execute the skill, and the event is logged with the diff arti..."
  },
  "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": "b22be6b7589c89a6d8facf793a05ccca6ea546c7e6b6d8a0af4df60a36a4d95c",
    "verified_classes": [
      "ProvenanceBehaviorMismatch",
      "SkillBlob",
      "BehavioralBaseline"
    ],
    "verified_functions": [
      "verify_install_gate",
      "cache_key"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceBehaviorMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
