Skip to content

Reconcile pipeline task counts on team completion#696

Merged
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/79fed05c-ultraplan-has-a-weird-count
Mar 21, 2026
Merged

Reconcile pipeline task counts on team completion#696
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/79fed05c-ultraplan-has-a-weird-count

Conversation

@Iron-Ham
Copy link
Copy Markdown
Owner

Summary

  • Fixed exec 3/2 display bug where the task done count exceeded the total count in the pipeline status indicator
  • UpdateTeamCompleted overwrote TasksDone/TasksFailed with backend-authoritative values but left TasksTotal at the stale incremental count from bridge start events
  • Now reconciles TasksTotal = tasksDone + tasksFailed and clears ActiveTasks on team completion, matching the existing logic in the "team not yet tracked" branch

Test plan

  • New test: reconciles TasksTotal with backend counts — verifies UpdateTeamCompleted syncs TasksTotal and clears ActiveTasks when backend reports more tasks than bridge tracked
  • New test: execution label after team completion reconciles counts — end-to-end test verifying GetIndicator shows exec 3/3 (not exec 3/2) after completion reconciliation
  • All existing pipeline status tests pass
  • go build ./..., go vet ./..., gofmt -d . clean

UpdateTeamCompleted overwrote TasksDone/TasksFailed with backend-
authoritative values but left TasksTotal at the stale incremental
count from bridge start events, causing "exec 3/2" when the backend
reported more completed tasks than bridge had tracked starts.

Now sets TasksTotal = tasksDone + tasksFailed and clears ActiveTasks
on completion, matching the existing logic in the "team not yet
tracked" branch.
@Iron-Ham Iron-Ham marked this pull request as ready for review March 21, 2026 03:40
@Iron-Ham Iron-Ham merged commit fb2808b into main Mar 21, 2026
6 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