Repository navigation
Document state-compatible context runtime rollback - #8775
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
评审提交 378fc78;精确目标基线 4604f93。源码评审通过:这份指南给出了正确的回退判据。
动机 / Motivation
准备关闭上下文展示功能或更换 LoopX 运行时的操作者。 Goal 已经累积了新格式的验收要求,一轮工作也已经保存捕获但还没有结算;操作者正在判断是否能回到旧版本。 两份原指南讲了怎么关闭展示,却没有解释保存的捕获可读和当前工作可继续是两件事。 如果仅以旧版能打开捕获为可回退的依据,操作者可能卡在当前要求读不到、原轮次不能结算的状态。 两版指南把设置和运行时回退分开,并在切换前要求验证当前要求、保留原轮次、确认一次性结算。旧版读取捕获成功、同时读不了当前状态的反例已在 File 和 SQLite 独立复现。 独立证据限于 macOS 源码 CLI 和隔离 File/SQLite;原生 Windows、已经安装的桌面调度器和 PostgreSQL 未测,没有给任何旧版本通用回退资格。
改动思路 / Approach
沿现有机器设置和 Goal 要求存储说明给出操作顺序。由原准入、捕获及结算 owner 继续处理,保存的历史文件保持恢复用,不作为新鲜授权。 只想关展示时,先使用当前运行时已有的两个开关;只有要换版本时,才对目标版本做同宿主和同状态后端的验证。这个边界保留了正常准入和旧轮次恢复,不需要加另一个设置。
具体改动 / Changes
关键代码讲解
- presentation-versus-runtime:已验证。 英文入口 与 中文入口 均放在启用/关闭说明之后。两版只增加同一三步流程;运行时、前端、脚本相对目标基线逐字一致。
- qualify-current-authority:已验证。 两个链接均指向真实 Long-horizon record storage 条款,按是否已有新格式测试。独立对照中,旧 CLI
e96857f原可读 32 条 legacy 要求。迁移并追加一条后,它仍能打开原轮次捕获,但当前要求的 inspect 和准入退出 1,不能完成原待结算;此时没有扣额。 - retain-and-settle-original:已验证。 兼容 CLI 在同一 File/SQLite 夹具上核到原始摘要及身份,保留 33 条要求、两个来源和原 Todo 关联;原轮只结算一次,重放不增加扣额,新轮仍看到完整要求。篡改捕获一字节会被摘要验证拒绝。暂停新准入与原轮收尾
对主干的风险 / Risks
指南没有承诺某个已安装版本必然可回退。前置验证区分了“原捕获字节可读”“当前权威能加载”“同一身份可结算”;条件不满足时保留兼容运行时,用已有设置关闭展示,不能拿旧快照覆盖已提交的要求。两版含义一致。共享入口的工程原则见 RFC §9。标准预合并九项选中检查无失败;26 项相邻用例通过。托管 CI 未查询。
我的整体评价 / Verdict
通过。实际更换已安装运行时仍须按目标版本、宿主和后端独立验收;本次没有执行降级或结算真实任务。
English verdict: APPROVE at 378fc78. Both guides preserve current requirements and original settlement identity; paired File and SQLite CLI runs reproduced the older-reader refusal and one compatible settlement.
Goal And Delivered Outcome
A runtime can open a saved Turn yet fail to load newer Goal requirements or finish that Turn's pending settlement. The context delivery guides now distinguish disabling presentation from downgrading the runtime. They explain how to qualify a target against the state it will inherit and how to drain in-flight work without overwriting committed requirements.
Related to #8266 and #8755. Base:
main.Author Declaration
Scope And Continuation
The bilingual operator guidance is complete. Supported hosts and release candidates still need their own exact-runtime qualification. No runtime implementation, settings or historical decoders changed; no adjacent refactor is needed.
Validation
378fc78aff8751dc735e1d7d6145740c059b18d7. Both guide sections, the record-format link and the diff check passed.Frontend / Visual Evidence
Type of Change
LoopX Area