You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove workflows/sync-branches.md (and its lock file on consumers) from autoloop. The workflow was designed when the per-iteration branch-management logic was minimal; now that each iteration runs a full ahead/behind fast-forward-or-merge at Step 3 (#36), sync-branches is scaffolding without a load-bearing purpose.
Leaving it in is actively harmful: it can't compile under strict mode (see #33), it requires a PAT to actually push (most consumer repos don't configure one), and when it silently fails pushes the workflow still looks green — so users see "sync-branches: success" on their runs while nothing is actually syncing.
Why it's redundant
Before #36, Step 3 of the iteration loop was a simple "merge main if it exists, else create from main." If main advanced between iterations, the branch drifted, and sync-branches was the between-iterations correction.
Each iteration now self-heals the branch. sync-branches's original job is covered.
What sync-branches still technically does, and why we don't need it
Residual role
Why it doesn't justify a whole workflow
Bring a paused program's branch up to date with main
Program is paused by design — no iteration runs, no stale-branch problem to solve. Unfreezing happens when maintainers act.
Catch merge conflicts with main before the next iteration runs
Step 3 catches them the same way, at the moment they're about to matter, with the agent on hand to resolve.
Reduce "N commits behind main" banner on open PRs between iterations
Cosmetic.
Propagate fixes on main to active branches faster than the iteration schedule
Marginal. The next scheduled run does it within the schedule window (30 min for frequent programs, 6 h for slow ones).
Concrete removal
In this repo:
git rm workflows/sync-branches.md
Remove the gh aw compile sync-branches line from install.md (Step 4).
Update README.md if sync-branches is mentioned.
Search docs for mentions of "sync-branches" or "sync workflow" and remove/update.
If there's a section in workflows/autoloop.md that cross-references sync-branches ("a sync workflow automatically merges the default branch into all active autoloop/* branches") — rewrite it to say that the per-iteration Step 3 handles branch freshness, and point to that section.
Migration for existing installs
Consumers who installed sync-branches previously need to remove it on upgrade:
Delete .github/workflows/sync-branches.md and .github/workflows/sync-branches.lock.yml in the consuming repo.
That's it. No state to clean up; no references to update.
This belongs in the release notes for whichever version lands this change. The versioning proposal in #46 would make the release-notes path natural.
Summary
Remove
workflows/sync-branches.md(and its lock file on consumers) from autoloop. The workflow was designed when the per-iteration branch-management logic was minimal; now that each iteration runs a full ahead/behind fast-forward-or-merge at Step 3 (#36), sync-branches is scaffolding without a load-bearing purpose.Leaving it in is actively harmful: it can't compile under strict mode (see #33), it requires a PAT to actually push (most consumer repos don't configure one), and when it silently fails pushes the workflow still looks green — so users see "sync-branches: success" on their runs while nothing is actually syncing.
Why it's redundant
Before #36, Step 3 of the iteration loop was a simple "merge main if it exists, else create from main." If main advanced between iterations, the branch drifted, and sync-branches was the between-iterations correction.
After #36, Step 3 does:
Each iteration now self-heals the branch. sync-branches's original job is covered.
What sync-branches still technically does, and why we don't need it
Concrete removal
In this repo:
git rm workflows/sync-branches.mdgh aw compile sync-branchesline frominstall.md(Step 4).README.mdif sync-branches is mentioned.workflows/autoloop.mdthat cross-references sync-branches ("a sync workflow automatically merges the default branch into all activeautoloop/*branches") — rewrite it to say that the per-iteration Step 3 handles branch freshness, and point to that section.Migration for existing installs
Consumers who installed sync-branches previously need to remove it on upgrade:
.github/workflows/sync-branches.mdand.github/workflows/sync-branches.lock.ymlin the consuming repo.This belongs in the release notes for whichever version lands this change. The versioning proposal in #46 would make the release-notes path natural.
Resolution of existing issues
Acceptance
workflows/sync-branches.mdno longer exists in this repo.install.mdno longer asks consumers to compile it.Related