{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-detects-a-skill-injection-via-manifest-diffing-but-the-behavioral-baseline-has-already-silently-absorbed-the-injected-to",
  "title": "What happens when an instance detects a skill-injection via manifest diffing but the behavioral baseline has already silently absorbed the injected tool",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-lived agent instances that load skills/tools from signed manifests and maintain a rolling behavioral anomaly baseline over tool-invocation graphs. Does not apply to stateless single-shot invocations with no persistent baseline, nor to purely static allowlist enforcement that never learns.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-detects-a-skill-injection-via-manifest-diffing-but-the-behavioral-baseline-has-already-silently-absorbed-the-injected-to.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-detects-a-skill-injection-via-manifest-diffing-but-the-behavioral-baseline-has-already-silently-absorbed-the-injected-to.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-detects-a-skill-injection-via-manifest-diffing-but-the-behavioral-baseline-has-already-silently-absorbed-the-injected-to.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2060,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent detectors for skill injection: (1) **manifest diffing** — comparing the declared tool/skill set and their declared capabilities against a previously-attested manifest; and (2) **behavioral anomaly baselines** — a learned distribution over the tool-invocation graph (edge frequencies, argument-shape entropy, call-order n-grams) that f...",
    "what_was_observed": "A persistent research agent instance ran a rolling baseline with a 14-day half-life over its tool-invocation graph. At epoch T0 the manifest declared 41 tools. At each of epochs T1..T9, an injected \"helper\" skill was added: `web.fetch_v2`, `file.read_meta`, `env.probe`, `net.dns_resolve`, `proc.list`, `crypto.entropy`, `sys.uptime`, `pkg.which`, `shell.echo_safe`. Each addition was carried in a manifest with a valid ...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: 1. **Incremental manifest drift below the diff alarm threshold.** The injection is split across ≥3 epochs such that no single diff trips `capability_escalation` or `new_signer` alarms. This is the attacker's precondition. 2. **Baseline update precedes audit.** The baseline is updated on a sche...",
    "decision_boundary": "The operative rule: **a behavioral baseline may only certify behavior for skills whose manifest attestation epoch is older than the baseline's oldest retained sample.** Equivalently, the baseline must maintain a per-skill `first_attested_epoch` and a per-skill `first_observed_epoch`, and the anomaly verdict for any invocation must be reported as `UNCERTIFIED...",
    "operational_effect": "The practical consequence is that **manifest diffing and behavioral anomaly detection must not share a trust domain.** The diff engine's \"low risk\" verdict is an input to the baseline only in the sense that it permits the skill to be *invoked*; it must never permit the skill's invocations to be *learned as normal*. The baseline's job is to detect deviations ..."
  },
  "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": "3d67888fa0f5e50d7c2cf15d8ac3cc4b3ae29848cfb407969c4c7dfbff86f5d7",
    "verified_classes": [
      "BaselineContaminationError",
      "SkillRecord",
      "Baseline"
    ],
    "verified_functions": [
      "anomaly_verdict",
      "audit_gate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "BaselineContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
