Skip to content

feat(release): finalize v0.6.0 packaging and reduce async overhead - #331

Merged
MisterVVP merged 5 commits into
release/v0.6.0from
codex/release-v0.6.0-packaging-validation
Nov 12, 2026
Merged

MisterVVP merged 5 commits into
release/v0.6.0from
codex/release-v0.6.0-packaging-validation

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Finalize SDK v0.6.0 metadata, the optional vcpkg asio feature, consumer setup, dependency requirements, and migration guidance. Retain the completion-timer fix for expired calls awaiting callback cleanup.

HTTP+JSON errors now use application/json. The generic conformance agent advertises */* input support and retains opaque message parts without decoding them, satisfying the current mandatory TCK expectations without changing upstream tests.

Reduce async overhead by combining response headers and the first available SSE event within the output bound, caching each JSON-RPC stream prefix, and recycling Asio write allocations. Ready in-memory SUT operations run directly on the coroutine executor; other stores retain bounded blocking adaptation. Earlier changes also remove redundant completion allocations and metadata copies and reuse HTTP idle waits. PostgreSQL storage is unchanged.

Refs #328.

Authorship and AI usage

  • Contains substantive content written by a human
  • Contains substantive content generated by an AI agent

Testing

  • ./scripts/verify_changes.sh: 1,173 tests passed, three intentional skips; full formatting and clang-tidy passed.
  • Initial stream data is checked for ordering and bounded fallback writes. Existing cancellation, backpressure, shutdown, metadata, and installed async consumer checks passed.
  • Clean mdBook build passed.
  • Unmodified upstream TCK 104a7b4ae0d83f65c075e3793e322953a830eaba: mandatory selection passed with 215 passed, 14 skipped, 34 deselected, no failures.
  • Full upstream suite: 244 passed, one failed, 18 skipped. The remaining HTTP_JSON-SVC-001 SHOULD check expects application/a2a+json where the mandatory HTTP_JSON-ERR-001 check requires application/json. The SDK follows the mandatory expectation; the full suite's nonzero exit status remains visible.
  • Windows/macOS execution, the combined PostgreSQL vcpkg install, and C++ dependency vulnerability scanning remain unverified.

Checklist

  • ./scripts/verify_changes.sh passed locally
  • Docs updated if behavior changed

Update release metadata, add the optional vcpkg Asio feature, exercise clean
installed/FetchContent consumers, and document async opt-in and migration.
Add cross-platform package CI and reproducible integrated regression evidence.
Fix a completion-timer stall exposed by deadline validation and extend tests.

Validation: verify_changes.sh passed (1,175 tests passed, 3 intentional skips),
including full formatting and clang-tidy. Linux default/Asio vcpkg consumers,
88 ASan/UBSan checks, 398 Clang TSan checks, and mdBook passed. The integrated
matrix and confirmation runs measured 419,840 operations with zero errors.

Upstream TCK remains at 242 passed, 4 failed and 17 skipped. The user explicitly
authorized committing and pushing despite the repository TCK gate. Windows/macOS
execution, the network-blocked combined PostgreSQL overlay install, and C++
dependency vulnerability scanning remain pending and are documented.

AI-assisted: substantive implementation, tests and documentation generated by Codex.
Refs #328 and #329.
@MisterVVP MisterVVP self-assigned this Nov 11, 2026
@MisterVVP MisterVVP closed this Nov 11, 2026
Remove the artifact directory, added workflows, release runner and extra
regression tests. Keep a short results page and the existing CI checks.
Pin vcpkg to the SDK commit containing the version bump and deadline fix,
without source patches or version rewriting.

Validation: verify_changes.sh passed (1,170 passed, 3 intentional skips),
including full formatting and lint. Clean mdBook build, direct-source vcpkg
install, five external examples and 54 zero-error performance smoke rows passed.

AI-assisted: Codex.
Refs #328 and #329.
Remove the release validation page and its references, restore the base
benchmark source, and correct stale CMake release guidance.

AI-assisted change.
@MisterVVP MisterVVP changed the title feat(release): prepare v0.6.0 packaging and integrated validation feat(release): finalize v0.6.0 packaging and documentation Nov 11, 2026
Reuse the immutable ingress context when hooks do not modify metadata.
Remove redundant completion allocations and move serialized SSE buffers
instead of copying them. Share one allocation for blocking completions
and their executor work guard.

Keep one idle wait per HTTP connection and rearm it from the latest
activity deadline. Cover active deadline refresh and owned metadata
with two focused checks.

AI-assisted change.
@MisterVVP MisterVVP changed the title feat(release): finalize v0.6.0 packaging and documentation feat(release): finalize v0.6.0 packaging and reduce async overhead Nov 11, 2026
Use application/json for HTTP error envelopes and advertise the reference
agent's support for retaining opaque message parts.

Combine response headers with the first available SSE event within the
output bound, retain separate bounded writes when necessary, and reuse
JSON-RPC stream prefixes and Asio write allocations. Run ready in-memory
SUT operations directly while preserving blocking adaptation for other
stores.

Cover ordered initial stream data under both output bounds and preserve
raw input in the agent history. Document the remaining optional TCK
media-type conflict without changing upstream tests.

AI-assisted change.
@MisterVVP
MisterVVP marked this pull request as ready for review November 12, 2026 07:48
@MisterVVP

Copy link
Copy Markdown
Owner Author

@codex review this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T07:50:19.635336Z a64b5c8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: a64b5c8142

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@MisterVVP
MisterVVP merged commit 372f29d into release/v0.6.0 Nov 12, 2026
22 of 23 checks passed
@MisterVVP
MisterVVP deleted the codex/release-v0.6.0-packaging-validation branch November 12, 2026 08:57
MisterVVP added a commit that referenced this pull request Nov 12, 2026
…333)

## Summary

Closes #332. Based on `release/v0.6.0`, including #331.

The existing performance CI job compares sync and async servers for
every supported in-memory wire workload. Paired throughput, latency, and
resource tables keep raw runs in JSON/CSV instead of duplicating
Markdown rows. PostgreSQL remains sync-only; its storage is unchanged.

- **Both performance steps now run once**, and normal runner comparisons
default to one pass. CI's broad matrix drops from **2,292 to 764 rows**;
sustained coverage drops from **234 to 78**. Scenario coverage,
concurrency levels, warmup, and three-second sustained measurements are
preserved. Explicit local repetitions remain available for variance
analysis.
- Single-run summaries say so and show throughput ranges as `n/a`.
Operation errors now print their scenario, transport, client/server
modes, and counts before comparison validation returns failure.
- Warm the measured clients through the selected API. GetTask and both
ListTasks workloads support all four client/server combinations through
bounded async callbacks; streaming retains its common observer API.
Include 100 ms held subscriptions, measuring cancellation latency
separately.
- Retain the two small SDK changes: move parsed HTTP requests into
handlers while preserving connection policy, and recycle gRPC
write-acknowledgement allocations.

## Recalculated results

Fresh **single-pass local measurements**, with two CPUs divided equally
between driver and server; these are observations, not variance
estimates. The SDK code is unchanged by this follow-up.

- Broad in-memory matrix: **480 rows, 480,000 operations, zero errors**.
- Sustained matrix: **78 rows (72 wire), 1,617,371 wire operations, 36
complete server-mode pairs, zero errors**.

GetTask at concurrency 64, operations/second:

| Transport | Sync client / sync server | Sync client / async server |
Async client / sync server | Async client / async server | Fully async /
fully sync |
| --- | ---: | ---: | ---: | ---: | ---: |
| grpc | 23,756 | 26,746 | 24,339 | 32,788 | 1.38× |
| http_json | 12,356 | 14,168 | 13,707 | 15,071 | 1.22× |
| jsonrpc | 6,675 | 7,730 | 6,609 | 7,608 | 1.14× |

Async is useful for concurrent unary throughput and thread use, but
performance work is **not finished**:

- At concurrency 1, fully async GetTask reaches **0.68× / 0.73× /
0.78×** fully synchronous throughput for gRPC / HTTP+JSON / JSON-RPC.
The median latency cost is approximately **47 / 73 / 84 microseconds**
on these immediately ready in-memory calls.
- At concurrency 64, GetTask client threads fall from **73 to 16** for
gRPC and **69 to 10** for HTTP+JSON/JSON-RPC; server threads fall from
**72–73 to 21–27**.
- Finite-stream async/sync server ratios are **1.00× / 0.99× / 0.99×**:
essentially parity. The gRPC client still uses a blocking reader thread
per stream, and the driver waits per operation; its process samples
**137 threads at concurrency 64** with either server mode. Native
callback-driven gRPC streaming and a callback-driven stream driver are
the clearest next targets, followed by scheduling/deadline-wakeup
overhead.
- Across all 49 broad workloads using the existing synchronous client,
the median server ratio is **0.79× at concurrency 1** and **1.09× at
concurrency 64**. This is a workload comparison, not a universal SDK
speedup.

The previous CI performance step took about **45 minutes** for three
broad passes and failed on **one async HTTP+JSON operation at
concurrency 64**; sustained CI measurements were consequently skipped.
The new local run did not reproduce that failure. Errors remain fatal
and invalidate ratios; a clean new CI run is still needed. The row
reduction removes roughly two-thirds of matrix execution, not
dependency-build time. Updated reports remain in the existing job
summary/artifact (`normal` and `normal/sustained`); no generated reports
are committed.

## Validation

- `./scripts/verify_changes.sh`: **passed (exit 0)**; **1,175 tests
passed, three skipped**, and all **188 source/test/example lint checks
passed**.
- **57 runner tests**, including single-pass defaults/reporting,
explicit repetition overrides, detailed operation errors, four
client/server combinations, and held subscriptions.
- Mandatory TCK: **215 passed, 14 skipped, 34 deselected**, zero
failures; checkout unchanged. Required performance smoke: **54 rows,
zero errors**.
- Exact CI formatting, mdBook, and actionlint: **passed**.
- Dependencies are unchanged. OSV scanning remains unverified because
its API returns HTTP 403.
- The existing TCK `HTTP_JSON-SVC-001` SHOULD Content-Type conflict
remains tracked in #328; the previous CI run still failed that check.

## Authorship and AI usage

- [ ] Contains substantive content written by a human
- [x] Contains substantive content generated by an AI agent

## Checklist

- [x] `./scripts/verify_changes.sh` passed locally
- [x] Docs updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution

Projects

None yet

1 participant