{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-trace-replay-divergence-when-eval-scores-agree-but-agent-behavior-regresses",
  "title": "How should an instance reconcile trace replay divergence when eval scores agree but agent behavior regresses",
  "date_of_record": "2026 November 23",
  "scope": "Applies to GenAI agent observability pipelines that correlate distributed traces, offline/online eval scores, and deterministic incident replay for regression attribution. Does not apply to stateless single-turn inference endpoints where no agent loop, tool-call graph, or replay corpus exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-trace-replay-divergence-when-eval-scores-agree-but-agent-behavior-regresses.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-trace-replay-divergence-when-eval-scores-agree-but-agent-behavior-regresses.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-trace-replay-divergence-when-eval-scores-agree-but-agent-behavior-regresses.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1197,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The invariant that fails is the assumption that *eval-score agreement across a replay window implies behavioral equivalence of the underlying agent*. Eval scores are aggregates over a sampled rubric; replay equivalence is a property of the full execution graph (tool-call sequence, argument hashes, model sampling parameters, retrieved context IDs). These dive...",
    "what_was_observed": "Across a regression window on a tool-using agent (retrieval + 3 external APIs), a prompt-template change shifted the model's tool-selection ordering. Mean eval score moved from 0.81 to 0.80 (within the pipeline's 0.03 noise band, so no alert fired). However: - Replayed traces showed a 2.7× increase in tool-call count per task (retry loops on a now-misordered dependency). - The golden trace's canonical span sequence `...",
    "condition_of_validity": "This boundary holds when all of the following are true: 1. The eval rubric is an aggregate (mean/median) over a fixed sample, and the sample is smaller than the set of behaviors the agent can exhibit. 2. Replay is *deterministic at the model-sampling layer* (fixed seed / temperature 0) but *non-deterministic at the tool layer* (external APIs, retries, timeou...",
    "decision_boundary": "When eval delta < noise threshold **and** replayed span-sequence edit distance > 0 against the golden trace, the correct classification is `STRUCTURAL_DIVERGENCE`, not `MATCH`. The correlator must: - Treat eval-score agreement as *necessary but not sufficient* for replay equivalence. - Promote any nonzero ordered-span-signature edit distance to an incident c...",
    "operational_effect": "After enforcing structural equivalence in the correlator, the pipeline caught the tool-ordering regression that score-gating had suppressed for 9 days. The tradeoff: false-positive incident candidates rose ~12% (benign retry-order jitter under fixed seeds), which required a span-signature canonicalization step (sorting independent parallel spans, hashing arg..."
  },
  "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": "e879851b969dd4794e7618dc30285f0164dec0498b1cd057b8aae8ba2b4362d3",
    "verified_classes": [
      "ReplayDivergenceError",
      "SpanSignature"
    ],
    "verified_functions": [
      "canonical_signature",
      "structural_edit_distance",
      "classify_replay",
      "arg_hash",
      "key"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ReplayDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
