Repository navigation
feat(server): add opt-in async unary executor and dispatcher - #316
Conversation
|
@MisterVVP ready for review. This implements Phase 2 / PR 2 of #268 against |
|
@codex review this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Implements Phase 2 / PR 2 of #268 against
feat/async-server. Applications can initiate unary work and return immediately, then complete it from any thread through the new opt-ina2a::server::engine::AsyncAgentExecutorandAsyncDispatcher.Adds API/threading documentation and immediate-result microbenchmarks. Native transport registration remains PR 3; #268 stays open.
Authorship and AI usage
Testing
A2A_VERIFY_POSTGRES=1 A2A_VERIFY_BUILD_DIR=build ./scripts/verify_changes.sh— passed; 839 tests../scripts/run_clang_tidy.sh buildand CIclang-format --dry-run --Werrormechanism — passed. New benchmark also passed targeted clang-tidy.run_tck_sut.sh/run_tck_mandatory.sh/stop_tck_sut.sh, with grpc/jsonrpc/http_json: 249 passed, 16 conditional skips on each of PostgreSQL and in-memory stores.mdbook build book— passed.api.osv.dev; SDK dependency versions are unchanged.The TCK retains the previously approved baseline from PR #315: 80.9% MUST / 80.0% overall coverage, with 21 registered MUST requirements lacking upstream tests. All executable tests passed; this is not a claim of 100% specification compliance. Upstream TCK revision:
d4d6fae7887f88ef607fb461c13e3b0e1802f19b.Performance evidence
RelWithDebInfo, GCC 15, identical immediate in-memory GetTask response, one outstanding request, no interceptors/security; five repetitions with a 0.2 s minimum. The base comparison links the original dispatcher from
44d927bwith the same fixture and dependencies.The shared sync path adds approximately 0.22 µs (+55%) in this microbenchmark, recorded explicitly for review. Async timing includes admission, lifecycle, queue scheduling and the benchmark's future-based reply handoff. These measurements cover immediate-result overhead; broader concurrency/latency evidence remains PR 4. The fake transport tests independently prove 32 pending operations can initiate on at most two SDK workers.
Checklist
./scripts/verify_changes.shpassed locally