docs(roadmap): add per-mount isolation proposal#116
Merged
Conversation
Design doc for declarative isolation modes (shared | worktree | clone) per mount, with a workspace-level default, to stop parallel agents sharing one working tree. Registers the page under Roadmap → Open items and cross-links it from the Workflow improvements section of the roadmap overview. https://claude.ai/code/session_01YNGGAFytqtVhECN1y1Bit1
3 tasks
donbeave
added a commit
that referenced
this pull request
Apr 24, 2026
Finalizes v1 requirements for per-mount isolation (from #116) after a full decision sweep. Still docs-only — no implementation. User-facing decisions: - Back-merge is upstream only (GitHub PR via existing tooling). No jackin diff / jackin integrate / merge commands. - Dirty host tree warns and requires --force (cold path since operators launch from clean trees). - Hooks inherit from the host repo; no --no-hooks flag in v1. - Branch name hardcoded as jackin/<container>; base = host HEAD. No configurable branch_template or base_branch. - Worktree at <data_dir>/jackin-<container>/isolated/<slug>/. - jackin cd <container> for navigation. Scope trims: - Drop default_isolation. isolation is per-mount only, explicit. - Drop isolation on global mounts entirely (workspace-scoped only). - Drop --delete-branches flag on purge; purge silently deletes everything, including the local scratch branch. Correctness: - Pre-flight validation scoped per isolation type; only checks cases where git would silently do the wrong thing (subdir misrouting, mid-rebase HEAD). - Purge refuses on running agents (fixes a pre-existing gap where remove_data_dir_if_exists ran unconditionally). - Enable extensions.worktreeConfig on first worktree creation per host repo so per-worktree config writes don't leak to shared .git/config. - Mount mode flipped between loads: orphan isolated/ dir left in place, reclaimed by jackin purge. No auto-prune. Known limitations documented: submodules/LFS inherit parent-repo behavior; shared .git/config for remotes/credentials/non-worktree writes (git limitation); -clone-N naming collision to resolve when clone mode ships. Co-authored-by: Claude <noreply@anthropic.com>
donbeave
added a commit
that referenced
this pull request
May 6, 2026
Design doc for declarative isolation modes (shared | worktree | clone) per mount, with a workspace-level default, to stop parallel agents sharing one working tree. Registers the page under Roadmap → Open items and cross-links it from the Workflow improvements section of the roadmap overview. https://claude.ai/code/session_01YNGGAFytqtVhECN1y1Bit1 Co-authored-by: Claude <noreply@anthropic.com>
donbeave
added a commit
that referenced
this pull request
May 6, 2026
Finalizes v1 requirements for per-mount isolation (from #116) after a full decision sweep. Still docs-only — no implementation. User-facing decisions: - Back-merge is upstream only (GitHub PR via existing tooling). No jackin diff / jackin integrate / merge commands. - Dirty host tree warns and requires --force (cold path since operators launch from clean trees). - Hooks inherit from the host repo; no --no-hooks flag in v1. - Branch name hardcoded as jackin/<container>; base = host HEAD. No configurable branch_template or base_branch. - Worktree at <data_dir>/jackin-<container>/isolated/<slug>/. - jackin cd <container> for navigation. Scope trims: - Drop default_isolation. isolation is per-mount only, explicit. - Drop isolation on global mounts entirely (workspace-scoped only). - Drop --delete-branches flag on purge; purge silently deletes everything, including the local scratch branch. Correctness: - Pre-flight validation scoped per isolation type; only checks cases where git would silently do the wrong thing (subdir misrouting, mid-rebase HEAD). - Purge refuses on running agents (fixes a pre-existing gap where remove_data_dir_if_exists ran unconditionally). - Enable extensions.worktreeConfig on first worktree creation per host repo so per-worktree config writes don't leak to shared .git/config. - Mount mode flipped between loads: orphan isolated/ dir left in place, reclaimed by jackin purge. No auto-prune. Known limitations documented: submodules/LFS inherit parent-repo behavior; shared .git/config for remotes/credentials/non-worktree writes (git limitation); -clone-N naming collision to resolve when clone mode ships. Co-authored-by: Claude <noreply@anthropic.com>
donbeave
added a commit
that referenced
this pull request
May 7, 2026
Design doc for declarative isolation modes (shared | worktree | clone) per mount, with a workspace-level default, to stop parallel agents sharing one working tree. Registers the page under Roadmap → Open items and cross-links it from the Workflow improvements section of the roadmap overview. https://claude.ai/code/session_01YNGGAFytqtVhECN1y1Bit1 Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com> Co-authored-by: Codex <codex@openai.com>
donbeave
added a commit
that referenced
this pull request
May 7, 2026
Finalizes v1 requirements for per-mount isolation (from #116) after a full decision sweep. Still docs-only — no implementation. User-facing decisions: - Back-merge is upstream only (GitHub PR via existing tooling). No jackin diff / jackin integrate / merge commands. - Dirty host tree warns and requires --force (cold path since operators launch from clean trees). - Hooks inherit from the host repo; no --no-hooks flag in v1. - Branch name hardcoded as jackin/<container>; base = host HEAD. No configurable branch_template or base_branch. - Worktree at <data_dir>/jackin-<container>/isolated/<slug>/. - jackin cd <container> for navigation. Scope trims: - Drop default_isolation. isolation is per-mount only, explicit. - Drop isolation on global mounts entirely (workspace-scoped only). - Drop --delete-branches flag on purge; purge silently deletes everything, including the local scratch branch. Correctness: - Pre-flight validation scoped per isolation type; only checks cases where git would silently do the wrong thing (subdir misrouting, mid-rebase HEAD). - Purge refuses on running agents (fixes a pre-existing gap where remove_data_dir_if_exists ran unconditionally). - Enable extensions.worktreeConfig on first worktree creation per host repo so per-worktree config writes don't leak to shared .git/config. - Mount mode flipped between loads: orphan isolated/ dir left in place, reclaimed by jackin purge. No auto-prune. Known limitations documented: submodules/LFS inherit parent-repo behavior; shared .git/config for remotes/credentials/non-worktree writes (git limitation); -clone-N naming collision to resolve when clone mode ships. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com> Co-authored-by: Codex <codex@openai.com>
donbeave
added a commit
that referenced
this pull request
May 7, 2026
Design doc for declarative isolation modes (shared | worktree | clone) per mount, with a workspace-level default, to stop parallel agents sharing one working tree. Registers the page under Roadmap → Open items and cross-links it from the Workflow improvements section of the roadmap overview. https://claude.ai/code/session_01YNGGAFytqtVhECN1y1Bit1 Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com> Co-authored-by: Codex <codex@openai.com>
donbeave
added a commit
that referenced
this pull request
May 7, 2026
Finalizes v1 requirements for per-mount isolation (from #116) after a full decision sweep. Still docs-only — no implementation. User-facing decisions: - Back-merge is upstream only (GitHub PR via existing tooling). No jackin diff / jackin integrate / merge commands. - Dirty host tree warns and requires --force (cold path since operators launch from clean trees). - Hooks inherit from the host repo; no --no-hooks flag in v1. - Branch name hardcoded as jackin/<container>; base = host HEAD. No configurable branch_template or base_branch. - Worktree at <data_dir>/jackin-<container>/isolated/<slug>/. - jackin cd <container> for navigation. Scope trims: - Drop default_isolation. isolation is per-mount only, explicit. - Drop isolation on global mounts entirely (workspace-scoped only). - Drop --delete-branches flag on purge; purge silently deletes everything, including the local scratch branch. Correctness: - Pre-flight validation scoped per isolation type; only checks cases where git would silently do the wrong thing (subdir misrouting, mid-rebase HEAD). - Purge refuses on running agents (fixes a pre-existing gap where remove_data_dir_if_exists ran unconditionally). - Enable extensions.worktreeConfig on first worktree creation per host repo so per-worktree config writes don't leak to shared .git/config. - Mount mode flipped between loads: orphan isolated/ dir left in place, reclaimed by jackin purge. No auto-prune. Known limitations documented: submodules/LFS inherit parent-repo behavior; shared .git/config for remotes/credentials/non-worktree writes (git limitation); -clone-N naming collision to resolve when clone mode ships. Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com> Co-authored-by: Claude <noreply@anthropic.com>
donbeave
added a commit
that referenced
this pull request
May 7, 2026
Design doc for declarative isolation modes (shared | worktree | clone) per mount, with a workspace-level default, to stop parallel agents sharing one working tree. Registers the page under Roadmap → Open items and cross-links it from the Workflow improvements section of the roadmap overview. https://claude.ai/code/session_01YNGGAFytqtVhECN1y1Bit1 Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com> Co-authored-by: Codex <codex@openai.com>
donbeave
added a commit
that referenced
this pull request
May 7, 2026
Finalizes v1 requirements for per-mount isolation (from #116) after a full decision sweep. Still docs-only — no implementation. User-facing decisions: - Back-merge is upstream only (GitHub PR via existing tooling). No jackin diff / jackin integrate / merge commands. - Dirty host tree warns and requires --force (cold path since operators launch from clean trees). - Hooks inherit from the host repo; no --no-hooks flag in v1. - Branch name hardcoded as jackin/<container>; base = host HEAD. No configurable branch_template or base_branch. - Worktree at <data_dir>/jackin-<container>/isolated/<slug>/. - jackin cd <container> for navigation. Scope trims: - Drop default_isolation. isolation is per-mount only, explicit. - Drop isolation on global mounts entirely (workspace-scoped only). - Drop --delete-branches flag on purge; purge silently deletes everything, including the local scratch branch. Correctness: - Pre-flight validation scoped per isolation type; only checks cases where git would silently do the wrong thing (subdir misrouting, mid-rebase HEAD). - Purge refuses on running agents (fixes a pre-existing gap where remove_data_dir_if_exists ran unconditionally). - Enable extensions.worktreeConfig on first worktree creation per host repo so per-worktree config writes don't leak to shared .git/config. - Mount mode flipped between loads: orphan isolated/ dir left in place, reclaimed by jackin purge. No auto-prune. Known limitations documented: submodules/LFS inherit parent-repo behavior; shared .git/config for remotes/credentials/non-worktree writes (git limitation); -clone-N naming collision to resolve when clone mode ships. Signed-off-by: Alexey Zhokhov <alexey@zhokhov.com> Co-authored-by: Claude <noreply@anthropic.com>
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.
Summary
Adds a roadmap design doc for per-mount isolation — a declarative way to stop parallel agents from sharing one working tree.
docs/src/content/docs/reference/roadmap/per-mount-isolation.mdx— problem, proposed TOML shape, composition rules, host-side materialization, lifecycle, v1 scope, open questions, related filesdocs/astro.config.tsProposed shape (in the doc)
Modes:
shared(today's behavior, default),worktree(per-agentgit worktree),clone(per-agentgit clone --local --shared). Existing workspaces keep working unchanged.Not included
No code changes — this PR is docs-only. Implementation will be a follow-up.
Test plan
bun run buildindocs/succeedsreference/roadmap.mdxresolvesNotes
cargo fmtpasses.cargo clippy --all-targets -- -D warningsreports 24 pre-existing errors on the branch baseline (reproduced by stashing this PR's changes) — unrelated to this docs-only diff.cargo-nextestis not installed in this environment; no Rust behavior changed here.https://claude.ai/code/session_01YNGGAFytqtVhECN1y1Bit1