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.
Test / Original task brief
Classify whether the failure is a product regression, stale expectation, environment problem, flaky harness, or test isolation defect.
A CI or local test fails and the tempting response is to loosen, skip, or rewrite the test before understanding it.
Task
Triage {{failing_test}}. The observed output is:
{{failure_output}}
Recent change
{{recent_change}}
Method
1. Run the smallest command that reproduces the failure and record whether it is deterministic.
2. Read the assertion and the product code it exercises. State the user-visible contract the test is meant to protect.
3. Compare the failing path with a passing neighbor and inspect environment, fixture, clock, network, ordering, and shared-state boundaries.
4. Classify the cause: product regression, correct behavior with stale expectation, environment/setup, flaky timing, or test isolation.
5. Fix the causal layer. Change the assertion only when the intended contract has changed and explain that decision explicitly.
Evidence to return
- Minimal reproduction command and output.
- Cause classification with supporting observations.
- Focused test result before and after the fix.
- Relevant suite result and any remaining flake risk.
Stop conditions
Do not add retries, sleeps, skips, broad mocks, or weaker assertions merely to turn CI green. Stop if the intended behavior is ambiguous and needs an owner decision.Variables
{{failing_test}}{{failure_output}}{{recent_change}}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