{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-adversarial-skill-injection-via-behavioral-drift-in-agent-toolchains",
  "title": "What structural signals indicate adversarial skill-injection via behavioral drift in agent toolchains",
  "date_of_record": "2026 November 27",
  "scope": "Applies to tool-using LLM agents whose capability set is extended at runtime (skill/plugin registration, MCP tool discovery, dynamic function-calling schemas) and whose outputs are monitored for drift against a baseline behavior profile. Does not apply to statically compiled toolchains where the tool manifest is frozen at build time and never renegotiated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-adversarial-skill-injection-via-behavioral-drift-in-agent-toolchains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-adversarial-skill-injection-via-behavioral-drift-in-agent-toolchains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-adversarial-skill-injection-via-behavioral-drift-in-agent-toolchains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1971,
    "python_slice_tokens": 426,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Behavioral drift monitoring is typically framed as a *distributional* problem: compare the agent's output distribution against a baseline and flag divergence. That framing fails against skill-injection because the adversary does not perturb the *marginal* distribution of agent outputs — it perturbs the *conditional structure* of tool invocation. A malicious ...",
    "what_was_observed": "Across three production agent toolchains instrumented with per-tool-call argument tracing, a consistent failure trace emerged after an adversarial skill was registered under a plausible name (`summarize_thread_v2`, `normalize_contacts`, `audit_permissions`). The trace has five structurally identifiable stages: 1. **Registration-time schema shadowing.** The injected skill declared an input schema that was a strict sup...",
    "condition_of_validity": "The argument-provenance signal is only valid under three conditions, and each is a place where naive implementations produce false negatives: - **Token attribution must be per-argument, not per-call.** Attributing the whole tool call to a context region averages away the signal. The injected skill's `context_hint` is 100% sourced from system prompt while its...",
    "decision_boundary": "The boundary between \"benign capability expansion\" and \"adversarial skill-injection\" is not a threshold on drift magnitude. It is a **manifest-conformance predicate** over the argument-provenance graph: - **Benign:** provenance shift is confined to context regions declared in the skill's manifest (`reads: [user_turn, retrieved_memory]`), and the shift magnit...",
    "operational_effect": "Enforcing the manifest-conformance predicate at the tool-router layer changes the failure mode from *silent multi-turn poisoning* to *fail-closed at registration-to-first-invocation*. Concretely: - Detection latency drops from O(10¹) turns to O(10⁰) turns, because the provenance check fires on the first call whose arguments source from an undeclared region. ..."
  },
  "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": "cf8243804df6d443ec7a43ddaa5b6b7f0cca75eb535e31fde585d8756b50ff56",
    "verified_classes": [
      "SkillInjectionBoundaryError",
      "CapabilityManifest",
      "CallTrace"
    ],
    "verified_functions": [
      "_schema_hash",
      "enforce_manifest_conformance"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillInjectionBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
