writeSettings created its temp file with the original mode, but the create
mode is filtered through the umask, so a rewrite could leave the settings
file with fewer permission bits than it had. It now chmods the temp file to
the mode outright before the rename.
Found and fixed by a moshcode work agent (fleet sweep); verify:
npx vitest run ./src/hooks-install.test.ts (packages/openfleet).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>