refactor(managed): converge unpublished protocols on canonical v2 - #85
Draft
zhiiw wants to merge 9 commits into
Draft
refactor(managed): converge unpublished protocols on canonical v2#85zhiiw wants to merge 9 commits into
zhiiw wants to merge 9 commits into
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
Converge the unpublished managed coding stack on one canonical v2 contract instead of carrying compatibility for abandoned Draft-only protocols.
managed-coding-v2the only negotiated complete managed profilemanaged_mutation_v2with explicit operation kindsmanaged_observation_v2Main invariant
A managed task has one durable protocol identity before T1. Runtime, Storage, Runtime Host, Desktop, and packaged toolchain admission either agree on canonical v2 or fail closed; no component may silently fall back to an abandoned Draft profile.
Ownership and failure boundary
runtime_managed_workspace_canonical_v2@1.Compatibility decision
Compatibility is retained only for formats already present on upstream main, notably released continuation history. Names such as
workspace_version_accepted_v1remain because they are the sole current format, not because a second decoder is maintained. Unpublishedmanaged-coding-v1/v3/v4, observation v1, mutation v3, and toolchain release v4 are deliberately not readable.An old experimental managed SQLite database should be backed up and removed before running this stack.
Verification
git diff --checkpassed.中文说明
摘要
这个 PR 把尚未发布、没有生产用户的 managed coding 栈统一到唯一的 v2 合同,不再为废弃的 Draft 协议支付迁移、双读和协商成本。
managed-coding-v2成为唯一完整 managed profile;managed_mutation_v2,靠明确的 operation kind 区分;managed_observation_v2;runtime_managed_workspace_canonical_v2@1capability,旧实验库即使版本号碰巧相同也会 fail closed;主要不变量
managed task 必须在 T1 前只有一个 durable protocol identity。Runtime、Storage、Runtime Host、Desktop 和 toolchain admission 要么共同认定 canonical v2,要么明确失败,禁止静默回退到废弃 Draft profile。
兼容策略
只保留已经进入 upstream main、可能存在真实数据的兼容格式,例如 continuation 历史。
workspace_version_accepted_v1之类名称仍保留,是因为它本来就是唯一现行格式,并不存在第二套 decoder。从未发布的
managed-coding-v1/v3/v4、observation v1、mutation v3 和 toolchain release v4 不再可读,也不提供迁移、降级、双读或混合运行。旧实验 SQLite 库应先备份后删除。验证
git diff --check通过。