Track unconfirmed in-flight tool outcomes in persisted Chat timeline
Author: Vansh-SinghalCreated Sep 29, 2026Updated Sep 29, 2026
Follow-up to #5967. The failed-turn observability fix deliberately leaves ACP tool-status classification unchanged.
When a Chat turn ends with a provider error after a tool start, the adapter may call the tool outcome "unconfirmed", but the turn-settlement SQL can persist that in-flight tool activity as failed. A 429/503/504 or JSON-RPC -32603 response does not prove that earlier tool effects did not land. The persisted timeline should distinguish an unconfirmed outcome from a confirmed failed tool.
Acceptance:
- Reproduce an in-flight tool followed by an ACP terminal turn error, including
-32603with nested 504 text and metadata. - Assert the persisted conversation activity status rendered by the timeline, not just the adapter event.
- Define and implement an honest durable status without replaying the tool or claiming its effects were rolled back.
- Keep this separate from failed-turn orchestrator delivery and worker needs-input state.
Source: Untrivial-ai/agent-orchestrator