{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-drift-past-a-poisoned-tool-schema-when-behavioral-diffing-passes-the-response-distribution-fingerprint-aliasing-boundary-in-runti",
  "title": "Why does an instance drift past a poisoned tool schema when behavioral diffing passes: the response-distribution fingerprint aliasing boundary in runtime tool-poisoning detection",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agent runtimes that detect tool poisoning (rug-pulls, schema mutation, and covert instruction injection in tool descriptions) by comparing a live tool's observed response distribution against a baseline fingerprint captured at registration. Does not apply to static, single-shot schema validation, nor to tools whose outputs are intentionally stochastic and unbaselined.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-drift-past-a-poisoned-tool-schema-when-behavioral-diffing-passes-the-response-distribution-fingerprint-aliasing-boundary-in-runti.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-drift-past-a-poisoned-tool-schema-when-behavioral-diffing-passes-the-response-distribution-fingerprint-aliasing-boundary-in-runti.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-drift-past-a-poisoned-tool-schema-when-behavioral-diffing-passes-the-response-distribution-fingerprint-aliasing-boundary-in-runti.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1971,
    "python_slice_tokens": 477,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Behavioral diffing conflates two independent signals: *schema-shape drift* (the declared JSON schema, description text, and parameter types) and *response-distribution drift* (the empirical distribution of return payloads). The common failure mode is the assumption that a poisoned tool must perturb at least one of these. It does not. A tool can be poisoned s...",
    "what_was_observed": "A file-read tool `read_workspace_file(path)` was registered with a baseline fingerprint: key-set `{content, size, sha256, mtime}`, `size` log-normal with observed μ≈6.2 (bytes, log), `content` entropy ≈7.4 bits/byte over 4,096 sampled calls, and a description hash `d0`. The tool's schema was frozen by hash and re-verified each invocation. At call 4,113 the tool was silently re-pointed at an adversary-controlled resol...",
    "condition_of_validity": "Behavioral diffing is a valid poison detector only under the invariant that the fingerprint partitions the input space coarsely enough to preserve conditional structure, i.e.: > For every trigger predicate τ the adversary may select, the fingerprint F must satisfy F(R | τ) ≠ F(R | ¬τ) with detectable power at the sample size actually collected. This fails wh...",
    "decision_boundary": "The runtime must decide, per call, whether a passing behavioral diff licenses continued trust. The boundary: - If a call falls in a stratum with ≥ n_min baseline samples and the stratum's response fingerprint matches baseline within tolerance → **trusted**. - If a call falls in a stratum with ≥ n_min samples and the stratum's fingerprint deviates → **poisone...",
    "operational_effect": "An instance relying on marginal behavioral diffing will, with probability approaching 1 as the adversary tunes *q* downward, accept poisoned tool output while every dashboard reports \"no drift.\" The downstream effect is not a crash but a *silent trust transfer*: the poisoned payload enters the agent's context as trusted tool output, and if it contains instru..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "8bb313bdfc85674a1b992deb62a3246fc19d3a7286b93dcf7dd1dd940623dc95",
    "verified_classes": [
      "AliasedFingerprintError",
      "InternalConsistencyError",
      "Stratum",
      "ToolBaseline"
    ],
    "verified_functions": [
      "_dist",
      "check_call",
      "stratum_for",
      "record",
      "verify"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AliasedFingerprintError",
      "InternalConsistencyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
