[aide] impl: 子计划2 任务中断恢复和细则确认机制更新完成
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"task_id": "2025-12-17T03-13-17",
|
"task_id": "2025-12-17T03-13-17",
|
||||||
"current_phase": "impl",
|
"current_phase": "impl",
|
||||||
"current_step": 9,
|
"current_step": 10,
|
||||||
"started_at": "2025-12-17T03:13:17+08:00",
|
"started_at": "2025-12-17T03:13:17+08:00",
|
||||||
"history": [
|
"history": [
|
||||||
{
|
{
|
||||||
@@ -73,7 +73,15 @@
|
|||||||
"action": "next-step",
|
"action": "next-step",
|
||||||
"phase": "impl",
|
"phase": "impl",
|
||||||
"step": 9,
|
"step": 9,
|
||||||
"summary": "子计划1 Git分支管理核心功能实现完成"
|
"summary": "子计划1 Git分支管理核心功能实现完成",
|
||||||
|
"git_commit": "79a22bc137e52d911581b830f34d4e030ec8e7ef"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": "2025-12-17T04:09:24+08:00",
|
||||||
|
"action": "next-step",
|
||||||
|
"phase": "impl",
|
||||||
|
"step": 10,
|
||||||
|
"summary": "子计划2 任务中断恢复和细则确认机制更新完成"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
26989
|
27130
|
||||||
@@ -118,20 +118,40 @@ aide config get task.source
|
|||||||
|
|
||||||
对于存在多种方案、有歧义、需要用户确认的内容,准备待定项数据。
|
对于存在多种方案、有歧义、需要用户确认的内容,准备待定项数据。
|
||||||
|
|
||||||
#### 1.7 待定项处理(如有)
|
#### 1.7 待定项处理
|
||||||
|
|
||||||
|
**必须执行**,无论是否有待定项:
|
||||||
|
|
||||||
|
1. **如果有待定项**:
|
||||||
```bash
|
```bash
|
||||||
aide decide submit .aide/pending-items.json
|
aide decide submit .aide/pending-items.json
|
||||||
# 用户完成后
|
```
|
||||||
|
- 等待用户完成决策
|
||||||
|
```bash
|
||||||
aide decide result
|
aide decide result
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2. **如果无待定项**:
|
||||||
|
- 向用户报告「无需确认的待定项」
|
||||||
|
- 继续下一步
|
||||||
|
|
||||||
#### 1.8 生成任务细则
|
#### 1.8 生成任务细则
|
||||||
|
|
||||||
产出任务细则文档,保存到配置的路径。
|
**必须执行**:
|
||||||
|
|
||||||
|
1. 根据分析结果生成任务细则文档
|
||||||
|
2. 保存到配置的路径:
|
||||||
|
```bash
|
||||||
|
aide config get task.spec
|
||||||
|
```
|
||||||
|
3. **强制确认点**:
|
||||||
|
- 向用户展示细则摘要
|
||||||
|
- 使用 AskUserQuestion 询问用户是否确认
|
||||||
|
- 等待用户明确答复后才能继续
|
||||||
|
- 如用户有修改意见,更新细则后重新确认
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
aide flow next-step "任务准备完成"
|
aide flow next-step "任务细则已确认"
|
||||||
```
|
```
|
||||||
|
|
||||||
### 阶段 2:流程设计 (flow-design)
|
### 阶段 2:流程设计 (flow-design)
|
||||||
@@ -303,7 +323,29 @@ aide flow next-step "任务完成"
|
|||||||
|
|
||||||
当检测到未完成的任务时:
|
当检测到未完成的任务时:
|
||||||
|
|
||||||
### 1. 分析当前进度
|
### 1. 智能续接判断
|
||||||
|
|
||||||
|
1. **检查任务细则文档是否存在**:
|
||||||
|
```bash
|
||||||
|
aide config get task.spec
|
||||||
|
```
|
||||||
|
读取配置的细则文档路径。
|
||||||
|
|
||||||
|
2. **如果细则文档不存在**:
|
||||||
|
- 旧状态已无效,需要 start 新任务
|
||||||
|
- 提示用户:「检测到未完成的任务,但任务细则不存在。是否开始新任务?」
|
||||||
|
|
||||||
|
3. **如果细则文档存在**:
|
||||||
|
- 阅读细则文档内容
|
||||||
|
- 判断上次未完成任务的名称和步骤是否符合细则含义
|
||||||
|
- **符合** → 接续之前的状态继续执行
|
||||||
|
- **不符合** → 旧状态已无效,需要 start 新任务
|
||||||
|
|
||||||
|
4. **如果判断为应继续,但 git 状态不干净**:
|
||||||
|
- aide flow 会自动执行 git add . 并创建清理提交
|
||||||
|
- 这是预期行为,无需手动处理
|
||||||
|
|
||||||
|
### 2. 分析当前进度
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
aide flow status
|
aide flow status
|
||||||
|
|||||||
Reference in New Issue
Block a user