Repository navigation
Verify saved pending replans through one checkpoint reader - #8797
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
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
评审提交 91b9f163982482cd80da7e7ee1659c3aff3455bd。GitHub 目标基线为 6dfd1c90c4c1a186c43de0a2c05243fa14b5a76e。
[P2] 普通 checkpoint 上的空 replan 备注阻断恢复。 恢复一份普通 checkpoint。操作者允许填写的 point_metadata 含 replan={} 或 replan=false,快照没有待重规划文件。 快照完整验证成功,但两个恢复入口都抛错,无法给出普通恢复指引。replan={} 被报为缺少待重规划文件,replan=false 被报为类型错误。 待重规划来源选择
动机 / Motivation
用 Benchmark native checkpoint 接续工作的使用者。 从已封存的正常工作继续,或从真正待重规划的 checkpoint 取回原决策。 已有真实待重规划文件时,File 和 SQLite 的原 guard 及封存内容可由两个消费者读回。替换文件、意图不符、伪造完整版本与不支持的版本均被拒绝。 范围为真实 artifact 读写和 File/SQLite guard,外部 native 会话用确定性替身。已登录宿主、实际评分与成本未验证。
改动思路 / Approach
由现有 checkpoint artifact owner 读并核对原成员,Python 接收端消费已验证的摘要和意图。Native admission 与当前 replan 结算仍在各自原入口。 保留普通快照支持的空值。只有确实存在原待重规划意图或封存成员时才进入核验,继续拒绝声明了实际待重规划却缺少原文件的快照。 恢复入口复用 artifact reader
具体改动 / Changes
关键代码讲解
- 原先两个消费者重复用 Python 读取 decision,再交还 TypeScript 识别意图。现在复用同一 artifact reader,核对原摘要、成员、精确数字与有版本的完整合同。读回单个成员仍保留旧的整档检查边界。
- 普通恢复也打开了这个 reader 的 pending 选项。旧入口把操作者备注中的空对象和 false 视为无待处理 replan,新入口只跳过 null。和无备注对照相比,普通快照新增了一个拒绝分支。新的 pending 读取分支
- Fresh replan 消费核验结果后继续检查原 session;已恢复会话仍要求当前语义结算和完成的原生轮次。没有采用新 Benchmark 默认。原生 reset 前的验证
按现有规范核对。sealed-pending-read 与 native-consumer-boundary 已验证。ordinary-restore-parity 未满足。目标 checkpoint 合同
对主干的风险 / Risks
目标 main 在同一已验证快照上返回普通恢复指引,并保留后续捕获的现有验收门。 用实际请求 parser、封存与校验 owner、两个恢复入口对照。相同快照在候选上均通过完整性检查,但带空备注时会在 native 操作前停止。删去备注的对照能继续,所以故障来自新读取条件。用同一合法 checkpoint 请求,比较省略、空对象或 false 的 replan 备注与真实待重规划成员。实际 restored_checkpoint_review 和 restored_capture_gate 应保留普通恢复,并拒绝真正缺文件、错摘要或错身份的请求。
语义与 CI 对齐
独立跑过 15 项恢复和原 guard 测试,覆盖 File、SQLite 与实际 artifact owner。Standard premerge 的 17 项选中检查通过,Benchmark 人工门待核。 托管 CI 未查询。当前快照和假 native 会话用于检验接入路径,真实实验采用与效率仍未测。
我的整体评价 / Verdict
请求修改。保留普通快照支持的空值。只有确实存在原待重规划意图或封存成员时才进入核验,继续拒绝声明了实际待重规划却缺少原文件的快照。 目前真实待重规划的核验更集中,仍须恢复普通历史 checkpoint 的可用性。范围为真实 artifact 读写和 File/SQLite guard,外部 native 会话用确定性替身。已登录宿主、实际评分与成本未验证。
English verdict: REQUEST_CHANGES. An empty or false operator replan note blocks ordinary restoration on a valid sealed checkpoint. Keep those historical inputs on the ordinary path and retain strict verification for actual pending decisions.
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 · effort=max
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
使用 checkpoint 恢复研究工作的操作者,需要原始待重规划证据被同样校验,同时保留普通恢复路径。
旧候选头会把空对象或 false 备注误判为待重规划,导致普通恢复在原生会话操作前失败;新头恢复 main 的空值兼容,并统一两个接收方的封存读取。
可观察结果是:同一封存点在两个接收方得到一致的合法恢复结果,损坏的 complete packet 在会话重置前被拒绝,原 guard 与结算记录保持原样。
本 PR 的边界是共享证据读取;真实模型采用、安装升级、计分实验收益与完整成本优势仍未证明。
真实 native Host 的采用及长程效果与完整成本资格仍属于后续验证,不能由静态读取或一次恢复推断。
改动思路 / Approach
封存成员与原决策的校验属于既有 TypeScript artifact owner;Python 仅编排 native IO,继续由原生准入和结算 owner 决定是否执行。
本次交付是两个实际接收方共用一个只读证据判定;不增加持久状态或执行授权,也不把 archive 局部读取称为完整验证。
完整控制流是:读取已封存 manifest → 校验唯一 held decision 成员与原始 intent → 两个 Python 接收方消费同一证据。只有后续原生准入、当前语义结算和 native cursor 均满足时,原 owner 才允许重置或再次 capture。成功读取仍返回 integrity_verified=false、execution_authority_granted=false;它不声称整个 archive 已验证。这个边界比保留两套 Python 解析再补空值判断更完整,也没有把 native IO 迁进核心。
具体改动 / Changes
关键代码讲解
checkpointReplanIntent从现有select_replan提取同一判定,继续核对原 Goal/Agent/Turn、effect 和语义 obligation;closeout-only 分支继续拒绝把旧响应当作新 capture 边界。readPendingReplanBasis先按历史 JSON 空值规则选择 root/operator 备注。没有备注且没有 held member 才返回 ordinary;声明了 held member 就必须同时具备有效 intent、regular sealed file、尺寸与 digest。文件打开前后还核对 inode/size,随后校验 complete source 的原始 number tokens,最后才返回派生证据。_restored_context删除自己读文件、hash 和重建 intent 的路径,保留 canonical settlement 与 native history/cursor 的独立门;semantic_review_accepted仍不能替代 native capture 许可。_prepare_fresh_replan在 admission/reset 前使用同一 basis;已有 attempt 仍恢复原 lost reply,不能重新准入已前进的源会话。
规范:benchmark/runtime/RUNTIME.md,spec_revision f585427c70302aaf79442274dc710d2a823b5e99。Configure the native job → implemented:原 full capture、历史 ordinary/envelope 与 complete binding 用同产物 File/SQLite 读取验证;Task entry and planning ablation → implemented:原会话、预算、机会及结算 owner 保留,guard/run 字节未变。净集成范围为 5 文件 +339/-110,其中生产 +161/-108、测试 +167/-2、文档 +11。
对主干的风险 / Risks
| 检查 | 观察 |
|---|---|
| PASS — 原问题与反证 | main 与新头对同一批 12 个 ordinary 封存点返回完整相同的 review/gate/basis;旧头 91b9f163982482cd80da7e7ee1659c3aff3455bd 在空对象上报 restored replan point lacks its original pending packet。 |
| PASS — 真实读取边界 | 同一批 File/SQLite 原 CLI guard,historical/complete 共 4 个合法恢复的完整输出和 reset 参数一致;2 个已破坏完整绑定的 complete carrier 从旧路径接受变为新头在 reset 前拒绝,原 guard/run 均未改变。 |
| PASS — 本地检查 | restore 27 passed;TypeScript artifact 18 passed;全 control-plane typecheck passed。标准预合并 5 个直接/编译检查、17 个选中 canary 全通过;整体退出 1 为 benchmark_sensitive 的 manual_review_required,仍保留维护者合并门。 |
| FAIL — 保留的诊断 | 更广恢复套件 104 passed, 1 failed, 13 skipped。失败项 test_failed_replan_index_cannot_relabel_later_work_after_permissions_recover 在测试第 1044 行遇到 throttled_skip -> goal_launch_not_allowed。同一单测在 main/new head 分别 48.94s/49.39s 同样失败,worker、checkpoint_wake、admission 与该测试文件字节一致;失败路径未调用本次 restored reader,因此归为已有独立失败,未宣称修好。 |
| UNVERIFIED | 13 个真实 native Host 项因未提供显式 Host binary 跳过。native IO 在有界接收方探针中为记录型替身;安装态、真实模型采用和效果/完整成本未验证。托管 CI 未查询或等待。 |
另有已核实的 published-diff 差异:GitHub PR API 仍固定旧 base 6dfd1c90c4c1a186c43de0a2c05243fa14b5a76e,展示 280 文件 +20847/-1569;实际远端 main@f585427c70302aaf79442274dc710d2a823b5e99 的 merge-base 为 02cc3381d32ca3763a60ca18f16e2ff0d1357299,三点差异和无冲突 merge-tree df8ee1198caaf5522b0d3c15bff355befe7cf503 均只有上述 5 个文件。依照 CONTRIBUTING.md 的 published-diff 规则,本次无人值守审查保持比较不变,没有执行无条件 base PATCH;维护者需协调独占 target-edit 后刷新并读回,方可称该展示问题已修复。这与当前代码证据及 merge authority 分开。
语义与 CI 对齐
本次复用既有词汇与 verifier。ordinary 完整指令没有缩写或丢失停止条件;fresh-reset 拒绝信息从“sealed pre-decision packet”改为“original pending decision boundary”,含义由同产物调用验证。complete 内部损坏现在拒绝是明确的正确性增强,文档已披露;omitted include_pending_replan 的结果保持原样,不增加调度、扣额或执行能力。
我的整体评价 / Verdict
未发现当前 5 文件集成范围的阻塞性问题;旧空值 finding 已被独立反证/正例覆盖。problem_context=justified_increment,long_horizon 与 user_experience 均为 preserved:这是两个真实调用方可用的只读合并,不是模型收益证明。兼容性保留在封存历史证据边界;现有 selector 与 complete verifier 足够,无需新版本或平行状态。经验 candidate:c3fe54fdb542e9bec15f 用于检查“恢复后是否仍有可执行路径”,不据此声称 memory utility。
检查了两个 Python 接收方、TypeScript artifact owner 及 RUNTIME 文档;净变更没有页面或渲染呈现变化,visual_review 不适用。 未验证范围:真实 native Host、安装态及模型采用未验证;本次无渲染呈现范围。精确头为 72768352eedc7642c1567d2fc121497e9c783694;公开 diff 展示、已有启动失败、基准敏感人工门及实际 merge readiness 单独保留,本审查不授予 merge/install 权限。
English verdict: APPROVE — No blocking findings in the verified five-file integration delta; native adoption and separate merge holds remain.
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 · effort=max
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
使用 checkpoint 恢复研究工作的操作者,需要原始待重规划证据被同样校验,同时保留普通恢复路径。
旧候选头会把空对象或 false 备注误判为待重规划,导致普通恢复在原生会话操作前失败;新头恢复 main 的空值兼容,并统一两个接收方的封存读取。
可观察结果是:同一封存点在两个接收方得到一致的合法恢复结果,损坏的 complete packet 在会话重置前被拒绝,原 guard 与结算记录保持原样。
本 PR 的边界是共享证据读取;真实模型采用、安装升级、计分实验收益与完整成本优势仍未证明。
真实 native Host 的采用及长程效果与完整成本资格仍属于后续验证,不能由静态读取或一次恢复推断。
改动思路 / Approach
封存成员与原决策的校验属于既有 TypeScript artifact owner;Python 仅编排 native IO,继续由原生准入和结算 owner 决定是否执行。
本次交付是两个实际接收方共用一个只读证据判定;不增加持久状态或执行授权,也不把 archive 局部读取称为完整验证。
完整控制流是:读取已封存 manifest → 校验唯一 held decision 成员与原始 intent → 两个 Python 接收方消费同一证据。只有后续原生准入、当前语义结算和 native cursor 均满足时,原 owner 才允许重置或再次 capture。成功读取仍返回 integrity_verified=false、execution_authority_granted=false;它不声称整个 archive 已验证。这个边界比保留两套 Python 解析再补空值判断更完整,也没有把 native IO 迁进核心。
具体改动 / Changes
关键代码讲解
checkpointReplanIntent从现有select_replan提取同一判定,继续核对原 Goal/Agent/Turn、effect 和语义 obligation;closeout-only 分支继续拒绝把旧响应当作新 capture 边界。readPendingReplanBasis先按历史 JSON 空值规则选择 root/operator 备注。没有备注且没有 held member 才返回 ordinary;声明了 held member 就必须同时具备有效 intent、regular sealed file、尺寸与 digest。文件打开前后还核对 inode/size,随后校验 complete source 的原始 number tokens,最后才返回派生证据。_restored_context删除自己读文件、hash 和重建 intent 的路径,保留 canonical settlement 与 native history/cursor 的独立门;semantic_review_accepted仍不能替代 native capture 许可。_prepare_fresh_replan在 admission/reset 前使用同一 basis;已有 attempt 仍恢复原 lost reply,不能重新准入已前进的源会话。
规范:benchmark/runtime/RUNTIME.md,spec_revision eb81f44a191d3e8b0ed20511df614e21539d8007。Configure the native job → implemented:原 full capture、历史 ordinary/envelope 与 complete binding 用同产物 File/SQLite 读取验证;Task entry and planning ablation → implemented:原会话、预算、机会及结算 owner 保留,guard/run 字节未变。净集成范围为 5 文件 +339/-110,其中生产 +161/-108、测试 +167/-2、文档 +11。
对主干的风险 / Risks
| 检查 | 观察 |
|---|---|
| PASS — 原问题与反证 | main 与新头对同一批 12 个 ordinary 封存点返回完整相同的 review/gate/basis;旧头 91b9f163982482cd80da7e7ee1659c3aff3455bd 在空对象上报 restored replan point lacks its original pending packet。 |
| PASS — 真实读取边界 | 同一批 File/SQLite 原 CLI guard,historical/complete 共 4 个合法恢复的完整输出和 reset 参数一致;2 个已破坏完整绑定的 complete carrier 从旧路径接受变为新头在 reset 前拒绝,原 guard/run 均未改变。 |
| PASS — 本地检查 | 最新合并 head 上 restore 27 passed;TypeScript artifact 18 passed;全 control-plane typecheck passed。quick premerge 的 5 个直接/编译检查及 3 个选中 canary 全通过;benchmark_sensitive 保留 manual_review_required 人工合并门。 |
| FAIL — 保留的诊断 | 更广恢复套件 104 passed, 1 failed, 13 skipped。失败项 test_failed_replan_index_cannot_relabel_later_work_after_permissions_recover 在测试第 1044 行遇到 throttled_skip -> goal_launch_not_allowed。同一单测在 main/new head 分别 48.94s/49.39s 同样失败,worker、checkpoint_wake、admission 与该测试文件字节一致;失败路径未调用本次 restored reader,因此归为已有独立失败,未宣称修好。 |
| UNVERIFIED | 13 个真实 native Host 项因未提供显式 Host binary 跳过。native IO 在有界接收方探针中为记录型替身;安装态、真实模型采用和效果/完整成本未验证。托管 CI 未查询或等待。 |
此前 published diff 固定旧 base,展示 280 文件。当前 head 已合入最新 main eb81f44a191d3e8b0ed20511df614e21539d8007,GitHub Files changed 已刷新并读回为上述 5 个文件 +339/-110,merge-base 与当前 main 一致。展示范围污染已经修复,不需要修改目标分支或无条件 PATCH base。
语义与 CI 对齐
本次复用既有词汇与 verifier。ordinary 完整指令没有缩写或丢失停止条件;fresh-reset 拒绝信息从“sealed pre-decision packet”改为“original pending decision boundary”,含义由同产物调用验证。complete 内部损坏现在拒绝是明确的正确性增强,文档已披露;omitted include_pending_replan 的结果保持原样,不增加调度、扣额或执行能力。
我的整体评价 / Verdict
未发现当前 5 文件集成范围的阻塞性问题;旧空值 finding 已被独立反证/正例覆盖。problem_context=justified_increment,long_horizon 与 user_experience 均为 preserved:这是两个真实调用方可用的只读合并,不是模型收益证明。兼容性保留在封存历史证据边界;现有 selector 与 complete verifier 足够,无需新版本或平行状态。经验 candidate:c3fe54fdb542e9bec15f 用于检查“恢复后是否仍有可执行路径”,不据此声称 memory utility。
检查了两个 Python 接收方、TypeScript artifact owner 及 RUNTIME 文档;净变更没有页面或渲染呈现变化,visual_review 不适用。 未验证范围:真实 native Host、安装态及模型采用未验证;本次无渲染呈现范围。精确头为 c85f7008f4d3a25f418d74970880bea1e9b35f45;公开 diff 已收敛为 5 文件,已有启动失败、基准敏感人工门及实际 merge readiness 单独保留,本审查不授予 merge/install 权限。
English verdict: APPROVE at c85f7008f4d3a25f418d74970880bea1e9b35f45 — No blocking findings in the verified five-file integration delta; the published diff is clean and native adoption remains separately unverified.
Problem and behavior
Both Benchmark receivers used to open, hash and decode a sealed pending decision separately. They now reuse the existing TypeScript checkpoint artifact owner to verify the sealed member and select the original replan intent. Session refresh and recapture retain their separate current native admission and semantic-settlement checks.
The previous PR head changed Python's empty-value selection into a null-only check. An ordinary checkpoint carrying
replan={}orfalsethen failed restoration; an empty root annotation also hid a valid nested intent. This revision preserves the historical selection for null, empty object/list/string, false and zero, while a declared held-decision member still requires a valid original intent and sealed bytes. Empty advice cannot authorize a fresh-replan reset.Real pending decisions retain manifest membership, digest, UTF-8/JSON, Goal/Agent/Turn and intent-binding checks. Historical unversioned decisions remain readable only through the sealed history path; declared complete versions use the shared C1 verifier and exact-number checks. Replaced members, wrong identities/intents and unsupported or forged complete decisions refuse before reset or capture.
Validation
Tested head:
72768352eedc7642c1567d2fc121497e9c783694, based onmain@02cc3381d32ca3763a60ca18f16e2ff0d1357299.manual_review_requiredfor the Benchmark boundary; this is not a passed merge gate. Independent review and exact-head readiness remain required.A signed-in native model, scored experiment, installed-host adoption and net-cost comparison were not run. This remains a prerequisite for C1, rather than C1 qualification. No checkpoint format, benchmark profile default, scoring or execution authority changes.