You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commands/conductor/review.toml
+80-43Lines changed: 80 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -114,48 +114,85 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
114
114
---
115
115
116
116
## 3.0 COMPLETION PHASE
117
-
1. **Review Decision:**
118
-
- **Determine Recommendation and announce it to the user:**
119
-
- If **Critical** or **High** issues found:
120
-
> "I recommend we fix the important issues I found before moving forward."
121
-
- If only **Medium/Low** issues found:
122
-
> "The changes look good overall, but I have a few suggestions to improve them."
123
-
- If no issues found:
124
-
> "Everything looks great! I don't see any issues."
125
-
- **Action:**
126
-
- **If issues found:** Ask:
127
-
> "Do you want me to apply the suggested fixes, fix them manually yourself, or proceed to complete the track?
128
-
> A. **Apply Fixes:** Automatically apply the suggested code changes.
129
-
> B. **Manual Fix:** Stop so you can fix issues yourself.
130
-
> C. **Complete Track:** Ignore warnings and proceed to cleanup.
131
-
> Please enter your choice (A, B, or C)."
132
-
- **If "A" (Apply Fixes):** Apply the code modifications suggested in the findings using file editing tools. Then Proceed to next step.
133
-
- **If "B" (Manual Fix):** Terminate operation to allow user to edit code.
134
-
- **If "C" (Complete Track):** Proceed to the next step.
135
-
- **If no issues found:** Proceed to the next step.
136
-
137
-
2. **Track Cleanup:**
138
-
**PROTOCOL: Offer to archive or delete the reviewed track.**
139
-
140
-
a. **Context Check:** If you are NOT reviewing a specific track (e.g., just reviewing current changes without a track context), SKIP this entire section.
141
-
142
-
b. **Ask for User Choice:**
143
-
> "Review complete. What would you like to do with track '<track_name>'?
144
-
> A. **Archive:** Move to `conductor/archive/` and update registry.
145
-
> B. **Delete:** Permanently remove from system.
146
-
> C. **Skip:** Leave as is.
147
-
> Please enter your choice (A, B, or C)."
148
117
149
-
c. **Handle User Response:**
150
-
* **If "A" (Archive):**
151
-
i. **Setup:** Ensure `conductor/archive/` exists.
152
-
ii. **Move:** Move track folder to `conductor/archive/<track_id>`.
153
-
iii. **Update Registry:** Remove track section from **Tracks Registry**.
154
-
iv. **Commit:** Stage registry and archive. Commit: `chore(conductor): Archive track '<track_name>'`.
155
-
v. **Announce:** "Track '<track_name>' archived."
156
-
* **If "B" (Delete):**
157
-
i. **Confirm:** "WARNING: Irreversible deletion. Proceed? (yes/no)"
158
-
ii. **If yes:** Delete track folder, remove from **Tracks Registry**, commit (`chore(conductor): Delete track '<track_name>'`), announce success.
159
-
iii. **If no:** Cancel.
160
-
* **If "C" (Skip):** Leave track as is.
118
+
### 3.1 Review Decision
119
+
1. **Determine Recommendation and announce it to the user:**
120
+
- If **Critical** or **High** issues found:
121
+
> "I recommend we fix the important issues I found before moving forward."
122
+
- If only **Medium/Low** issues found:
123
+
> "The changes look good overall, but I have a few suggestions to improve them."
124
+
- If no issues found:
125
+
> "Everything looks great! I don't see any issues."
126
+
2. **Action:**
127
+
- **If issues found:** Ask:
128
+
> "Do you want me to apply the suggested fixes, fix them manually yourself, or proceed to complete the track?
129
+
> A. **Apply Fixes:** Automatically apply the suggested code changes.
130
+
> B. **Manual Fix:** Stop so you can fix issues yourself.
131
+
> C. **Complete Track:** Ignore warnings and proceed to cleanup.
132
+
> Please enter your choice (A, B, or C)."
133
+
- **If "A" (Apply Fixes):** Apply the code modifications suggested in the findings using file editing tools. Then Proceed to next step.
134
+
- **If "B" (Manual Fix):** Terminate operation to allow user to edit code.
135
+
- **If "C" (Complete Track):** Proceed to the next step.
136
+
- **If no issues found:** Proceed to the next step.
137
+
138
+
### 3.2 Commit Review Changes
139
+
**PROTOCOL: Ensure all review-related changes are committed and tracked in the plan.**
140
+
141
+
1. **Check for Changes:** Use `git status --porcelain` to check for any uncommitted changes (staged or unstaged) in the repository.
142
+
2. **Condition for Action:**
143
+
- If NO changes are detected, proceed to '3.3 Track Cleanup'.
144
+
- If changes are detected:
145
+
a. **Check for Track Context:**
146
+
- If you are NOT reviewing a specific track (i.e., you don't have a `plan.md` in context), simply offer to commit the changes:
147
+
> "I've detected uncommitted changes. Should I commit them? (yes/no)"
148
+
- If 'yes', stage all changes and commit with `fix(conductor): Apply review suggestions <brief description of changes>`.
149
+
- Proceed to '3.3 Track Cleanup'.
150
+
b. **Handle Track-Specific Changes:**
151
+
i. **Confirm with User:**
152
+
> "I've detected uncommitted changes from the review process. Should I commit these and update the track's plan? (yes/no)"
153
+
ii. **If Yes:**
154
+
- **Update Plan (Add Review Task):**
155
+
- Read the track's `plan.md`.
156
+
- Append a new phase (if it doesn't exist) and task to the end of the file.
157
+
- **Format:**
158
+
```markdown
159
+
## Phase: Review Fixes
160
+
- [~] Task: Apply review suggestions
161
+
```
162
+
- **Commit Code:**
163
+
- Stage all code changes related to the track (excluding `plan.md`).
164
+
- Commit with message: `fix(conductor): Apply review suggestions for track '<track_name>'`.
165
+
- **Record SHA:**
166
+
- Get the short SHA (first 7 characters) of the commit.
167
+
- Update the task in `plan.md` to: `- [x] Task: Apply review suggestions <sha>`.
168
+
- **Commit Plan Update:**
169
+
- Stage `plan.md`.
170
+
- Commit with message: `conductor(plan): Mark task 'Apply review suggestions' as complete`.
171
+
- **Announce Success:** "Review changes committed and tracked in the plan."
172
+
iii. **If No:** Skip the commit and plan update. Proceed to '3.3 Track Cleanup'.
173
+
174
+
### 3.3 Track Cleanup
175
+
**PROTOCOL: Offer to archive or delete the reviewed track.**
176
+
177
+
1. **Context Check:** If you are NOT reviewing a specific track (e.g., just reviewing current changes without a track context), SKIP this entire section.
178
+
179
+
2. **Ask for User Choice:**
180
+
> "Review complete. What would you like to do with track '<track_name>'?
181
+
> A. **Archive:** Move to `conductor/archive/` and update registry.
182
+
> B. **Delete:** Permanently remove from system.
183
+
> C. **Skip:** Leave as is.
184
+
> Please enter your choice (A, B, or C)."
185
+
186
+
3. **Handle User Response:**
187
+
* **If "A" (Archive):**
188
+
i. **Setup:** Ensure `conductor/archive/` exists.
189
+
ii. **Move:** Move track folder to `conductor/archive/<track_id>`.
190
+
iii. **Update Registry:** Remove track section from **Tracks Registry**.
191
+
iv. **Commit:** Stage registry and archive. Commit: `chore(conductor): Archive track '<track_name>'`.
192
+
v. **Announce:** "Track '<track_name>' archived."
193
+
* **If "B" (Delete):**
194
+
i. **Confirm:** "WARNING: Irreversible deletion. Proceed? (yes/no)"
195
+
ii. **If yes:** Delete track folder, remove from **Tracks Registry**, commit (`chore(conductor): Delete track '<track_name>'`), announce success.
0 commit comments