Investigate Issue
Overview
Diagnose the root cause of an issue autonomously. Propose candidate hypotheses, pick the most promising one, run discrete-outcome experiments, update probabilities with evidence, iterate. No user checkpoints. Final report recommends a fix; it does not apply one.
Context
Rules & Constraints
Instructions
- Initialize
- Create a task list covering the steps below.
- Gather initial data: error messages, logs, relevant source files, reproduction steps.
- Hypotheses Generation
- Propose 3-7 candidate root causes with initial probabilities (sum ≈ 100%) and one-line reasoning each.
- Print the initial "Hypothesis Board".
- Experiment Loop (autonomous; no user checkpoints)
- Pick the highest-probability untested hypothesis.
- Design a discrete-outcome experiment; state what "Success" and "Failure" imply for the hypothesis.
- Execute it (read code, run commands, inspect outputs). Keep any diagnostic edits isolated and revert them afterwards.
- Record the outcome, adjust probabilities, append evidence to the Board.
- Verify baseline is restored and print the updated Board.
- Evaluate the termination condition (rule 5). If not met, repeat.
- Final Report
- Print the final Hypothesis Board with the winning hypothesis highlighted.
- Summarize each experiment: what was tested, what was observed, what it proved.
- Recommend a concrete fix (file, line, proposed change) — do NOT apply it.