Repository navigation
docs(compat): v0.3 webhooks receive the full Task, not the delta events - #729
Merged
bartek-gralewicz merged 1 commit intoSep 16, 2026
Conversation
The push-notification table in the compat guide still describes the pre-a2aproject#658 wire shape. It lists TaskStatusUpdateEvent and TaskArtifactUpdateEvent as possible v0.3 bodies, but since a2aproject#658 a v0.3 webhook driven by DefaultRequestHandler never receives either: status and artifact triggers are consolidated into the current Task snapshot, per the v0.3 spec example in 9.5 and what v0.3.14 emitted. src/compat/v0_3/README.md was updated by a2aproject#658 and already says this, so the two documents contradict each other today, and the guide is the one an upgrader reads first. Reported as the second of the three questions in a2aproject#624, which asked for exactly this to be called out for anyone moving from 0.3.14. Refs a2aproject#624
bartek-gralewicz
approved these changes
Sep 16, 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.
Description
The push-notification table in the compat guide still describes the pre-#658 wire shape. It lists
TaskStatusUpdateEventandTaskArtifactUpdateEventas bodies a v0.3 webhook can receive, and since #658 it never receives either.src/compat/v0_3/README.mdwas updated by #658 and already states the corrected behaviour:So the two documents contradict each other today, and the guide is the one an upgrader reads first. This aligns the guide with the README and with what the code does.
This is the second of the three questions in #624, which asked for exactly this to be called out for anyone moving from
0.3.14. The other two are answered in a comment there: the behaviour itself was a regression and #658 already fixed it inv1.1.0.Why the wording says "or a bare v0.3
Message"The consolidation applies to the task, status and artifact cases. A
messagepayload still serializes to a bare v0.3MessageviatoCompatMessage, so the row names both shapes rather than onlyTask.The delta shapes are still reachable in principle, but not through this path:
V03PushNotificationSerializerfalls back totoCompatTaskStatusUpdateEvent/toCompatTaskArtifactUpdateEventwhen it is handed no task snapshot. Both push call sites inDefaultRequestHandlerpassresultManager.getCurrentTask(), so the default server never takes that branch. I left that nuance out of the table deliberately, since the table documents what a webhook receives rather than the serializer's full surface, but say the word if you would rather it were spelled out.Verification
Docs only, no source change.
v1.0.1the serializer wasserialize(streamResponse)with no task parameter, and onmainit isserialize(streamResponse, task?)withtoCompatTask(task)on thestatusUpdateandartifactUpdatearms.git tag --contains b3afbe4returnsv1.1.0only, so the fix is not inv1.0.1.test/server/push_notification_integration.spec.tsdrives a real executor through a v0.3-registered webhook and asserts all three notifications come backkind: 'task'with statessubmitted/working/completed. 18/18 pass onmain.npm run lint:ciexit 0, which is what covers prettier on this file.npm test71 files, 1571 passed, 5 todo.build-tests.ymlhaspaths-ignore: '**.md', so the build matrix does not run on this one.CONTRIBUTINGGuide.Refs #624