fix(engine): 允许无本地草稿收口 proposal - #201
Merged
Merged
Conversation
catoncat
marked this pull request as ready for review
July 22, 2026 03:37
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_7d0eabd8Status:
proposedTitle: 允许收口缺失本地 draft 的共享 proposal
What changed
调整 Service.Abandon 的状态来源:本地 draft 真正缺失时回退共享 IntentView,沿既有状态机处理 sealed_local/proposed 到 abandoned;只在本地 draft 原本存在时更新缓存。新增回归覆盖 proposed、sealed_local、drafting、两边缺失和全部非法终态,并验证不会伪造 draft 或误写 actor log。
Why
已 seal/publish 的 proposal 在 worktree 正常清理后仍属于共享控制面,但旧实现无条件先读 gitignored 的本地 draft,导致 doctor 建议的 abandon 永远返回 NO_ACTIVE_INTENT,旧 proposal 无法进入 abandoned 终态。
Decisions
Subsystems: engine, intent-lifecycle, actor-log, materialized-view