Bugs that span several modules
Send the failing behavior together with every file on the call path, and have Gemini 4 Neon trace where the value goes wrong and which module should own the fix. Run the full test suite after the change, not just the test that failed.
Example: Why is the discount applied twice?
Material
- cart.py
- cart_total() subtracts coupon.discount from the subtotal before returning it.
- checkout.py
- charge_amount() calls cart_total() and then subtracts coupon.discount again.
- Bug report
- A $10 coupon on a $50 order charged the customer $30.
PromptFind where the discount is applied, explain why it happens twice, and propose one fix that keeps a single place responsible for discounts.
Sample answer · written by hand to show the reasoning
cart_total() already returns $40, and charge_amount() takes the $10 off a second time. Remove the subtraction from charge_amount() so cart.py stays the only place that applies coupons, then add a test that a $10 coupon on $50 charges $40.