You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: eliminate 3 race conditions in parallel task execution
Race 1 — learnings.jsonl cherry-pick conflict:
Add .gitattributes with merge=union for memory/*.jsonl so git
automatically resolves concurrent appends without conflicts.
Race 2 — auditLog concurrent writes:
Add auditMu sync.Mutex to Engine; lock around file open+write
so parallel goroutines never interleave audit log entries.
Race 3 — same-file cherry-pick conflicts:
Parse 'Files:' line from SESSION_PLAN.md tasks into planTask.Files.
Group tasks into waves using groupTasksByFileOverlap — tasks sharing
a file go into separate waves that run sequentially. Tasks with
non-overlapping files stay in the same wave and run in parallel.
0 commit comments