{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-causal-span-link-corruption-when-an-observability-plane-re-parents-agent-spans-across-a-mid-execution-context-compact",
  "title": "What structural signals indicate causal span-link corruption when an observability plane re-parents agent spans across a mid-execution context compaction",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that emit distributed traces (OpenTelemetry-style span trees) through an observability plane that performs span re-parenting, late-arrival stitching, or trace-context repair. Does not apply to single-turn, single-span inference calls with no tool fan-out and no context compaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-link-corruption-when-an-observability-plane-re-parents-agent-spans-across-a-mid-execution-context-compact.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-link-corruption-when-an-observability-plane-re-parents-agent-spans-across-a-mid-execution-context-compact.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-link-corruption-when-an-observability-plane-re-parents-agent-spans-across-a-mid-execution-context-compact.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2107,
    "python_slice_tokens": 418,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"missing spans.\" Missing spans are loud: the trace is visibly short, the parent ID dangles, the dashboard shows an orphan. The non-obvious failure is **span re-parenting under context compaction**, where every span is present, every timestamp is monotonic, every parent ID resolves — and the trace is nonetheless causally wrong. The obs...",
    "what_was_observed": "A multi-step agent (planner → retriever → synthesizer → critic) ran against a 128k context window. At step 7 the runtime emitted a `context.compact` span and dropped the W3C `traceparent` header from the subsequent tool calls to reduce per-call overhead — a deliberate optimization, since the runtime assumed the observability plane would stitch by `session_id` and span start ordering. The stitcher's rule was: *for any...",
    "condition_of_validity": "This diagnosis is valid only when all of the following hold; if any fails, the trace may be genuinely complete and the cost figures genuinely correct: 1. The runtime dropped or failed to propagate `traceparent`/`tracestate` on at least one hop, forcing the observability plane into inference-based stitching. If headers propagated end-to-end, re-parenting neve...",
    "decision_boundary": "The boundary is not \"is the trace complete\" but **\"does the trace's cost-mass distribution match the execution's semantic-work distribution.\"** Operationally: - **Accept the trace as causally sound** when, for every span, `subtree_token_cost / span_duration` is within an order of magnitude of the session median, *and* no span classified as a pure transform (...",
    "operational_effect": "The practical consequence is a class of silent cost and safety regressions. Cost dashboards show compaction as the dominant expense, driving teams to optimize the summarizer (which was never expensive) instead of the retrieval fan-out (which was). Hallucination flags appear at a stable rate but their evidence links resolve to the wrong subtree, so root-cause..."
  },
  "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": "9f16e288fce1aeab73be8c70a9832bb36fba317e463caf3399592dcacb0dd258",
    "verified_classes": [
      "CausalInversionError"
    ],
    "verified_functions": [
      "assert_causal_soundness",
      "assert_evidence_ancestry"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
