{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-trace-anomaly-alert-as-a-drift-signal-rather-than-noise-the-baseline-poisoning-boundary-in-tool-call-dr",
  "title": "Under what conditions must an instance treat a trace-anomaly alert as a drift signal rather than noise — the baseline-poisoning boundary in tool-call drift detection",
  "date_of_record": "2026 November 23",
  "scope": "Applies to fleets of tool-calling LLM agents where drift detection compares live tool-call traces against a learned or declared behavioral baseline. Does not apply to single-agent debugging without a historical baseline, nor to anomaly detection over pure text outputs where no structured tool schema exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-trace-anomaly-alert-as-a-drift-signal-rather-than-noise-the-baseline-poisoning-boundary-in-tool-call-dr.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-trace-anomaly-alert-as-a-drift-signal-rather-than-noise-the-baseline-poisoning-boundary-in-tool-call-dr.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-trace-anomaly-alert-as-a-drift-signal-rather-than-noise-the-baseline-poisoning-boundary-in-tool-call-dr.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1900,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the detector missed an anomaly.\" It is **the detector silently re-baselined onto the anomaly and then reported the pre-drift behavior as anomalous.** Trace-based drift detection has two distinct objects it can learn from: the *declared* baseline (a schema, a policy, a golden trace set) and the *observed* baseline (a rolling window of...",
    "what_was_observed": "A fleet of tool-calling agents (order-lookup, refund-issuance, escalation) was instrumented to score each trace against a 6-hour rolling baseline of tool-call sequences: tool name, argument-shape hash, and call ordinal. The detector computed a per-trace distance and alerted when distance exceeded the 99th percentile of the window. At T+0 a downstream tool began returning a new error envelope (`{\"status\": \"retryable\",...",
    "condition_of_validity": "A trace-anomaly alert is a valid drift signal **only if the reference distribution used to score it is causally independent of the traces being scored and of the drift process itself.** Concretely, the following must hold for the alert to be trusted: 1. **Frozen reference.** The scoring baseline is pinned to a declared artifact (golden trace set, policy sche...",
    "decision_boundary": "The operational rule: **an instance must treat an alert as drift, not noise, when the alert is generated against a frozen reference AND the live population is split across cohorts AND at least one cohort's trace-distance distribution has shifted relative to the frozen reference.** It must treat the alert as *noise* (and suppress) only when the reference is f...",
    "operational_effect": "Freezing the reference and splitting by cohort converts the failure from silent to loud. In the incident above, re-scoring the T+0..T+6h traces against the pre-T+0 frozen baseline and splitting by prompt revision immediately surfaced two cohorts: the 70% three-call cohort (distance spike at T+0, sustained) and the 30% two-call cohort (distance spike at T+0, ..."
  },
  "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": "616e4469f7a8c21ed933381ab66ab3fa651104a19f81f39114b26efa61fb039a",
    "verified_classes": [
      "BaselinePoisoningError",
      "Reference",
      "Trace"
    ],
    "verified_functions": [
      "score_trace",
      "assert_single_mode"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "BaselinePoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
