feat(observability): correlate agent relay delivery - #4769
Open
MajorTal wants to merge 1 commit into
Open
Conversation
MajorTal
force-pushed
the
codex/agent-response-diagnostics
branch
from
August 4, 2026 19:03
c25ef5f to
a7f0cc2
Compare
MajorTal
marked this pull request as ready for review
August 7, 2026 12:41
Signed-off-by: Tal Weiss <major.tal@gmail.com>
MajorTal
force-pushed
the
codex/agent-response-diagnostics
branch
from
August 10, 2026 10:07
a7f0cc2 to
8977e48
Compare
Contributor
Author
|
Filed #5472 for the diagnostic gap this addresses, per CONTRIBUTING.md's issue-first guidance. The open judgment call is log volume — making this useful by default means enabling |
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.
Trying to debug why my agents sometimes do not respond, I realised the current diagnostics are insufficient. Which is why this PR adds a focused correlation trail across the relay, Redis pub/sub, and the ACP harness.
Today a delayed response can look like a generic WebSocket stream ending followed by a later reconnect. The logs do not preserve the Close code/reason, join the client socket to the server-side connection, or show whether Redis and local WebSocket fan-out handled the event live.
What changed
x-buzz-connection-idon the WebSocket upgrade so ACP and relay logs identify the same socket.buzz_pubsub=infoin the relay's default log/OTEL filters.The new diagnostics contain IDs, timestamps, and counts only—no message contents, auth material, or private keys. Delivery behavior is otherwise unchanged.
What this should answer next time
Validation
cargo fmt --all --checkcargo clippy -p buzz-acp -p buzz-pubsub -p buzz-relay --all-targets -- -D warningscargo test -p buzz-acp --lib— 669 passedcargo test -p buzz-pubsub --lib— 24 passed, 11 ignoredcargo test -p buzz-relay --lib— 839 passed, 37 ignored;demo_join_forwarded_arm_round_trips_echofails with the same504vs200assertion on this branch and an untouched detachedorigin/mainworktree