feat(storage): rebuild workspace successor authority - #15
Closed
zhiiw wants to merge 4 commits into
Closed
Conversation
zhiiw
force-pushed
the
codex/m2-1-successor-authority-rebuild
branch
2 times, most recently
from
August 24, 2026 03:22
d6a2cdc to
ce3d4e4
Compare
zhiiw
force-pushed
the
codex/m2-1-successor-authority-rebuild
branch
from
August 24, 2026 04:05
0eb4c00 to
546270a
Compare
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
Primary invariant
A successful tool outcome, its successor workspace version, and the canonical workspace head are either all visible from one SQLite transaction or all absent. RuntimeEvents remain canonical; projections are rebuildable and generic writers cannot occupy the authority lane.
Extraction discipline
Tests were migrated first and observed RED on current main. Production code was then migrated file-by-file from the historical M2.1 branch. This branch is based directly on
upstream/main@19cd9e782; it does not include Git candidate, M1.3, Desktop/CLI, or Write/Edit composition code.Verification
range-diffsemantic match)git diff --checkpass中文说明
本 PR 从
upstream/main@19cd9e782平铺重建 M2.1。它只证明:成功 T2、workspace successor fact、projection 与 canonical head CAS 必须在同一个 SQLite transaction 中同时可见或同时不可见;RuntimeEvent 是唯一事实源,projection 可以严格重建。迁移顺序是先测试并确认 RED,再迁最小生产实现。没有带入 Git candidate、M1.3、Desktop/CLI 或真实 Write/Edit 组合。真实子进程 crash、ASF header、Astryx inventory 与 path/range diff 均已验证。