Skip to content

Restore task grouping in sidebar for pipeline execution path#692

Merged
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/b89acafe-it-seems-we-have-lost-task-gro
Mar 20, 2026
Merged

Restore task grouping in sidebar for pipeline execution path#692
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/b89acafe-it-seems-we-have-lost-task-gro

Conversation

@Iron-Ham
Copy link
Copy Markdown
Owner

Summary

  • Pipeline execution path (default since Make Orchestration 2.0 the default execution path #659) created task instances via InstanceFactory.CreateInstance() but never registered them with the ultraplan InstanceGroup, causing tasks to appear ungrouped in the sidebar
  • Wired SessionRecorderDeps.OnAssign to new Coordinator.AssignTaskInstance method, which populates TaskToInstance first (for correct "Group N" subgroup routing) then adds the instance to the group
  • Fixed latent ordering bug in the legacy ExecutionOrchestrator path where AddInstanceToGroup was called before AssignTaskToInstance
  • Serialized AssignTaskInstance under c.mu to prevent concurrent map read/write between parallel bridge goroutines

Test plan

  • New TestCoordinator_AssignTaskInstance with 6 subtests: happy path, nil guards, subgroup fallback, multi-pass, and concurrent race detection
  • Concurrent subtest passes under go test -race
  • All existing tests pass (go test ./...)
  • go vet ./... and gofmt clean

The pipeline/bridge execution path (default since #659) created
instances via InstanceFactory.CreateInstance() but never added them to
the ultraplan's InstanceGroup, causing execution tasks to appear
ungrouped in the sidebar.

Wire SessionRecorderDeps.OnAssign to Coordinator.AssignTaskInstance,
which populates TaskToInstance (for correct subgroup routing) then
adds the instance to the correct "Group N" subgroup. The method
serializes under c.mu to prevent concurrent map read/write between
parallel bridge goroutines.

Also fix ordering in the legacy ExecutionOrchestrator path where
AddInstanceToGroup was called before AssignTaskToInstance, causing
determineSubgroupType to return Unknown instead of Execution.
@Iron-Ham Iron-Ham marked this pull request as ready for review March 20, 2026 22:49
@Iron-Ham Iron-Ham merged commit da61e6e into main Mar 20, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant