Skip to content

Commit 7935a14

Browse files
committed
docs(agents): refresh zero-event guard anchor after a2aproject#1460
The non-streaming guard moved to default_request_handler_v2.py:522-527 after a2aproject#1460 added the streaming-side counterpart; both callers now guard, which claim 5 notes. Signed-off-by: andy <linux2011@qq.com>
1 parent dbeba72 commit 7935a14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • .agents/skills/task-state-invariants

‎.agents/skills/task-state-invariants/SKILL.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ Each claim is anchored to current `main`. Re-read the file before quoting.
6262
task to `FAILED`.
6363
5. **Every request must produce at least one event.** With zero events,
6464
`on_message_send` falls through to `active_task.get_task()`
65-
(`src/a2a/server/request_handlers/default_request_handler_v2.py:518-520`),
65+
(`src/a2a/server/request_handlers/default_request_handler_v2.py:522-527`),
6666
which awaits `_task_created` with no timeout
6767
(`src/a2a/server/agent_execution/active_task.py:1130`) and hangs the
6868
request, producer, and consumer forever. Guard before awaiting (the
69-
`on_message_send` caller has done so since #1345), or the fallback
70-
must be bounded.
69+
`on_message_send` and streaming callers have done so since #1345
70+
and #1460), or the fallback must be bounded.
7171
6. **Store and stream must agree.** A blocking call may return a shared
7272
snapshot while later events land on the store — the copy-on-yield caveat
7373
is documented in-code at

0 commit comments

Comments
 (0)