0003: Parallel agents in the shared tree instead of git worktrees
Status: accepted
Date: 29-11-2026
Decision makers: retoor
Spec IDs: D-08, R-05
Context
The method defaults to one worktree per task. Here independent pieces (data layer, markdown, screens) own disjoint directories and a fresh repository has no merge history to protect.
Decision
Each agent owns named directories, builds in its own build directory (build-), never edits another owner's files, and the lead commits after the full suite is green on trunk.
Consequences
No merge ceremony, but a broken file from one agent can block another's build until fixed; agents wait and retry. Reverting to worktrees is a one-line change in AGENTS.md.
<!-- doc: docs/adr/0003-shared-tree-parallel-agents.md | version: 1.0 | updated: 29-11-2026 -->
# 0003: Parallel agents in the shared tree instead of git worktrees
- Status: accepted
- Date: 29-11-2026
- Decision makers: retoor
- Spec IDs: D-08, R-05
## Context
The method defaults to one worktree per task. Here independent pieces (data layer, markdown, screens) own disjoint directories and a fresh repository has no merge history to protect.
## Decision
Each agent owns named directories, builds in its own build directory (build-<name>), never edits another owner's files, and the lead commits after the full suite is green on trunk.
## Consequences
No merge ceremony, but a broken file from one agent can block another's build until fixed; agents wait and retry. Reverting to worktrees is a one-line change in AGENTS.md.
## Links
AGENTS.md.