@sleighmaster/bmad 1.5.11 → 1.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,11 +54,23 @@
|
|
|
54
54
|
3. **Code Quality**: Security, performance, maintainability
|
|
55
55
|
4. **Test Quality**: Real tests vs placeholder bullshit
|
|
56
56
|
</action>
|
|
57
|
+
|
|
58
|
+
<!-- Initialize review loop counter -->
|
|
59
|
+
<action>Set {{review_round}} = 0</action>
|
|
60
|
+
<action>Set {{cumulative_fixed}} = 0</action>
|
|
57
61
|
</step>
|
|
58
62
|
|
|
59
63
|
<step n="3" goal="Execute adversarial review">
|
|
60
64
|
<critical>VALIDATE EVERY CLAIM - Check git reality vs story claims</critical>
|
|
61
65
|
|
|
66
|
+
<!-- Review loop tracking -->
|
|
67
|
+
<action>Set {{review_round}} = {{review_round}} + 1</action>
|
|
68
|
+
<check if="{{review_round}} gt 1">
|
|
69
|
+
<output>🔄 **Re-review Round {{review_round}}** — Verifying previous fixes and scanning for remaining issues...</output>
|
|
70
|
+
<action>Re-read ALL modified files to verify previous round's fixes were applied correctly</action>
|
|
71
|
+
<action>Re-run git status/diff to capture latest changes</action>
|
|
72
|
+
</check>
|
|
73
|
+
|
|
62
74
|
<!-- Git vs Story Discrepancies -->
|
|
63
75
|
<action>Review git vs story File List discrepancies:
|
|
64
76
|
1. **Files changed but not in story File List** → MEDIUM finding (incomplete documentation)
|
|
@@ -108,18 +120,21 @@
|
|
|
108
120
|
</check>
|
|
109
121
|
</step>
|
|
110
122
|
|
|
111
|
-
<step n="4" goal="
|
|
123
|
+
<step n="4" goal="Record findings, auto-fix, and loop until clean">
|
|
124
|
+
<critical>This step automatically records findings → fixes code → loops back to Step 3 for re-review until no HIGH/MEDIUM issues remain</critical>
|
|
125
|
+
|
|
126
|
+
<!-- 4a. Categorize and present findings -->
|
|
112
127
|
<action>Categorize findings: HIGH (must fix), MEDIUM (should fix), LOW (nice to fix)</action>
|
|
113
128
|
<action>Set {{fixed_count}} = 0</action>
|
|
114
129
|
<action>Set {{action_count}} = 0</action>
|
|
115
130
|
|
|
116
|
-
<output>**🔥 CODE REVIEW FINDINGS, {user_name}!**
|
|
131
|
+
<output>**🔥 CODE REVIEW FINDINGS (Round {{review_round}}), {user_name}!**
|
|
117
132
|
|
|
118
133
|
**Story:** {{story_file}}
|
|
119
134
|
**Git vs Story Discrepancies:** {{git_discrepancy_count}} found
|
|
120
135
|
**Issues Found:** {{high_count}} High, {{medium_count}} Medium, {{low_count}} Low
|
|
121
136
|
|
|
122
|
-
## 🔴 CRITICAL ISSUES
|
|
137
|
+
## 🔴 CRITICAL/HIGH ISSUES
|
|
123
138
|
- Tasks marked [x] but not actually implemented
|
|
124
139
|
- Acceptance Criteria not implemented
|
|
125
140
|
- Story claims files changed but no git evidence
|
|
@@ -138,33 +153,34 @@
|
|
|
138
153
|
- Git commit message quality
|
|
139
154
|
</output>
|
|
140
155
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
156
|
+
<!-- 4b. Record findings in story file (document BEFORE fixing) -->
|
|
157
|
+
<action>Add or update "Review Follow-ups (AI) — Round {{review_round}}" subsection in Tasks/Subtasks</action>
|
|
158
|
+
<action>For each HIGH and MEDIUM issue: `- [ ] [AI-Review][Round {{review_round}}][{{Severity}}] {{Description}} [{{file}}:{{line}}]`</action>
|
|
159
|
+
<action>For each LOW issue: `- [ ] [AI-Review][Round {{review_round}}][LOW] {{Description}} [{{file}}:{{line}}]`</action>
|
|
160
|
+
<action>Set {{action_count}} = number of action items recorded</action>
|
|
161
|
+
|
|
162
|
+
<!-- 4c. Check if there are any issues to fix -->
|
|
163
|
+
<check if="{{high_count}} + {{medium_count}} + {{low_count}} == 0">
|
|
164
|
+
<!-- No issues at all — review is clean -->
|
|
165
|
+
<output>✅ **No issues found! Code is clean.**</output>
|
|
166
|
+
<!-- Proceed to Step 5 (completion) -->
|
|
167
|
+
</check>
|
|
148
168
|
|
|
149
|
-
<check if="
|
|
150
|
-
|
|
169
|
+
<check if="{{high_count}} + {{medium_count}} + {{low_count}} gt 0">
|
|
170
|
+
<!-- 4d. Auto-fix all issues (HIGH, MEDIUM, and LOW) -->
|
|
171
|
+
<output>🔧 **Auto-fixing {{high_count}} HIGH + {{medium_count}} MEDIUM + {{low_count}} LOW issues...**</output>
|
|
172
|
+
<action>Fix all HIGH, MEDIUM, and LOW issues in the code</action>
|
|
151
173
|
<action>Add/update tests as needed</action>
|
|
152
174
|
<action>Update File List in story if files changed</action>
|
|
153
175
|
<action>Update story Dev Agent Record with fixes applied</action>
|
|
154
|
-
<action>Set {{fixed_count}} = number of
|
|
155
|
-
<action>
|
|
156
|
-
|
|
176
|
+
<action>Set {{fixed_count}} = number of all issues fixed</action>
|
|
177
|
+
<action>Mark fixed items with [x] in "Review Follow-ups (AI)" section</action>
|
|
178
|
+
<action>Set {{cumulative_fixed}} = {{cumulative_fixed}} + {{fixed_count}}</action>
|
|
157
179
|
|
|
158
|
-
|
|
159
|
-
<action>Add "Review Follow-ups (AI)" subsection to Tasks/Subtasks</action>
|
|
160
|
-
<action>For each issue: `- [ ] [AI-Review][Severity] Description [file:line]`</action>
|
|
161
|
-
<action>Set {{action_count}} = number of action items created</action>
|
|
162
|
-
<action>Set {{fixed_count}} = 0</action>
|
|
163
|
-
</check>
|
|
180
|
+
<output>🔧 **Round {{review_round}} fixes applied:** {{fixed_count}} issues fixed. Looping back for re-review...</output>
|
|
164
181
|
|
|
165
|
-
|
|
166
|
-
<
|
|
167
|
-
<action>Return to fix decision</action>
|
|
182
|
+
<!-- Loop back to Step 3 for re-review -->
|
|
183
|
+
<goto step="3">Re-review after fixes</goto>
|
|
168
184
|
</check>
|
|
169
185
|
</step>
|
|
170
186
|
|
|
@@ -217,10 +233,10 @@
|
|
|
217
233
|
<output>**✅ Review Complete!**
|
|
218
234
|
|
|
219
235
|
**Story Status:** {{new_status}}
|
|
220
|
-
**
|
|
221
|
-
**
|
|
236
|
+
**Review Rounds:** {{review_round}}
|
|
237
|
+
**Total Issues Fixed:** {{cumulative_fixed}}
|
|
222
238
|
|
|
223
|
-
{{#if new_status == "done"}}Code review complete!{{else}}
|
|
239
|
+
{{#if new_status == "done"}}Code review complete — all issues resolved!{{else}}Some issues could not be resolved. Check story file for details.{{/if}}
|
|
224
240
|
</output>
|
|
225
241
|
</step>
|
|
226
242
|
|