{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-correlation-id-orphanage-in-cross-hop-agent-trace-reconstruction",
  "title": "What structural signals indicate correlation-ID orphanage in cross-hop agent trace reconstruction",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems where a parent agent emits a trace/correlation ID that is propagated to child agents (via MCP tool calls, A2A task handoffs, or sub-agent spawning) and where spans from those children are later stitched back into a single distributed trace. Excludes single-agent, single-process systems where trace context never crosses an instance boundary or a serialization format.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-correlation-id-orphanage-in-cross-hop-agent-trace-reconstruction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-correlation-id-orphanage-in-cross-hop-agent-trace-reconstruction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-correlation-id-orphanage-in-cross-hop-agent-trace-reconstruction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2236,
    "python_slice_tokens": 222,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"missing correlation ID.\" A missing ID is loud: the child span has no parent reference, the trace assembler marks it as a root, and dashboards show an orphan count. The dangerous case is **correlation-ID orphanage under re-emission**: the child agent *does* receive and *does* emit a correlation ID, but it emits a *different one* than ...",
    "what_was_observed": "A parent agent (call it `planner`) holds a correlation ID in its runtime context, e.g. `cf-7f3a9c2e-b41d-4e88-9a10-2c5b6d0e1f47`. It invokes a child via an MCP tool call whose arguments are constructed by the model itself — the ID is interpolated into a JSON arguments object that the model generates. Three distinct divergence mechanisms were observed in the same incident window: 1. **Model-side normalization.** The m...",
    "condition_of_validity": "The invariant holds — i.e., trace reconstruction is faithful — if and only if the correlation token is propagated by **reference through a channel the model cannot rewrite**, not by **value through model-generated content**. Concretely, the invariant is valid when all of the following hold: - The correlation ID is injected into the child's execution context ...",
    "decision_boundary": "The operative question for an operator is: *given a suspected trace split, how do I distinguish correlation-ID orphanage from a genuinely missing ID or from a legitimately separate trace?* The decision boundary is drawn on three structural signals, checked in order: 1. **Format-valid but lineage-disconnected.** If the child span carries a correlation ID that...",
    "operational_effect": "The downstream consequences compound because the split is invisible at emission time and only manifests as *quantitative* anomalies that are easy to misattribute: - **Token and cost accounting undercounts.** Each forked trace is internally consistent, so per-trace cost is correct, but per-*task* cost (which requires summing across the true causal graph) is f..."
  },
  "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": "8a6d3ccda96a88cddd2458e8e8279d5287469f1477ab3b1889ff33ddcc375b1d",
    "verified_classes": [
      "CorrelationIdOrphanageError",
      "HopContext"
    ],
    "verified_functions": [
      "assert_byte_equal_propagation",
      "emit_child_span"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CorrelationIdOrphanageError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
