Skip to content

docs(compat): v0.3 webhooks receive the full Task, not the delta events - #729

Merged
bartek-gralewicz merged 1 commit into
a2aproject:mainfrom
harshitwandhare:docs/compat-v0_3-push-body-full-task
Sep 16, 2026
Merged

bartek-gralewicz merged 1 commit into
a2aproject:mainfrom
harshitwandhare:docs/compat-v0_3-push-body-full-task

Conversation

@harshitwandhare

Copy link
Copy Markdown
Contributor

Description

The push-notification table in the compat guide still describes the pre-#658 wire shape. It lists TaskStatusUpdateEvent and TaskArtifactUpdateEvent as bodies a v0.3 webhook can receive, and since #658 it never receives either.

src/compat/v0_3/README.md was updated by #658 and already states the corrected behaviour:

Per the v0.3 spec example (§9.5), a push notification always delivers the full Task on every trigger, status and artifact updates are sent as the current Task snapshot, not as a bare TaskStatusUpdateEvent / TaskArtifactUpdateEvent.

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 in v1.1.0.

Why the wording says "or a bare v0.3 Message"

The consolidation applies to the task, status and artifact cases. A message payload still serializes to a bare v0.3 Message via toCompatMessage, so the row names both shapes rather than only Task.

The delta shapes are still reachable in principle, but not through this path: V03PushNotificationSerializer falls back to toCompatTaskStatusUpdateEvent / toCompatTaskArtifactUpdateEvent when it is handed no task snapshot. Both push call sites in DefaultRequestHandler pass resultManager.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.

  • Checked the claim against the code rather than the issue text: at v1.0.1 the serializer was serialize(streamResponse) with no task parameter, and on main it is serialize(streamResponse, task?) with toCompatTask(task) on the statusUpdate and artifactUpdate arms.
  • git tag --contains b3afbe4 returns v1.1.0 only, so the fix is not in v1.0.1.
  • test/server/push_notification_integration.spec.ts drives a real executor through a v0.3-registered webhook and asserts all three notifications come back kind: 'task' with states submitted / working / completed. 18/18 pass on main.
  • npm run lint:ci exit 0, which is what covers prettier on this file.
  • npm test 71 files, 1571 passed, 5 todo.
  • The file was prettier-clean before this change, verified by stashing and re-checking, so the table's column-width churn in the diff comes from this edit and not from pre-existing drift.

build-tests.yml has paths-ignore: '**.md', so the build matrix does not run on this one.

Refs #624

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
@harshitwandhare
harshitwandhare requested a review from a team as a code owner September 15, 2026 22:04
@bartek-gralewicz
bartek-gralewicz merged commit 11d7bdb into a2aproject:main Sep 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants