Draft: establish Gitoxide-backed Write/Edit acceptance - #26
Closed
zhiiw wants to merge 91 commits into
Closed
Conversation
zhiiw
force-pushed
the
codex/m2-3b-runtime-settlement-rebuild
branch
2 times, most recently
from
August 24, 2026 03:22
3d01a40 to
5f83442
Compare
zhiiw
force-pushed
the
codex/m2-4-gitoxide-write-edit-v2
branch
from
August 24, 2026 03:36
d91ab88 to
3cc447f
Compare
…tmp-m2-4-v3 # Conflicts: # .github/workflows/gitoxide-helper-admission.yml # docs/architecture/gitoxide-successor-ref-cas-data-plane-v1.zh-CN.md # native/gitoxide-helper/Cargo.lock # native/gitoxide-helper/Cargo.toml # native/gitoxide-helper/src/main.rs # native/gitoxide-helper/tests/repository_admission.rs # packages/runtime-host/src/__tests__/gitoxide-repository-admission-authority-internal.test.ts # packages/runtime-host/src/server/gitoxide-helper-invocation-internal.ts # packages/runtime-host/src/server/gitoxide-repository-admission-authority-internal.ts
zhiiw
force-pushed
the
codex/m2-4-gitoxide-write-edit-v2
branch
from
August 24, 2026 04:15
9fb709b to
6ac4a52
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
Close the Gitoxide-backed managed Write/Edit acceptance and recovery path without reintroducing a Git CLI dependency.
This is a stacked API-level Draft. It composes the already separated M2 authorities; final delivery must still be rebuilt from the latest main after its prerequisites land.
Primary invariant
After managed T1, one Runtime-owned immutable result can reach exactly one terminal state:
workspace_successor_committedno_workspace_change_committedoperation_failed_no_effect_committedunsettledA changed success follows exactly:
immutable accepted tree -> pure transform -> candidate ref/receipt -> atomic SQLite T2 + successor + head -> accepted-ref CAS projectionThe candidate is evidence, RuntimeEvents/SQLite are accepted truth, and projection recovery never re-runs Write/Edit.
Scope
managed-coding-v1profile exposing only Write/Edit;Status
Draft. Desktop/CLI selection UX is not enabled here. SHA-256 repositories remain fail-closed. M3 has not started.
中文说明
摘要
本堆叠 Draft 闭合 Gitoxide 版 managed Write/Edit 接受与恢复链,不重新引入 Git CLI。前置合并后,最终交付仍需从最新 main 重建。
主要不变量
managed T1 之后,Runtime-owned immutable result 只能进入四种互斥终态:successor committed、no workspace change、failed with no effect、unsettled。
发生内容变化时,唯一链路是:
immutable accepted tree -> pure transform -> candidate ref/receipt -> SQLite 原子提交 T2 + successor + head -> accepted-ref CAS projectioncandidate 只是证据;RuntimeEvents/SQLite 才是 accepted truth;投影恢复绝不重跑 Write/Edit。
范围
managed-coding-v1profile,仅开放 Write/Edit;当前仍是 Draft:Desktop/CLI 选择入口尚未开启;SHA-256 repository 继续 fail closed;M3 尚未开始。