| 1 | prompt = """handlers.py duplicates the same request-validation block in three handlers. Refactor it: |
| 2 | - create validation.py with a single validate_request(req) function holding that logic |
| 3 | - all three handlers must call it instead of their inline copies |
| 4 | - behavior must stay identical: the same requests are accepted/rejected with the same error messages""" |
| 5 | class = "refactor" |
| 6 | max_steps = 20 |
| 7 | timeout_sec = 300 |
| 8 |