Root-cause investigations in a large codebase
Give Gemini 4 Argon the error, the logs and the modules on the call path, and have it work through the evidence over several turns until it can name the cause and the change that fixes it. Reproduce the failure and run the tests before and after the fix.
Example: Why do orders fail just after midnight UTC?
Material
- Error log
- 2026-11-22 00:00:03 UTC order 8812 rejected: delivery_date 2026-11-21 is in the past.
- orders.py
- Same-day orders set delivery_date = date.today(), and date.today() uses the server’s local time zone (UTC−8).
- validator.py
- Rejects any delivery_date earlier than the current UTC date.
PromptWork out why these orders fail, point to the line responsible, and propose the smallest fix.
Sample answer · written by hand to show the reasoning
orders.py takes the date in UTC−8 while validator.py compares it in UTC. From 00:00 to 08:00 UTC the server’s local date is still the previous day, so delivery_date is one day behind the UTC date and the validator rejects the order. Take the date in UTC in orders.py so both files use the same clock, and add a test that creates a same-day order at 00:00:03 UTC.