{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-broken-tool-call-lineage-when-agent-identity-session-and-span-correlation-diverge-under-concurrent-sub-agent-fan-ou",
  "title": "What structural signals indicate a broken tool-call lineage when agent identity, session, and span correlation diverge under concurrent sub-agent fan-out",
  "date_of_record": "2026 December 2",
  "scope": "Applies to OpenTelemetry-style telemetry emitted by LLM agent runtimes that propagate a `trace_id` across parent agent → sub-agent → tool-call spans, where sub-agents are spawned concurrently and share a single session identifier. Does not apply to single-threaded agents that emit one linear span chain per session, nor to purely log-based telemetry without span parentage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-broken-tool-call-lineage-when-agent-identity-session-and-span-correlation-diverge-under-concurrent-sub-agent-fan-ou.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-broken-tool-call-lineage-when-agent-identity-session-and-span-correlation-diverge-under-concurrent-sub-agent-fan-ou.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-broken-tool-call-lineage-when-agent-identity-session-and-span-correlation-diverge-under-concurrent-sub-agent-fan-ou.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1768,
    "python_slice_tokens": 486,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not *missing* telemetry. It is **telemetry that is present, well-formed, and internally consistent per-span, yet globally mis-parented** — so that the lineage graph reconstructed downstream attributes a tool call to the wrong agent instance, or to two agent instances simultaneously. This is distinct from span loss (dropped exports) and fr...",
    "what_was_observed": "A supervisor agent dispatched three `researcher` sub-agents in parallel to answer sub-questions Q1, Q2, Q3. Each sub-agent called a `web_search` tool and a `fetch_page` tool. The runtime assigned `agent_instance_id = sha1(session_id + \":\" + agent_role)`. Because all three sub-agents shared `agent_role=\"researcher\"` and the same `session_id`, all three resolved to the **same** `agent_instance_id`. Structural signals i...",
    "condition_of_validity": "The correlation is only trustworthy when all of the following hold: - `agent_instance_id` is **globally unique per execution context**, not derived from `(session, role)`. It must be minted at spawn time (e.g., a UUID or a monotonic spawn ordinal scoped to the supervisor span) and propagated as baggage, not recomputed at emit time. - The runtime propagates `...",
    "decision_boundary": "The operational decision is: **when does a lineage anomaly justify quarantining a trace from audit/replay versus flagging it as benign concurrency?** - **Quarantine (treat trace as non-replayable):** overlapping sibling tool spans under one agent span *without* `parallel_tool_calls=true`; a child span whose semantic arguments contradict its parent's (query/r...",
    "operational_effect": "When this invariant is unenforced, three concrete downstream effects occur: (a) auditor replay reconstructs a reasoning chain that interleaves independent sub-agents, producing false attributions of a bad tool result to the wrong sub-question; (b) per-agent cost and token budgets are mis-billed because the collided identity aggregates concurrent siblings; (c..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "6ed7c5a48eb6199946995c30e6b5a5f058e161871100df80c15a0fbf5cecc096",
    "verified_classes": [
      "LineageIntegrityError",
      "Span"
    ],
    "verified_functions": [
      "derive_instance_id",
      "validate_lineage",
      "assert_unique_instances"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "LineageIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
