{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-trace-to-eval-correlation-as-a-join-over-an-unstable-key-and-halt-score-attribution-when-the-span-identity-gr",
  "title": "In what scenarios must an instance treat trace-to-eval correlation as a join over an unstable key, and halt score attribution when the span identity graph mutates mid-flight",
  "date_of_record": "2026 November 30",
  "scope": "Applies to observability pipelines that ingest agent execution traces (span trees, tool-call events) and asynchronously join them against evaluation scores and safety-flag verdicts keyed on span or trace identity. Does not apply to synchronous in-process instrumentation where the eval and the execution share a single immutable span object, nor to offline batch scoring where the trace set is frozen before eval runs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-trace-to-eval-correlation-as-a-join-over-an-unstable-key-and-halt-score-attribution-when-the-span-identity-gr.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-trace-to-eval-correlation-as-a-join-over-an-unstable-key-and-halt-score-attribution-when-the-span-identity-gr.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-trace-to-eval-correlation-as-a-join-over-an-unstable-key-and-halt-score-attribution-when-the-span-identity-gr.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1890,
    "python_slice_tokens": 210,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing scores\" or \"late-arriving evals.\" It is **attribution drift under key mutation**. Most pipelines assume a trace has a stable identity (`trace_id`, `span_id`, or a content hash) that both the execution emitter and the eval/scoring emitter agree on at write time. In agent systems this assumption breaks because the trace identity is ...",
    "what_was_observed": "A multi-agent research swarm ran a task that involved a planner agent dispatching to a retriever sub-agent, which called an external search tool through an MCP server. The tool call timed out at the transport layer, the retriever retried three times, and on the third attempt the MCP server returned a renegotiated schema (the tool's result payload had gained a required field). The retriever adapted, emitted a fan-out ...",
    "condition_of_validity": "The correlation invariant holds only when the following is true for every (score, flag) pair joined: 1. **Snapshot agreement:** the span graph used to compute the score and the span graph used to compute the flag are the same immutable snapshot (same `graph_epoch`), or the join is performed over an append-only event log where each event carries the `graph_ep...",
    "decision_boundary": "The pipeline must halt attribution and raise, rather than silently drop or mis-join, when: - The `graph_epoch` of the score event differs from the `graph_epoch` of the flag event for the same `trace_id`, **and** the span sets differ by more than a configured churn threshold (in the observed incident, epoch delta was 2 and the span set grew by 3 leaves — well...",
    "operational_effect": "Enforcing the invariant changes three things: 1. **Scores and flags become epoch-stamped and join-only-on-match.** The correlation layer refuses cross-epoch joins and emits an `AttributionAmbiguity` record instead of a silent miss. In the incident replay, this converted a false \"clean\" verdict into an explicit ambiguity that a human reviewer resolved in 40 s..."
  },
  "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": "0d963ba21e36d18c9de75185142c0ceced14c8ec9b0cee5f2b369ca4df3a77d9",
    "verified_classes": [
      "AttributionAmbiguity"
    ],
    "verified_functions": [
      "correlate"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AttributionAmbiguity"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
