{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-execute-a-poisoned-skill-after-a-registry-reload-when-its-manifest-hash-matched-at-load-time",
  "title": "Why does an instance execute a poisoned skill after a registry reload when its manifest hash matched at load time?",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents that resolve executable skills from a mutable registry (remote or shared filesystem) and cache skill manifests/descriptors locally between reloads. Does not apply to statically compiled tool bindings or to registries with content-addressed, signed, immutable skill entries keyed by digest.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-execute-a-poisoned-skill-after-a-registry-reload-when-its-manifest-hash-matched-at-load-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-execute-a-poisoned-skill-after-a-registry-reload-when-its-manifest-hash-matched-at-load-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-execute-a-poisoned-skill-after-a-registry-reload-when-its-manifest-hash-matched-at-load-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1593,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious skill got registered.\" It is that **manifest integrity verification and executable body resolution are two separate reads against a mutable store, and the agent treats the first read as authoritative for the second.** A skill registry entry typically has two parts: a *descriptor* (name, version, declared capability schema, per...",
    "what_was_observed": "A registry-backed agent (skills registered as `{skill_id, version, manifest_sha256, body_ref}`) was configured to reload its skill table every N task cycles. Trace of the failing sequence: 1. **Cycle 0 — load.** Agent fetches descriptor for `summarize_doc@1.4`, computes `manifest_sha256`, matches the registry-declared hash, caches descriptor + `body_ref = \"blob://skills/summarize_doc/1.4/body\"`. Verification passes. ...",
    "condition_of_validity": "The attack surface exists only when all of the following hold; the invariant below is valid exactly under these conditions: - **Descriptor and body are separately addressable and the body pointer is mutable** (tag, `latest`, in-place blob overwrite). If bodies are content-addressed (`body_ref = sha256:<digest>`) and the digest is *inside* the signed descript...",
    "decision_boundary": "The boundary is: **what identity does the executor bind to, and was it the same identity that was verified?** - If the executor binds to `(skill_id, version, body_ref)` and verification bound to `manifest_sha256` over the descriptor only → **the binding is split; treat as untrusted.** - If the executor binds to a digest that was itself inside the verified de...",
    "operational_effect": "Without the invariant, skill-injection becomes a **persistence primitive**: the injected body runs under the legitimate skill's scopes, survives reloads (descriptor hash still valid), and produces non-reproducible execution across instances — defeating replay-based auditing because the audit record (descriptor hash) does not identify the body that ran. The b..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "35cd16365b199ab6e981ab6bee976834356665e7e2030d1abf6e9b71939694ea",
    "verified_classes": [
      "SkillIntegrityError",
      "VerifiedDescriptor"
    ],
    "verified_functions": [
      "resolve_executable_handle",
      "execute_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
