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
{{ message }}
This repository was archived by the owner on Apr 11, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: skills/flow-code-impl-review/SKILL.md
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,17 +142,45 @@ The workflow covers:
142
142
143
143
**CRITICAL: Do NOT ask user for confirmation. Automatically fix ALL valid issues and re-review — our goal is production-grade world-class software and architecture. Never use AskUserQuestion in this loop.**
144
144
145
-
**MAX ITERATIONS**: Limit fix+re-review cycles to **${MAX_REVIEW_ITERATIONS:-3}** iterations (default 3). If still NEEDS_WORK after max rounds, stop the fix loop and return to the worker with status NEEDS_WORK — the worker will report SPEC_CONFLICT.
145
+
**MAX ITERATIONS** (severity-based limits):
146
+
-**P0/P1 findings** (critical/major): max **3** fix iterations
147
+
-**P2/P3 findings** (minor/trivial): max **2** fix iterations
148
+
-**Subjective findings** (naming, style, architecture opinion): max **1** iteration, then defer
149
+
150
+
Default fallback: **${MAX_REVIEW_ITERATIONS:-3}** iterations. If still NEEDS_WORK after max rounds, stop the fix loop and return to the worker with status NEEDS_WORK — the worker will report SPEC_CONFLICT.
151
+
152
+
### Finding Classification
153
+
154
+
Classify each finding as **deterministic** or **subjective**:
If all remaining unresolved findings are **subjective**, issue **SHIP** verdict with recorded concerns rather than continuing the fix loop. Log: "Review circuit breaker: all remaining findings are subjective. Issuing SHIP with recorded concerns."
159
+
160
+
### Regression Detection
161
+
162
+
Track the **finding count per iteration**. If iteration N+1 produces **MORE** findings than iteration N, the fixes are introducing new problems. Break the loop immediately with:
163
+
> "Review circuit breaker: regression detected (findings increased from X to Y). Stopping fix loop."
164
+
165
+
### Oscillation Detection
166
+
167
+
Compare finding titles/descriptions across iterations. If a finding from iteration N **reappears** in iteration N+2 (was fixed then reintroduced), break immediately with:
Copy file name to clipboardExpand all lines: skills/flow-code-plan-review/SKILL.md
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,12 +164,40 @@ The workflow covers:
164
164
165
165
**CRITICAL: Do NOT ask user for confirmation. Automatically fix ALL valid issues and re-review — our goal is production-grade world-class software and architecture. Never use AskUserQuestion in this loop.**
166
166
167
-
**MAX ITERATIONS**: Limit fix+re-review cycles to **${MAX_REVIEW_ITERATIONS:-3}** iterations (default 3, consistent with impl-review and shared protocol). If still NEEDS_WORK after max rounds, stop the fix loop and log: "Plan review: MAX_REVIEW_ITERATIONS reached. Proceeding with remaining concerns as gaps."
167
+
**MAX ITERATIONS** (severity-based limits):
168
+
-**P0/P1 findings** (critical/major): max **3** fix iterations
169
+
-**P2/P3 findings** (minor/trivial): max **2** fix iterations
170
+
-**Subjective findings** (naming, style, architecture opinion): max **1** iteration, then defer
168
171
169
-
If verdict is NEEDS_WORK, loop internally until SHIP or max iterations:
172
+
Default fallback: **${MAX_REVIEW_ITERATIONS:-3}** iterations (consistent with impl-review and shared protocol). If still NEEDS_WORK after max rounds, stop the fix loop and log: "Plan review: MAX_REVIEW_ITERATIONS reached. Proceeding with remaining concerns as gaps."
173
+
174
+
### Finding Classification
175
+
176
+
Classify each finding as **deterministic** or **subjective**:
If all remaining unresolved findings are **subjective**, issue **SHIP** verdict with recorded concerns rather than continuing the fix loop. Log: "Review circuit breaker: all remaining findings are subjective. Issuing SHIP with recorded concerns."
181
+
182
+
### Regression Detection
183
+
184
+
Track the **finding count per iteration**. If iteration N+1 produces **MORE** findings than iteration N, the fixes are introducing new problems. Break the loop immediately with:
185
+
> "Review circuit breaker: regression detected (findings increased from X to Y). Stopping fix loop."
186
+
187
+
### Oscillation Detection
188
+
189
+
Compare finding titles/descriptions across iterations. If a finding from iteration N **reappears** in iteration N+2 (was fixed then reintroduced), break immediately with:
0 commit comments