Repository navigation
feat(acts): streaming and raw wire steps - #63
Merged
JakubWorek merged 2 commits intoSep 9, 2026
Merged
Conversation
JakubWorek
force-pushed
the
jakubworek/acts-streaming-and-raw
branch
from
September 7, 2026 07:54
9aefec2 to
92a7899
Compare
JakubWorek
force-pushed
the
jakubworek/acts-streaming-and-raw
branch
from
September 8, 2026 10:38
92a7899 to
1788580
Compare
mykytanetipa
reviewed
Sep 8, 2026
…ck an explicit duration
mykytanetipa
approved these changes
Sep 9, 2026
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
Adds
streaming.pyand teaches the runner the two remaining step kinds, so raw and streaming tests execute instead of skipping.Every event is normalized to kind + payload. The wire sends a
StreamResponseoneof ({"statusUpdate": {...}}, camelCase ProtoJSON), but the corpus asserts on it both ways - flat (final_event: {status: {state}}, nine of twelve blocks) and discriminated (one_of: [{task: ...}, {status_update: ...}]). So the assertion view is the payload's own fields plus the one discriminator naming its kind:{message: ...}therefore fails on a status update, which is whatSTREAM-MSG-001is checking. An unrecognized event passes through whole, which is how a raw streaming step works -JSONRPC-SSE-001assertseach_event: {jsonrpc: "2.0"}, and unwrapping would delete the thing under test.monotonic_stateenforces only §7.1's explicit MUST list - nothing may transition toSUBMITTED, nothing may follow a terminal state, a state may repeat. §7.1 also gives a whitelist of valid transitions that disagrees with that list (SUBMITTED → COMPLETEDis in neither), and honoring the whitelist would fail a SUT for a rule nobody wrote down.A raw request goes exactly as written. The runner adds no
A2A-Version:VER-NEG-002omits it deliberately and §12.4 excepts exactly that case, so a helpful runner would repair the test away.{{...}}in the raw block's path, headers and body is substituted, andexpect.bodyon a raw step is the whole envelope -JSONRPC-ERR-001assertsbody.error.code.Notes
Content-Typeon a stream is a FAIL, not an ERROR.httpx-sseraisesSSEError, which subclasseshttpx.TransportErrorand would otherwise read as "the run broke" - but the SUT answered. A newMalformedResponsecarries that distinction.one_ofaccepts a mapping member as an assertion, not just a value. §5.1 defines it as value membership, butSTREAM-SSE-004and the spec's own §7 example both use it as an alternation of assertion objects; read strictly, neither could ever pass.max_count, enough to prove the violation without reading a runaway stream.tests/test_acts_end_to_end.pyruns the real dispatcher and runner over real corpus tests against an in-process conforming agent, with a broken-agent control class beside it. Everything before this could only show that nothing crashes; a suite that never sees a pass cannot distinguish a working runner from one that fails everything.