实现
This commit is contained in:
16
openspec/specs/plan-lifecycle/spec.md
Normal file
16
openspec/specs/plan-lifecycle/spec.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# plan-lifecycle Specification
|
||||
|
||||
## Purpose
|
||||
TBD - created by archiving change add-plan-recovery-option. Update Purpose after archive.
|
||||
## Requirements
|
||||
### Requirement: 系统计划在启动时应具备恢复能力
|
||||
|
||||
系统 SHALL 确保类型为“系统计划” (`PlanTypeSystem`) 的计划在应用启动时,即使因为上次异常关闭而处于未完成状态,也不会被标记为“失败” (`执行失败`)。
|
||||
|
||||
#### Scenario: 系统计划在执行中遭遇应用重启
|
||||
- **GIVEN** 一个状态为“已启用” (`已启用`) 的系统计划正在执行
|
||||
- **WHEN** 应用意外崩溃或重启
|
||||
- **AND** 应用完成启动初始化流程
|
||||
- **THEN** 该系统计划的状态应依然为“已启用” (`已启用`)
|
||||
- **AND** 该系统计划应能够在下一个调度周期被正常触发执行
|
||||
|
||||
Reference in New Issue
Block a user