WOOSTACK
Core concepts

Worktrees

What separate checkouts isolate, what they share, and why each workspace needs one active writer.

A Git worktree is a separate checkout of the same repository. Each task can edit its own files and branch while sharing the repository's Git objects.

Worktree isolation boundary

Follow the arrows. On narrow screens, scroll horizontally to see the full diagram.

Worktree isolation boundaryEach task worktree has one active writer, a dedicated directory and working files, its own HEAD and staging index, and its selected branch. Separate working files keep task edits out of the primary checkout. Worktrees still share the repository's Git object database and the host runtime: ports, web servers, databases, background services, secret store, and credentials. They are not runtime sandboxes. Concurrent writers need separate worktrees.Task A worktreeTask B worktreeShared across worktreesowns editsowns editsOne active writerTask AOne active writerTask BCheckout ADirectory + files + branch + HEADStaging index + unstaged changesCheckout BDirectory + files + branch + HEADStaging index + unstaged changesGit object databaseShared repository history.git/objectsHost runtimePorts + servers + databasesDaemons + secrets + credentials
Solid arrows show each writer's checkout. Dashed arrows show shared resources, not execution order. One active writer per workspace; separate worktrees do not isolate services or credentials.
Read text description

Each task worktree has one active writer, a dedicated directory and working files, its own HEAD and staging index, and its selected branch. Separate working files keep task edits out of the primary checkout. Worktrees still share the repository's Git object database and the host runtime: ports, web servers, databases, background services, secret store, and credentials. They are not runtime sandboxes. Concurrent writers need separate worktrees.

Ownership and writer access

Each physical workspace has one active writer. Concurrent writers need separate workspaces and non-overlapping responsibilities. Sequential writers can reuse a workspace after host evidence confirms the previous writer exited or relinquished access, and current Git facts confirm it is safe to continue. Waiting alone does not prove release.

Orchestrate requires isolated task workers; it cannot replace a missing worker capability with coordinator edits in the primary checkout. Standalone Execute can work inline in an approved workspace with the same ownership safeguards.

Base selection and dependencies

The selected base must contain the task's prerequisites. Git ancestry can prove commit-preserving containment. A squash landing needs evidence of the landing and integrated content because the old PR head may no longer be an ancestor.

An uncertain base or active writer blocks the affected task. Independent work can continue where its own prerequisites and workspace ownership are established.

Recovery and lifecycle

After an interruption, current worker state, branch diffs, and matching PRs establish the remaining work. A lost response does not justify repeating a write or resetting another owner's checkout. Publication also grants no permission to remove a workspace.

The workspace reference owns allocation and recovery safeguards. Coordinate several tasks shows how to request delegated work.

On this page