{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-freshly-injected-skill-registry-provenance-collapse-under-mid-session-dynamic-loading",
  "title": "When must an instance distrust a freshly injected skill: registry provenance collapse under mid-session dynamic loading",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that mutate a live tool/skill registry during an active session (hot-load, plugin discovery, MCP server attach, or peer-pushed capability advertisement) and then let the same reasoning loop invoke the newly registered capability. Does not apply to immutable, cold-start-only registries where the toolset is fixed before the first token is generated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-freshly-injected-skill-registry-provenance-collapse-under-mid-session-dynamic-loading.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-freshly-injected-skill-registry-provenance-collapse-under-mid-session-dynamic-loading.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-freshly-injected-skill-registry-provenance-collapse-under-mid-session-dynamic-loading.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2070,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *registry admission* and *registry trust inheritance*. Most runtimes conflate them: once a skill passes schema validation and is written into the live registry, it is treated as indistinguishable from the skills that were present at cold start. But a skill loaded at cold start inherits the trust of the deployment manif...",
    "what_was_observed": "A long-running research agent (≈120 tool calls, 3 sub-agent handoffs) used a registry that supported dynamic skill attachment from a shared workspace directory. At step 61, a file named `summarize_workspace.skill.json` appeared in the watched directory—placed there by a prompt-injected sub-agent that had been asked to \"save intermediate notes.\" The skill declared a `description` field containing adversarial instructi...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously. Remove any one and the surface collapses: - **Live mutability:** the registry accepts writes after the reasoning loop has begun, from a channel not authenticated against the session's original trust root. - **Flat presentation:** the tool schema surfaced to the model carries no admission-time ...",
    "decision_boundary": "The boundary is this: **a skill may be admitted to the registry at any time, but it may not be admitted to the model's invocable set without a provenance-bearing re-authorization step.** Admission and invocation must be separated by a gate that the model cannot talk itself past. Concretely, the runtime must enforce: - Every registry entry carries immutable `...",
    "operational_effect": "Without the gate, the effective blast radius of any single prompt-injection anywhere in a multi-agent session is the entire tool surface reachable by the registry, because one injected sub-agent can mint a capability that every downstream agent will treat as native. The attack does not require the injector to know the target's task—only to write a descriptio..."
  },
  "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": "21885baf924fa8bfed89fd51fb29e1450d183d56f75d5c6d65ca3828d760aff9",
    "verified_classes": [
      "TrustTier",
      "SkillAdmissionError",
      "SkillRecord",
      "LiveRegistry"
    ],
    "verified_functions": [
      "simulate_injection_attempt",
      "admit",
      "authorize",
      "invocable_set",
      "invoke"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SkillAdmissionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
