Repository navigation
Closed
Labels
enhancementNew feature or requestmaintenanceperformancePerformance improvement related tasks based on benchmark results. Performance tests changes.
Milestone
Description
Problem
The signing path introduced in #308 uses simdjson for strict JSON parsing, while broader SDK parsing still relies on protobuf JSON conversion, intermediate Struct/Value objects, and transport-specific parsing helpers. Migrate the C++ client and server SDK parsing paths to a shared simdjson implementation, preserving protocol behavior and measuring the result.
Scope
- Inventory JSON parsing in core helpers, Agent Card discovery, HTTP+JSON and JSON-RPC requests/responses/errors, SSE event payloads, and push-notification payloads. Identify which protobuf conversions remain necessary.
- Introduce shared parsing helpers and migrate the applicable paths incrementally. Avoid introducing simdjson types into public SDK interfaces.
- Define parser ownership, padded-input handling, buffer/string lifetimes, concurrency, and error mapping. Reuse parsers where safe without a global serialization bottleneck.
- Preserve protobuf JSON semantics where required: camelCase/snake_case field names, enums, int64 strings, bytes, timestamps, nulls, oneofs, unknown fields,
Struct/Value, and numeric precision. - Define and test handling of malformed JSON, trailing data, invalid UTF-8, duplicate members, nesting/size limits, and out-of-range numbers. Preserve existing validation and binding-specific errors.
- Keep signed Agent Card verification on the original JSON, including unknown signed fields. Retain the dedicated RFC 8785 serializer; simdjson does not provide JCS canonicalization.
- Update CMake targets, exported package dependencies, vcpkg configuration, installation docs and supported platform builds. Decide explicitly how general simdjson use affects builds with signing disabled.
- Remove superseded parsing code and dependencies once parity is established. JSON serialization changes are outside this issue unless needed for compatibility.
Acceptance criteria
- A checked-in inventory maps migrated parsing entrypoints and any justified exceptions.
- Shared unit and integration tests cover valid/invalid requests, responses, errors and streaming payloads through HTTP+JSON, JSON-RPC, and applicable gRPC discovery paths.
- Compatibility and security fixtures pass, including signed-card vectors and preservation of unknown signed fields.
- Before/after benchmarks use representative small messages, large task histories/artifacts, Agent Cards and SSE payloads. Report parsing latency, allocations/memory, and relevant end-to-end results; do not infer transport improvements from parser-only benchmarks.
- Formatting, clean builds, lint, unit/integration tests, dependency scanning, installed-consumer checks and the required upstream TCK flow pass on supported configurations. Report remaining conformance gaps explicitly.
Related work
- feat: enforce SDK security and exercise secure SUT scenarios #308 introduced optional simdjson-backed Agent Card signing and explicitly deferred broader SDK parsing.
- refactor(signing): use simdjson for Agent Card JSON #310 tracks the signing refactor.
- [Bug]: Align ListTasks cursor pagination and update-time ordering with A2A #309 concerns ListTasks ordering/pagination and should remain a separate change.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestmaintenanceperformancePerformance improvement related tasks based on benchmark results. Performance tests changes.
Type
Projects
- StatusShow more project fieldsDone
Activity
docs: prepare v0.5.2 release and consolidate SDK guides (#313)