Run prompt against test cases, fix regressions until all pass.
Start the "Prompt Regression Suite" loop. - Goal: Prompt produces correct output for all test cases in the eval suite — zero regressions from previous passing cases. - Max iterations: 8 - Between iterations run: `node eval/run-suite.js --report` - Exit when: all test cases in the eval suite pass (expected output matches actual within tolerance). Steps: 1. Run the full prompt eval suite against the current prompt version 2. If all test cases pass, stop — exit condition met 3. Identify failing test cases — categorize as: regression (was passing, now failing) vs. new failure 4. For regressions (highest priority): identify what prompt change caused the regression 5. Adjust the prompt to fix the regression WITHOUT breaking other passing cases: - Add specificity where the prompt is too vague - Add examples for edge cases - Restructure instructions for clarity 6. For new failures: determine if the test expectation is wrong or the prompt needs improvement 7. Re-run the suite to verify fixes and check for new regressions Self-pacing instructions: After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when exit condition passes or max iterations reached. Give a short status update each pass.
How it works