Repository navigation
fix: conform to acp-tck across stdio and Streamable HTTP - #6
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6 +/- ##
==========================================
+ Coverage 79.98% 80.10% +0.12%
==========================================
Files 107 107
Lines 8494 8516 +22
==========================================
+ Hits 6794 6822 +28
+ Misses 1700 1694 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
phil65
force-pushed
the
feat/acp-tck-conformance
branch
from
November 28, 2026 00:03
3629737 to
a4aad49
Compare
…ize fallback - is_protocol_version() in schema.lenient, used by the router and v2 parse_initialize (one MAX_PROTOCOL_VERSION instead of two). - parse_initialize: back to the info-only fallback. capabilities is DefaultOnError in the schema, so malformed capabilities were already dropped; the full-request fallback also discarded valid fields. Old and new behave the same on every case tested, and acp-tck v0.5.0 stays conformant (4/4). - test_acp_tck: fail with acp-tck's output when it writes no report. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
initializeconformance issues caught by the official acp-tck:http_server.py: forwardinitializerequests that includeAcp-Connection-Idto the existing connection instead of rejecting with HTTP400, allowing v2 idempotent repeats (ACP-INIT-212) and post-request-32600(ACP-INIT-215).http_transport.py: return-32600(INVALID_REQUEST) for requests beforeinitialize(ACP-ERROR-005), deliver HTTP200JSON-RPCinitializeerrors verbatim while keeping the transport open for retry (ACP-INIT-211), and reject JSON-RPC batch arrays with-32600(ACP-BATCH-209,ACP-JSONRPC-005).router.py&v2/agent.py: enforceprotocolVersion <= 65535(uint16,ACP-INIT-206) and leniently ignore unparseable fields (e.g.capabilities) oninitializerequests for newer protocol versions (ACP-INIT-214).acp-tckconformance suite (tests/tck_agent.py,tests/test_acp_tck.py,tckduty induties.py) and a path-filtered CI workflow (.github/workflows/acp-tck.yml) running[email protected]for v1 and v2 over bothstdioandStreamable HTTP.tests/test_http_transport.py,tests/test_http_server.py, andtests/v2/test_runtime.py.Test plan
uv run ruff check .,uv run ruff format --check .,uv run ty checkuv run pytest -q(253 passed, 4 opt-in TCK skipped)ACP_TCK=1 uv run pytest tests/test_acp_tck.py -v(4/4CONFORMANT:stdio[v1],stdio[v2],streamable_http[v1],streamable_http[v2])