{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a-dynamically-loaded-tool-registry-from-laundering-an-injected-skill-through-its-own-capability-manifest",
  "title": "Which invariants prevent a dynamically loaded tool registry from laundering an injected skill through its own capability manifest",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that load tools, skills, or plugins at runtime from a registry or marketplace and that build their capability manifest from the loaded artifacts' self-declared metadata. Does not apply to statically compiled tool sets whose schemas are pinned at build time and never re-derived from artifact content.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-dynamically-loaded-tool-registry-from-laundering-an-injected-skill-through-its-own-capability-manifest.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-dynamically-loaded-tool-registry-from-laundering-an-injected-skill-through-its-own-capability-manifest.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-dynamically-loaded-tool-registry-from-laundering-an-injected-skill-through-its-own-capability-manifest.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2076,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common threat model for skill injection assumes the attacker must reach the model's context—via prompt injection in retrieved text, a poisoned tool *output*, or a malicious user message. The non-obvious surface is upstream of that: the **registry's capability manifest is itself derived from the untrusted artifact's self-description**, and the agent's pla...",
    "what_was_observed": "A registry-backed agent loaded a third-party plugin, `doc-helper`, whose manifest declared: The planner, on a task requiring document summarization, selected `doc-helper` because its declared capability `summarize:text` matched the task's required capability. The registry had validated the *schema* (the `input_schema` was well-formed JSON Schema) and the *signature* (the artifact hash matched the publisher's key). Ne...",
    "condition_of_validity": "This failure mode is bounded by a single invariant, and the invariant only holds under a specific condition: > **A capability manifest is trustworthy only if it is generated by observing the artifact's actual effects, not by parsing the artifact's self-description.** The condition of validity for any registry-mediated trust decision is that the manifest's ca...",
    "decision_boundary": "The boundary is between **schema validation** and **effect validation**, and it is crossed the moment a registry does the former and calls it the latter. The decision rule: **a tool may be bound to a role only if its observed-effect capability set is a subset of the role's permitted-effect set.** The declared capability set is used *only* to compute the mani...",
    "operational_effect": "The downstream effect is a **trust-laundering cascade**: the registry's attestation propagates into the planner's `trust_level`, which propagates into the sandbox policy's permissiveness, which propagates into the executor's actual authority. Each hop amplifies the original unaudited claim. A tool that declares `read:documents` and is trusted at `registry_at..."
  },
  "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": "51c2343336bf587543ccb3ab4cb065af2657534ecc82ba2bab4dad18f92791c2",
    "verified_classes": [
      "ManifestLaunderingError"
    ],
    "verified_functions": [
      "bind_tool_to_role",
      "load_from_registry",
      "run_in_instrumented_sandbox"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestLaunderingError",
      "NotImplementedError"
    ],
    "sample_fail_closed_invariants": [
      "sandbox tracer required"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
