workflow: parallel branches race on shared task Outputs map #1034

Closed
opened 2026-10-27 13:38:45 +00:00 by sam · 0 comments
Owner

internal/domain/workflow/step_flow.go:428 TaskContext.branch shallow-copies TaskContext, aliasing Task.Outputs. When parallel agent.run or workflow.call branches write declared outputs (outputs.go:43, 135), concurrent map writes trigger a fatal runtime panic or lost writes. Done when each branch writes an isolated Outputs map and join merges or rejects collisions deterministically without race.

Close reason

Fixed on fix/workflow-eda-audit (PR #1627)


Imported from beads archie-core-3a7w2 · GitHub #1606 · type bug · priority P1 · created 2026-10-11 · closed 2026-10-11

internal/domain/workflow/step_flow.go:428 TaskContext.branch shallow-copies TaskContext, aliasing Task.Outputs. When parallel agent.run or workflow.call branches write declared outputs (outputs.go:43, 135), concurrent map writes trigger a fatal runtime panic or lost writes. Done when each branch writes an isolated Outputs map and join merges or rejects collisions deterministically without race. ### Close reason Fixed on fix/workflow-eda-audit (PR #1627) --- _Imported from beads `archie-core-3a7w2` · GitHub #1606 · type bug · priority P1 · created 2026-10-11 · closed 2026-10-11_
sam added the highbug labels 2026-10-27 13:38:45 +00:00
sam self-assigned this 2026-10-27 13:38:45 +00:00
sam closed this issue 2026-10-27 13:38:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1034