Task state transitions are not tracked

Open
#1,222 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@sumitvairagar is already working on this.

Since Oct 17, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
observability

Research direction

The payload names no files or classes, so start by searching the repository for the reserved task status span attribute and for where SSE status events are emitted. Read the related issue #1132 for context. Done means each status event carries a task.status attribute with the current state (submitted, working, completed), verified by a test that checks the span attribute on each transition.

Written by the indexing model from the issue text.

Description

Task status attributes (e.g., submitted → working → completed) are reserved in the code but not activated. Task state transitions are invisible in traces.
Current Behavior

The span attribute for task status appears to be defined but never populated with actual values.
When a task transitions from submitted to working to completed, no span attribute records this transition.

Expected Behavior

Each SSE status event should carry a task.status attribute reflecting the current task state, enabling state-machine visualization and duration analysis per state.
Impact

Cannot track task progress through its lifecycle.
Cannot measure time spent in each task state.
Cannot build task state-machine visualizations in observability dashboards.

cf Issue #1132

Dominant language
Java
Stars
510
Forks
196
Avg merge
2d 9h
Merged PRs (30d)
50

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a2aproject/a2a-java

All issues in a2aproject/a2a-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.