清理策划V2已退役停止状态
删除 Planning V2 认领逻辑中的 stopped 死分支。 同步技术方案中的状态枚举和状态转移描述。
This commit is contained in:
+1
-1
@@ -1035,7 +1035,7 @@ pub(crate) fn reconcile_committed_planning_gdd_v2(
|
||||
let Some(mut session) = read_planning_session_v2(root)? else {
|
||||
return Ok(None);
|
||||
};
|
||||
if matches!(session.status.as_str(), "approved" | "rejected" | "stopped") {
|
||||
if matches!(session.status.as_str(), "approved" | "rejected") {
|
||||
return Ok(None);
|
||||
}
|
||||
let next_version = next_gdd_version_v2(&session)?;
|
||||
|
||||
@@ -216,7 +216,7 @@ V2 会话 `status` 枚举冻结为:
|
||||
|
||||
```text
|
||||
idle | planning | awaiting_user | awaiting_approval |
|
||||
revision_requested | approved | rejected | provider_failed | stopped
|
||||
revision_requested | approved | rejected | provider_failed
|
||||
```
|
||||
|
||||
`legacy_retired` 只属于旧链路封存投影,不写入 V2 Session。
|
||||
@@ -356,7 +356,7 @@ awaiting_approval
|
||||
→ rejected
|
||||
|
||||
planning
|
||||
→ provider_failed / stopped
|
||||
→ provider_failed
|
||||
```
|
||||
|
||||
`provider_failed` 是可恢复的失败投影,不代表 GDD 被拒绝;重试时必须沿用当前 Session 和未完成的用户意图。`needs-reconciliation` 不作为 V2 的正常业务状态;只有发生不可判断的持久化冲突时,才进入单独的恢复错误并阻止自动覆盖。
|
||||
|
||||
Reference in New Issue
Block a user