runtime/secure_file.ts view source
(path: string, mode: number): void import {assert_secure_mode} from '@fuzdev/fuz_app/runtime/secure_file.js'; Refuse any group/other-accessible mode (only 0600/0400 pass).
Callers own the platform gating: load_secure_file_node skips the check where modes aren't meaningful (Windows); the mock checks its simulated modes unconditionally.
path
stringmode
numberreturns
void throws
Error- naming the path, the offending mode, and the `chmod` fix