feat: compose accepted-world Node tests into managed coding - #70
Draft
zhiiw 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.
Summary
Introduce the versioned
managed-coding-v2Session profile and compose the already-owned accepted-world Node test capability into Runtime Host execution.The existing
managed-coding-v1contract remains frozen. Desktop continues to create v1 tasks until packaged crash recovery and enforcing-sandbox gates are proven.Primary invariant
A
managed-coding-v2run is admitted only when one Runtime Host owns all of the following before T1:If any owner is unavailable, the run fails before provider dispatch. After T1, the observation cannot fall back to v1, an ordinary test runner, PATH, or generic outcome persistence.
Ownership and atomic boundary
Failure and rollback
managed_workspace_profile_unavailablebefore provider dispatch.managed_observation_v1durable reconciliation applies.Verification
archive-read-tool.ts,builtin-tools.ts, andshell-tools.ts; changed Runtime files have no TypeScript errors.Platform gate before Desktop default
中文说明
摘要
新增版本化的
managed-coding-v2Session profile,把已经由 owner 管理的 accepted-world Node 测试能力接入 Runtime Host。现有
managed-coding-v1合同保持冻结;在 packaged crash recovery 与三平台 enforcing sandbox gate 完成前,Desktop 默认仍创建 v1 任务。主要不变量
managed-coding-v2只有在同一个 Runtime Host 于 T1 前同时拥有精确 Gitoxide boundary、当前 Electron/Node 24 toolchain、enforcing sandbox 与 storage-root execution-root capability 时才允许执行。任何 owner 缺失都会在 provider dispatch 前明确失败;T1 后禁止降级到 v1、普通 test runner、PATH 或 generic outcome writer。Owner、失败与回滚
Core 拥有 Session profile identity;Runtime Host 拥有 capability composition;Runtime 拥有 observation T1/T2;Gitoxide 拥有 accepted-world materialization。T1 前失败会删除一次性 roots,T1 后沿用 durable reconciliation。Desktop 默认仍为 v1,不扩大默认权限面。
验证
Core、Runtime Host、Desktop 的相关构建/类型检查通过;profile 5/5、continuation v1/v2 2/2、Desktop review v1/v2 2/2、Host fail-closed 测试均通过。Runtime 只剩仓库既有 Zod v3/v4 类型错误,本次修改文件无新增错误。