Repository navigation
docs(policy): delete head branches on merge; define merged branches - #736
Merged
Merged
Conversation
Adds to the code review policy's Merging section: the merger deletes the PR's head branch on GitHub (retargeting stacked PRs first), and a new "Removing branches" section that defines when a branch counts as merged (ancestor of a release branch, head of a merged PR at the merged tip, or fully patch-equivalent), allows anyone to delete such a branch with a SHA lease, and keeps unmerged branches and bases of open PRs for their owners. Production LOC: 188532 -> 188532 (delta 0); docs-only commit. Scope: core/engine/control/api production source, tools/production_loc.py at the parent; reference absent (retired R9c; last counted 65,417 at tree 498dd19). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Updates the code review policy §Merging:
mainandlayerfs_v2_0_0are never deleted. A branch is merged when its tip is an ancestor of a release branch, it is the head of a merged PR at the merged tip, or every commit is patch-equivalent (git cherry). Anyone may delete a merged branch, using a SHA lease. Unmerged branches and bases of open PRs stay with their owners. Each sweep records names and tips.Production LOC: 188532 -> 188532 (delta 0); docs-only.
Sweep done under this rule (2026-11-18)
77 merged branches deleted with SHA leases (52 ancestors of
layerfs_v2_0_0/main, 23 squash-merged PR heads, 2 fully patch-equivalent). Kept: 13 unmerged branches (docs/layerfs-2.0-assets,dsh-layerfs/project-storage,ephemeral-machine,fix/538-close-refuse,fix/538-custody-retry,fix/538-unmount-retry— bases of open PRs #653/#654,issue420-postgresql,issue512-vm-backend,issue-fuse-profile-tuning,opt/88-ring-admission,paper/write-in-public,storage-report-v2,wip/local-unmount-work).Deleted branches and tips (restore with
git push origin <sha>:refs/heads/<name>)add-plugin-dsh-layerfs7244991da7benchmark/symlink-hardlinksb9ad9edd7eclaude/cancel-exit-statusdf242d2a01claude/disk-space-v2393a1c9a61claude/exec-concurrent-testf19793bcafclaude/gc-mark-header-edgesc32a6dcbabclaude/gc-simplifyf2e27d7bdfclaude/home-setup-a1df3ebd2c34claude/issue428-sdk-packages-cd94127109a71be9claude/issue527-platform-pass-e05aa3b02242fd59claude/issue529-sandbox-platform-559e87ddc7c5696bclaude/metrics-182-348ba7cc40c90edaclaude/monitoring-179-2a14c13237813929claude/nfs-unmount-644-fixes05aa187f5aclaude/normal-durability5787643541claude/pg-implicit-attachc3c6c9d568claude/workspace-usageffd549d47ecommit-fastbd21785a1fconnect-cli/phase1-137c6fa2dfeb6control-split8464d23e4cdocs/agents-guides-reorg0003c7fc26docs/code-review-policy8a9eb788d7docs/gc-41-items-27-44254b27c352docs/gc-41-spec-revision23c08b835adocs/659-call-log4df8186559doctor-implementation-116c4fbf039fadsh-layerfs/include-storagea7b697b4abexec-clone-into-cgroup6eb2190d47exec-speed8482633f5ffeat/pg-store-attach545889d90afeat/sandbox-images0c18d49a72feat/659-call-log07715cd212fix/chain-budget-scales-with-cutoff3b10fef9cbfix/disable-firecracker-ssh671ed70624fix/exec-close-force-cancel01dec9d5d3fix/fp21-provider-gateff7ccee2f6fix/lease-stale-race14f62997b8fix/machine-stop-force-cancel2ad4d294f6fix/pr496-abort-custody69fedcacf0fix/store-lease-test-boundary99c5b60b1efix/windows-wsl-live8209716f0dfix/547-slice-1250243b9c47fix/547-slice-34305dea8aa7fix/547-slice-567a24b34c2ffix/649-down-capacityaf1c660326fix/679-unmount-skips-deferred-reclaim8c53ec33b0fix/691-publish-followup47265fc2dcgc-2.0-final53dac0441bintegrate/v2-force-stop-latestd303c7b03cissue5-backup-progressbb38df7a88issue30/node13ce03dbdeissue30/python89ee53940fissue113-exec-cancele0468a34d8issue113-gapsecab69603fissue410-init-refusal34c96b8208issue426-forced-unmount888ae70cd9issue442-fs-moded8d6f54c18issue463-layer-splitf406638c80issue506-store-backends-remoteda70f98745machines-live3f2e33b23fopt/84-final-int7691ac20b0opt/86-oneshot-wal-fix8a23d02d11opt/86-sqlite-wal-checkpoint48168dd625opt/87-pg-init-cleanupc86b6bbe34opt/88-ring-admission-v2985c6fdf71opt/88-small-file-delta-base714de4a16fopt/89-chain-root-rebaseb0248397b4opt/90-pg-narrow55383742f7opt/91-gap-blocksb293887488opt/92-dir-extent-deltasc5604ef662pg-always-compiled462ae6d3dfpg-perfddd1bc83cdpg-r26f09a1fddepr600-export-port4c1ed1ac42rm-microsandbox-ssh4ee6870e97sdk/branch-file-12891a5940605store-transfer-613ab4c1a4712🤖 Generated with Claude Code