ddflow_split
Split a work item into sub-tasks in place when it turns out to be multiple tasks, preserving the original's id and history as an umbrella that completes when its children finish.
Instructions
Split an item into sub-tasks IN PLACE when the work turns out to be two things. Use this the moment you discover it — mid-task discovery is the normal case, not an exception.
The original keeps its id and history and becomes an umbrella that completes when its children do; closing it and opening two new ones instead would lose the thread between what was planned and what happened. Children inherit the parent's globs, so give each its own afterwards if they write different files — until then they cannot run in parallel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The item to split. | |
| into | Yes | Comma-separated 'sub-id=title' pairs. At least two. | |
| globs | No | Globs for the children (default: inherit). | |
| needs | No | Dependencies for the FIRST child. The others chain from it if you set theirs with ddflow_update. |