Appendix D - 4. The worktree-lifecycle stack

Concept

Every agent works in its own isolated checkout, and every checkout has a birth, a life, and a clean death. The stack is the set of records and gates that keep dozens of concurrent worktrees from trampling each other and from leaking half-finished state into the trunk. Skip the close records and the isolation still starts correctly — but it never ends cleanly, and stale worktrees accumulate until a reclaim guesses wrong and destroys live work.

Mandatory members

Complementary members

Contents
© James C. Davis, 2026–present