fix(agent): 分支合并判定改以实际提交结构为准,信号交 judge 权衡#118
Merged
Conversation
源分支恰为主干(master/dev 等)的 fork 原创 PR 被 autopilot 误判为「纯分支合并」 而跳过。classifyBranchMerge 不再仅凭源分支名裁决:仅当提交全为 merge commit 才判 isBranchMerge,源是否主干降为 sourceMainline 背景信号。autopilot 改为逐候选拉 commits 按结构判定;judge prompt 以中性 signals 列出证据(去掉 prefer skip 硬措辞), 明确「仅源为主干不构成跳过理由」,由 judge 综合权衡。 Co-Authored-By: Claude Opus 4.8 <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.
问题
源分支恰为主干(master / dev 等)的 fork 原创 PR,被 autopilot 误判为「纯分支合并」而跳过预评审。
变更
classifyBranchMerge不再仅凭源分支名裁决:仅当提交全为 merge commit 才判isBranchMerge,源是否主干降为sourceMainline背景信号。signals列出证据(去掉 prefer-skip 硬措辞),明确「仅源为主干不构成跳过理由」,由 judge 综合权衡。branch-merge/autopilot-judge回归测试,更新docs/arch/06-agent.md。🤖 Generated with Claude Code