Files
hermes-agent/evals
Teknium 62a4946e84 fix(desktop): a group-writable private-group profile home attaches without being chmodded back
Desktop refused any group-writable profile home (mode & 0o022) because Node cannot prove the
group private (no NSS/xattrs). The gateway's own policy (home_mode_unsafe) admits group-write
for the owner's private group with no ACL — the umask-002 user-private-group default. The
refusal was classified as a stale gateway, so Desktop re-ran `gateway ensure`, whose home
maintenance chmodded the operator's directory back to 0700 to get through.

Now Node refuses only world-write; a group-writable home is handed to the installed runtime's
Python ticket client (the same helper Windows uses), which applies home_mode_unsafe before
minting. A shared group or a named-user ACL comes back as unsafe_control_permissions and is
reported as "run chmod g-w <home>", never as a stale gateway. Socket, pointer and fallback dir
stay owner-only.

Live (real Electron + gateway, 0775 home set after first-dial maintenance): before, the second
dial logged "forgot stale canonical endpoint ... re-ensuring" and the home ended 0700; after, it
mints with the home still 0775.
2026-10-08 03:42:44 -07:00
..