simplify: thread fork only takes step-hash #346
Reference in New Issue
Block a user
Delete Branch "fix/342-fork-simplify"
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?
What
Remove thread-id argument from
uwf thread fork.Why
CAS 节点自包含,从 step-hash 就能回溯到 StartNode,不需要指定 thread-id。
Changes
cli.ts— fork 只接受<step-hash>一个参数thread.ts— 删除链遍历验证,改为直接检查节点类型(StartNode/StepNode)types.ts—ThreadForkOutput.forkedFrom移除thread字段Ref
Refs #342
LGTM ✅ CAS 天然可寻址,不需要 thread-id 验证归属,直接用 hash fork 就对了。