Skip to content

[ci]: make priority:develop:sync reuse attached clean develop worktrees #1751

Description

@svelderrainruiz

Summary

priority:develop:sync still fails on current develop when the local develop branch is already attached to another clean worktree, even after the helper-delegation slice from #1704 landed.

Live evidence

Command:
node tools/npm/run-script.mjs priority:develop:sync

Observed failure on 2026-03-21 from the root checkout:

  • root branch: issue/origin-1352-delivery-control-plane-recovery
  • failure: git checkout develop
  • stderr: fatal: 'develop' is already used by worktree at 'C:/dev/compare-vi-cli-action.template-agent-verification-clean'

Why this matters

  • Sagan depends on priority:develop:sync to keep fresh work lanes moving.
  • An attached clean develop worktree should be reusable signal, not a hard failure.
  • This currently creates avoidable continuity drag right at lane-refresh time.

Expected behavior

  • if develop is already attached to a clean helper worktree, reuse or delegate to it
  • do not fail just because root cannot git checkout develop
  • emit a machine-readable receipt showing which helper worktree satisfied the sync

Related

  • follow-up to #1704
  • older family: #1412, #1504, #1517, #1615

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciCI/CD, workflows, and pipeline changesstanding-excludedOpen issue is intentionally kept out of standing-priority auto-selection

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions