Record the P4 workflow rulings #33

Merged
weichen merged 1 commits from feature/agent-harness-p4 into main 2026-10-02 01:03:55 +00:00
Owner

Why: 提案还写着脚本化工作流留到评审再定。

Evidence: P4 一节写入路由、上限和两种动态工作流。

裁定:路由先命令总线,再绑定工作流,最后才是普通回合。工作流启动时拷贝定义。声明式最多 20 步;模型生成最多 8 步,不能含 script,执行前必须确认。critic 每步最多重试 3 次、缺省 1 次,整条最多 6 次,无法解析按不通过。脚本开关 runtime.workflowScripts 缺省关闭。模型写的脚本必须确认,插件自带的不必。回调走工具执行入口,不能调用 run_python、run_shell、run_workflow 和派发类工具。小队入口不提供 run_workflow。本 PR 不合入。

Why: 提案还写着脚本化工作流留到评审再定。 Evidence: P4 一节写入路由、上限和两种动态工作流。 裁定:路由先命令总线,再绑定工作流,最后才是普通回合。工作流启动时拷贝定义。声明式最多 20 步;模型生成最多 8 步,不能含 script,执行前必须确认。critic 每步最多重试 3 次、缺省 1 次,整条最多 6 次,无法解析按不通过。脚本开关 runtime.workflowScripts 缺省关闭。模型写的脚本必须确认,插件自带的不必。回调走工具执行入口,不能调用 run_python、run_shell、run_workflow 和派发类工具。小队入口不提供 run_workflow。本 PR 不合入。
weichen added 1 commit 2026-10-01 16:39:23 +00:00
Why: The harness proposal still said the script decision was deferred, after the implementation chose both declarative workflows and two dynamic forms.
Evidence: The P4 section now states routing order, copy-on-start, step and retry caps, and the script switch.
Impact: Documentation only.
Refs: feature/agent-harness-p4
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit acd6f01c40 into main 2026-10-02 01:03:55 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Documents#33