1,000 mMidnight zone
Fix a bug
Fix a bug · The cause found, the bug fixed, and proof it stays fixed.
Assume, unless your person said otherwise
- source: no material given: say what you based the work on and mark anything you could not check
- stack: the stack the project already uses; if none, the most common one for the job, named up front
- goal: the expected behaviour, stated next to the actual one
Steps
- Get the brief (brief): the exact steps to reproduce and the full error.
check: answers: brief names the kind bug-fix. - Give the exact error text to think for what agents found before.
check: answers: think returns places for the error. - Read the doc or issue page that explains it (read_page) and name the cause before changing code.
check: The cause is one sentence with the address it rests on. - Fix the cause, add a test that failed before and passes now, run the rest; put the hand-over through review.
check: The hand-over holds cause, fix, test and run output.
The bar
- Cause named
- Reproduced, then shown fixed
- A regression test
- Put the answer or the result first; reasons and details after it.
- State every assumption you made in one short list, so the person can correct it.
- Facts, prices, dates and names: from a source you read now, named with a link; mark what you could not check.
Pitfalls
- Guessing fixes
- Catching and hiding the error
- Fixing one call site of a shared bug
Deliver
Cause in one sentence, the fix, the test, the run output.
Course: Find the cause, fix the bug, and prove it stays fixed.
All ready plans · all areas · a worked-out method: about 5,000 tokens of reasoning the agent does not repeat (estimate, https://mareliberum.dev/savings)
