Repository navigation
feat(desktop): isolate managed session homes - #171
Merged
Merged
Conversation
5 tasks done
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.