Phase 3: CAS 统一 — uwf 直接使用 ~/.ocas/ store #10

Closed
opened 2026-06-02 11:56:01 +00:00 by xingyue · 2 comments
Owner

Goal

uwf 的 CAS 存储从独立的 ~/.uncaged/json-cas/ 切换到与 ocas 共享的 ~/.ocas/ store。

现状

  • uwf 有独立 CAS store:~/.uncaged/json-cas/
  • ocas 用 ~/.ocas/
  • 两份数据互相隔离
  • uwf 还有 uwf cas 子命令,功能与 ocas 重复

Tasks

  • 修改 getCasStorageRoot() 默认路径为 ~/.ocas/
  • uwf 启动时迁移:检测旧 CAS 存在 → 合并到 ~/.ocas/(CAS 内容寻址,hash 去重)
  • 移除 uwf cas 子命令
  • 更新文档:CAS 操作统一用 ocas CLI
  • 验证 uwf 的 workflow/thread 数据在 ~/.ocas/ 下正常工作

Notes

  • CAS 是内容寻址的,合并 store 不会有冲突
  • uwf cas 移除后,ocas 成为唯一 CAS 操作入口
## Goal uwf 的 CAS 存储从独立的 `~/.uncaged/json-cas/` 切换到与 ocas 共享的 `~/.ocas/` store。 ## 现状 - uwf 有独立 CAS store:`~/.uncaged/json-cas/` - ocas 用 `~/.ocas/` - 两份数据互相隔离 - uwf 还有 `uwf cas` 子命令,功能与 `ocas` 重复 ## Tasks - [ ] 修改 `getCasStorageRoot()` 默认路径为 `~/.ocas/` - [ ] uwf 启动时迁移:检测旧 CAS 存在 → 合并到 `~/.ocas/`(CAS 内容寻址,hash 去重) - [ ] 移除 `uwf cas` 子命令 - [ ] 更新文档:CAS 操作统一用 `ocas` CLI - [ ] 验证 uwf 的 workflow/thread 数据在 `~/.ocas/` 下正常工作 ## Notes - CAS 是内容寻址的,合并 store 不会有冲突 - `uwf cas` 移除后,`ocas` 成为唯一 CAS 操作入口
Owner

Review 建议

uwf cas 移除前,确认没有 workflow YAML 的 procedure 里引用了 uwf cas 命令(agent 可能在 step 执行中调用)。可以 grep 一下所有 .yaml 和 reference docs。

## Review 建议 `uwf cas` 移除前,确认没有 workflow YAML 的 procedure 里引用了 `uwf cas` 命令(agent 可能在 step 执行中调用)。可以 grep 一下所有 `.yaml` 和 reference docs。
Author
Owner

好提醒 👍 移除前会 grep 所有 .yaml workflow 和 reference docs,确认没有 agent procedure 引用 uwf cas。已加入 task。

好提醒 👍 移除前会 grep 所有 `.yaml` workflow 和 reference docs,确认没有 agent procedure 引用 `uwf cas`。已加入 task。
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#10