The flawed prompt
The database is broken. Rewrite the checkout and tell me when tests pass.
Facts you can use
Simulated task: double-clicking Submit during a slow request creates two orders. Existing retry after a failed request must remain usable. No database cause has been established. The repository has a submit handler and a pending-state test; inspect their current versions and actual commands.
Simulated task. No repository is accessed and no tests execute here.
Write your repair
Write in your own words. Concise is welcome. Leaving a section blank is allowed so you can review what is missing.
Your draft stays in this browser tab. Requesting feedback saves these sections to your learner history; up to five distinct revisions per case.
Your assembled prompt
Goal [Still to write] Relevant context [Still to write] Scope boundaries [Still to write] Acceptance criteria [Still to write] Verification evidence [Still to write] Stop conditions [Still to write]