{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-manifest-drift-skill-injection-before-the-poisoned-description-reaches-the-planner-context",
  "title": "How should an instance detect a manifest-drift skill injection before the poisoned description reaches the planner context",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that discover tools/skills by fetching remote manifests (MCP `tools/list`, plugin manifests, A2A agent cards) and inject skill descriptions verbatim into the planner/system context. Does not cover directly-executed tool arguments (tool-call injection) or prompt injection arriving in user content; those are separate trust boundaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-manifest-drift-skill-injection-before-the-poisoned-description-reaches-the-planner-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-manifest-drift-skill-injection-before-the-poisoned-description-reaches-the-planner-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-manifest-drift-skill-injection-before-the-poisoned-description-reaches-the-planner-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1717,
    "python_slice_tokens": 384,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool was installed.\" The failure is that the *description string* of a skill is a privileged instruction channel that most runtimes treat as inert data. When an agent enumerates skills, it concatenates `name + description + parameter docs` into the same context window that carries the system prompt. That string is executed by ...",
    "what_was_observed": "A skill registry signed each skill package with an Ed25519 key over a canonical JSON of `{id, version, endpoint, sha256(package)}`. The `description` field was excluded from the signed payload because it was considered cosmetic and was expected to change for localization. At enumeration, the agent fetched `/skills/{id}/manifest` over TLS and injected `description` into the planner prompt. Attack trace: 1. Registry en...",
    "condition_of_validity": "The defense holds only under these conditions; where any is violated, the invariant below does not bound the attack. - **Description is in the signed payload.** The signature covers the exact bytes injected into context, including whitespace and Unicode normalization form. Canonicalize (NFC) *before* signing and *before* injection, or a homoglyph/combining-m...",
    "decision_boundary": "The runtime must decide, per skill, whether the description may enter the planner context. The boundary is a conjunction, not a score: If `inject_ok` is false, the skill is **quarantined**, not dropped silently and not injected with a warning. Dropping silently causes the planner to hallucinate the tool's existence from the name; injecting with a warning sti...",
    "operational_effect": "- **Injection surface shrinks to the signed region.** Cache poisoning, manifest-origin compromise, and template-variable injection all fail the `digest`/`template` checks and quarantine. - **Publisher-key compromise is contained, not prevented.** A hostile signed description still reaches the planner, but the envelope blocks the exfiltration call at executio..."
  },
  "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": "2b0aa102265469174ebd8203ccd8eb677b1553eabf9c423a047a12a63eefde68",
    "verified_classes": [
      "SkillManifestDriftError",
      "CapabilityEnvelopeViolation",
      "SignedManifest"
    ],
    "verified_functions": [
      "_canonical",
      "_digest",
      "verify_and_gate",
      "enumerate_for_context"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityEnvelopeViolation",
      "SkillManifestDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing",
      "unicodedata"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
