Skip to content

fix(asap): support SDK echo and preserve request IDs - #160

Open
adriannoes wants to merge 10 commits into
developmentfrom
fix/asap-interoperability
Open

adriannoes wants to merge 10 commits into
developmentfrom
fix/asap-interoperability

Conversation

@adriannoes

@adriannoes adriannoes commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Accept the default Python SDK request with Brotli, gzip, or no compression. Limit both the incoming body and the decoded body to 1 MiB.
  • Return the original JSON values for the advertised Echo skill. Preserve the numeric request ID in both results and errors so the caller can match each reply.
  • Return protocol errors in a form the SDK can read. For example, an invalid recipient raises RemoteRPCError(-32602). Keep the existing HTTP status for access restrictions and rate limits.
  • Serve health information with the manifest identity and gateway uptime. Run the official validators and SDK tests against a temporary gateway in CI.

The gateway uses the flat request format for calls to the model or installed tools. Its response limit is 64 KiB.

Test plan

  • Run the three official validators and eight SDK and JSON-RPC tests on macOS and Ubuntu 24.04 ARM64. Seven of the eight new tests failed against the previous implementation.
  • Send a compressed Echo with the default SDK. Round-trip 5000000000000001, 9007199254740993, and a decimal request ID without changing their values.
  • Run the C tests for nested Echo values and exact IDs in error responses. Run the clean Ubuntu suite, static analysis, and sanitizers. The release binary measured 1,274,096 bytes.

@adriannoes adriannoes added bug Something isn't working documentation Improvements or additions to documentation labels Nov 27, 2026
@adriannoes adriannoes self-assigned this Nov 27, 2026
@adriannoes adriannoes added the review: changes needed The code review found a problem to fix before merge. label Nov 27, 2026
@adriannoes adriannoes added review: ready for approval The code is ready for the required GitHub approval. and removed review: changes needed The code review found a problem to fix before merge. labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation review: ready for approval The code is ready for the required GitHub approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant