{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-poisoned-skill-manifest-when-its-declared-capability-hash-matches-a-stale-cache-entry",
  "title": "Why does an instance accept a poisoned skill manifest when its declared capability hash matches a stale cache entry",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that dynamically load capabilities from a manifest registry (tool/skill descriptors carrying name, schema, version, and a content hash) and cache resolved manifests across task boundaries. Does not cover static, build-time-linked toolchains or manifests re-verified from a trusted root on every load.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-when-its-declared-capability-hash-matches-a-stale-cache-entry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-when-its-declared-capability-hash-matches-a-stale-cache-entry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-when-its-declared-capability-hash-matches-a-stale-cache-entry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1401,
    "python_slice_tokens": 186,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent loaded a malicious skill.\" It is subtler: the agent loaded a skill whose *declared* identity matched a cached trust record, while the *actual* capability body had drifted. Manifest identity and capability body are two separate artifacts, and the binding between them is the only thing standing between an injection and execution. ...",
    "what_was_observed": "A dynamic loader resolved a skill `summarize_doc@2.3.1`. The registry returned a manifest: The loader computed `sha256` over the canonicalized manifest, matched the cached trust entry for `summarize_doc@2.3.1`, and marked the skill `TRUSTED`. It then dereferenced `body_uri` from a local body cache keyed only by `name` — *not* by `content_hash`. The body cache had been populated by an earlier task that fetched `summar...",
    "condition_of_validity": "This analysis holds only when all of the following are true; otherwise the mechanism differs: - The manifest is fetched and validated *separately* from the body (two-phase load), so a time gap exists between trust decision and body access. - The body cache (or CDN, or object store) is keyed by anything other than the body content hash — typically name, name@...",
    "decision_boundary": "The precise line: **a trust decision on a manifest is not a trust decision on a capability.** They are distinct artifacts joined by one hash. An agent may treat a manifest as trusted only for the purpose of *deciding whether to attempt a body fetch*, never for the purpose of *executing the body*. The execution gate must be a fresh `hash(body) == manifest.con...",
    "operational_effect": "Without the binding check, an attacker needs only write access to any body store reachable by the agent — not to the manifest registry, not to the signing keys. The blast radius is the full capability surface: a poisoned `summarize_doc` body can carry prompt-injection that redirects subsequent tool calls, exfiltrates context, or rewrites the agent's task obj..."
  },
  "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": "b0eb26298d076835302e3446b903c1130cc4d7b3bbdd04829d116057890225da",
    "verified_classes": [
      "CapabilityBindingError",
      "Manifest"
    ],
    "verified_functions": [
      "load_capability"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
