feat(storage): atomically accept managed workspace successors - #6
Closed
zhiiw wants to merge 6 commits into
Closed
Conversation
zhiiw
force-pushed
the
codex/managed-workspace-mutation-version-authority-m2-1
branch
from
August 19, 2026 02:33
3e7c575 to
14327f5
Compare
zhiiw
changed the base branch from
codex/m2-stack-review-base-20260818
to
main
August 19, 2026 02:34
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.
Summary
Establish the SQLite authority that atomically accepts a successful tool outcome and its managed-workspace successor.
Primary invariant
A successful tool response, immutable successor fact, workspace-version projection, and canonical workspace head are either committed together or not visible at all.
What changed
Stack position
This is M2.1, the first Draft in the managed mutation stack.
Base:
mainNext:
codex/managed-workspace-git-mutation-candidate-m2-2Validation
Focused core/storage builds, persistence tests, transaction rollback/reopen tests, projection rebuild tests, and SQLite crash/concurrency coverage passed on the implementation branch.
Draft limitations
main; later main drift must still be handled before Ready中文说明
概要
本层建立 SQLite 的唯一接受权威:成功工具结果、不可变 successor fact、workspace version 投影和 canonical head 必须在同一个事务里全可见或全不可见。
这是 M2.1,也是整个 managed mutation Draft 栈的第一层。目前没有生产 Write/Edit consumer;本轮已经从同步后的最新 main 重放,转 Ready 前若 main 再次漂移仍需重新同步。