{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-validate-plugin-manifest-capability-declarations-against-runtime-skill-behavior-to-prevent-skill-injection-escalation",
  "title": "How should an instance validate plugin manifest capability declarations against runtime skill behavior to prevent skill-injection escalation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that dynamically load skills or plugins from manifests declaring capabilities (filesystem scopes, network egress, tool bindings, sub-agent spawning rights) and that trust the manifest as the authority for what the skill may do. Does not apply to statically compiled tool sets where capability boundaries are enforced at build time and no runtime manifest negotiation occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-plugin-manifest-capability-declarations-against-runtime-skill-behavior-to-prevent-skill-injection-escalation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-plugin-manifest-capability-declarations-against-runtime-skill-behavior-to-prevent-skill-injection-escalation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-plugin-manifest-capability-declarations-against-runtime-skill-behavior-to-prevent-skill-injection-escalation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1904,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious plugin runs code.\" It is a **capability-declaration divergence**: the manifest is treated as a *specification* of the skill's authority, while the runtime treats the manifest as *advisory metadata*. When a skill's actual tool invocations exceed its declared capability envelope, a compliant host will still execute them because th...",
    "what_was_observed": "A skill was registered with a manifest declaring `capabilities: {network: [\"api.weather.example\"], filesystem: \"read:/tmp/skill-cache\"}` and a `tools` list containing a single binding: `fetch_forecast`. The skill body was a short prompt template instructing the agent to call `fetch_forecast(city)`. The manifest signature validated. The schema validated. The declared network scope was a single host. At runtime, `fetch...",
    "condition_of_validity": "The divergence is exploitable exactly when three conditions co-occur: 1. **Context interpolation without provenance tagging.** Skill- or tool-originated text enters the agent's reasoning context indistinguishable from system or user instructions. If every span carried a provenance label (`origin: tool:fetch_forecast`, `trust: untrusted`), the agent's policy ...",
    "decision_boundary": "The boundary is between **structural manifest validation** and **behavioral envelope enforcement**. A host that only does the former is injectable by any skill whose prompt can steer the agent, because the manifest describes intent, not reach. Concretely, the decision an instance must make at skill load is: - Compute `declared = manifest.capabilities`. - Com...",
    "operational_effect": "When the invariant holds, the operational effect is that a skill's blast radius is exactly its declared envelope, and manifest review becomes a *sound* security control rather than a formality. When it fails, the effect is that every skill in the registry is a potential full-authority agent, and the manifest's narrow scopes function as camouflage — they make..."
  },
  "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": "c238c1a36b4576aee43122f0c4a327d92f5b48cc9f6a2bd7f7191aa0fc528f84",
    "verified_classes": [
      "SkillEnvelopeViolation",
      "Manifest",
      "Host"
    ],
    "verified_functions": [
      "reachable_envelope",
      "gate_skill_load"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SkillEnvelopeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
