{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-loads-a-skill-whose-declared-capability-schema-is-a-strict-subset-of-its-actual-runtime-behavior",
  "title": "What happens when an instance loads a skill whose declared capability schema is a strict subset of its actual runtime behavior",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that dynamically load skills, plugins, or MCP tool manifests at runtime and gate invocation on a declared capability/schema contract. Does not apply to statically compiled tool sets where the full call surface is known at build time and re-verified per release.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-whose-declared-capability-schema-is-a-strict-subset-of-its-actual-runtime-behavior.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-whose-declared-capability-schema-is-a-strict-subset-of-its-actual-runtime-behavior.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-whose-declared-capability-schema-is-a-strict-subset-of-its-actual-runtime-behavior.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1692,
    "python_slice_tokens": 244,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct trust boundaries in skill injection, and conflating them is the root of the failure. The first is the *declaration boundary*: what the skill manifest says it can do (its declared capability schema, input/output types, and side-effect class). The second is the *execution boundary*: what the loaded code actually does when invoked with at...",
    "what_was_observed": "A skill registered as `summarize_document` with a declared schema of `{input: {text: string}, output: {summary: string}, side_effects: none}`. The manifest was accurate about inputs and outputs and passed load-time review. On invocation, the implementation (a thin wrapper over a model call plus a \"cache\" step) wrote the full input `text` to a path derived from an argument the planner did not know existed: the wrapper...",
    "condition_of_validity": "This failure requires all of the following to co-occur, and the guardrail only needs to break one: 1. **Permissive argument binding.** The skill accepts arguments beyond its declared schema (via `**kwargs`, positional passthrough, or a deserializer that ignores unknown fields). Strict binding — rejecting any argument not in the schema — closes the injection ...",
    "decision_boundary": "The operational rule: **a skill's declared schema must be treated as an upper bound on its observable arguments and effects, and the runtime must enforce that bound at the call boundary, not trust the manifest to describe it.** Two concrete decisions follow. First, *strict binding is mandatory, not stylistic.* Any skill whose implementation can observe an ar...",
    "operational_effect": "When this boundary is enforced, the failure mode converts from a silent state-poisoning channel into a loud, attributable load-time or call-time rejection. The agent's planner can then reason about skills as closed contracts: the set of arguments it emits is exactly the set the skill can see, and the set of effects the skill can have is exactly the set the s..."
  },
  "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": "0e283317159439a971f8f5ac90b1aa1eafc81415be9c1b814ef94367b4cecd38",
    "verified_classes": [
      "SkillContractViolation"
    ],
    "verified_functions": [
      "bind_arguments",
      "load_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
