This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Repository navigation
fix: orchestrator owns STATE.md/ROADMAP.md writes in parallel worktree mode - #1599
Merged
Merged
Conversation
…e mode (#1571) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
trek-e
force-pushed
the
fix/worktree-shared-artifact-overwrite-1571
branch
from
April 3, 2026 16:18
7b7d21f to
52926fc
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 #1571
What
In parallel worktree mode, the orchestrator now owns all STATE.md and ROADMAP.md writes after each wave; worktree executor agents only create their plan-local SUMMARY.md.
Why
Each worktree agent was independently writing STATE.md and ROADMAP.md; the last merge back to main silently overwrote earlier agents' updates, leaving planning artifacts incomplete.
How
<success_criteria>and updated the<objective>to explicitly prohibit those writes.execute_waves: after each wave's worktrees are merged back, the orchestrator runsroadmap update-plan-progressfor every completed plan and thenstate update-positiononce — a single writer, no conflicts.<success_criteria>block for sequential mode (USE_WORKTREES=false) that retains the STATE.md/ROADMAP.md update requirements, since there is no conflict risk when agents run one at a time.tests/execute-phase-worktree-artifacts.test.cjswith 8 tests covering all four behaviours (worktree criteria absent, sequential criteria present, post-wave orchestrator commands present).Testing
Checklist
Closes #1571)Breaking Changes
None