Replace deprecated mktemp with mkstemp to eliminate TOCTOU race, narrow OSError catches to PermissionError (Windows SQLite lock intent only), and add a deferred-import comment for clarity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace deprecated mktemp with mkstemp to eliminate TOCTOU race, narrow OSError catches to PermissionError (Windows SQLite lock intent only), and add a deferred-import comment for clarity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>