Skip to content

Document Linux scratch-HOME isolation under systemctl --user in the run-app skill - #4403

Merged
mstomar125 merged 2 commits into
mainfrom
issue-4283-linux-scratch-home
Nov 27, 2026
Merged

mstomar125 merged 2 commits into
mainfrom
issue-4283-linux-scratch-home

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Rewrites the Linux section of the run-app skill with what a run under systemctl --user showed, replacing the "not yet checked on a host" paragraph and the stale chat-models table row.

Run on Ubuntu 24.04 arm64 (Lima, vz, systemd user session, linger on), released v0.3.14 nodespaced and nodespace (checksums verified against SHA256SUMS). Real-home file listings (find -printf '%y %p %T+') were taken before and after each run.

  • A scratch HOME: the app writes the unit under the scratch home; the user manager (its own environment, real HOME) does not see it. enable and restart fail, nothing starts, real home untouched.
  • Unit in the account's ~/.config/systemd/user with HOME and NODESPACE_HOME forwarded (what the unit generator writes): all daemon state, socket, lock, logs under the scratch home; real home gained only the enable symlink. nodespace reaches the same daemon and database.
  • Only NODESPACE_HOME forwarded: same result. Neither forwarded (older registration): the daemon wrote databases.toml, database/nodespace.db and models/ into the real ~/.nodespace.
  • systemd-run --user transient unit with the same environment: real-home listing identical before and after. This is the recommended way to a clean scratch daemon.
  • Also recorded: the --tray unit panics without a display, the daemon needs GTK libs even for --version.
  • Not checked and stated as such: the desktop app's launch (no Linux artifact), WebKitGTK storage, secret store, a model load.

Docs-only change; bun run test:changed reports nothing to test. Not security-sensitive.

Does not close the issue's macOS-side items; the done-when (skill states exactly what it still shares and how to avoid it) is met for the daemon and unit path.

🤖 Generated with Claude Code

mstomar125 and others added 2 commits November 27, 2026 09:54
Replace the unchecked Linux paragraph of the run-app skill with what a run on
Ubuntu 24.04 arm64 showed: the unit the app writes under a scratch HOME is not
seen by the user manager, the forwarded HOME and NODESPACE_HOME lines keep the
daemon's state in the scratch home, a registration without them writes the
real ~/.nodespace, and a transient systemd-run unit leaves the real home
unchanged. List what was not checked.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Add the log directory creation and the binary prerequisite to the transient
systemd-run recipe and say it is headless, so it runs as written. Say that a
scratch daemon is reachable only by a client resolving the scratch home. Word
the observed rows to what was seen and add a summary of what stays shared on
Linux and how to avoid it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant