Add the Review Loop: unattended review-and-fix rounds in the desktop app and in loop phases

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-28 21:09:02 -08:00
1 parent d6a28b5dc8
commit 57567d7a0b
71 files changed
+11331 -443

No files matched your search

+4
View File
@@ -29,6 +29,7 @@ const SPEC_KEY = /^specs\/[^/\\.][^/\\]*$/;
export const LOOP_DEFAULTS = Object.freeze({
review: true,
reviewRounds: 2,
fixMode: "smart",
fix: Object.freeze([...LEVELS]),
commit: true,
@@ -68,6 +69,9 @@ export function loopSetupProblems(entry) {
if (!Array.isArray(entry.fix) || !entry.fix.every((l) => LEVELS.includes(l)) || new Set(entry.fix).size !== entry.fix.length) {
problems.push(`"fix" must list distinct levels from ${LEVELS.join(", ")}`);
}
if (!Number.isInteger(entry.reviewRounds) || entry.reviewRounds < 0 || entry.reviewRounds > 6) {
problems.push('"reviewRounds" must be a whole number from 0 to 6');
}
if (!FIX_MODES.includes(entry.fixMode)) problems.push(`"fixMode" must be one of ${FIX_MODES.join(", ")}`);
if (!ON_QUESTION.includes(entry.onQuestion)) problems.push(`"onQuestion" must be one of ${ON_QUESTION.join(", ")}`);
if (!AFTER_LAST.includes(entry.afterLast)) problems.push(`"afterLast" must be one of ${AFTER_LAST.join(", ")}`);