{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-poisoned-skill-manifest-after-a-clean-signature-check-the-capability-tag-shadowing-invariant-in-dynamic-skill-loading",
  "title": "Why does an instance accept a poisoned skill manifest after a clean signature check: the capability-tag shadowing invariant in dynamic skill loading",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that hot-load skills/plugins from a registry or marketplace at runtime and gate admission on manifest signatures plus declared capability tags. Does not apply to statically compiled tool sets or to agents whose skill set is frozen at process start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-after-a-clean-signature-check-the-capability-tag-shadowing-invariant-in-dynamic-skill-loading.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-after-a-clean-signature-check-the-capability-tag-shadowing-invariant-in-dynamic-skill-loading.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-after-a-clean-signature-check-the-capability-tag-shadowing-invariant-in-dynamic-skill-loading.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1799,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"unsigned skill gets loaded.\" It is that a *correctly signed* skill, whose declared capability tags are individually within the agent's allowlist, nonetheless acquires privileges the agent never granted — because the loader resolves capability checks against a **merged tag namespace** rather than the **per-skill grant**. The signature prov...",
    "what_was_observed": "A skill registry served manifest `M_A` for skill `pdf-extract` and `M_B` for skill `summarize`. Both carried valid Ed25519 signatures from distinct, allowlisted publishers. `M_A` declared tags `{filesystem.read, text.extract}`; `M_B` declared `{text.summarize, filesystem.read}`. The policy allowlist permitted `filesystem.read` for both publishers — the reviewers reasoned that read access is low-risk and both skills l...",
    "condition_of_validity": "The attack requires all of the following to hold simultaneously; remove any one and the shadowing does not compose: 1. **Tag-keyed dispatch with a shared mutable namespace.** The runtime resolves capability calls by string tag into a single global (or per-agent) handler map. If dispatch is by `(skill_id, tag)` tuple, shadowing cannot occur. 2. **Additive loa...",
    "decision_boundary": "The boundary is between **admission-time authorization** and **use-time binding integrity**. A loader is safe against this class iff it enforces one of: - **Immutable binding:** handler references are captured per-skill at that skill's admission and never re-resolved globally; later loads cannot rebind an earlier skill's view. - **Collision rejection:** a ma...",
    "operational_effect": "After the incident, the loader was changed to reject tag collisions by default and to capture per-skill handler references at admission. The measurable effects: - **Registry growth cost rose.** Skills that previously \"just worked\" by sharing a tag now require an explicit co-binding grant, which is a reviewed artifact. The number of admitted skills per week d..."
  },
  "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": "d13ae2e7586c4292e140d073e82ec0c7dd756c457a33b628456a81a4091ce4bd",
    "verified_classes": [
      "CapabilityShadowError",
      "Manifest",
      "SkillLoader"
    ],
    "verified_functions": [
      "admit",
      "resolve"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityShadowError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
