Use os.MkdirTemp with explicit cleanup instead of t.TempDir() to avoid cleanup errors when subdirectories are created during test execution. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>