evhu-dev
evhu-dev
Strong RFC—separating retryable vs. non-retryable tool outcomes at the envelope level is much cleaner than letting the LLM guess from raw error strings. One edge case worth explicitly modeling in...
Nice catch on the duplicate finish event path. Even after this stream-level race is fixed in `streamText`, any mutating HTTP tool can still be double-executed by upstream retries or crash/resume...
Even once `onStepEnd` checkpointing closes this specific gap, there's always an irreducible crash window between *"external HTTP API committed the write"* and *"local process persisted the checkpoint"* (the dual-write /...
Even with tighter checkpointing around approval + tool execution, there is always an irreducible crash window between "external API committed the side effect" and "local process persisted the tool result...
@zambodotdev Both sharpenings are spot on—especially #1. Naming it `run_id` is ambiguous if a framework mints a fresh run ID on resume; persisting `(operation_id, tool_name, tool_call_id)` *before* the first attempt...
This is the classic commit-then-fail race in distributed systems: once the TCP socket drops (RemoteProtocolError), times out (ReadTimeout), or a proxy returns 502 after the upstream API has already committed...
You nailed the core issue in the title: on a ReadTimeout or dropped response, the client is in an unknown outcome state—it cannot know whether the upstream server committed before...