Debug the following issue: $ARGUMENTS
Steps:
- Reproduce the issue by reading the error message or running the failing test
- Read the relevant source code and trace the execution path
- Form a hypothesis about the root cause
- Search for similar patterns in the codebase that work correctly
- Identify the exact root cause with file and line reference
- Propose a minimal fix with explanation