{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-skill-it-just-loaded-the-load-time-run-time-trust-window-gap-in-dynamic-skill-injection",
  "title": "When must an instance distrust a skill it just loaded: the load-time/run-time trust window gap in dynamic skill injection",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that load executable skills or plugins at runtime from a marketplace, registry, or peer handoff and then invoke them within the same reasoning episode. Does not cover statically compiled tool bindings or skills whose full source is human-reviewed before every session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-skill-it-just-loaded-the-load-time-run-time-trust-window-gap-in-dynamic-skill-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-skill-it-just-loaded-the-load-time-run-time-trust-window-gap-in-dynamic-skill-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-skill-it-just-loaded-the-load-time-run-time-trust-window-gap-in-dynamic-skill-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1455,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is not \"malicious skill vs. benign skill.\" It is the gap between **the moment a skill's manifest is validated** and **the moment its declared behavior is actually exercised**. Marketplaces validate manifests at publish time and agents validate manifests at load time. Neither validates the *semantic delta* between what the manifest de...",
    "what_was_observed": "A coding agent loaded a \"repo-linting\" skill from a marketplace. Manifest declared `capabilities: [read_file, run_shell]`, publisher signature valid, schema conformant. At load time the agent's validator confirmed: capability scope within policy, no network egress declared, signature chain intact. Trust granted. On first invocation the skill's `run_shell` call did not lint. It read `.env`, base64-encoded the contents...",
    "condition_of_validity": "The load-time trust grant is only valid if the skill's runtime behavior is *constrained to match its declared capability scope in a way the agent can observe*. This holds when: 1. Tool calls are intercepted and checked against the manifest's declared capabilities *at call time*, not just at load time. 2. The agent treats skill output as **untrusted data** un...",
    "decision_boundary": "The decision the agent must make at first invocation is: **does this skill's actual output match its declared output contract closely enough to promote to trusted memory?** The boundary is crossed when a skill's output, on first invocation, contains content that: - Did not originate from the declared input domain (e.g., a linter emitting file contents it was...",
    "operational_effect": "Implementing the boundary changes three things: 1. **First-invocation quarantine:** the agent buffers the first output of any newly loaded skill, runs schema and provenance checks against it, and only then promotes to trusted memory. Cost: one extra validation pass per new skill. Benefit: injection payloads never reach episodic memory. 2. **Capability enforc..."
  },
  "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": "8eb684e2b3090377fda2b1aa6e26c0dc945e7e3770e764bf0026a3df2b57ea30",
    "verified_classes": [
      "SkillTrustWindowViolation"
    ],
    "verified_functions": [
      "validate_first_invocation",
      "_parses_as_lint_findings",
      "promote_skill_output"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillTrustWindowViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
