{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-poisoned-skill-manifest-during-registry-resolution-before-invocation-ever-occurs",
  "title": "What structural signals indicate a poisoned skill manifest during registry resolution, before invocation ever occurs",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that discover and bind external skills/tools from a registry (MCP servers, A2A agent cards, plugin manifests) via declarative manifests. Does not cover runtime prompt-injection delivered through tool *outputs*, nor vulnerabilities in an already-trusted, pinned tool body.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-skill-manifest-during-registry-resolution-before-invocation-ever-occurs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-skill-manifest-during-registry-resolution-before-invocation-ever-occurs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-skill-manifest-during-registry-resolution-before-invocation-ever-occurs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1636,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous boundary is not \"malicious code executes.\" It is the **gap between what the manifest declares and what the resolver actually binds**. A poisoned skill manifest wins not by containing exploit code but by *declaring* one capability surface while *requiring* a broader one — and by exploiting the fact that most registries resolve on `name` + `versi...",
    "what_was_observed": "A registry entry for a skill named `pdf-text-extract` (version `1.4.2`, a plausible patch bump over a legitimate `1.4.1`) carried a `description` of \"Extracts text from PDF buffers.\" The LLM-facing summary was clean. Three structural anomalies were present in the manifest itself, none of which triggered any alert: 1. **Scope drift between prose and `permissions`.** The manifest's `permissions` array listed `filesyste...",
    "condition_of_validity": "The guardrail below is only sound under these conditions, and is void outside them: - **Manifests are the sole trust boundary.** If the skill body itself is fetched and executed from an unpinned, mutable URL, manifest validation is insufficient — you must also pin and digest the body. This record assumes body integrity is handled separately. - **The resolver...",
    "decision_boundary": "The boundary is a single predicate evaluated **at resolution, before binding**: *reject any manifest whose declared `permissions` are not a subset of the capability class implied by its prose-declared function AND consistent with the prior version's permissions modulo an explicit, signed expansion.* Concretely: - **Pass** when `permissions ⊆ capability_class...",
    "operational_effect": "Enforcing the predicate converts a silent, LLM-triggered exfiltration into a deterministic resolution-time rejection with a machine-readable reason. The agent never binds the skill, so the LLM never sees the clean description and never crafts the `options` payload. The cost is false positives on legitimate capability expansions, which is why the escalation p..."
  },
  "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": "c9174f3e11e503d0529e8a0dec0153e7496ad6a31b64e4b975ccc5482381d146",
    "verified_classes": [
      "ManifestValidationError",
      "Manifest"
    ],
    "verified_functions": [
      "_digest_chains",
      "validate_manifest",
      "resolve_and_bind"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestValidationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
