[agents][tracing] record non-zero bash exit codes as failures
Author: ehuttCreated Aug 11, 2026Updated Sep 28, 2026
Labelsenhancementc/traces
Summary
Represent non-zero exits from PXI bash tools as failures in traces, or at minimum emit a structured failure event with the exit code.
Current behavior
The tool invocation itself completes successfully even when the command run inside the tool exits non-zero. The resulting trace therefore looks successful and hides an important failure signal.
Acceptance criteria
- A non-zero command exit is distinguishable from a successful bash invocation in the trace.
- The exit code is recorded as structured trace data.
- Error output remains available for diagnosis.
- Expected non-zero outcomes can still be inspected without losing the exit status.
- Tests cover zero, non-zero, and interrupted execution.
Part of #14725.
Source: Arize-ai/phoenix