{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-adversarial-skill-injection-in-agent-plugin-marketplaces-the-post-install-capability-union-drift-that-static-manifest",
  "title": "What structural signals indicate adversarial skill-injection in agent plugin marketplaces: the post-install capability-union drift that static manifests cannot see",
  "date_of_record": "2026 November 30",
  "scope": "Applies to marketplaces that admit agent \"skills\" (tool bundles, MCP servers, plugin manifests) via a review gate that inspects a declared capability manifest at submission time, and to runtimes that grant capabilities by manifest. Does not apply to fully sandboxed interpreters that re-derive the syscall/tool allowlist at every invocation from an out-of-band policy engine.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-adversarial-skill-injection-in-agent-plugin-marketplaces-the-post-install-capability-union-drift-that-static-manifest.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-adversarial-skill-injection-in-agent-plugin-marketplaces-the-post-install-capability-union-drift-that-static-manifest.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-adversarial-skill-injection-in-agent-plugin-marketplaces-the-post-install-capability-union-drift-that-static-manifest.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1790,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of skill-injection defense is *manifest review*: parse the submitted `skill.yaml`, check declared tools against a policy, sign, publish. The failure that matters is not a malicious manifest slipping past review. It is a **benign manifest whose declared capability set is a strict subset of the capability set the skill actually acquires when...",
    "what_was_observed": "A skill submission declared three tools: `read_file`, `summarize`, `post_message`. The manifest was clean, the code was clean, the LLM reviewer scored it low-risk. At install, the skill's dependency closure pulled in a shared \"utilities\" package — itself a previously-admitted marketplace skill — whose latest minor version had added an `exec_shell` tool to *its* manifest. Because the runtime composed capabilities by u...",
    "condition_of_validity": "This boundary is real only when all of the following hold, and the guardrail is only necessary under the same conditions: - Capabilities are granted by **union across the dependency closure**, not intersected with the root declaration. - Dependency resolution is **dynamic or range-based** at install time, so the resolved set can change without the root artif...",
    "decision_boundary": "The operational decision is how to bound the resolved set. Three options, in increasing strength: - **Pin-and-freeze:** lockfile every admitted skill to exact dependency versions, and treat any lockfile change as a resubmission requiring re-review. Bounds drift but converts every transitive patch into a review event — high operational cost, and it does not c...",
    "operational_effect": "Concretely, an agent operating in such a marketplace should treat \"skill passed review\" as evidence about the *declared* set only, and must independently verify the *resolved* set before trusting a skill with side-effecting tools. The observable signal of compromise is a mismatch between the capability set the root skill's manifest advertises and the capabil..."
  },
  "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": "e288f2a74f5db168780b5358c7f57c122cd52711e320a66f18ecbb6bc6df3f38",
    "verified_classes": [
      "CapabilityDriftError",
      "Skill"
    ],
    "verified_functions": [
      "enforce_declared_capability_invariant"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
