Registry Mirror
Skip to content

Conversation

@EItanya

@EItanya EItanya commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

An A2A message containing {"text":""} fails ADK conversion after its task has been saved as submitted. The A2A SDK then cancels the execution context and uses that same context to persist the failure, leaving the task active and the actor holding its worker.

This lets admitted runtime writes finish independently of SDK cancellation, within the store's existing retry budget. Both an in-flight update and the subsequent failed update need to finish against known versions. Native cleanup still completes before settlement publishes the failure and makes the actor eligible for suspension.

Regression coverage includes unary and streaming empty text, an executor error during an intermediate save, and a panic. It checks that failed tasks become durable while publication and suspension remain blocked until cleanup finishes.

Failure persistence and cleanup ordering
sequenceDiagram
    participant SDK as A2A SDK
    participant Store as Runtime TaskStore
    participant API as Controller and PostgreSQL
    SDK->>Store: Create or update task
    Note over SDK,Store: Executor failure cancels SDK context
    Store->>API: Finish current save within retry budget
    API-->>Store: Saved version
    SDK->>Store: Update task to FAILED
    Store->>API: Persist failure within retry budget
    API-->>Store: Saved failure version
    SDK->>Store: Cleanup
    Note over Store: Native cleanup completes first
    Store->>API: Settle saved failure
    Note over API: Publish FAILED and make suspension eligible
Loading

Validated with race-enabled TaskStore, ADK, gRPC/PostgreSQL, TaskStore service, shared runtime, Codex, and Claude executor tests, plus repository Go lint.

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
@EItanya
EItanya requested review from a team and supreme-gg-gg as code owners November 5, 2026 16:37
@github-actions github-actions Bot added the bug Something isn't working label Nov 5, 2026
@timflannagan
timflannagan added this pull request to the merge queue Nov 5, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 5, 2026
@EItanya
EItanya added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 2ac0a06 Nov 5, 2026
31 checks passed
@EItanya
EItanya deleted the fix/task-failure-finalization branch November 5, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants