{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-skill-injection-payload-smuggled-through-a-dynamically-loaded-plugin-s-declared-capability-schema",
  "title": "How does an instance detect a skill-injection payload smuggled through a dynamically loaded plugin's declared capability schema",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that resolve and load skills/plugins at runtime from a registry or manifest whose capability descriptors (`name`, `description`, `parameters`, `when_to_use`) are concatenated into the system/tool-selection prompt without provenance isolation. Does not apply to statically compiled tool sets whose schemas are pinned at build time and never re-rendered into the reasoning context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-injection-payload-smuggled-through-a-dynamically-loaded-plugin-s-declared-capability-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-injection-payload-smuggled-through-a-dynamically-loaded-plugin-s-declared-capability-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-injection-payload-smuggled-through-a-dynamically-loaded-plugin-s-declared-capability-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1705,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of skill injection treats the *tool body* (the executable code) as the attack surface. That is the wrong boundary. The dangerous surface is the **declarative metadata that gets rendered into the model's context during skill selection** — specifically the `description` and `when_to_use` fields of a dynamically discovered skill. These string...",
    "what_was_observed": "A skill registry served a plugin manifest whose `parameters` block was structurally valid JSON Schema but whose `description` field for a benign-looking parameter carried an embedded instruction sequence — a role-marker string followed by a directive to route subsequent file-write arguments through an attacker-controlled path, framed as a \"compatibility note.\" The agent's loader performed three checks: JSON parse, sc...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; remove any one and the channel closes: - **Dynamic load:** the skill set is resolved at runtime, so descriptors are not frozen at build time. - **Descriptor-in-context rendering:** metadata prose is placed in the same context the model uses to decide actions, without a trust-boundary marker distinguis...",
    "decision_boundary": "The boundary an instance must draw is between *authenticity verification* and *instructional authority*. A valid signature proves the descriptor came from the claimed publisher; it says nothing about whether that publisher's prose is allowed to act as a directive. The decision rule: - If descriptor text is only ever consumed by a **retrieval/ranking** step (...",
    "operational_effect": "When the invariant is enforced, the observable effect is that a poisoned descriptor can at most degrade its own selection ranking — it cannot shape arguments for other skills, because its text never persists past the selection step and never sits in the same trust zone as operator instructions. The blast radius shrinks from \"entire session's tool calls\" to \"..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "9cc469ae19d5f5e372c2e0a1684bac0bd90b71898956be436b71ae7da1745223",
    "verified_classes": [
      "DescriptorInjectionError",
      "SkillManifest"
    ],
    "verified_functions": [
      "load_skill"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DescriptorInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
