@@ -212,14 +212,14 @@ Write solution JSON to JSONL file (one line per solution):
212212
213213**File Format** (JSONL - each line is a complete solution):
214214` ` `
215- {" id" : " SOL-GH-123-1 " ," description" : " ..." ," approach" : " ..." ," analysis" : {... }," score" : 0.85 ," tasks" : [... ]}
216- {" id" : " SOL-GH-123-2 " ," description" : " ..." ," approach" : " ..." ," analysis" : {... }," score" : 0.75 ," tasks" : [... ]}
215+ {" id" : " SOL-GH-123-a7x9 " ," description" : " ..." ," approach" : " ..." ," analysis" : {... }," score" : 0.85 ," tasks" : [... ]}
216+ {" id" : " SOL-GH-123-b2k4 " ," description" : " ..." ," approach" : " ..." ," analysis" : {... }," score" : 0.75 ," tasks" : [... ]}
217217` ` `
218218
219219**Solution Schema** (must match CLI ` Solution` interface):
220220` ` ` typescript
221221{
222- id: string; // Format: SOL-{issue-id}-{N }
222+ id: string; // Format: SOL-{issue-id}-{uid }
223223 description?: string;
224224 approach?: string;
225225 tasks: SolutionTask[];
@@ -232,9 +232,14 @@ Write solution JSON to JSONL file (one line per solution):
232232**Write Operation**:
233233` ` ` javascript
234234// Append solution to JSONL file (one line per solution)
235- const solutionId = ` SOL-${ issueId} -${ seq} ` ;
235+ // Use 4-char random uid to avoid collisions across multiple plan runs
236+ const uid = Math .random ().toString (36 ).slice (2 , 6 ); // e.g., "a7x9"
237+ const solutionId = ` SOL-${ issueId} -${ uid} ` ;
236238const solutionLine = JSON .stringify ({ id: solutionId, ... solution });
237239
240+ // Bash equivalent for uid generation:
241+ // uid=$(cat /dev/urandom | tr -dc 'a-z0-9' | head -c 4)
242+
238243// Read existing, append new line, write back
239244const filePath = ` .workflow/issues/solutions/${ issueId} .jsonl` ;
240245const existing = existsSync (filePath) ? readFileSync (filePath) : ' ' ;
@@ -311,7 +316,7 @@ Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cl
3113166. Evaluate each solution with ` analysis` and ` score`
3123177. Write solutions to ` .workflow / issues/ solutions/ {issue- id}.jsonl ` (append mode)
3133188. For HIGH complexity: generate 2-3 candidate solutions
314- 9. **Solution ID format**: ` SOL - {issue- id}- {N }` (e.g., ` SOL - GH - 123 - 1 ` , ` SOL - GH - 123 - 2 ` )
319+ 9. **Solution ID format**: ` SOL - {issue- id}- {uid }` where uid is 4 random alphanumeric chars (e.g., ` SOL - GH - 123 - a7x9 ` )
31532010. **GitHub Reply Task**: If issue has ` github_url` or ` github_number` , add final task to comment on GitHub issue with completion summary
316321
317322**CONFLICT AVOIDANCE** (for batch processing of similar issues):
0 commit comments