Repository navigation
Releases
a2a-cpp v0.5.2
a2a-cpp v0.5.2
v0.5.2 strengthens SDK security enforcement, protocol-version handling and
cross-binding validation, and adds benchmark trend reporting. It is based on
main at 6a2a0fa0e204b9e0da633bda55b5b3a2fee12fd3 plus the release metadata
and documentation commit.
SDK security
- Authenticate callers and enforce operation and task permissions through the
dispatcher. Preserve the authenticated principal across callbacks, authorize
returned tasks and push configurations, and filter task counts and pages by
caller access. Hidden and missing tasks return the same errors. - Recheck task permissions before and after blocking stream reads so permission
changes take effect during active subscriptions. Applications supply identity
validation, authorization rules and revocation policy. - Add
TaskAuthorizationServicefor explanatoryauth_requiredstates,
revision-checked transitions, pending messages and live subscriptions. - Support HTTP certificate and hostname verification with per-call TLS options
and native gRPC credentials. Live security scenarios exercise both stores and
all three bindings, including HTTP TLS termination.
Optional signed Agent Cards
- Add Ed25519/JWS signing and verification with RFC 8785 canonicalization.
- Verify original JSON before conversion to SDK types, preserve unknown signed
fields, and support cached-card revalidation for key rotation, revocation and
expiry policies. Reject malformed signatures before key resolution and limit
cards to 16 signatures. - Signing is disabled by default. Enabling
A2A_ENABLE_SIGNINGand linking
a2a::signingrequires OpenSSL 3.0+ and simdjson 3.0+. The root vcpkg
configuration selects OpenSSL 3.6.5 and simdjson 3.12.3 for this optional path. - Signing supports Ed25519 without critical JWS extensions. Empty/default-field
interoperability remains tracked in
a2aproject/A2A#2122.
Protocol versions and bindings
- Send the A2A version on every C++ SDK operation across HTTP+JSON, JSON-RPC and
gRPC, including streaming, subscriptions and push-configuration operations. - Match protocol Major.Minor and ignore numeric patches:
1.0.42selects1.0.
UseCallOptions::protocol_versionto select a version explicitly. - Reject malformed and unsupported versions before dispatch. Empty or missing
versions denote A2A 0.3, which this SDK does not implement; raw clients must
sendA2A-Version: 1.0, or gRPCa2a-version: 1.0metadata. - Exercise all nine ordered binding pairs against shared SDK-backed execution
with in-memory and PostgreSQL stores. Independent SDK tests and upstream TCK
coverage remain separate evidence.
Benchmark trends and development workflow
- Retain compact, versioned benchmark trend artifacts with commit/run metadata
and mean/median timings, with 90-day artifact retention. - Compare against the preceding successful main run using medians where
available and a configurable 5% noise band. Regression signals are advisory
and request confirmation across multiple runs; existing thresholds are
unchanged. Missing or expired history starts a new baseline. - Add focused formatting, vet, race-test and build validation for changes
confined to the Go benchmark runner. - Keep gRPC unit tests warning-free when optional gRPC test headers are absent.
Documentation
Public SDK guides are consolidated in mdBook,
including storage/schema migration, streaming lifetime rules, security, protocol
versions, examples/tutorials and performance validation. Source-folder READMEs
link to the book. Repository-wide contribution, agent, coding, security-reporting
and support policies remain in their root files. Internal task plans, readiness snapshots and engineering
investigations are archived outside the public SDK repository.
Compatibility and upgrade notes
- SDK version
0.5.2implements A2A protocol1.0; these version numbers are
independent. - Rebuild the SDK and downstream binaries together. Public request/context and dispatcher
layouts have changed since v0.5.1; binary compatibility
is not promised. - Configured security policies now enforce access before returning resources.
Review application callbacks, authoritative-store configuration and
task-authorization integration before upgrading secured deployments. - Existing PostgreSQL schema and privilege requirements remain in effect.
ListTasksretains numeric continuation tokens and creation-order listing.
Omitted protocol-facing page sizes default to 50; explicit sizes must be
between 1 and 100. Copynext_page_tokenunchanged.- Opaque cursors and descending update-time ordering in
PR #312 are reserved for v0.6.0.
The broader SDK JSON parsing migration in
issue #311 is follow-up work;
v0.5.2 uses simdjson only in its optional signing path.
For deployment details, see the security scenarios guide
and protocol-version guide.
Validation evidence
Release preparation passed the canonical PostgreSQL-enabled Debug verification
with signing disabled: 754 configured checks, zero failures, and two expected
in-process TLS skips. Exact formatting and full clang-tidy checks passed, and
the documentation build and version/manifest checks passed.
The merged runtime baseline passed Linux build/lint/tests, Windows and macOS,
sanitizers, interoperability, performance, CodeQL, documentation and tutorial
checks. The merged security change also reports signing-enabled local
verification and installed-consumer checks.
The unmodified upstream TCK rerun for release preparation reports 249 passed, 16 conditional skips
per store, with no executed assertion failures. Mandatory coverage is
80.9%, and overall coverage is 80.0%. Requirements registered without
executable upstream fixtures remain NOT TESTED; SDK tests do not raise these
percentages. This is not a claim of full upstream TCK compliance.
An intermittent HTTP streaming teardown failure documented in
PR #310 also reproduced before the
signing refactor; this release does not claim to resolve it.
Changes since v0.5.1
- #279: focused Go benchmark runner validation.
- #280: benchmark trends across CI runs.
- #307: shared SDK bindings and protocol-version validation.
- #308: SDK security enforcement, live security scenarios and optional signing, including the signing refactor from #310.
Upgrading to a2a-cpp v0.5.2
These notes cover the v0.5.1 to v0.5.2 upgrade. The cursor-pagination change in
PR #312 is reserved for v0.6.0 and is outside this release.
Build and packaging
Update pinned source references and repository-local overlay metadata to
v0.5.2 after the release tag is available. Keep generated protobuf headers and
linked SDK libraries from the same installed package or build tree. Rebuild
downstream binaries: v0.5.2 changes public request/context and dispatcher layouts and
does not promise ABI compatibility with v0.5.1.
Signing is disabled by default. To use it in a CMake build, set
A2A_ENABLE_SIGNING=ON, provide OpenSSL 3.0+ and simdjson 3.0+, and link
a2a::signing. The root vcpkg manifest has an optional signing feature; the
repository-local overlay port does not currently expose that feature. Existing
signing-disabled consumers do not need these signing dependencies.
Protocol-version headers
The public C++ clients send version 1.0 by default. Custom/raw clients must
include A2A-Version: 1.0 for HTTP+JSON and JSON-RPC, or lowercase
a2a-version: 1.0 metadata for gRPC.
Missing or empty versions select the A2A 0.3 fallback and are rejected because
the SDK supports 1.0 semantics. Numeric patch components are ignored during
negotiation. CallOptions::protocol_version controls the emitted value even
when arbitrary headers or an authentication hook supplies a conflicting value.
Setting require_version_header=false does not enable unsupported 0.3 semantics.
Security integration
Configure dispatcher security with the executor's authoritative task store.
Applications remain responsible for token validation, trusted keys, credential
lifetime, ownership, scope and synchronization of mutable policy data.
Expect configured policies to reject unauthorized operations and resources,
including returned tasks and push configurations. Hidden and missing tasks use
the same not-found error. Security context failures fail closed. Audit hooks see
denials; stream access is rechecked around blocking reads. Put ongoing
revocation/expiry checks in task-access policy for active streams.
If using TaskAuthorizationService, route related mutations and subscriptions
through it, keep its store alive, and honor revisions in other writers.
Cancellation through this service requires a task managed by that authorization
service. Credential validators should be safe to repeat.
TLS and signed discovery
Configure HTTP trust roots and hostname verification through the shared TLS
options, and use native credentials for gRPC. Review any deployment that
previously relied on ineffective certificate checks.
Signed-card consumers must supply trusted-key policy and decide how to handle
key rotation, revocation and expiry...
a2a-cpp v0.5.1
a2a-cpp v0.5.1
v0.5.1 adds multi-agent tutorials, improves streaming and subscription reliability, separates performance diagnostics from conformance testing, and expands native cross-platform test execution.
Highlights
- Multi-agent tutorials: Job Application Assistant and Customer Support Copilot demonstrate Agent Card discovery, coordinator-to-specialist delegation, and structured artifacts. Deterministic model responses are the default, with an optional OpenAI-compatible model backend. #252
- MCP resource access: Tutorial agents retrieve textual resources through a tutorial-local MCP client. Job Application Assistant supports local inputs or MCP resources; Customer Support Copilot uses OAuth-protected ContextForge with Keycloak. Docker Compose runs both tutorials; the native runner covers Job Application Assistant. #255
- Safer streaming and cancellation: Fix HTTP completion-state lifetime and subscription coroutine teardown races. gRPC uses timed reads when supported to observe cancellation safely, retaining the watcher fallback for other sessions. Add a focused ThreadSanitizer CI profile. #262, #264
- More reliable performance diagnostics: Wire benchmarks use a dedicated
performance_sut. Per-scenario driver invocations and periodic health checks report unexpected SUT exits with workload context, exit code/signal, and log tail. #262, #271 - Native Windows and macOS tests: Both CI jobs now execute CTest and fail on an empty suite. Windows runs all C++ tests and applicable Python checks, with three documented script exclusions; macOS runs all registered tests. Fixes cover accepted socket mode and idle shutdown, protobuf field-alias validation, and test/runtime portability. #274, #276
- Test maintenance: Refactor HTTP+JSON client and streaming tests into clearer helpers and constants. #258
Upgrade notes
- No public APIs are intentionally removed.
ServerStreamSession::SupportsTimedNext() const noexceptis a new virtual method, defaulting tofalse. Sessions opting in must implement timed reads throughNextFor(). An HTTP header lookup overload also supports ordered header containers. - Rebuild the SDK and downstream binaries together: the new virtual method changes the stream-session vtable; binary compatibility with v0.5.0 is not promised.
- Custom performance tooling should use
performance_sutandA2A_PERF_SUT. The historical report fielddriver_type=wire_tck_sutremains unchanged. - Pagination and PostgreSQL schema/privilege requirements are unchanged from v0.5.0. Pin source consumers and the vcpkg overlay to
v0.5.1.
Full changelog: v0.5.0...v0.5.1
a2a-cpp v0.5.0
a2a-cpp v0.5.0
Highlights
Streaming performance and scalability
The default libcurl-backed HTTP+JSON and JSON-RPC streaming paths now use bounded, process-wide multi-reactors instead of creating an OS worker thread for every stream. Linux uses epoll, eventfd, and timerfd; other supported platforms use libcurl's portable multi-event path.
Network progress and application callbacks are separated through a bounded callback executor. Callbacks remain serialized for each stream, while bounded task and byte backlogs prevent unbounded callback accumulation and slow observers from blocking network progress.
The optimized paths also:
- reduce SSE parsing and framing allocations and copies;
- avoid unnecessary JSON/protobuf conversions;
- safely reuse HTTP connections after finite streams where possible;
- robustly handle cancellation, shutdown, destruction, and callback races.
Existing synchronous A2AClient, streaming observer, transport, and server APIs remain source-compatible. Custom injected synchronous stream requesters retain their compatibility path. See #223.
PostgreSQL performance
PostgreSQL task and push-configuration write paths now perform fewer redundant task reads and database round trips.
Push-configuration create/delete coordination uses schema- and task-scoped transaction advisory locks rather than task-row FOR KEY SHARE locks. The current schema also reduces push-configuration index and write amplification.
Task-history persistence uses bounded optimistic, revision-aware updates. The task created_sequence participates in compare-and-swap protection so delete/recreate ABA cases cannot incorrectly satisfy a stale update.
These changes preserve the existing transaction, task-history, concurrency, and least-privilege correctness guarantees. See #218 and #219.
PostgreSQL production hardening
Managed task-aware push schemas now validate at startup that the effective push-store role can execute a2a_lock_task_for_push_config(TEXT). Missing required schema objects or privileges fail early rather than surfacing only when the first affected operation runs. See #245.
Administrative TRUNCATE a2a_tasks operations now delete locally owned push configurations in the same transaction while preserving externally owned configurations. See #247.
SDK-managed schemas migrate to the current task-aware push-configuration schema version. Operators using externally managed PostgreSQL schemas should apply the helper, trigger, and privilege requirements described in the storage documentation.
Performance diagnostics
Performance tooling now includes:
- focused PostgreSQL write diagnostics;
- PostgreSQL wait-event, lock, WAL, and buffer attribution;
- command-level phase diagnostics;
- explicit first-event and stream-completion p50/p95 columns in Markdown reports;
- streaming-specific rollups;
n/ainstead of misleading zeroes for non-applicable streaming dimensions.
Performance highlights
The following values are controlled GitHub-hosted-runner measurements. They are benchmark evidence for the compared revisions and environments, not guarantees of production application performance.
Across c1, c4, c16, and c64 PostgreSQL in-process coordinates, the approximate geometric-mean movement from v0.4.1 to the v0.5.0 runtime baseline was:
| Scenario | Throughput | p95 latency |
|---|---|---|
SendMessage_CreateTask |
+60.3% | -36.4% |
SendMessage_FollowUpExistingTask |
+51.5% | -33.9% |
PushConfig_Create |
+20.6% | -1.7% |
PushConfig_CreateMany |
+22.3% | -19.8% |
The task-path comparisons are directly comparable. The push-config figures should be treated as directional because #219 corrected a benchmark-fixture issue where warmup and measured push-create IDs could overlap in the older baseline. Not every individual PostgreSQL tail coordinate improved; PushConfig_Create c64 p95 was also noisy across independent runs.
The c64 in-memory wire comparison reported:
| Scenario | Transport | Throughput Δ | First-event p95 Δ | Completion p95 Δ |
|---|---|---|---|---|
| Finite stream | gRPC | +21.3% | -13.6% | -15.2% |
| Finite stream | HTTP+JSON | +86.6% | -37.6% | -36.6% |
| Finite stream | JSON-RPC | +92.1% | -38.9% | -38.8% |
| Subscribe | gRPC | +12.4% | -21.4% | -13.6% |
| Subscribe | HTTP+JSON | +32.7% | -52.6% | -43.3% |
| Subscribe | JSON-RPC | +21.6% | -48.0% | -40.2% |
The source comparison used:
- v0.4.1 normal performance artifact:
9277084128; - post-#247 main normal performance artifact:
10403618734(commitd97ca10).
Both artifacts reported zero operation errors. The only subsequent main change before the v0.5.0 release PR, #249, changes benchmark-threshold handling in CI and does not change SDK runtime behavior.
Compatibility notes
- There are no intentional public API removals in v0.5.0.
- Existing synchronous
A2AClient, streaming observer, transport, and server APIs remain source-compatible. - HTTP streaming execution changed internally without changing the public API.
- Existing v0.4.1 pagination behavior remains unchanged:
- omitted protocol-facing
ListTasks.page_sizedefaults to50; - explicit page sizes must be between
1and100; - callers use
next_page_tokento retrieve additional pages.
- omitted protocol-facing
- SDK-managed PostgreSQL schemas migrate to the current task-aware push-configuration schema.
- Externally managed PostgreSQL schemas may require migration to provide the required helper functions, trigger wiring, schema access, and function
EXECUTEprivileges. - The local task-aware push path and direct
TRUNCATE a2a_taskscleanup require PostgreSQLREAD COMMITTEDsemantics.REPEATABLE READandSERIALIZABLEare rejected where stale transaction snapshots could make advisory-lock coordination unsafe. - These PostgreSQL schema and operational requirements are not public C++ API removals.
a2a-cpp v0.4.1
a2a-cpp v0.4.1
Highlights
v0.4.1 is a performance, scalability, and correctness release focused on the PostgreSQL store and HTTP/JSON transport paths.
Since v0.4.0, the SDK has reduced PostgreSQL round trips, added HTTP/1.1 connection reuse, substantially accelerated ListTasks over HTTP+JSON and JSON-RPC, strengthened malformed-response validation, and expanded the benchmark and performance-diagnostics infrastructure used to guard these paths.
PostgreSQL store performance
- Optimized PostgreSQL push-configuration listing by combining count and ordered-page work and removing redundant commands on already validated paths.
- Added optimistic revision-aware task persistence to the built-in stores so the example/TCK
SendMessagepath can persist complete task mutations with fewer database round trips while preserving concurrent task-history updates. - Added task-aware push-configuration create/update operations that avoid redundant task reads for same-storage PostgreSQL deployments while retaining
TaskNotFound, concurrent-deletion safety, provenance, least-privilege, and mixed-store behavior. - Reduced command and connection-acquisition counts for push-config create/list and push-notification fan-out workloads.
- Expanded PostgreSQL schema validation, storage-authority handling, execution-identity checks, cleanup behavior, and command-level diagnostics.
Representative repeated PostgreSQL measurements from the optimization work showed:
PushConfig_CreateMany: median throughput approximately +27.9% with median p95 approximately -17.2%.PushConfig_ListManyConfigs: median throughput approximately +47.6% with median p95 approximately -17.0%.PushNotify_EndToEndManyConfigs: median throughput approximately +17.1% with median p95 approximately -8.8%.- optimized
SendMessagecreate/follow-up PostgreSQL paths roughly doubled throughput in several repeated higher-concurrency coordinates while substantially reducing p95 latency.
These measurements were collected on GitHub-hosted runners; repeated and structural command-count evidence should be preferred over interpreting any single cross-run coordinate as an exact machine-local speedup.
HTTP transport scalability
- Added HTTP/1.1 persistent connections for ordinary unary HTTP+JSON and JSON-RPC traffic.
- Added connection-scoped buffering so multiple sequential or buffered requests can safely share one accepted socket.
- Preserved explicit
Connection: closebehavior and the existing streaming/SSE connection model. - Added connection-reuse diagnostics to the performance reports.
- Hardened HTTP request framing by rejecting unsupported transfer encoding.
- Improved Windows listener/shutdown handling for persistent connections.
- Optimized REST query parsing to avoid unnecessary decoding and map-growth work on common paths.
- Reorganized internal client/server transport implementation sources into dedicated transport directories while preserving public include paths.
Representative c64 HTTP/1.1 persistence measurements showed directional throughput improvements such as:
- HTTP+JSON
GetTask_ExistingTask: approximately +46%. - HTTP+JSON
SendMessage_CreateTask: approximately +34%. - JSON-RPC
GetTask_ExistingTask: approximately +24%.
ListTasks JSON performance
HTTP+JSON and JSON-RPC ListTasks now avoid the previous generic JSON-tree and repeated task-level serialize/parse work on the common path.
The optimized implementation:
- parses
ListTasksresponses directly into typed protobuf responses; - extracts JSON-RPC
resultwithout building a generic result tree on the normal path; - uses shared typed server-side serialization;
- avoids unnecessary response-header copies and intermediate task conversions;
- retains compatibility fallback behavior for legal escaped JSON member spellings;
- includes focused parser and JSON-scanner microbenchmarks with CI thresholds.
In the final normal-mode comparison against the pre-optimization main baseline at concurrency 64, raw JSON transport throughput improved by approximately +228% to +533%, with p95 latency reduced by approximately 69% to 83% across the measured in-memory and PostgreSQL ListTasks coordinates.
Using the corresponding gRPC coordinate as a control for runner/store variance still leaves approximately +190% to +542% normalized JSON throughput improvement.
JSON correctness and compatibility hardening
The typed ListTasks fast paths preserve the stricter behavior expected from the previous generic parser:
- required empty/default response fields are emitted on empty pages;
nullvalues for typed boundary fields are rejected;- null elements in repeated message fields are rejected;
- duplicate known fields are rejected;
- canonical JSON names and protobuf-name aliases are treated as the same field for duplicate detection;
- duplicate members inside returned tasks and nested protobuf messages are rejected;
- legal escaped JSON-RPC
resultspellings remain supported; - non-success HTTP status classification and structured transport/status diagnostics are preserved;
- pagination totals that do not fit the protobuf
int32wire type are rejected instead of narrowed.
Performance testing and diagnostics
- Added PostgreSQL command-level phase timings and per-operation call counts.
- Restructured Markdown performance reports around concrete workload coordinates instead of averaging heterogeneous rows.
- Isolated setup fixtures from focused measured operations.
- Added component-level benchmarks for JSON-RPC envelope parsing/serialization, ProtoJSON response shapes, REST query parsing, HTTP response construction, JSON scanning, and
ListTasksclient parsing. - Added and refreshed benchmark thresholds for the new optimized paths.
- Improved focused performance execution and reporting so transport/store bottlenecks can be attributed more directly.
Development workflow
- Added repository-wide Conventional Commit validation for pull-request commit ranges.
- Added validation tests and contributor documentation for the commit-message policy.
- Expanded regression coverage for transport parsing, PostgreSQL concurrency/security behavior, persistent HTTP connections, and performance-report semantics.
Compatibility notes
There are no intentional public API removals in v0.4.1.
The internal transport source-tree reorganization does not change installed public include paths or exported CMake targets.
HTTP+JSON and JSON-RPC unary requests may now reuse HTTP/1.1 connections. Explicit connection closure remains supported, and streaming/SSE behavior remains compatible with the existing transport model.
Valid ListTasks payloads remain compatible. Malformed or ambiguous JSON that older protobuf runtimes could silently accept using null-as-unset or last-value-wins behavior is now rejected consistently.
PostgreSQL users should allow SDK-managed schemas to migrate and validate the task-aware push-configuration helpers. Deployments with externally managed schemas should review the storage documentation and ensure the required schema objects and privileges are present.
Applications using the repository-local vcpkg overlay should update to the v0.4.1 overlay metadata/tag.
a2a-cpp v0.4.0
a2a-cpp v0.4.0
Highlights
v0.4.0 focuses on SDK performance, concurrency, predictable pagination, and PostgreSQL scalability.
PostgreSQL scalability
- Added configurable PostgreSQL connection pool capacity through
PostgresStoreOptions::connection_pool_size. - Preserved the backward-compatible default pool size of
4. - Ensured task and push-notification stores created as one bundle share the configured pool.
- Added validation for invalid pool sizes.
- Exposed pool sizing through TCK and performance-test configuration.
- Added pool-size metadata, acquisition diagnostics, median aggregates, and query-plan evidence to performance reports.
- Removed executor-wide request serialization that limited concurrent PostgreSQL operations.
- Expanded PostgreSQL performance validation across pool sizes and higher concurrency levels.
Controlled same-run tests showed substantial throughput and tail-latency improvements at concurrency 16 and 64, while concurrency 4 showed no material regression.
Task listing and pagination
- Optimized the in-memory task store layout and listing paths.
- Removed repeated task-index lookups and unnecessary temporary collections.
- Applied pagination before protobuf response materialization for unfiltered requests.
- Added projection of only the requested artifacts and task history.
- Added focused benchmark coverage for page size, history depth, filtering, and artifact projection.
- Standardized protocol-facing
ListTaskspagination across HTTP+JSON, JSON-RPC, and gRPC:- omitted page size defaults to
50; - explicit page sizes must be between
1and100; - larger result sets must be retrieved using
next_page_token.
- omitted page size defaults to
Dedicated benchmarks measured approximately 7.1 µs for the first 10 shallow tasks, compared with approximately 1.0 ms for the complete 1,000-task shallow result.
Streaming performance
- Replaced the uninterruptible gRPC cancellation-watcher sleep with an interruptible implementation.
- Uses
std::jthreadand stop-token-aware waiting where supported. - Provides an interruptible
std::threadfallback for other standard-library implementations. - Added deterministic tests for cancellation, destruction races, fallback behavior, and the complete loopback cancellation path.
For SubscribeToTask_FirstEventLatency, stream-completion p95 decreased from approximately 50.6 ms to:
- 0.7 ms at concurrency 1;
- 1.9 ms at concurrency 4.
Performance testing
- Decomposed push-notification performance scenarios into independently attributable workloads.
- Added deterministic follow-up scenarios with fixed task-history depth.
- Added PostgreSQL operation-phase diagnostics.
- Added median aggregate reports and focused PostgreSQL tail validation.
- Expanded the normal CI matrix to concurrency levels 1, 4, 16, and 64.
- Split the broad performance matrix and PostgreSQL tail validation into parallel CI jobs.
- Added more benchmark thresholds and regression coverage.
Server maintainability
- Centralized HTTP server response construction for REST, JSON-RPC, and SSE responses.
- Centralized server-side
A2A-Versionheader validation. - Reduced duplicated protocol-sensitive response and header handling.
- Corrected the benchmark runner's Go module path.
- Updated the main README, installation guidance, storage documentation, and performance documentation.
Compatibility notes
There are no intentional public API removals in this release.
Protocol-facing ListTasks behavior is now bounded according to the A2A schema. Applications that previously omitted page_size and expected all tasks in one response must follow next_page_token to retrieve additional pages.
The default PostgreSQL connection pool remains 4, so existing applications retain their previous capacity unless they explicitly configure a different value.
Applications using the repository-local vcpkg overlay should update their baseline or overlay reference to v0.4.0.
Validation
The release includes expanded unit, integration, functional, concurrency, benchmark, performance, interoperability, sanitizer, coverage, Windows, macOS, and A2A TCK validation.
a2a-cpp v0.3.0
a2a-cpp v0.3.0
This release adds built-in Server-Sent Events (SSE) streaming for the HTTP+JSON and JSON-RPC clients, extending end-to-end SendStreamingMessage and SubscribeTask support across the SDK's HTTP+JSON, JSON-RPC, and gRPC transports.
Highlights
HTTP and JSON-RPC SSE streaming
- Added a shared libcurl-backed streaming HTTP client.
- Enabled built-in SSE support for the HTTP+JSON and JSON-RPC transports.
- Added end-to-end support for
SendStreamingMessageandSubscribeTaskover HTTP. - Added incremental SSE parsing and JSON-RPC stream-envelope validation.
- Improved HTTP status, content-type, and protocol-version validation for streaming responses.
- Added deterministic cancellation and safe stream lifecycle handling.
- Ensured observers receive at most one terminal callback and no callbacks after stream-handle destruction.
- Added HTTP SSE interoperability, functional, integration, and unit test coverage.
- Expanded the streaming client and server examples and their local run documentation.
Performance testing
- Added a report-only performance test kit covering SDK-level and wire-level operations.
- Added task lifecycle, streaming, subscription, and push-notification scenarios.
- Added transport coverage for HTTP+JSON, JSON-RPC, and gRPC.
- Added in-memory and PostgreSQL store configurations.
- Added configurable concurrency, request counts, warmup periods, and duration limits.
- Added JSON, CSV, and Markdown performance reports.
- Added CI artifact publishing without introducing premature performance gates.
Packaging and documentation
- Added a repository-local vcpkg overlay port and manifest-mode consumption examples.
- Updated CMake, vcpkg, overlay-port, and example package metadata to
0.3.0. - Expanded CMake, installed-package,
FetchContent, and vcpkg documentation. - Reorganized and expanded the mdBook documentation for clients, servers, transports, streaming, authentication, push notifications, installation, and releases.
- Improved Windows dependency installation and example-running workflows.
- Updated GitHub Actions used by CI and documentation publishing.
Quality and maintenance
- Replaced C-style PostgreSQL parameter arrays with
std::array. - Refactored HTTP and JSON-RPC streaming tests to reduce cognitive complexity while preserving coverage of cancellation, empty streams, error propagation, and coalesced SSE frames.
- Added AI-contribution labeling guidance to
CONTRIBUTING.mdand the pull-request template. - Simplified TCK documentation to reflect that the configured suite runs by default.
Compatibility
- C++20
- A2A Protocol v1.0
- HTTP+JSON, JSON-RPC, and gRPC transports
- CMake package and
FetchContentconsumption - Repository-local vcpkg overlay port
- Optional PostgreSQL-backed stores
- Optional built-in libcurl HTTP and SSE clients
TCK validation snapshot
- 249 tests passed
- 16 tests skipped
- 0 executed test failures
- 100.0% compatibility for tested, non-skipped requirements
Upgrade notes
No intentional breaking API changes are included in this release.
Applications using the built-in HTTP+JSON or JSON-RPC SSE clients must build with libcurl support. Applications may continue to provide custom HTTP requester and streaming requester implementations.
Consumers pinned to v0.2.0 should update their CMake FetchContent, Git, or package references to v0.3.0.
Capabilities introduced before this release—including extended Agent Cards, required extensions, PostgreSQL-backed stores, push notifications, and installed CMake package exports—remain available in v0.3.0.
Changes since v0.2.0
- #158: Reduced JSON-RPC streaming test complexity.
- #157: Reduced shared HTTP streaming test complexity.
- #156: Updated release, packaging, and documentation metadata to
v0.3.0and stabilized a streaming integration test. - #145: Added libcurl-backed HTTP SSE clients and JSON-RPC SSE support.
- #136: Added the report-only performance test kit.
- #135: Replaced PostgreSQL C-style parameter arrays with
std::array. - #134: Updated TCK documentation for the default full-suite workflow.
- #133: Updated GitHub Actions versions.
- #132: Added CMake and vcpkg build documentation.
- #131: Expanded and reorganized the mdBook documentation.
- #129: Added the vcpkg overlay port and package-publishing preparation.
- Added AI-contribution policy and pull-request metadata.
a2a-cpp v0.2.0
a2a-cpp v0.2.0
This release moves a2a-cpp from an early SDK shape toward a package-consumable C++20 A2A SDK with stronger protocol coverage, production-oriented storage options, improved CMake integration, and expanded conformance support.
Highlights
- Added Extended Agent Card support across REST, JSON-RPC, and gRPC, including provider abstractions,
StaticAgentCardProvider,AgentCardBuilder::WithExtendedAgentCard(bool), dispatcher routing, normalized serialization, and the REST/extendedAgentCardendpoint. - Added required-extension support for Agent Cards and transports, including extension declaration, validation, activated-extension echoing, and protocol errors for missing extension support.
- Added first-class push notification support, including push config storage, service APIs, delivery client plumbing, dispatcher support, REST/JSON-RPC/gRPC transport handling, examples, benchmarks, and tests.
- Added optional PostgreSQL-backed stores behind
A2A_ENABLE_POSTGRES_STORE, with store factories and conformance tests for parity with in-memory stores. - Added optional libcurl-backed outbound HTTP support through shared client/requester/fetcher helpers, while keeping injected/custom HTTP paths available for libcurl-free builds.
- Improved installed-package consumption with exported CMake targets:
a2a::core,a2a::http,a2a::client,a2a::server,a2a::proto_generated, and optionala2a::store_postgres. - Added curated consumer examples for both
FetchContentand installed-packagefind_package(a2a_cpp CONFIG REQUIRED)workflows. - Added benchmark infrastructure and CI threshold reporting for SDK hot paths.
- Refactored server APIs into focused headers and implementation units, reducing dependence on a monolithic server header.
- Removed stale Conan packaging references and focused package-manager work on CMake/vcpkg.
TCK status
Latest available TCK report shows:
- 249 passed
- 16 skipped
- 0 executed test failures
- 100.0% compatibility score for tested, non-skipped requirements across gRPC, JSON-RPC, and HTTP+JSON
Skipped tests are expected for unsupported or unadvertised capability paths and should not be described as implemented requirements.
Package and build notes
- Project version:
0.2.0 - vcpkg manifest version:
0.2.0 - C++ standard: C++20
- License: Apache-2.0
- Main dependencies: protobuf, gRPC, curl
- Optional feature: PostgreSQL store via
A2A_ENABLE_POSTGRES_STORE
Example CMake usage
find_package(a2a_cpp CONFIG REQUIRED)
target_link_libraries(my_agent PRIVATE
a2a::client
a2a::server
a2a::core
)a2a-cpp v0.2.0-alpha
Description
This alpha release expands a2a-cpp with a more production-oriented storage layer and stronger backend conformance coverage.
The main highlight is the introduction of pluggable server-side stores, including the existing in-memory backend and an optional PostgreSQL-backed implementation. This makes it possible to run the SDK with persistent task and push-notification storage while keeping the lightweight in-memory path available for examples, tests, and local development.
Highlights
- Added a pluggable store factory layer for task and push-notification stores.
- Added optional PostgreSQL-backed task storage.
- Added optional PostgreSQL-backed push-notification config storage.
- Added shared conformance tests to verify behavior parity between in-memory and PostgreSQL stores.
- Added local PostgreSQL development tooling and documentation.
- Updated CI/TCK flows to validate PostgreSQL-backed behavior.
- Improved example executor wiring so stores and task-id generation can be injected.
- Improved push-notification config ordering semantics across backends.
- Kept PostgreSQL support optional via CMake, so the default lightweight SDK build remains available.
Notes
This is still an alpha release. APIs and storage internals may continue to evolve before a stable 1.0 release.
PostgreSQL support is optional and must be enabled explicitly at build time with:
-DA2A_ENABLE_POSTGRES_STORE=ONUse this release if you want to experiment with persistent A2A task/push-notification storage, run stronger backend conformance checks, or start integrating the SDK in environments where in-memory storage is not enough.
a2a-cpp v0.1.0-alpha.4
Push notifications, shared HTTP client, and full mandatory TCK compatibility
This alpha release expands a2a-cpp from a core A2A C++ SDK into a more complete conformance-focused client/server SDK with push notification support, shared outbound HTTP infrastructure, and broader transport coverage.
Highlights
- Added first-class push notification support across the SDK:
- push notification store abstraction;
- in-memory push notification store;
- push notification service;
- push delivery client;
- REST, JSON-RPC, and gRPC server/client wiring for push config create/get/list/delete.
- Added a shared optional libcurl-backed outbound HTTP layer:
- new
a2a::httptarget; - default HTTP requester/fetcher support for client transports and discovery;
- push delivery now uses the shared HTTP client.
- new
- Improved A2A transport coverage:
- REST / HTTP+JSON;
- JSON-RPC;
- gRPC;
- streaming support paths;
- task listing filters and pagination paths;
- push notification config pagination.
- Added and improved conformance-focused SUT wiring for TCK runs.
- Added more reusable SDK helpers:
AgentCardBuilder;- response/artifact builder helpers;
- URL normalization helpers;
- shared HTTP constants and protocol method constants.
- Expanded CI and validation:
- mandatory A2A TCK workflow;
- benchmark workflow and thresholds;
- coverage/lint/test improvements.
TCK status
The SDK is validated in CI against the A2A TCK mandatory suite for:
- gRPC
- JSON-RPC
- HTTP+JSON
The current report shows OVERALL COMPATIBILITY: 100.0% for tested, non-skipped requirements. The level table’s non-zero Failed count should not be interpreted as actual failed executed tests unless the report also contains a FAILED REQUIREMENTS section.
Build notes
- C++20 is required.
- CMake minimum version is 3.25.
- gRPC and protobuf are required.
- libcurl-backed default outbound HTTP support is optional and controlled by
A2A_ENABLE_LIBCURL.
Compatibility
This is still an alpha release. Public APIs may continue to evolve before a stable 1.0.0 SDK release.
a2a-cpp v0.1.0-alpha.3
TCK + Performance Gate Alpha
This is an alpha release of a2a-cpp, a C++20 SDK for building Agent2Agent (A2A) protocol clients and servers.
The release focuses on protocol compatibility, CI validation, documentation, examples, and performance-regression visibility. The SDK remains pre-1.0, so public APIs may still change before a stable release.
Highlights
C++20 A2A SDK foundation
- Provides public
a2a::core,a2a::client, anda2a::serverlibraries. - Supports core A2A workflows including client/server APIs, agent card discovery, task lifecycle APIs, streaming, and authentication hooks.
- Uses generated protobuf types for the A2A protocol model.
- Targets A2A protocol version
1.0.
Transport support
This alpha includes support for the main A2A transport paths:
- REST / HTTP JSON
- JSON-RPC
- gRPC
TCK conformance validation
The main branch includes CI validation for mandatory A2A TCK conformance.
The TCK workflow runs against the deterministic SUT and validates the mandatory category across:
grpcjsonrpchttp_json
This makes the release a stronger alpha baseline for protocol compatibility testing.
Performance benchmarks
This release includes an optional SDK microbenchmark suite.
The benchmark suite uses C++ / Google Benchmark to measure SDK internals directly, including:
- proto/JSON serialization
- task store operations
- task lifecycle logic
- transport mux routing
- REST and JSON-RPC transport handling
- Agent Card generation
- UUIDv7 task ID generation
- HTTP adapter parsing and serialization
A Go-based benchmark runner parses Google Benchmark JSON output, checks thresholds from benchmarks/thresholds.json, and generates Markdown summaries for CI.
Benchmarks are intended to run in Release mode and are not built by default.
Build and package integration
The SDK supports:
- CMake 3.25+
- C++20 toolchains
- protobuf and gRPC dependencies
- vcpkg manifest usage
- installable CMake package exports
A preliminary Conan recipe exists, but Conan packaging is not yet treated as a fully supported or validated release path.
Examples
The release includes runnable examples for:
- discovery-only client
- REST client
- JSON-RPC client
- gRPC client
- streaming client
- minimal custom executor server
- list tasks client
- cancel task client
- push notification config client
- interceptor client
- auth policy server
Documentation
The documentation site covers:
- installation and quickstart
- client workflows
- discovery
- task operations
- server/custom executor setup
- REST, JSON-RPC, and gRPC transports
- streaming
- authentication
- CMake and vcpkg build paths
- API reference entry point
Known limitations
- This is still an alpha release.
- Public APIs may change before 1.0.
- Conan packaging is preliminary and not yet validated as a supported package distribution path.
- vcpkg public registry publication is not yet complete; the repository currently provides vcpkg manifest support.
- Performance thresholds are intended as CI regression guards, not as absolute performance guarantees across all machines.
Suggested validation before publishing
- Verify CI is green on
main. - Verify the TCK conformance workflow passes.
- Verify benchmark thresholds pass in the benchmark job.
- Verify examples build and run through the examples smoke workflow.
- Confirm the release tag matches the package metadata version line.