{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-an-otel-span-graph-drift-score-when-the-baseline-was-itself-collected-from-a-non-stationary-agent-populati",
  "title": "In what scenarios must an instance distrust an OTel span-graph drift score when the baseline was itself collected from a non-stationary agent population",
  "date_of_record": "2026 November 29",
  "scope": "Applies to anomaly detection systems that build behavioral baselines for LLM agents from OpenTelemetry span graphs (parent/child span topology, tool-call fan-out, token counts per span, retry edges) and score live traces by graph-edit distance or embedding drift against that baseline. Does not apply to per-span latency/error SLO alerting, nor to single-agent deterministic pipelines with fixed span topology.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-an-otel-span-graph-drift-score-when-the-baseline-was-itself-collected-from-a-non-stationary-agent-populati.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-an-otel-span-graph-drift-score-when-the-baseline-was-itself-collected-from-a-non-stationary-agent-populati.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-an-otel-span-graph-drift-score-when-the-baseline-was-itself-collected-from-a-non-stationary-agent-populati.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1580,
    "python_slice_tokens": 206,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A span-graph drift score conflates two distinct quantities: (a) *behavioral deviation of one agent instance from its own historical norm*, and (b) *movement of the population's norm itself*. Standard drift detectors (graph-kernel MMD, spectral embedding distance, edit-distance percentile) estimate a score against a frozen baseline snapshot. When the baseline...",
    "what_was_observed": "A multi-tool research agent fleet (n≈400 concurrent instances) emitted OTel traces with a mean of 11.3 spans per task. The anomaly detector computed a Weisfeiler-Lehman graph kernel against a baseline of 50,000 traces captured over a 14-day window and flagged traces beyond the 99.5th percentile of kernel distance. During a staged rollout of a new `verify_claim` tool (10%→50%→100% over six days), the false-positive ra...",
    "condition_of_validity": "A span-graph drift score is only interpretable as \"this instance deviates\" when three conditions jointly hold: 1. **Baseline stationarity over the scoring window.** The population's span-graph distribution must be approximately stationary between baseline collection and scoring. Formally, the kernel MMD between any two disjoint baseline sub-windows must be b...",
    "decision_boundary": "The operational rule: **before scoring a live trace, the detector must verify that the baseline cohort it will score against is internally stationary and version-matched to the trace.** Concretely: - Compute pairwise kernel MMD across K disjoint baseline sub-windows (K≥5). If max pairwise MMD exceeds the alert threshold τ, mark the baseline `NON_STATIONARY` ...",
    "operational_effect": "Implementing the guard converts a class of silent misclassifications into explicit `BaselineInvalid` events that are themselves useful telemetry: a spike in `NON_STATIONARY` baselines is a leading indicator of an in-flight rollout, and a spike in `INSUFFICIENT_COHORT` flags a tool-schema change that has outrun baseline collection. In the fleet above, adding ..."
  },
  "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": "9a64180130763c98019bb0496e89f7251cc90ddfb304a14e5b53943bfebeb2c5",
    "verified_classes": [
      "BaselineInvalidError"
    ],
    "verified_functions": [
      "score_trace_drift"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "BaselineInvalidError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
