[Bug] bootstrap prompt 中的 workflow 示例有多处错误,新人照做会失败 #110
Reference in New Issue
Block a user
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?
环境
@united-workforce/cli0.2.1-rc.0@united-workforce/agent-hermes0.1.2uwf prompt bootstrap的 Scenario A 步骤操作问题
按 bootstrap prompt 的指示从头做到 Step 4,会在多个地方遇到阻塞。
1.
examples/eval-simple.yaml不存在bootstrap Step 4 要求运行:
但这个文件没有随 npm 包分发,也不在任何可发现的位置。用户无法完成 Step 4 的验证。
建议: 要么在 npm 包里包含示例文件,要么在 bootstrap prompt 里给出完整的内联 workflow YAML。
2.
uwf prompt workflow-authoring的示例缺少capabilities必填字段parseWorkflowPayload()中的isRoleDefinition()要求每个 role 必须有capabilities数组字段,但workflow-authoringprompt 中的 workflow 示例没有包含这个字段:用户照着写会报
invalid workflow YAML: expected WorkflowPayload shape。3.
uwf prompt workflow-authoring的$status格式示例与validate-semantic.js不一致workflow-authoring prompt 中推荐用 bare
const格式:但
validate-semantic.js的parseFrontmatterSchema()要求$status必须定义为enum或oneOf中的const。bareconst会被拒绝:正确写法应该是:
4.
hermesCLI 不在 PATH 中导致uwf-hermesadapter 失败uwf-hermes通过child_process.spawn("hermes", ["acp"])启动 Hermes ACP。但 Hermes 安装在~/.hermes/hermes-agent/.venv/bin/hermes,通常不在系统 PATH 中。用户装好 adapter 后直接uwf thread exec会得到:bootstrap prompt 应该在 Step 1 或 Step 2 中提示用户确保
hermes命令在 PATH 中。建议修复
uwf prompt bootstrap包含一个完整的、可直接使用的 eval workflow YAML(而不是引用不存在的文件)capabilities: [](或capabilities: [...])$status使用enum格式而非 bareconstwhich hermes应能找到hermes命令补充说明
本次测试使用的是
0.2.1-rc.0版本。小橘说 rc.1 已经修了一部分,等小橘这轮修完会是 rc.2。
建议 rc.2 发布后,小糯(或其他 agent)用新版本重新走一遍 bootstrap 全流程,确认 4 个问题是否都已解决。如有遗漏再追加到本 issue。