Task boundary
The first lines define one outcome and the environment in which it must be achieved.
The interactive tools could not load. Reload this page; the guides and source links are still available.
Debug / Original task brief
Reproduce the defect, isolate the failing boundary, explain the causal chain, and prove the smallest repair with a regression test.
A bug is reported with symptoms but the root cause is unknown or several plausible explanations are competing.
Task
Find and fix the root cause of: {{observed_failure}}.
Expected behavior
{{expected_behavior}}
Known reproduction
{{reproduction_steps}}
Method
1. Reproduce the failure in the current artifact and capture the exact error, state, request, or geometry that proves it.
2. Trace backward through the system one boundary at a time. Compare a failing case with the closest working case.
3. State one root-cause hypothesis and the observation that would falsify it. Test that hypothesis before editing.
4. Add a focused regression test that fails for the verified reason.
5. Implement the smallest causal repair, then rerun the focused test and the relevant full suite.
Evidence to return
- Reproduction evidence from before the change.
- Root cause with the exact file and line or runtime boundary.
- Why competing explanations were rejected.
- Test and execution output after the repair.
Stop conditions
Do not patch symptoms, blame cache or timing without evidence, weaken security controls, or claim success if the original reproduction was not exercised after the change.Variables
{{observed_failure}}{{reproduction_steps}}{{expected_behavior}}Keep unknowns explicit. Remove a section only when it truly does not apply; do not replace evidence requirements with a request for confidence.
Why this prompt is structured this way
The first lines define one outcome and the environment in which it must be achieved.
The method asks the coding agent to inspect and execute rather than jump directly to a plausible patch.
The result must include paths, commands, measurements, or browser observations that another person can check.
The agent is told when not to guess, broaden scope, weaken a guard, or overstate completion.
Related prompts
Inspect the actual diff in repository context and report only actionable defects with severity, evidence, and a concrete failure scenario.
Use when: A branch or working tree is ready for an independent correctness, security, and maintainability review.
Open promptExercise a real user flow with semantic, focus, state, contrast, target-size, and responsive evidence rather than a static checklist alone.
Use when: A web interface has a form, dialog, menu, custom control, upload, or task flow that must work beyond pointer input.
Open prompt