Parallel Operational Planning
Create structured, parallel operational plans that allow complex tasks to be broken down and worked on concurrently by multiple subagents. Each plan defines tracks, a dependency graph, and hard sync checkpoints that gate progress.
When to Use
- A massive task list exists where many items are independent (e.g. migrating 20 test files, editing 15 independent configurations, auditing 10 code modules).
- You need to minimize latency by running non-dependent steps concurrently across subagents.
- You are constructing detailed execution plans for multi-track development and need to map task dependencies, synchronization milestones, and subagent allocation.
- Route to
parallel-feature-development for decoupling source files, or parallel-planner for initial high-level task analysis.
Prerequisites
- A raw task list or feature backlog as input.
- Familiarity with GitHub Flavored Markdown (GFM) task lists and Mermaid diagram syntax.
- (Optional) Git worktrees available if tracks will be mapped to independent folders for concurrent building and verification.
- (Optional) Integration with an automated task manager (e.g. Taskmaster) if plans will be dispatched programmatically.
Procedure
1. Analyze the Input Task List
- Collect the raw task list or feature backlog.
- Identify which tasks have zero overlapping state (no shared variables, file edits, or database updates). Only these are candidates for parallel tracks.
- If Task Y requires any output from Task X, place them in sequential steps within the same track — never in concurrent tracks.
2. Define Tracks
- Group independent tasks into tracks (Track A, Track B, etc.).
- Limit parallel tracks to a maximum of 4 to prevent coordination bottlenecks and complex merge resolution loops.
- Assign an explicit task owner (subagent identifier) to each track.
3. Build the Dependency Map
- Create a Mermaid flowchart or Gantt diagram documenting which tracks depend on others.
- Verify the dependency graph has no circular dependency deadlocks. Every dependency edge must be acyclic.
flowchart LR
A1[Task A1: Migrate user models] --> A2[Task A2: Migrate profile controllers]
A1 --> B1[Task B1: Scaffold UI types matching backend models]
CP1{Sync Checkpoint 1: Merge & verify types}
A2 --> CP1
B1 --> CP1
CP1 --> C1[Task C1: Integration tests]
4. Define Sync Checkpoints
- Schedule a sync checkpoint after a maximum of 3 concurrent tasks per track to minimize integration drift.
- Every checkpoint must include concrete verification steps (e.g. build checks, test runs, type checks).
- Checkpoints act as hard gates: all concurrent branches must be integrated and verified before spawning new tracks.
5. Write the Plan Document
Use this template structure:
## Track A: Backend Migration
- Owner: subagent-backend
- [ ] Task A1: Migrate user models
- [ ] Task A2: Migrate profile controllers
## Track B: Frontend Types
- Owner: subagent-frontend
- [ ] Task B1: Scaffold UI types matching backend models
## Dependency Rules
- Track B Task B1 cannot start until Task A1 is completed.
- Sync Checkpoint 1: Merge Track A and Track B branches to verify types.
## Sync Checkpoints
### Sync Checkpoint 1
- Gate: All tracks merged to staging branch
- Verification: `npm run build` passes, `npm test` passes, type check passes
- Next phase: Integration tests (Track C)
6. Dispatch and Monitor
- Dispatch each track to its assigned subagent.
- Monitor track progress against the checkpoint schedule.
- If a track falls behind, do not allow dependent tracks to exceed the sync checkpoint threshold. Pause ahead-of-schedule tracks and reallocate subagents to assist the delayed track.
Pitfalls
- Circular dependencies: If the dependency graph contains a cycle, subagents will deadlock. Always verify the graph is acyclic before dispatch.
- Overlapping state across tracks: Tasks that share variables, file edits, or database updates must never run concurrently. Move them to sequential steps within one track.
- Too many parallel tracks: Exceeding 4 tracks creates coordination bottlenecks and complex merge conflicts. Hard cap is 4.
- Checkpoint drift: If checkpoints are too infrequent (more than 3 tasks per track without a sync), integration drift accumulates and merge failures become likely.
- Integration failures at checkpoint: If merging at a checkpoint fails, halt further track dispatch. Resolve build or test errors on the main staging branch before launching the next phase. Do not continue parallel work while the checkpoint is broken.
- Volatile provider APIs: Re-check official/current docs before relying on provider-specific APIs, policy, pricing, security behavior, or platform rules. Do not assume API behavior is stable across versions.
Verification
Before finalizing a parallel plan, verify each item:
Example verification commands for a checkpoint gate (Windows PowerShell):
# Build check
npm run build
if ($LASTEXITCODE -ne 0) { Write-Error "Build failed — halt track dispatch"; exit 1 }
# Test check
npm test
if ($LASTEXITCODE -ne 0) { Write-Error "Tests failed — halt track dispatch"; exit 1 }
# Type check (if applicable)
npx tsc --noEmit
if ($LASTEXITCODE -ne 0) { Write-Error "Type check failed — halt track dispatch"; exit 1 }
Examples
Example: Migrating 20 Test Files
## Track A: Migrate Auth Tests (files 1-7)
- Owner: subagent-a
- [ ] Task A1: Migrate auth-login.test.ts
- [ ] Task A2: Migrate auth-register.test.ts
- [ ] Task A3: Migrate auth-logout.test.ts
- [ ] Sync Checkpoint 1: Run `npm test -- auth` — all must pass
## Track B: Migrate API Tests (files 8-14)
- Owner: subagent-b
- [ ] Task B1: Migrate api-users.test.ts
- [ ] Task B2: Migrate api-posts.test.ts
- [ ] Task B3: Migrate api-comments.test.ts
- [ ] Sync Checkpoint 1: Run `npm test -- api` — all must pass
## Track C: Migrate UI Tests (files 15-20)
- Owner: subagent-c
- [ ] Task C1: Migrate ui-render.test.tsx
- [ ] Task C2: Migrate ui-form.test.tsx
- [ ] Sync Checkpoint 1: Run `npm test -- ui` — all must pass
## Dependency Rules
- Tracks A, B, C are fully independent (no shared test files).
- Final Sync Checkpoint: Merge all tracks, run full `npm test` suite.
## Sync Checkpoints
### Sync Checkpoint 1 (per-track)
- Gate: Each track's subset of tests passes independently
- Verification: `npm test -- <track-scope>`
### Final Sync Checkpoint
- Gate: All three tracks merged to staging
- Verification: `npm run build && npm test` — full suite must pass
Related Skills
parallel-feature-development: For decoupling source files to enable parallel work.
parallel-planner: For initial high-level task analysis before track decomposition.
Source Anchors
Changelog
- 2026-05-30: Updated to modern multi-agent coordination frameworks. Standardized on Mermaid planning syntax and git checkpoint rules. Removed legacy boilerplate.
- 2026-05-31: Re-checked official docs for provider APIs, security guidance, and platform rules. Added explicit inputs, outputs, validation checks, and risk boundaries.
1---2name: parallel-plan3description: Breaks a backlog into at most four concurrent subagent tracks, an acyclic Mermaid dependency graph, and hard sync checkpoints after at most three tasks per track. Use when independent file sets can run together. Not a source-file decoupling pass and not a high-level backlog sketch.4---5
6# Parallel Operational Planning
7
8Create structured, parallel operational plans that allow complex tasks to be broken down and worked on concurrently by multiple subagents. Each plan defines tracks, a dependency graph, and hard sync checkpoints that gate progress.
9
10## When to Use
11
12- A massive task list exists where many items are independent (e.g. migrating 20 test files, editing 15 independent configurations, auditing 10 code modules).
13- You need to minimize latency by running non-dependent steps concurrently across subagents.
14- You are constructing detailed execution plans for multi-track development and need to map task dependencies, synchronization milestones, and subagent allocation.
15- Route to `parallel-feature-development` for decoupling source files, or `parallel-planner` for initial high-level task analysis.
16
17## Prerequisites
18
19- A raw task list or feature backlog as input.
20- Familiarity with GitHub Flavored Markdown (GFM) task lists and Mermaid diagram syntax.
21- (Optional) Git worktrees available if tracks will be mapped to independent folders for concurrent building and verification.
22- (Optional) Integration with an automated task manager (e.g. Taskmaster) if plans will be dispatched programmatically.
23
24## Procedure
25
26### 1. Analyze the Input Task List
27
281. Collect the raw task list or feature backlog.
292. Identify which tasks have zero overlapping state (no shared variables, file edits, or database updates). Only these are candidates for parallel tracks.
303. If Task Y requires any output from Task X, place them in sequential steps within the same track — never in concurrent tracks.
31
32### 2. Define Tracks
33
341. Group independent tasks into tracks (Track A, Track B, etc.).
352. Limit parallel tracks to a **maximum of 4** to prevent coordination bottlenecks and complex merge resolution loops.
363. Assign an explicit task owner (subagent identifier) to each track.
37
38### 3. Build the Dependency Map
39
401. Create a Mermaid flowchart or Gantt diagram documenting which tracks depend on others.
412. Verify the dependency graph has **no circular dependency deadlocks**. Every dependency edge must be acyclic.
42
43```mermaid
44flowchart LR
45 A1[Task A1: Migrate user models] --> A2[Task A2: Migrate profile controllers]
46 A1 --> B1[Task B1: Scaffold UI types matching backend models]
47 CP1{Sync Checkpoint 1: Merge & verify types}
48 A2 --> CP1
49 B1 --> CP1
50 CP1 --> C1[Task C1: Integration tests]
51```
52
53### 4. Define Sync Checkpoints
54
551. Schedule a sync checkpoint after a **maximum of 3 concurrent tasks per track** to minimize integration drift.
562. Every checkpoint must include concrete verification steps (e.g. build checks, test runs, type checks).
573. Checkpoints act as **hard gates**: all concurrent branches must be integrated and verified before spawning new tracks.
58
59### 5. Write the Plan Document
60
61Use this template structure:
62
63```markdown
64## Track A: Backend Migration
65- Owner: subagent-backend
66- [ ] Task A1: Migrate user models
67- [ ] Task A2: Migrate profile controllers
68
69## Track B: Frontend Types
70- Owner: subagent-frontend
71- [ ] Task B1: Scaffold UI types matching backend models
72
73## Dependency Rules
74- Track B Task B1 cannot start until Task A1 is completed.
75- Sync Checkpoint 1: Merge Track A and Track B branches to verify types.
76
77## Sync Checkpoints
78### Sync Checkpoint 1
79- Gate: All tracks merged to staging branch
80- Verification: `npm run build` passes, `npm test` passes, type check passes
81- Next phase: Integration tests (Track C)
82```
83
84### 6. Dispatch and Monitor
85
861. Dispatch each track to its assigned subagent.
872. Monitor track progress against the checkpoint schedule.
883. If a track falls behind, do not allow dependent tracks to exceed the sync checkpoint threshold. Pause ahead-of-schedule tracks and reallocate subagents to assist the delayed track.
89
90## Pitfalls
91
92- **Circular dependencies**: If the dependency graph contains a cycle, subagents will deadlock. Always verify the graph is acyclic before dispatch.
93- **Overlapping state across tracks**: Tasks that share variables, file edits, or database updates must never run concurrently. Move them to sequential steps within one track.
94- **Too many parallel tracks**: Exceeding 4 tracks creates coordination bottlenecks and complex merge conflicts. Hard cap is 4.
95- **Checkpoint drift**: If checkpoints are too infrequent (more than 3 tasks per track without a sync), integration drift accumulates and merge failures become likely.
96- **Integration failures at checkpoint**: If merging at a checkpoint fails, **halt further track dispatch**. Resolve build or test errors on the main staging branch before launching the next phase. Do not continue parallel work while the checkpoint is broken.
97- **Volatile provider APIs**: Re-check official/current docs before relying on provider-specific APIs, policy, pricing, security behavior, or platform rules. Do not assume API behavior is stable across versions.
98
99## Verification
100
101Before finalizing a parallel plan, verify each item:
102
103- [ ] **Dependency rules verified**: The Mermaid dependency graph contains no cycles. Run a topological sort mentally or with a tool to confirm acyclicity.
104- [ ] **Track count within limit**: Maximum of 4 parallel tracks.
105- [ ] **Checkpoint frequency**: No track has more than 3 concurrent tasks before a sync checkpoint.
106- [ ] **Checkpoint verification steps defined**: Every sync checkpoint lists concrete commands (e.g. `npm run build`, `npm test`, type check).
107- [ ] **Task owners mapped**: Each track has an explicit subagent identifier assigned.
108- [ ] **No overlapping state**: No two concurrent tracks edit the same files, variables, or database records.
109
110Example verification commands for a checkpoint gate (Windows PowerShell):
111
112```powershell
113# Build check
114npm run build
115if ($LASTEXITCODE -ne 0) { Write-Error "Build failed — halt track dispatch"; exit 1 }
116
117# Test check
118npm test
119if ($LASTEXITCODE -ne 0) { Write-Error "Tests failed — halt track dispatch"; exit 1 }
120
121# Type check (if applicable)
122npx tsc --noEmit
123if ($LASTEXITCODE -ne 0) { Write-Error "Type check failed — halt track dispatch"; exit 1 }
124```
125
126## Examples
127
128### Example: Migrating 20 Test Files
129
130```markdown
131## Track A: Migrate Auth Tests (files 1-7)
132- Owner: subagent-a
133- [ ] Task A1: Migrate auth-login.test.ts
134- [ ] Task A2: Migrate auth-register.test.ts
135- [ ] Task A3: Migrate auth-logout.test.ts
136- [ ] Sync Checkpoint 1: Run `npm test -- auth` — all must pass
137
138## Track B: Migrate API Tests (files 8-14)
139- Owner: subagent-b
140- [ ] Task B1: Migrate api-users.test.ts
141- [ ] Task B2: Migrate api-posts.test.ts
142- [ ] Task B3: Migrate api-comments.test.ts
143- [ ] Sync Checkpoint 1: Run `npm test -- api` — all must pass
144
145## Track C: Migrate UI Tests (files 15-20)
146- Owner: subagent-c
147- [ ] Task C1: Migrate ui-render.test.tsx
148- [ ] Task C2: Migrate ui-form.test.tsx
149- [ ] Sync Checkpoint 1: Run `npm test -- ui` — all must pass
150
151## Dependency Rules
152- Tracks A, B, C are fully independent (no shared test files).
153- Final Sync Checkpoint: Merge all tracks, run full `npm test` suite.
154
155## Sync Checkpoints
156### Sync Checkpoint 1 (per-track)
157- Gate: Each track's subset of tests passes independently
158- Verification: `npm test -- <track-scope>`
159
160### Final Sync Checkpoint
161- Gate: All three tracks merged to staging
162- Verification: `npm run build && npm test` — full suite must pass
163```
164
165## Related Skills
166
167- `parallel-feature-development`: For decoupling source files to enable parallel work.
168- `parallel-planner`: For initial high-level task analysis before track decomposition.
169
170## Source Anchors
171
172- [Mermaid Flowchart Syntax Guidelines](https://mermaid.js.org/syntax/flowchart.html)
173- [Software Engineering Dependency Mapping Best Practices](https://en.wikipedia.org/wiki/Dependency_in_software_engineering)
174- [OpenAI text generation guide](https://platform.openai.com/docs/guides/text-generation)
175- [GitHub REST API documentation](https://docs.github.com/en/rest)
176- [OWASP API Security Top 10 2023](https://owasp.org/API-Security/editions/2023/en/0x00-header/)
177
178## Changelog
179
180- **2026-05-30**: Updated to modern multi-agent coordination frameworks. Standardized on Mermaid planning syntax and git checkpoint rules. Removed legacy boilerplate.
181- **2026-05-31**: Re-checked official docs for provider APIs, security guidance, and platform rules. Added explicit inputs, outputs, validation checks, and risk boundaries.