mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-08-15 09:19:02 +00:00
LaunchedRun's docstring permitted the adapter to return a different thread than requested, but the execution record is created with the requested thread before the launch and update_status cannot correct it -- a redirecting launcher left history on a thread nothing ran on while the task pointed at the actual one. No real adapter redirects (the Gateway launch path runs on exactly the thread it is given), so the contract now requires launching on the requested thread; the echoed thread_id is demoted to a verification field. The service checks the echo: on a mismatch a run is still live somewhere, so retention applies, the bookkeeping stays on the requested thread the record row was created with, and the violation is surfaced on the dispatch result and logged as an adapter bug. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>