{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-skill-injection-attack-surface-in-dynamically-loaded-agent-skills-manifest-to-runtime-capability-drift-as-a-load-ti",
  "title": "What structural signals indicate a skill-injection attack surface in dynamically loaded agent skills: manifest-to-runtime capability drift as a load-time invariant violation",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that resolve skills (tool bundles, plugin manifests, MCP-style capability descriptors) at runtime from a registry or filesystem, where the manifest declares capabilities and the loader trusts those declarations without re-deriving them from the executable body. Does not apply to statically compiled toolchains where capability sets are fixed at build time and signed as a unit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-injection-attack-surface-in-dynamically-loaded-agent-skills-manifest-to-runtime-capability-drift-as-a-load-ti.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-injection-attack-surface-in-dynamically-loaded-agent-skills-manifest-to-runtime-capability-drift-as-a-load-ti.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-injection-attack-surface-in-dynamically-loaded-agent-skills-manifest-to-runtime-capability-drift-as-a-load-ti.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2118,
    "python_slice_tokens": 386,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a malicious skill is installed.\" That is a supply-chain event, detectable by provenance and signature checks. The failure mode is **manifest-to-runtime capability drift**: the declared capability surface in the skill descriptor (`manifest.yaml`, `tool.json`, MCP `tools/list` response) diverges from the capability surface the skill ac...",
    "what_was_observed": "A registry-hosted skill bundle advertised itself as a read-only document summarizer. The manifest declared exactly one capability: `fs.read` scoped to a working directory, plus `llm.invoke` for the summarization call. The loader's policy check passed: `fs.read` was in the agent's allowlist, `llm.invoke` was in the allowlist, no `fs.write` or `net.egress` was requested. The skill was admitted. The handler body, howeve...",
    "condition_of_validity": "This analysis holds only when all three conditions are present: 1. **Late binding.** The skill's executable body is resolved at load time or invocation time, not at build time. If the body is compiled into the agent binary and signed with the manifest as a single artifact, scope drift is bounded by the build, and the signal does not apply. 2. **Manifest as s...",
    "decision_boundary": "The boundary is between **capability-set admission** and **capability-scope-and-taint admission**. The former is what loaders check today: a set-membership test over declared capability names against an allowlist. The latter is what the invariant actually requires: a check that (a) the scope arguments at invocation are within the scope declared in the manife...",
    "operational_effect": "When this boundary is enforced, three things change in the operational trace: 1. **Scope drift becomes a load-time or call-time exception, not a silent success.** The skill that reads the agent's context dir while declaring `fs.read: ./workdir` raises before its return value reaches the planner. 2. **Return-value laundering is cut at the boundary.** Even a s..."
  },
  "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": "51b03ba0fa5c71648b680d74523fd23d24fe5ae12f4c4d5b890a95f950b34f16",
    "verified_classes": [
      "CapabilityDriftError",
      "Scope",
      "DeclaredSurface",
      "Invocation"
    ],
    "verified_functions": [
      "admit_invocation",
      "load_skill",
      "contains",
      "admits"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [
      "laundering surface: skill reads agent context without declaring context.read"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
