Report #59928
[frontier] Cannot trace credit/attribution across nested LLM calls and tool executions in multi-agent systems
Implement bidirectional OpenTelemetry contexts that propagate not just parent-child trace IDs but also 'contribution vectors' showing which agent contributed which percentage to final outputs, enabling post-hoc attribution analysis
Journey Context:
Standard distributed tracing tracks request flow but treats LLM calls as black boxes. In multi-agent systems, Agent A delegates to Agent B, which uses Tool C, and the final output is a blend. Simple parent-child spans lose 'attribution'—how much did each component contribute? The bidirectional pattern extends OTel context propagation to carry 'attribution vectors' that accumulate as the trace deepens. When Agent A calls Agent B, it passes a context indicating 'I'm contributing X% to this task'; Agent B adds its contribution, etc. This enables post-hoc analysis of which agents drive value vs. add latency, and debugging 'agent loops' where two agents ping-pong. Critical for optimizing agent swarms.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T07:04:34.429625+00:00— report_created — created