Add structured trace command output - #12
Merged
Merged
Conversation
Stephen Belanger (Qard)
force-pushed
the
agent/trace-json-output
branch
from
August 11, 2026 17:00
7b425f6 to
3062d69
Compare
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Stephen Belanger (Qard)
force-pushed
the
agent/trace-json-output
branch
from
August 11, 2026 17:11
3062d69 to
91f5e4a
Compare
Stephen Belanger (Qard)
marked this pull request as ready for review
August 11, 2026 18:22
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--jsonfor status, including when no daemon is runningbtembeddingbt tracecommand boundaries in companion bt#287Why
bt trace status --jsonpreviously printed human prose when the daemon was absent, while setup and stop assembled prose directly in the host. Centralizing these output shapes inbt-daemonkeeps every embedding consistent and prevents JSON mode from silently producing non-JSON output.The standalone daemon only implements
status; setup and stop are host commands. The companionbtintegration consumes this PR forbt trace status,bt trace setup, andbt trace stop, and tests JSON output at each actual command boundary.Validation
cargo test --manifest-path bt-daemon/Cargo.toml --all-features --lockedcargo test --manifest-path bt-daemon/Cargo.toml --all-features --locked --test command_outputcargo clippy --manifest-path bt-daemon/Cargo.toml --all-features --all-targets --locked -- -D warningscargo fmt --manifest-path bt-daemon/Cargo.toml -- --checkgit diff --checkCompanion validation in
bt:cargo test --test cli(40 tests)