> 状态:计划任务,尚未按本 Issue 验收交付。阶段:[M3 · Personal Workflows](https://github.com/ydflow/Trail/milestone/3)。总路线:#8;当前能力:#9。 ## 目标与价值 仓库已有 automation scheduler。需要在它的基础上验证并补齐个人任务的长期调度语义,而不是另建一套相互冲突的定时器。 ## 验收标准 - [ ] 审计现有 scheduler 持久化、取消、重启和重复触发行为,明确复用边界 - [ ] 定义时区/DST、睡眠唤醒、离线错过触发和补跑策略 - [ ] 持久化 trigger ID、去重键、任务预算和用户暂停状态 - [ ] 界面展示下一次运行与最近结果,外部写任务仍遵循动作授权 ## 验证方法 假时钟覆盖 DST、重启、休眠、多触发并发、取消和补跑上限;不以真实等待代替确定性测试。 ## 源码起点 - [packages/shared/src/automation/scheduler.ts](https://github.com/ydflow/Trail/blob/main/packages/shared/src/automation/scheduler.ts) - [packages/shared/src/automation/scheduler.test.ts](https://github.com/ydflow/Trail/blob/main/packages/shared/src/automation/scheduler.test.ts) - [packages/shared/src/alerts](https://github.com/ydflow/Trail/tree/main/packages/shared/src/alerts) 以上是已有实现的阅读入口,不代表拟议能力已实现。 ## 依赖与最小贡献 - #11 — [Runtime] 统一 Goal / Project / Task / Run / Step 状态与任务图 - #12 — [Runtime] 将 Checkpoint 扩展到普通助手与长任务 - #13 — [Runtime] 工具副作用日志与重放策略:区分读取、幂等写入和人工确认 先审计并补一项确定性调度测试,再扩展产品入口。 ## 参与 认领前先说明拟完成的最小范围,再评论 `/claim`。提交 PR 时附真实环境、验证命令和结果;仅完成部分时请列出剩余项。贡献入口:#7。
Activity