﻿# Trace a delegated command back to its owning turn

Attribute commands through their turn records and retain artifact evidence; the public API does not report command-output truncation or a complete internal conversation.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/frontier-swarm-trace-command-attribution/
Language: en

## A command belongs to an execution context

A shared environment contains an unexpected generated file. Knowing that “the swarm ran a command” is too vague to identify the responsible assignment or assess its scope. The [Agents API observability guide](https://developers.openai.com/api/docs/guides/agents-api/observability) documents a concrete chain: a command item carries `turn_id`; retrieving that turn reveals `subagent_id`, with null identifying root work. The research question is how to connect that execution evidence to the business task without inventing missing details from a progress display.

## Retain identifiers across views

A proposed incident record links session, turn, subagent, command item and relevant artifact revision. The [multi-agent guide](https://developers.openai.com/api/docs/guides/agents-api/multi-agent) provides attribution guidance and separate histories for delegated work. Use pagination when collecting records so the first returned page does not become the assumed full investigation. Human-friendly role labels can supplement identifiers, but should not replace them. A role may be reused or its assignment may change, while the command's recorded turn remains the relevant execution object.

## State what the API does not show

The observability guide says the customer API does not indicate whether command output was truncated. The multi-agent stream may also omit inter-agent content and is not a complete conversation transcript. Therefore, absence of a line in the displayed output cannot establish that a command produced no warning or that no relevant communication occurred. Inspect the resulting artifact or retain necessary command evidence through an authorized application mechanism. Do not fabricate a missing transcript or equate recorded coordination with comprehensive execution coverage.

## A possible six-month capability

An editorial scenario through May 6, 2027 is an incident assistant that identifies the affected stage and proposes a bounded recheck without rerunning the whole graph. Stable attribution plus artifact and task-dependency records provide the mechanism. This is an application scenario, not a promise of complete provider telemetry. It requires enough retained evidence to connect the command to its effects. Missing outputs, reused unversioned artifacts or unavailable histories would be counterevidence and force a broader investigation rather than confident automatic repair.

## Test reconstruction after missed events

A proposed fixture creates recognizable files from different delegated turns, disconnects the observer and reconstructs the record from saved state. The [events guide](https://developers.openai.com/api/docs/guides/agents-api/sessions/events) distinguishes saved items from live updates and describes recovery. Verify correct attribution and explicit evidence gaps. [Request-record reconciliation](/journal/provider-terminal-request-record-consistency/) supplies related observation discipline; [Artifact handoffs](/journal/bb-mixed-agent-handoff-format/) preserve the object being inspected. No incident or forensic completeness claim is made here. The capability is useful when its explanation follows recorded execution and observable effects, rather than a guessed narrative about agent intentions.
