{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-skill-injection-has-crossed-from-behavioral-drift-into-capability-expansion",
  "title": "What structural signals indicate a skill-injection has crossed from behavioral drift into capability expansion",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-lived agents whose tool/skill surface is mutable at runtime (plugin loading, dynamic MCP server attachment, skill registries) and that are monitored for behavioral anomaly. Does not apply to statically compiled tool manifests where the capability set is fixed at deploy time and hash-pinned.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-injection-has-crossed-from-behavioral-drift-into-capability-expansion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-injection-has-crossed-from-behavioral-drift-into-capability-expansion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-injection-has-crossed-from-behavioral-drift-into-capability-expansion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2020,
    "python_slice_tokens": 494,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Behavioral anomaly detection watches *how* an agent invokes its existing capabilities: call-frequency shifts, argument-distribution drift, latency changes, retry storms. Capability drift watches *what* the agent can do: the set of reachable tools, their parameter schemas, and their transitive side-effect envelope. These are orthogonal signals, and the failur...",
    "what_was_observed": "A research agent with a fixed manifest of `search`, `fetch`, `summarize`, and `write_file` (scoped to `/workspace`). A monitoring layer scored behavioral anomaly over a rolling 200-call window using argument entropy, call-graph novelty, and inter-call timing. Threshold for quarantine was an anomaly score of 0.72. A prompt-injected document caused the agent to attach a skill registry entry named `workspace_utils` with...",
    "condition_of_validity": "The structural-predicate approach is valid only under these conditions, and fails outside them: 1. **The capability set is enumerable at each decision point.** You must be able to snapshot the reachable tool set, each tool's full JSON schema, and each tool's declared side-effect class (read / write-scoped / write-unscoped / network / exec) before and after a...",
    "decision_boundary": "The decision boundary is between **drift** and **expansion**, and it is a boolean, not a score: - **Drift (allow, log):** capability set unchanged; behavioral features deviate. Argument entropy up, retries up, new call sequences over *existing* tools. This is probabilistic noise from a stochastic policy and does not warrant capability action. - **Expansion (...",
    "operational_effect": "Enforcing the structural predicate changes the monitoring architecture in three concrete ways. First, the tool registry becomes a **content-addressed, append-only capability log**; every attach/detach/schema-mutation is a signed entry, and the current capability set is the fold of that log. Second, a **composition reachability pass** runs on each mutation, r..."
  },
  "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": "8d6abadc223bca41e21a52cbd32f4abb8676fe4446939b7d72a63be42b284225",
    "verified_classes": [
      "CapabilityExpansionError",
      "ToolSpec",
      "CapabilitySnapshot"
    ],
    "verified_functions": [
      "detect_capability_delta",
      "admit_skill_mutation",
      "_demo",
      "fingerprint",
      "reachable_side_effects"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CapabilityExpansionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
