RFC: uwf — Stateless Workflow CLI #309

Closed
opened 2026-05-18 08:47:55 +00:00 by xiaoju · 0 comments
Owner

背景

将 workflow 引擎从 18 包的运行时架构降维为无状态单步 CLI。Workflow 是纯数据(CAS 节点),执行是单步原子操作,agent 是可插拔外部命令。

设计文档:docs/wf-stateless-design.md

Phase 拆分

Phase 1: (#310) uwf-protocol — 共享类型定义

Phase 2: (#311) uwf-moderator — JSONata moderator 引擎

Phase 3: (#312) cli-uwf workflow 命令 — put/show/list

Phase 4: (#313) cli-uwf thread 基础命令 — start/show/list/kill

Phase 5: (#314) uwf-agent-kit — Agent CLI 框架

Phase 6: (#315) cli-uwf thread step — 单步执行

Phase 7: (#316) uwf-agent-hermes — 第一个 agent 适配器

完成标准

  • 所有 Phase 的 testing issue 已 close
  • 端到端验证:uwf thread start → 多次 uwf thread step → thread 完成
## 背景 将 workflow 引擎从 18 包的运行时架构降维为无状态单步 CLI。Workflow 是纯数据(CAS 节点),执行是单步原子操作,agent 是可插拔外部命令。 设计文档:`docs/wf-stateless-design.md` ## Phase 拆分 ### Phase 1: (#310) uwf-protocol — 共享类型定义 - 验证目标:所有关键数据类型可编译,类型关系正确 - Testing issue: #310 ### Phase 2: (#311) uwf-moderator — JSONata moderator 引擎 - 验证目标:给定 Workflow 定义和 ModeratorContext,正确求值 conditions 和 graph transitions - Testing issue: #311 ### Phase 3: (#312) cli-uwf workflow 命令 — put/show/list - 验证目标:能将 YAML workflow 定义写入 CAS,能查询和列出已注册 workflows - Testing issue: #312 ### Phase 4: (#313) cli-uwf thread 基础命令 — start/show/list/kill - 验证目标:能创建 thread、查询状态、列出活跃 threads、终结 thread - Testing issue: #313 ### Phase 5: (#314) uwf-agent-kit — Agent CLI 框架 - 验证目标:提供 agent 作者可用的框架,读 thread context、执行 extract、写 StepNode、输出 hash - Testing issue: #314 ### Phase 6: (#315) cli-uwf thread step — 单步执行 - 验证目标:完整的 moderator 决策 → agent 调用 → 链头更新 → done 判断流程 - Testing issue: #315 ### Phase 7: (#316) uwf-agent-hermes — 第一个 agent 适配器 - 验证目标:用 uwf-hermes 完成一个完整 workflow 的端到端执行 - Testing issue: #316 ## 完成标准 - [ ] 所有 Phase 的 testing issue 已 close - [ ] 端到端验证:uwf thread start → 多次 uwf thread step → thread 完成
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#309