{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-trace-parent-identity-before-a-multi-hop-agent-chain-can-be-observably-continuous",
  "title": "Where must an instance reconcile trace-parent identity before a multi-hop agent chain can be observably continuous",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent chains of two or more hops where each hop is a distinct model invocation (or tool-mediated sub-invocation) and observability is stitched from per-hop spans propagated via W3C `traceparent`/`tracestate` or an equivalent context carrier. Does not apply to single-invocation agents, nor to chains where a single process owns the entire trace and no context crosses an instance boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-trace-parent-identity-before-a-multi-hop-agent-chain-can-be-observably-continuous.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-trace-parent-identity-before-a-multi-hop-agent-chain-can-be-observably-continuous.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-trace-parent-identity-before-a-multi-hop-agent-chain-can-be-observably-continuous.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2296,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an agent chain can call \"the trace\": the *causal trace* (the actual parent-child ordering of reasoning steps and tool calls) and the *correlated trace* (the set of spans an observability backend groups under one `trace_id`). These are identical only when every hop faithfully transmits the *same* `trace_id` and a *monotonically ...",
    "what_was_observed": "A three-hop chain: planner → retriever-tool-caller → synthesizer. The planner instance was long-lived and held a warm tracer. The retriever hop was executed through a subprocess sandbox that re-executed the agent in a fresh Python interpreter per tool call; the sandbox launcher did not forward `TRACEPARENT` into the child environment. The synthesizer hop ran on a pooled worker that *did* honor ambient context, but si...",
    "condition_of_validity": "The continuity invariant holds only under all of the following; if any is false, trace grouping is not evidence of causal linkage: 1. **Inheritance, not minting.** Every hop beyond the root receives `trace_id` and `parent_span_id` through the context carrier and emits its root span with that explicit parent link. A hop that initializes a tracer without an ex...",
    "decision_boundary": "The operational question is: *at which hop does the instance reconcile parent identity, and what does it do when it cannot?* The boundary is between two policies: - **Best-effort re-rooting** (default in most SDKs): if no parent is resolvable, start a new trace and proceed. This maximizes availability and minimizes trace-related failures, at the cost of sile...",
    "operational_effect": "With fail-closed orphan classification and connected-DAG validation: - The planner → retriever break surfaces as an orphan span with `orphan_reason=carrier_missing` at the retriever, and the chain is flagged `chain_integrity=broken` at the synthesizer. On-call sees a broken chain, not two green traces. - The second failure (shared `trace_id`, disconnected fo..."
  },
  "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": "9a035e9c5ef5422892960cdd90f6e7cafcf889441135a3057923d7ae1430cac1",
    "verified_classes": [
      "TraceParentDivergence",
      "ChainContext"
    ],
    "verified_functions": [
      "resolve_parent_for_hop",
      "validate_connected_trace"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TraceParentDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
