fix: add explicit serial workflow instructions to executor handoff and plan-approved message#3912
Merged
esengine merged 2 commits intoJun 11, 2026
Conversation
esengine
approved these changes
Jun 11, 2026
esengine
left a comment
Owner
There was a problem hiding this comment.
Good targeted fix — the batch-completion failure mode in #3911 is real, and putting the serial contract in both the executor handoff and the plan-approved nudge covers the two entry points. Prompt-only, no cache-prefix material touched. Merging, thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
Close #3911
当Agent需要执行多个子任务时,倾向于先全部执行完毕再批量提交complete_step,导致 todo_write 的校验失败。
修改
两个文件的指令增强:
1. internal/agent/coordinator.go - formatHandoff
在 executor handoff 指令中新增一条:
2. internal/control/controller.go - planApprovedMessage
将原本的隐式提示增强为显式的 5 步串行循环,并明确约束:Never batch-complete multiple sub-steps at once
验证