feat(preflight): 显示同机 sibling drafts - #200
Draft
catoncat wants to merge 1 commit into
Draft
Conversation
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.
Mainline Intent
Intent:
int_ad53756eStatus:
proposedTitle: 让 preflight 看见同机 sibling drafts
What changed
preflight 现在返回有界的 sibling_worktree_drafts 列表与总数,draft 携带从 goal/turn 推导的 partial fingerprint;当当前工作与 sibling draft 命中同文件或完全相同目标时,输出 sibling_draft_overlap、分支与 worktree 路径。
Why
drafting 按设计是 local-only,过去 status 虽能扫描同机 worktree,preflight 却不会呈现,导致并行 Agent 在开始工作时看不到同机正在进行的实现。先复用已有 scanner 补齐本地发现,可立即降低重复工作,同时不假装已经解决跨 clone claim。
Decisions
Subsystems: docs, engine
Scope
这是 #199 的第一段本地可见性切片:
drafting → sealed_local → proposed生命周期;Verification
TestPreflight*TestStatus_SurfacesSiblingWorktreeDraftsTestShowNotFoundSurfacesSiblingWorktreeDraftTestPreflight*go vet ./internal/engine ./internal/cligit diff --checkbettercheckout 的 preflight 中发现 2 个 sibling drafts 及 partial fingerprints未运行与本改动无关的全量 fuzz/property 测试。
Related: #199
Adjacent: #186