1# Repair Request
2
3Your previous prediction has quality issues that need to be addressed. Please generate an improved prediction.
4
5## Quality Feedback
6
7{quality_feedback}
8
9{token_change_info}
10
11## Your Previous Prediction (word-diff format)
12
13`````
14{actual_patch_word_diff}
15`````
16
17## Instructions
18
19Generate an improved prediction following the same rules and output format from the original instructions. The key rules remain:
20
21- **NEVER undo or revert the user's recent edits** — if a line was removed in the edit history, do NOT restore it
22- If your prediction would make the code more similar to what it was BEFORE the user's edit, output `NO_EDITS` instead
23- When uncertain, predict only the minimal, high-confidence portion of the edit
24
25## Output Format
26
27Follow the same output format as before, with one addition:
28
29- If the code is complete as-is and no edits should be made, output `NO_EDITS`
30- **NEW: If your previous prediction was actually correct** (the quality feedback was overly cautious), output `KEEP_PREVIOUS`:
31
32 `````
33 KEEP_PREVIOUS
34 `````
35
36 Use `KEEP_PREVIOUS` when you determine the original prediction correctly addresses the user's intent despite the feedback.
37
38**Important:** `NO_EDITS` and `KEEP_PREVIOUS` are NOT interchangeable:
39- `NO_EDITS` = make zero changes to the code (discard the previous prediction)
40- `KEEP_PREVIOUS` = the previous prediction is correct, use it as-is
41
42## Your Improved Prediction
43
44Briefly explain what was wrong with your previous prediction (or why it was actually correct), then provide the improved output.