Conversation
…eation (#381, #382, #383) - Fix spawnAdversarial to use safeWorktree instead of parentSession.directory so adversarial sessions run in the correct worktree (fixes #383, #382) - Make taskctl start resilient to existing branches by checking with git rev-parse --verify before git checkout -b (fixes #381) - Handle remote branch already exists gracefully by setting upstream - Add branch-resilience.test.ts for existing branch handling Fixes #381 Fixes #382 Fixes #383
This was referenced Apr 8, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes three taskctl pipeline bugs that prevented autonomous development from working reliably.
#383 — developer-pipeline starts in main worktree instead of assigned worktree:
spawnAdversarialusedparentSession.directory(PM session dir = main repo) instead ofsafeWorktreedirectory: parentSession.directory→directory: safeWorktreeon line 370#382 — Pulse not detecting commits in worktrees causing adversarial never to spawn:
hasCommittedChangeswas already receiving the correct worktree path; the bug was downstream in the adversarial session#381 — Make start command resilient to existing branches:
git checkout -bfails if branch already exists from a previous failed rungit rev-parse --verify, checkout existing branch instead of creatingFixes #381
Fixes #382
Fixes #383