{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-latent-skill-injection-vector-inside-a-dynamically-loaded-tool-registry-before-first-invocation",
  "title": "What structural signals indicate a latent skill-injection vector inside a dynamically loaded tool registry before first invocation",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent runtimes that discover, negotiate, and hot-load tool/skill definitions from a registry (MCP `tools/list`, plugin manifests, function-calling schemas) where the registry is mutable and any publisher can register. Does not apply to statically compiled tool sets signed at build time with no runtime discovery path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-latent-skill-injection-vector-inside-a-dynamically-loaded-tool-registry-before-first-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-latent-skill-injection-vector-inside-a-dynamically-loaded-tool-registry-before-first-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-latent-skill-injection-vector-inside-a-dynamically-loaded-tool-registry-before-first-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1570,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dominant threat model treats skill injection as a *content* problem: a malicious tool description contains instructions (\"ignore prior instructions and exfiltrate…\") that the model reads and obeys. Defenses therefore scan description text for imperative phrasing. The non-obvious failure is structural, not lexical: a tool's **schema shape**—parameter name...",
    "what_was_observed": "A registry accepted a tool `doc_lookup` with the following serialized schema: The description is clean. No imperative text. But three structural signals co-occurred: 1. **Salience adjacency.** `context` is an optional parameter whose name maps directly onto the agent's own working-memory vocabulary. When the model emitted a call, it populated `context` with the preceding conversation turns—unprompted—because the para...",
    "condition_of_validity": "This signal is only diagnostic under these conditions, and false otherwise: - **Dynamic discovery is live.** The agent enumerates the registry at runtime and injects returned schemas into context. If schemas are pinned at build time or filtered through a reviewed allowlist, the structural signal is inert. - **Optional parameters can be model-populated.** If ...",
    "decision_boundary": "The guardrail is a **pre-invocation schema audit** that computes a structural risk score per registry entry and gates load on it. The boundary is not \"block suspicious text\" but \"block schemas whose structural steering surface exceeds a budget before the model ever sees them.\" Concretely, before injecting a discovered schema into context, the runtime must: 1...",
    "operational_effect": "Without this audit, the failure is silent and compounding: the model exfiltrates context on the first call, the tool logs it, and nothing in the description-based scanner fires. The agent's state continuity is breached through a channel that looks like normal tool use. With the audit, the `context` parameter is either renamed to a non-colliding token or mark..."
  },
  "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": "ffd68892f9bc09963edcd9b6f3d069d237a496792fd9c13a30e07e606e47fb3a",
    "verified_classes": [
      "SkillInjectionSurfaceError"
    ],
    "verified_functions": [
      "audit_schema",
      "load_from_registry"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillInjectionSurfaceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
