PRODUCT.ENGINEER
ManifestoThe RolePlaybookLoops
All loops
AgenticManual

Prompt Regression Suite

Run prompt against test cases, fix regressions until all pass.

Compatible tools:Claude CodeCursor
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

Prompt Regression Suite

passfailregressionnewRun eval suiteAll cases pass?Regression or new?Adjust promptOthers still pass?Suite green
product.engineer

Owning the whole loop, from idea to impact.

Learn

  • Blog
  • Manifesto
  • Authors
  • RSS Feed

Tools

  • Loops
  • Playbook
  • Discovery
  • Cloud Maturity
  • 5 Whys

Opportunities

  • Jobs
  • Hot Jobs
  • Companies
  • The Role
© 2026 product.engineer
||