Skip to content

feat(desktop): isolate managed session homes - #171

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/desktop-private-home
Sep 15, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
feat/desktop-private-home

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Closes #150. First implementation slice of #118.

New managed desktop sessions get private HOME and XDG config/data/cache/state directories, mode 0700. Explicit CLI/MCP inherited-home consent is stored once and reported in status and evidence. Legacy or unknown policy cannot silently become private. Human takeover remains available for inherited-home sessions; live control leases pause agent actions. Passive watch remains non-pausing.

Runtime cleanup uses verified directory handles. Atomic writes use one file handle for writing and permission updates. Shared session/permit identities prevent replaced storage from hiding held agent permits during takeover. CLI/MCP consent help now matches this behavior.

Two independent security reviews accepted the exact submitted tree. Typecheck, lint, scoped checks and managed complexity passed (190 checked). Local verification combines 1806 passing cases from the unchanged production-source full run with a corrected test-file rerun: 1808 passes and 4 skips. The parent independently reran 53 focused tests. This is combined evidence, not a fresh whole-suite run. All 10 PR checks passed before merge, including Linux and Apple-silicon candidate smokes.

The four local skips remain explicit: hosted-CI x11vnc prerequisite, xterm input, literal window-pattern matching, and missing-x11vnc failure. Local xterm is absent. No fake replacement or local no-sandbox override was used.

An earlier test-env mistake left five identified synthetic metadata projects (20 files) in default runner storage. Those files are preserved and unchanged; later runs used disposable outer HOME/XDG/PICKFORGE storage. No entire-home cleanliness claim is made.

Environment isolation is not an OS/filesystem/network sandbox or a secret-env allowlist. No real-home migration or deletion, dependency/version/workflow changes, release publication or later #118 tool work is included. Safe retirement of retained coordination markers is tracked separately in #170.

Merged as 627b3c7. The submitted and merged tree is 6ed5a9567da5428a9653b0ac306d0b1c559f082a. Issue #150 is closed; #170 remains a non-blocking follow-up. No release was published.

@ElbertePlinio
ElbertePlinio merged commit 627b3c7 into main Sep 15, 2026
10 checks passed
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.

desktop: private HOME and XDG dirs for managed desktop sessions

1 participant