{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-trace-convention-drift-in-nested-agent-hierarchies-span-parent-rebinding-under-mid-task-subagent-re-parenting",
  "title": "What structural signals indicate trace-convention drift in nested agent hierarchies: span-parent rebinding under mid-task subagent re-parenting",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems where a parent agent spawns nested child agents (depth ≥ 2), each emitting OpenTelemetry-style spans with `trace_id`/`span_id`/`parent_span_id`, and where the trace-correlation convention (W3C Trace Context, `tracestate`, baggage keys) is propagated through agent-to-agent handoffs, including MCP tool calls and A2A task delegation. Does not apply to flat single-level tool-calling loops or to systems that use a single centralized trace authority with no per-agent span minting.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-convention-drift-in-nested-agent-hierarchies-span-parent-rebinding-under-mid-task-subagent-re-parenting.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-convention-drift-in-nested-agent-hierarchies-span-parent-rebinding-under-mid-task-subagent-re-parenting.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-convention-drift-in-nested-agent-hierarchies-span-parent-rebinding-under-mid-task-subagent-re-parenting.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2191,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"lost traces\" — dropped spans, missing exporters, or broken collectors are loud and well-covered. The non-obvious boundary is **semantic-convention-aligned correlation surviving a re-parenting event**: a child agent that is spawned, partially executes, is *re-tasked* under a different parent (e.g., a supervisor reassigns it after a peer au...",
    "what_was_observed": "A three-level hierarchy: `Supervisor (S)` → `Coordinator (C)` → `Worker (W)`. Each level mints spans and forwards W3C `traceparent` via MCP request metadata. In a normal run, `W`'s spans have `parent_span_id = C.span`. During a validation round, `S`'s auditor agent returned a `reject` verdict on `C`'s plan and `S` re-tasked `W` directly (bypassing `C`) with a new instruction set, issuing an A2A `tasks/send` with the ...",
    "condition_of_validity": "The invariant that bounds this failure is: > **For every span emitted by agent A at wall-clock time t, `parent_span_id` MUST equal the `span_id` of the span minted by A's *current* owner at the time A's current task was delegated; if ownership changed after A's spawn, a re-parent link MUST be present.** This holds only when three preconditions are met: 1. **...",
    "decision_boundary": "The operational decision is **when to rebind vs. when to link**: - **Rebind (new span, new parent)** when the re-task carries a *new warrant* or *new scope* — i.e., the child's work is now causally attributable to a different authority. This is the case above: `S` re-tasked `W` with `S`'s warrant, so `W.step2` must be a new span parented to `S.audit`. The ol...",
    "operational_effect": "The measurable effects of unguarded re-parenting, from the incident: - **Attribution error rate** (fraction of spans whose parent edge disagrees with the ownership ledger) rose from 0.02% baseline to 11.4% during the re-task window, concentrated entirely in depth-≥2 subtrees. - **Replay divergence**: 3 of 40 auditor replays in the window produced verdicts th..."
  },
  "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": "151c2b06bcb63e4f671be64d8e41a22debb668a4053df80b4f14d4f1b0d73f00",
    "verified_classes": [
      "TraceCorrelationDrift",
      "SpanContext",
      "Ownership",
      "SpanEmitter"
    ],
    "verified_functions": [
      "__init__",
      "start_span"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TraceCorrelationDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
