ReviewOS

also looking at this

stacks/buddy

fix: report skipped gates as skipped, and honour ai.majorUpgrades.maxAttempts

#1433
Merged glennmichael123 wants to merge fix/gate-neutral into main
9 files +257 -8
src/gates/ai-checks.tsmodified+3-1
Changes to src/gates/ai-checks.ts
@@ -43,7 +43,9 @@ const VERDICT_SCHEMA = {
4343
4444/** A gate that could not run, reported as neutral rather than as a pass. */
4545function neutral(name: string, summary: string): GateResult {
46 return { name, mode: 'warning', passed: true, summary, detail: 'This check did not run.' }
46 // `passed: true` so a skipped gate never blocks; `neutral: true` so it is
47 // never rendered, counted or titled as though it had run and found nothing.
48 return { name, mode: 'warning', passed: true, neutral: true, summary, detail: 'This check did not run.' }
4749}
4850
4951/**