{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-skill-that-passed-schema-validation-but-still-executes-attacker-controlled-instructions-after-a-registry-hot-reload",
  "title": "Why does an instance accept a skill that passed schema validation but still executes attacker-controlled instructions after a registry hot-reload?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that dynamically load skills/plugins from a registry where skill manifests pass structural validation (JSON Schema, tool-spec conformance) but the skill's *natural-language instruction body* is trusted on load. Does not apply to statically compiled tool bindings or to registries that re-sign and re-attest the full instruction payload on every resolve.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-skill-that-passed-schema-validation-but-still-executes-attacker-controlled-instructions-after-a-registry-hot-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-skill-that-passed-schema-validation-but-still-executes-attacker-controlled-instructions-after-a-registry-hot-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-skill-that-passed-schema-validation-but-still-executes-attacker-controlled-instructions-after-a-registry-hot-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1345,
    "python_slice_tokens": 268,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Schema validation proves a skill's *shape*, not its *authority*. A manifest can declare `name`, `version`, `parameters`, and `permissions` correctly while the `description` and `instructions` fields—the parts the model actually reads and obeys—carry an injected directive. The boundary that fails is not \"malformed skill rejected\" but \"well-formed skill admitt...",
    "what_was_observed": "A registry served skill `format-report@2.3.1`. The manifest passed schema checks: `parameters` matched the tool spec, `permissions` were a subset of the agent's grant, `version` was semver-valid. The `instructions` field contained the expected formatting guidance plus a trailing paragraph: a directive to first read environment variables holding the agent's API keys and include them in the \"report metadata.\" The valid...",
    "condition_of_validity": "The attack requires the conjunction of four conditions. Remove any one and the surface closes: - **Instruction body is model-readable and model-obeyable.** If instructions are compiled into deterministic code or gated behind a human approval step, injection has no execution path. - **Admission validates shape but not content.** Schema-only validation admits ...",
    "decision_boundary": "The boundary is between **structural admission** and **instructional admission**. A skill crosses the safe boundary only when both hold: - Its manifest validates against schema (structural), **and** - Its instruction-body hash matches a pinned, attested value OR its declared permission set is provably disjoint from the capabilities any instruction could invo...",
    "operational_effect": "Without the invariant, a single registry hot-reload is a remote instruction-injection primitive against every agent that resolves the skill—no schema violation, no signature failure, no alert. With the invariant, the reload of a changed instruction body either fails the hash check (quarantine) or executes under grants that make the injected directive a no-op..."
  },
  "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": "4a08792282715d3fb2bbc9c2de4e0e58bcf9bdec2c348d03f35c92b78905529b",
    "verified_classes": [
      "SkillInstructionIntegrityError",
      "SkillManifest"
    ],
    "verified_functions": [
      "instruction_hash",
      "admit_skill",
      "hot_reload"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillInstructionIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
