Split engineering work across worktrees
Choose a parallel worktree and merge strategy using dependency and fleet failure evidence.
Scenario
A team migrates four report exporters to a new document format. The agents run in separate worktrees and pass local tests. The merge queue keeps failing because most branches also edit the shared document schema.
Explanation
Partition work by contracts and ownership. Have one worker own shared changes and assign stable interfaces to parallel consumers. Give each worker its own branch and worktree, a common starting ref, concrete acceptance tests and a narrow scope. Keep an integration owner responsible for merge order and the combined test run.
Use fleet evidence to tell problems apart. Compare retries, affected files, test failures and merge conflicts by task. Conflicts clustered on one file suggest an ownership problem. Failures after a common dependency lands can signal an interface or integration test gap. Limit parallelism where there is a shared bottleneck.