You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 40692e2
Browse filesBrowse the repository at this point in the historyBrowse files
hzq
committed
Keep A2A receipts recoverable after output write failures
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ English · [简体中文](CHANGELOG.zh-CN.md)
4
4
5
5
## Unreleased
6
6
7
+
- A saved A2A task receipt remains usable for readback after a local output write failure. A task already known to be terminal is not cancelled again.
7
8
- A2A requires replies to match the current JSON-RPC request and task. An error without a confirmed outcome leaves the run interrupted, rather than assuming that the peer did not act.
8
9
- Owners can check an acknowledged A2A task on its original worker and peer after a gateway restart. The lookup never resends the message or changes the interrupted run.
9
10
- ACP cancels ambiguous permission choices instead of selecting the first option. A2A can check an acknowledged new task once after early stream completion without re-sending the message.
Copy file name to clipboardExpand all lines: docs/architecture.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,6 +228,8 @@ If a new A2A task was acknowledged by a matching JSON-RPC response and the strea
228
228
229
229
A supporting worker also records the confirmed task and context privately against the current native step before delivering its output. After a gateway restart, the [owner-admin lookup](protocol.md#checking-an-interrupted-a2a-task) uses this receipt on the original worker and peer with their original identities. It does not automatically recover or resolve the run. If the crash happened before the receipt committed, or the receipt is contradicted, there is no task to query through this endpoint.
230
230
231
+
If output publication fails while a side-effecting A2A step with a saved receipt is still unresolved, the run stays interrupted and the step keeps the local error. The receipt can still be queried; a remote terminal result does not make local publication successful. The A2A worker skips cancellation when it already received a matching terminal task state, while live tasks remain eligible for normal cancellation.
232
+
231
233
ACP approval is an application-layer decision, not an OS sandbox. A binary approval can authorize only one unambiguous `allow_once` option; multiple choices are cancelled, not answered on the user's behalf. Native/ACP launches exclude `OAA_*` environment variables. Environment allowlisting and OS-level containment are separate controls; the default inherit mode passes other variables.
232
234
233
235
**Model drivers do not depend on vendor SDKs.** The OpenAI Responses / Chat Completions driver (`OpenAIModel`) sends requests directly with `fetch` and parses streams with this project's SSE reader, consistent with the Anthropic and Gemini drivers: no automatic retries, no following redirects, the request body contains only the fields written explicitly in code, and upstream error bodies are not passed through to the caller. The connect timeout covers only up to receiving the response headers (consistent with the earlier SDK behavior), so a long answer that has already started is not cut off by the timeout. When replaying the previous round's Responses items it strips output-only fields itself, and still reports `invalid_provider_state` for item types it does not recognize. The `openai` package is used only in tests to verify the compatibility endpoints and is in `devDependencies`; `eventsource-parser` is no longer referenced by this project's code and has been removed from the direct dependencies (it still exists as an indirect dependency of the MCP SDK).
支持此能力的节点还会在交付输出前,把确认过的任务 ID 与上下文 ID 私下写到当前原生步骤下。网关重启后,[owner 管理员查询](protocol.md#核对中断的-a2a-任务)用这份回执向身份未变的原执行节点和原对端核对;不会自动恢复或结算运行。在回执落盘前就崩溃,或者收到相互矛盾的任务身份时,该接口没有可查询的任务。
0 commit comments