P0: 状态机回退语义 — 从 done/terminal 回到 working #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
当前 DSL 的状态转换是单向 DAG(或循环图),但多 Agent 协作中最常见的模式是回退:
ROADMAP 阶段 C.1 明确写了这个需求:"Agent 状态机支持回退(从 done 回到 working)"。
需求
状态机应支持回退语义,即在任意状态(包括已标记为 done/terminal 的状态)可以回到之前的状态。
具体场景:
REWORK事件让 B 从 done 回到 workingjudge判定不通过 → 让 Agent 回到之前的步骤重新执行设计考虑
is_terminal)#跳出语法的兼容示例 DSL(草稿)
"rollback": true表示进入目标状态前执行事务回滚。关联