Skip to content

docs(runbook): warn about async stacked branch deletion - #495

Merged
ss-o merged 3 commits into
mainfrom
codex/document-async-stack-merge-branch-deletion
Aug 2, 2026
Merged

docs(runbook): warn about async stacked branch deletion#495
ss-o merged 3 commits into
mainfrom
codex/document-async-stack-merge-branch-deletion

Conversation

@ss-o

@ss-o ss-o commented Aug 2, 2026

Copy link
Copy Markdown
Member

Summary

Verification

  • Trunk check for runbooks/branch-protection.md
  • Lychee link check for the runbook
  • live agent-policy unit suite and validator
  • git diff --check and U+2014 scan

Related evidence: z-shell/zsh-lint#117 and z-shell/zsh-lint#110.

Copilot AI review requested due to automatic review settings August 2, 2026 20:40
@ss-o
ss-o requested a review from a team as a code owner August 2, 2026 20:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the branch-protection runbook to clarify that delete_branch_on_merge=false is a necessary baseline for ordinary PR merges, but not a complete safeguard when using GitHub’s asynchronous stacked-merge path, and it documents observed evidence and mitigation steps.

Changes:

  • Reframes the delete_branch_on_merge=false guidance as a baseline (not an absolute safeguard) and points to a new caveat section.
  • Adds an “Asynchronous stacked-merge caveat” section documenting the observed z-shell/zsh-lint incident and concrete pre/post-merge verification and recovery gates.

Comment thread runbooks/branch-protection.md Outdated
Copilot AI review requested due to automatic review settings August 2, 2026 20:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

runbooks/branch-protection.md:85

  • The sentence repeats “dependent” twice (“retargeted dependent dependent PR #110”), which is redundant and slightly harder to read. Removing the extra “dependent” keeps the link text descriptive for accessibility while avoiding duplication.
`delete_branch_on_merge` was `false`. GitHub also retargeted dependent
[`dependent PR #110`](https://github.com/z-shell/zsh-lint/pull/110) from `next` to `main` and
placed it in immutable stack metadata. Treat this as evidence for that path,

Copilot AI review requested due to automatic review settings August 2, 2026 21:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

runbooks/branch-protection.md:85

  • Minor grammar/readability: the sentence reads a bit awkwardly without an article (“deleted persistent head branch next”). Adding “the” improves clarity without changing meaning.
[`z-shell/zsh-lint#117`](https://github.com/z-shell/zsh-lint/pull/117), the
accepted asynchronous merge deleted persistent head branch `next` even though
`delete_branch_on_merge` was `false`. GitHub also retargeted
[`dependent PR #110`](https://github.com/z-shell/zsh-lint/pull/110) from `next` to `main` and
placed it in immutable stack metadata. Treat this as evidence for that path,

@ss-o
ss-o merged commit 9dab730 into main Aug 2, 2026
8 checks passed
@ss-o
ss-o deleted the codex/document-async-stack-merge-branch-deletion branch August 2, 2026 21:13
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.

2 participants