Skip to content

Say who deletes remote branches now that GitHub does on merge - #234

Merged
BunsDev merged 2 commits into
mainfrom
agents-remote-refs
Oct 15, 2026
Merged

BunsDev merged 2 commits into
mainfrom
agents-remote-refs

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Two lines described the worktree tools as if nothing ever deleted remote branches:

  • AGENTS.md: "Remote refs and recovery archives are never pruned automatically."
  • docs/worktree-hygiene.md: "Remote branches are never deleted."

Both are still true of scripts/worktree.sh and the daily job. Since 2026-10-15, though, the repository deletes a PR's branch when the PR merges (delete_branch_on_merge). Read literally, the old lines now mislead.

Now:

  • AGENTS.md:
    • the tools never delete remote branches or recovery archives;
    • GitHub deletes a merged PR's branch and moves PRs stacked on it to its base;
    • so follow-up work goes on a new branch.
  • Hygiene doc: the same point, plus that merge proof reads the merged PR over REST, so removing a local worktree never needs the deleted branch. That's how journal-resume-notes, test-tmp-cleanup, ci-push-main and rail-analytics were removed today.

Docs only. docs/status.md's v0.0.11 hygiene entry ("keeps … remote branches") describes that release and is unchanged.

AGENTS.md said remote refs are never pruned automatically, and the hygiene
doc that remote branches are never deleted. Both describe the worktree
tools, but the repository now deletes a PR's branch when it merges
(delete_branch_on_merge, on since 2026-10-15). Say that, note that stacked
PRs move to the merged PR's base, and that merge proof does not need the
deleted branch.

Coven-Harness: Claude Code / claude-opus-5-5
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 15, 2026 4:14pm UTC

Request Review

@BunsDev
BunsDev merged commit cdb83d9 into main Oct 15, 2026
10 checks passed
@BunsDev
BunsDev deleted the agents-remote-refs branch October 15, 2026 16:50

This branch was successfully deployed

1 active deployment
Preview — 074b4eb7 Deployed Oct 15, 2026 by vercel[bot]
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