diff --git a/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.i18n.yaml b/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.i18n.yaml index adac3c1f40..8dd88ae7ef 100644 --- a/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.i18n.yaml +++ b/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.i18n.yaml @@ -4,13 +4,13 @@ # pnpm run verify-translation-pairing --write .agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.md /agent-note-prefer-rebase-with-rerere-for-pr-refreshes: en: bee37c92f02c4b62 - zh: 9db32f3400ca6426 + zh: da3f086fc09072b3 /agent-note-prefer-rebase-with-rerere-for-pr-refreshes/problem: en: 3c585b97c13a98b1 zh: 040d30dcaadfbdf2 /agent-note-prefer-rebase-with-rerere-for-pr-refreshes/decision: - en: 03821a54b63dd691 - zh: 34f599c07fdef838 + en: 8c6753ecfaf6b246 + zh: d6850cd7ee0afb2a /agent-note-prefer-rebase-with-rerere-for-pr-refreshes/alternatives-considered: en: 35d2f27bc5712a11 zh: 5bd1eaaaa200666f diff --git a/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.md b/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.md index 6e6fa5d61f..19fd7a8705 100644 --- a/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.md +++ b/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.md @@ -10,7 +10,7 @@ The [native stack decision](2026-08-02-native-github-stacks-and-optional-rebases ## Decision -Agents refresh standalone and stacked PR branches by rebase, including after review. Before rebasing, the agent enables, once per clone, Git's reuse of recorded resolutions with `git config rerere.enabled true`, so Git records each resolved conflict and applies the recorded resolution when the same conflict recurs in a later rebase. Git leaves a replayed resolution unstaged for inspection; the agent reviews and stages it before continuing the rebase. +Agents refresh standalone and stacked PR branches by rebase, including after review. Before rebasing, the agent enables, once per clone, Git's reuse of recorded resolutions with `git config rerere.enabled true`, so Git records each resolved conflict and applies the recorded resolution when the same conflict recurs in a later rebase. The agent leaves `rerere.autoUpdate` unset, so Git leaves a replayed resolution unstaged for inspection; the agent reviews and stages it before continuing the rebase. Merge-forward is used only when the PR author explicitly asks for it. The incremental merge-forward procedure and its rule to preserve an in-progress checkpoint before taking a newer base remain available for that case. diff --git a/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.zh.md b/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.zh.md index 8e1b89d3ce..e0af8b6f10 100644 --- a/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.zh.md +++ b/.agents/notes/implemented/process/2026-11-19-prefer-rebase-with-rerere.zh.md @@ -1,4 +1,4 @@ -# Agent Note: Prefer rebase with rerere for PR refreshes +# Agent Note: 以启用 rerere 的 rebase 刷新 PR 分支 Status: implemented @@ -10,7 +10,7 @@ Status: implemented ## 决策 -agent 以 rebase 刷新独立 PR 分支和堆叠 PR 分支,包括评审后。rebase 前,agent 在每个克隆中用 `git config rerere.enabled true` 启用一次 Git 的已记录冲突解决复用(rerere),Git 会记录每个已解决的冲突,并在之后的 rebase 中再次出现相同冲突时应用记录的解决结果。Git 把复用的解决结果留在未暂存状态以供检查;agent 检查并暂存后再继续 rebase。 +agent 以 rebase 刷新独立 PR 分支和堆叠 PR 分支,包括评审后。rebase 前,agent 在每个克隆中用 `git config rerere.enabled true` 启用一次 Git 的已记录冲突解决复用(rerere),Git 会记录每个已解决的冲突,并在之后的 rebase 中再次出现相同冲突时应用记录的解决结果。agent 不设置 `rerere.autoUpdate`,因此 Git 把复用的解决结果留在未暂存状态以供检查;agent 检查并暂存后再继续 rebase。 只有 PR 作者明确要求时才使用 merge-forward。增量 merge-forward 流程,以及在合入更新的 base 之前保留进行中检查点的规则,仍可用于这种情况。