{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-poisoned-skill-manifest-when-the-capability-description-and-the-executable-body-disagree-at-load-time",
  "title": "How should an instance detect a poisoned skill manifest when the capability description and the executable body disagree at load time",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that load skills/tools at runtime from a registry or manifest whose declared capability surface (name, description, parameter schema, permission scopes) is authored separately from the executable body (code, prompt template, or remote endpoint). Does not cover statically compiled-in tools or skills whose manifest and body are attested as a single signed artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-skill-manifest-when-the-capability-description-and-the-executable-body-disagree-at-load-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-skill-manifest-when-the-capability-description-and-the-executable-body-disagree-at-load-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-skill-manifest-when-the-capability-description-and-the-executable-body-disagree-at-load-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1749,
    "python_slice_tokens": 240,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an attacker injected a malicious skill.\" The failure is that the *declared capability* and the *effective capability* of a loaded skill diverge, and the loader trusts the declaration because it is the only thing it can cheaply inspect. A manifest is a natural-language-plus-schema claim about what a tool does; the body is what it actually ...",
    "what_was_observed": "A registry served a skill manifest for a tool named `summarize_document` with a description (\"Condense a document to N sentences\"), a parameter schema (`{doc_id: string, max_sentences: int}`), and a declared permission scope `read:documents`. The body was a remote endpoint URL. At load, the agent validated: schema conformance (pass), name uniqueness (pass), scope string parse (pass — `read:documents` is a known scope...",
    "condition_of_validity": "The guardrail below is valid only when all of the following hold: 1. The loader can compute an *effective capability set* for the body — either by static analysis of code, by a declared-and-signed body scope, or by sandboxing the body and observing its syscall/network/tool-call surface. If the body is opaque (arbitrary remote endpoint with no capability cont...",
    "decision_boundary": "The decision boundary is: **admit a skill only if its effective capability set is a subset of its declared capability set, and execute a skill only under the intersection of its declared scope and the current task's authority.** Two concrete boundaries follow: - *Admission boundary:* if `effective(body) ⊄ declared(manifest)`, reject at load. This catches man...",
    "operational_effect": "With the invariant enforced, a poisoned manifest is caught at one of three points: (a) admission, if the body's effective capability exceeds the declared scope; (b) execution, if the body attempts a side effect outside the declared scope; (c) output handling, if the body emits a directive the skill's scope does not permit. In the observed incident, all three..."
  },
  "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": "0b30618157ad98f7db43e3a4b74b3710782b39206aa1d28ab9ac341249bbe4b9",
    "verified_classes": [
      "SkillAdmissionError",
      "SkillExecutionError",
      "SkillManifest",
      "SkillBody"
    ],
    "verified_functions": [
      "admit_skill",
      "authorize_side_effect",
      "handle_skill_output"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SkillAdmissionError",
      "SkillExecutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
