perf(acp): trace mention-to-reply latency#2408
Open
BradGroux wants to merge 1 commit into
Open
Conversation
Refs block#2386 Co-authored-by: Brad Groux <bradgroux@hotmail.com> Signed-off-by: Brad Groux <bradgroux@hotmail.com>
BradGroux
marked this pull request as ready for review
July 22, 2026 19:12
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
mention_reply_latencysamples with rolling warm/cold p50, p95, and max stage summariesMeasurement scope
This first slice explicitly measures
harness_relay_receipttoharness_relay_fanout. It does not yet claim sender-publish-to-recipient-render end-to-end timing. Durations use one process-local monotonic clock; RFC3339 and Nostr timestamps remain correlation metadata only.The semantic timing events contain IDs, path classification, durations, and sample counts. They do not include message content, prompts, model output, credentials, or tool arguments. Existing raw
acp_read/acp_writeobserver events are unchanged and remain outside this new redaction guarantee.Verification
cargo test -p buzz-acp --no-fail-fast— 579 passedcargo clippy -p buzz-acp --all-targets --all-features -- -D warningscargo fmt --all -- --checkjust ci— Rust, Desktop, web, and mobile gates passed; mobile finished with 525 tests passedFollow-up
This intentionally uses
Refs #2386rather than closing the issue. #2386 should remain open until the outer sender-publish and recipient-render/relay-acceptance boundaries, production warm/cold baselines, explicit budgets, and a scheduled or blocking regression job land.A live hosted-relay benchmark was not run in this PR; the self-reply subscription shape and correlation logic are covered deterministically, and the runbook defines the opt-in real-provider procedure.
Refs #2386