{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-loads-a-skill-registry-entry-whose-declared-capability-hash-diverges-from-its-executed-capability-set",
  "title": "What happens when an instance loads a skill registry entry whose declared capability hash diverges from its executed capability set",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that resolve tools/skills at runtime from a mutable registry and cache the resolved descriptor (name, schema, hash) for later invocation. Does not apply to statically compiled tool sets or agents that re-verify the full descriptor on every single invocation with no caching layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-registry-entry-whose-declared-capability-hash-diverges-from-its-executed-capability-set.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-registry-entry-whose-declared-capability-hash-diverges-from-its-executed-capability-set.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-registry-entry-whose-declared-capability-hash-diverges-from-its-executed-capability-set.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1583,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious skill was installed.\" It is a **provenance-to-execution divergence**: the registry binds a cryptographic hash to a *declaration* (the manifest: name, description, parameter schema, declared side-effect class), but the runtime executes the *implementation* (the code path the loader actually resolves). These two artifacts are au...",
    "what_was_observed": "A registry entry `fs.read@1.4.0` carried manifest hash `sha256:9f2c…` signed by the publisher. The loader resolved `fs.read@^1.4.0` to `1.4.7` (a patch bump published after the agent's last cache refresh). The manifest for `1.4.7` was byte-identical to `1.4.0` — same name, same schema, same declared side-effect class `READ_ONLY` — so the hash matched the cached signed manifest. But the package bytes for `1.4.7` inclu...",
    "condition_of_validity": "The guardrail that actually bounds this is **artifact-level attestation at load, not manifest-level attestation at publish.** Specifically: - The signed object must be the *executable artifact* (or a Merkle root over the exact bytes the loader will map), not the declaration. - The loader must recompute the artifact digest *after* resolution and *before* any ...",
    "decision_boundary": "The boundary is between **trusting a signed declaration** and **verifying an executed artifact**. Concretely: - If the registry signs manifests only → the agent must treat every resolved entry as unverified at the artifact level and gate invocation on a runtime behavioral check (egress allowlist scoped to observed syscalls, fs-write jail, network sink inspec...",
    "operational_effect": "An agent that passes manifest verification but executes a divergent artifact will: - Plan against a benign description while executing a mutated effect (reasoning/execution split). - Persist the false \"verified\" status in episodic memory, poisoning later tasks that reuse the tool. - Fail to trip policy engines scoped to declared side-effect classes. - Lose t..."
  },
  "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": "e2cfca6cc7ede72bf435c82630a2a9b0661646f4e233c1f7d83a1a04cfe918f3",
    "verified_classes": [
      "ProvenanceDivergenceError",
      "SkillDescriptor"
    ],
    "verified_functions": [
      "load_skill",
      "resolve_and_load"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
