Skip to content

Add automatic distributed tracing across coding agents - #31

Merged
Stephen Belanger (Qard) merged 1 commit into
mainfrom
t3code/verify-distributed-tracing
Aug 27, 2026
Merged

Add automatic distributed tracing across coding agents#31
Stephen Belanger (Qard) merged 1 commit into
mainfrom
t3code/verify-distributed-tracing

Conversation

@Qard

Copy link
Copy Markdown
Collaborator

Summary

  • capture PID/start-time ancestry automatically at daemon IPC ingress and correlate child sessions to active parent tool spans
  • support Claude Code, Codex, Pi, and OpenCode through the shared translator span contract, including arbitrary mixed hierarchies and concurrent-agent disambiguation
  • use hashed input/output fingerprints only when process ancestry leaves multiple active candidates; ambiguity fails safe without guessing
  • persist pending links and compact active-parent snapshots so linkage survives daemon restarts, with dirty-transition handling that prevents stale tool resurrection
  • keep capture metadata credential-free and avoid command-line, environment, working-directory, raw prompt, and raw tool-I/O data in active-parent snapshots

Validation

  • cargo clippy --manifest-path bt-daemon/Cargo.toml --all-features --all-targets -- -D warnings
  • cargo test --locked --manifest-path bt-daemon/Cargo.toml --all-features
  • make test
  • git diff --check

The distributed integration suite covers all 16 parent/child agent combinations, mixed four-level recursion, concurrent sessions and fan-out, input/output hash disambiguation, daemon restart recovery at every spawn boundary, PID reuse, corrupt/interrupted snapshots, completion cleanup, privacy, and idle retirement.

Deliberate limitation

Remote, container, and remote-MCP children without shared process ancestry currently fail safe as standalone traces. An opaque out-of-band propagation channel is future work.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you share some example traces of what this looks like?

@Qard
Stephen Belanger (Qard) force-pushed the t3code/verify-distributed-tracing branch from 2a98d01 to a237073 Compare August 27, 2026 16:44
Comment thread bt-daemon/tests/distributed_tracing.rs Dismissed
Comment thread bt-daemon/tests/distributed_tracing.rs Dismissed
@Qard
Stephen Belanger (Qard) merged commit 12cc3cf into main Aug 27, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants