Repository navigation
Preserve Turn identity across autonomous replan recovery - #8819
huangruiteng wants to merge 43 commits into
Conversation
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
[P2] 保留旧 Todo 回执的结算身份。 旧版本写出真实 Todo 绑定回执。以同一 Turn ID 且不再传 Todo 参数运行,退出 0,并返回原 settlement plan。 候选读到原回执,仍先按当前 effective action 取重规划义务 ID。相同命令退出 1,heartbeat_receipt_identity_conflict,只有历史回执,缺少原 settlement plan。 File 和 SQLite 的记录均来自真实基线 CLI,原回执仍在,候选没有返回恢复动作。对已存在的回执先用验证过的原 settlement binding,只有新准入或未绑定的回执才从当前重规划推导身份。绑定优先顺序
[P2] 重试相同的已保存 Todo 选择。 候选首次保留显式 Todo 并以重规划义务准入。相同 argv 再次送达时却报告 explicitly requested Todo differs,省略这个参数才成功。 两个 provider 均可重现,基线在原命令和省略选择时均可恢复。把重复出现的 Todo 参数同回执中已经保留的选择比较。相同选择沿用原义务,真正不同的选择继续拒绝。已有回执校验 · 已保存选择的预检
动机 / Motivation
启动或恢复 LoopX 自主重规划的用户,需要在宿主中断或软件升级后继续原回合。 候选能把新重规划绑定到义务并保留选中的 Todo,但读旧回执和重试原命令时仍可能被拒绝。遇到这些情况,用户拿不到原回合的续做或结算命令。
在隔离的 File 和 SQLite 上,基线能重放原 Todo 回执和原命令。候选分别在隐式恢复和重送同一 Todo 参数时报告身份冲突,原回执及扣额计数均未改变。 本次验证使用实际 CLI、隔离 Core 和公开合成任务。已安装的宿主、真实模型和长期净收益未验证。
改动思路 / Approach
这份 PR 的边界是重规划准入、原回执恢复、写回和欠扣额这条路径。 保存的回执应先决定已有 Turn 的身份。当前工作投影只能为新准入提供候选。 现有接续链应先读原身份和写回,然后判断有无欠扣额。候选复用现有回执与 Core 解码,这一结构可以保留。只有 fresh 回合需要优先选语义 replan,现有回合的计划参数还要通过已保存选择校验。停在 writeback 前的重规划也需要与已经欠额的回合区分。M7.2 原效果绑定 · 已绑定回合约定
具体改动 / Changes
关键代码讲解
quota_rollout_settlement_binding在有效自主重规划时优先取义务 ID,解决新回合与当前 Todo 投影之间的冲突。它在读已有回执时也会先做这次选择,抢过原结算计划。显式选择被保存后,reconcile_existing_heartbeat_receipt仍按旧 Todo 结算字段比较原参数。两个恢复问题分别有真实对照。新选择分支selectCloseoutCandidates和reduceUnsettledHostTurnRecovery允许新旧绑定共享恢复规则。尚无原写回的正常重规划可让后续 guard 继续。已有写回且未扣额,才能恢复原扣额。相关测试使用原回执和真实后续入口。候选选择 · 待扣额恢复projectSemanticReplanGuard兼容短 stop 值,并对长值核对完整 digest 和可识别条款。缺字段的 legacy review guard 可追加来源信息。恢复重建当前 context,保留原义务身份。错误 digest 和 scope 不应通过。语义 guard 解码和升级 · 原义务重建
按 docs/architecture/rfcs/agent-loop-effect-interpreter-v0.md 的原回合结算规则检查。fresh-replan-identity 已实现。legacy-binding-recovery 和 same-selection-replay 未满足,两条原命令恢复反例见上文。separate-writeback-from-spend 和 exact-stop-condition 在当前已有 owner 中得到定向验证。定向 CLI 用例
对主干的风险 / Risks
受影响的是升级时已经存在但未结算的重规划,以及明确选过 Todo 后遇到失响应的同一命令重试。两类反例都以原 CLI 和实际隔离 File/SQLite 运行。仍能读到原回执,记录与扣额没有被重写,恢复被提前拒绝。新义务的写回与补额链通过定向检查。TypeScript 对照为 222 和 226 项通过,typecheck 与差分检查通过。已安装宿主采用和长程收益尚未验证。
语义与 CI 对齐
当前使用已有 settlement identity、receipt phase 和 replan guard 词汇。读回扩展保留原 stop 的完整校验。合入前需要在同一已有读取路径恢复旧 binding,并让相同的规划选择可以原样重试。重跑实际两种 provider 的原回执和参数重试用例,同时保留不同选择和错误 digest 的拒绝。原回执约束
我的整体评价 / Verdict
这份 PR 的边界是重规划准入、原回执恢复、写回和欠扣额这条路径。 新准入方向成立,但当前版本会让两条原本可续做的恢复路径停住。用户会看到身份冲突,宿主可能需要人为改参数。两个 P2 修复后应在同一对照重跑,再核验写回前后与原扣额的时序。检查了真实 quota CLI 和回执恢复路径。此次未改界面。 现有用户安装、其他 OS 和真实模型恢复未执行。
English verdict: REQUEST_CHANGES at 75af95c. Real File and SQLite CLI checks reproduce legacy Todo receipt recovery failure and rejection of an identical explicit Todo retry.
| # replan is the Turn's execution obligation. Bind that obligation | ||
| # before the portfolio's explicit-selection guard can make the | ||
| # committed Turn identity-less and impossible to settle. | ||
| return None, current_replan_obligation_id |
There was a problem hiding this comment.
[P2] 保留旧 Todo 回执的结算身份。 旧版本写出真实 Todo 绑定回执。以同一 Turn ID 且不再传 Todo 参数运行,退出 0,并返回原 settlement plan。 候选读到原回执,仍先按当前 effective action 取重规划义务 ID。相同命令退出 1,heartbeat_receipt_identity_conflict,只有历史回执,缺少原 settlement plan。 File 和 SQLite 均复现。对已存在的回执先用验证过的原 settlement binding,只有新准入或未绑定的回执才从当前重规划推导身份。
There was a problem hiding this comment.
已修复。已有 receipt 现在先按其原始 settlement binding 做 readback;后续 frontier 轮换、不同 replan identity 或 settlement-only 投影都不会再重写该 receipt。test_same_second_historical_ack_requires_writeback_after_admission 的 14 个 file/sqlite 与时序变体通过;最新 main 上完整 Python 结算回归为 288 passed / 1 skipped。
|
|
||
| if ( | ||
| payload.get("effective_action") | ||
| == EffectiveAction.AUTONOMOUS_REPLAN_REQUIRED.value |
There was a problem hiding this comment.
[P2] 重试相同的已保存 Todo 选择。 候选首次保留显式 Todo 并以重规划义务准入。相同 argv 再次送达时却报告 explicitly requested Todo differs,省略这个参数才成功。 File 和 SQLite 重试各复现一次,原回执与扣额保持不变。把重复出现的 Todo 参数同回执中已经保留的选择比较。相同选择沿用原义务,真正不同的选择继续拒绝。
There was a problem hiding this comment.
已修复。首次显式 Todo 选择保存在 pending_action_selection_todo_id;重试时,只有同一 Todo 可以解析回原 replan guard,真正不同的 Todo 仍以 identity_mismatch 拒绝。新增了 retained Todo → original replan guard 的 TypeScript 回归;229 个相关状态机测试通过。
Signed-off-by: huangruiteng <huangrt01@163.com>
75af95c to
88bd338
Compare
Signed-off-by: huangruiteng <huangrt01@163.com>
* docs: add Japanese README Signed-off-by: Ikko Eltociear Ashimine <eltociear@gmail.com> * docs: sync Japanese README with Goal lifecycle and route it through README checks Signed-off-by: Ikko Eltociear Ashimine <eltociear@gmail.com> --------- Signed-off-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…eout (#8854) A replan admitted for a Monitor's no-change streak lost its receipt source once the agent completed the Monitor inside that Turn, so the same Turn's writeback and guard re-entry failed with heartbeat_receipt_identity_conflict. Treat the streak as a scalar review source, with a fixed kind precedence independent of trigger order. Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-authored-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Preserve requested scheduler detail during recovery waits Prior-Turn recovery rebuilds the scheduler hint when the unchanged admission limit is reached. Forward the CLI detail selector to that projection so the DSH Driver receives the bounded recheck cadence it requested. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> * Keep App scheduler reconciliation executable during recovery waits Reuse observed host cadence and persisted backoff when projecting a prior-Turn recovery wait. Preserve the registered scheduler scope and place CLI options after the standalone interpreter prefix so the matched host can be acknowledged using the original receipt. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --------- Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Revalidate the captured Session and combined admission signal before publishing a queue or scheduler wait plan. Cover Pause and native maintenance cancellation for both plans, followed by a fresh evaluation. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
#8770) * fix(monitor): project User gate completion for an observed prerequisite An admitted due Monitor that still has open User gates now gets the existing User lifecycle completion command ahead of its poll actions, on unchanged observations too. The Monitor Turn's settlement identity stays separate; observation never grants approval. Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-Authored-By: Claude <noreply@anthropic.com> * fix(monitor): never project a User gate completion from an observation Replace the projected completion command with a read-only notice. A due Monitor that is admitted while the agent has open User gates is told that its observation cannot complete or approve a gate, which attempts stay rejected, and that work continuing on an observed change belongs in the poll's own successor. Unrelated owner decisions receive no command. Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-Authored-By: Claude <noreply@anthropic.com> * fix(monitor): do not point an observation at any User gate The notice told the agent to report the observed evidence as the pending user action of an open gate, even when the gate was unrelated to the observation. Keep only the boundary (an observation never completes or approves a gate) and the original poll. Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-authored-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
#8584) * fix(turn): enable builtin Codex durable Todo completion Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> * fix(turn): validate terminal Todo before accountable refresh Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> * refactor(turn): remove redundant lease shape check Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> * Recheck the original Goal after built-in Codex validation Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --------- Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Co-authored-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-authored-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
…rk-app-feedback-writeback-20261116 Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
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
评审提交 88bd3381baac6d6fb48f4565e1ca1a0ffd8024b4,对照主干 cac86bbad92ba99c3430b3f7eaa9632727573821。
动机 / Motivation
用 CLI 或 Codex App 恢复自主重规划的操作者,要在切换待办或遇到丢失响应后找回原 Turn。该需求同时覆盖已保存的 Todo 绑定与新义务绑定。
用当前主干 CLI 生成原 Todo 回执。随后通过原生 CLI 添加 15 个待办,确认当前 frontier 已要求 replan,再用旧头与当前头重放原命令。另用相同和不同显式选择的 argv 测第二种绑定。
两库旧回执读回和相同选择重放均返回原计划和同一 effect。不同选择拒绝,回执保留且零额外扣额。相关写回后补扣用例继续在原 Turn 只扣一笔。
本次只确认所评提交的恢复代码。合并资格、正式宿主采用、在线行为与长期效率仍有各自的验证。
当前头在其 PR 基点上源码验证通过。与最新 main 的 replan_semantics.ts 及相邻测试有合并冲突。已安装宿主和旧回执在生产中的采用仍待复验。
改动思路 / Approach
局部修复应由原回执和结算 owner 处理。仅调整 CLI 当前选择会留下已写回但还欠下一步的旧 Turn。当前让回执优先,并让 TS 原 closeout owner 处理这部分时序。
评审边界为 quota CLI、已保存回执、typed replan/closeout、refresh/spend 和原 ACK 读回。源代码与测试覆盖 15 个文件。两处主干冲突单列为集成问题。
持久 heartbeat receipt 提供 effect 与原 Turn,typed guard 保留规划 Todo 和已有约束。当前 replan 只为新准入提供 binding,后续 reentry 核对并继续原身份。
新的 replan 以义务为结算身份;已有回执继续使用原 binding。原 Todo 参数可作同一规划选择。旧 guard 兼容记录采用 append-only 升级,缺写回和仅剩扣额分别处理。
已有读回器从同一原 Turn 查找准确写回及剩余扣额。错 Todo、不同 effect、旧时序、错误 stop digest 继续拒绝。
保留单一原回执来源、原 closeout 状态机和现有语义验证,在原 owner 内完成重放与拒绝。集成时把相冲突的 replan 语义改动放到同一个适用头重新验证。
具体改动 / Changes
GitHub 与本地精确 diff 一致,共 15 个路径,新增 916 行,删除 147 行。评审边界为 quota CLI、已保存回执、typed replan/closeout、refresh/spend 和原 ACK 读回。源代码与测试覆盖 15 个文件。两处主干冲突单列为集成问题。
同样的实库和 CLI 重跑前一头的两条失败路径。随后在当前头重新验证完整 15 文件的恢复行为。
在 cac86bbad92ba99c3430b3f7eaa9632727573821 的 docs/architecture/rfcs/agent-loop-effect-interpreter-v0.md 核对接受条件。 规范
- persisted-receipt。旧回执优先并保持可读和可执行计划 从当前主干另一个真实 CLI 生成的两库 Todo 回执,在候选中回到相同 identity。
- identical-retry。重发相同参数继续原义务,不一致选择拒绝 两库重试,前头退出 1,当前退出 0。换 Todo 继续失败且没有新 effect。
- causal-writeback。已写回但未扣额恢复原结算,原事项保留 两个 backend 的具名回归覆盖当前写回、外部 ACK 时序、补扣和重放。
- complete-stop。保留原 stop 与 fail-closed 的长值校验 定向 TS 套件区分短 stop、长摘要、同 kind 变化、拒绝和原身份。
关键代码讲解
reconcile_existing_heartbeat_receipt。先取已有 receipt 的 effect。校验同一个持久规划 Todo 并拒绝不同参数。 同一模块的 quota_rollout_settlement_binding 为新回合选定义务。 代码selectCloseoutCandidates。选择原未完成的 replan 结算,兼容旧 Todo 和新义务 binding。尚未写回时,允许正常进入下个回合。 代码reduceUnsettledHostTurnRecovery。按验证过的原 writeback 返回欠账。旧 Todo 生命周期变化不会满足应扣额的 replan。 代码projectSemanticReplanGuard。解析短 stop 和完整摘要,核对类型与 fallback 保守约束。 代码_expected_todo_receipt。历史索引缺少 command Todo 时从同义务的原回执取保留选择。后续代码仍检查原 effect。 代码
对主干的风险 / Risks
| 输入与入口 | 基线 | 当前提交 |
|---|---|---|
| 主干 CLI 写旧 Todo 回执,再跨版本恢复(File/SQLite 实际 CLI) | 实际 frontier 轮换后,旧头退出 1,无法生成原恢复计划 | 同一 Goal 在当前 replan 触发下仍返回原身份,计划一致 |
| 重放选择同一个 Todo 的 replan argv(File/SQLite 前评审头 vs 当前) | 前头两库退出 1,缺恢复方案 | 两库都退出 0,绑定保留 |
| 错 Todo 的 guard(File/SQLite 当前源码) | 原规则要求拒绝 | 两库拒绝,保留原 effect 和零额外扣额 |
| 历史 ACK 后原写回与一次补扣(原生成命令和隔离 File/SQLite) | 前置时序和旧回执需严格验证 | 验证通过时同一原轮写回和补扣只发生一次 |
- PASS 两个原问题的 File/SQLite 跨版本验证。真实 CLI 添加待办触发新 replan 后,两库均能重放原 Todo 计划。对照头退出 1。另一 Todo 一直拒绝。
- PASS 前一 head 拒绝旧 argv 和当前拒绝负例。旧头两库重发相同显式 Todo 报身份冲突,当前退出 0,待办与原绑定保持。异 Todo 和同秒因果负例均通过。
- PASS 真实终态写回、ACK 与原额度。288 通过、1 跳过。覆盖两个后端恢复、历史写回 causality、晚补扣和重试。
- PASS TS 状态机、类型检查与 quick 预合并。TS 244 通过。typecheck 通过,quick 直接与三项自动验证通过。
- UNVERIFIED 与更新后 main 的实际隔离集成。已确认语义实现及相应测试两处合并冲突,需先解决才能复验集成头。
语义与 CI 对齐
原 Goal/Agent/Turn/effect 不变。摘要匹配的是原 stop 全文,已接受 writeback 的原 Turn 才可进入补扣。
原 Todo 准入后,通过原生 CLI 让待办链满足 replan 条件。两库旧头退出 1,候选仍返回原计划。相同显式选择也由退出 1 变 0。不同 Todo、空白 effect 及错误 gate 时间均继续拒绝。
PR 正文说明新准入选择义务和旧 Todo 回执兼容。业务 Todo、纯重规划、写回后补扣的职责在回执绑定和现有机器分支中体现。
远端 CI 按本次评审配置未查询。
我的整体评价 / Verdict
APPROVE。 两类原恢复用例及原扣额时序在所评提交上通过。解决两处主干冲突后再核对集成头。
已保存的两类回执均能用原身份恢复。状态丢失后的原配置可复核,验证范围是本机源码与隔离后端。
操作员可以原样重发选 Todo 的 guard。旧写回继续用原计划,到账一次。
本次实际 diff 影响 CLI、原捕获及宿主使用的工作合同。已检查相关呈现入口,当前提交无前端视图变化。
当前头在其 PR 基点上源码验证通过。与最新 main 的 replan_semantics.ts 及相邻测试有合并冲突。已安装宿主和旧回执在生产中的采用仍待复验。
English verdict: APPROVE. At 88bd338, native File and SQLite replay the original persisted plan, accept the same explicit Todo retry and reject a different one. Writeback and debit preserve the original effect. The verified main merge still has conflicts.
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
) Keep healthy Goal work visible after a typed, registered Goal status failure. Preserve incomplete coverage and source warnings; global and unverifiable failures remain unavailable. Quota remains the execution-eligibility owner. Exact head bb59d18 has a published independent Agent approval and clear review closeout. Source checks, real File/SQLite CLI comparisons and packaged validation establish the changed invariant. The final standard premerge passed six direct and five selected checks. The two historical fixed-archive failures also occur on the immutable base. Hosted CI was not consulted under the current Goal policy; installed-host adoption and large-registry latency remain separate qualifications. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Reject mismatched retained debit identity before replay or receipt repair. The shared TypeScript reader checks persisted bindings and billing terms for modern, legacy file and inline evidence. Both existing CLI entrypoints retain legitimate historical omissions and repair a missing receipt from the original debit without charging twice. Exact reviewed head: 75d0ccd. Independent exact-head approval: review 5920595494. Approval closeout is clear. Validation: 267 CLI cases passed (10 platform skips), 49 TypeScript spend/void cases, control-plane typecheck and standard premerge (6 direct + 18 selected) passed. Independent review additionally passed 45 runtime transaction cases and 20 isolated wheel cases covering same-second, nested and inline contradictions with unchanged retained bytes. No intervening target-main changes affect the five reviewed paths. Required bilingual diff and hygiene checks pass at the unchanged head. The configured workflow skips hosted CI waiting. The owner authorized related reviewed fixes to merge; any admin bypass applies only to GitHub's author-approval/branch policy. Native Windows, real PostgreSQL, installed-host adoption and complete C1 cost/benefit qualification remain separate. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…nal-turn-20261116 Merge the independently reviewed saved-answer reader at 4ab1558 under existing maintainer authorization. Validated the clean integration with main d0ca48d: 142 roundtrip/real-HTTP tests passed; production Dashboard and Chat builds passed; packaged returned-files/answer reader passed, including byte-exact downloads, original-Turn selection, legacy responses and rejection, and zero new model Turns or repeated provider sends. The repository quick premerge and exact-head RFC bilingual check passed. Independent exact-head approval is review 5919978745; no unresolved review threads. The configured merge policy does not consult or wait for remote CI. Previously observed Pages protocol-link, kernel mypy, M2 browser geometry and Windows file-permission failures remain recorded; this merge does not claim those unrelated checks passed. Administrator bypass is limited to the repository review/readiness policy and retains the reviewed head.
… reviews Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Follow the composed writeback for a hard lease and inspect the runtime-owned quota receipt. Keep the legacy split route under test and prove that both settle the original Turn once through the selected CLI. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Co-authored-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…8855) The successor closeout guard appended settlement flags that should-run rejects, and the coverage-backed no-follow-up option did not list its required inputs, so agents assembled them by trial and error. Render the guard with the original Turn only, and project the exact no-follow-up arguments and Vision fields. Signed-off-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-authored-by: xiaobaifly7 <196511160+xiaobaifly7@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…son boundary (#8835) Add §2.2 summarizing the Bitter-Lesson raw-artifact reset boundary and five failure regimes requiring governed control planes, require a Raw-Artifact Reset Baseline under §5.2 Native baseline for episodic scalar/RSI tracks, add §3.8 with the 2026-11 benchmark portfolio priority matrix (P0/P1/P2/Control-Only) and platform constraints, update §17/§18 in EN/ZH mirrors without touching §6.4, and link the updated ranking from docs/research/README.md. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…8866) Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
* Defer original research history when opening a saved case Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> (cherry picked from commit 75d819552c099b52e517538ddf8d957104500716) * Preserve scoped case reading when reopening the desktop workspace Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> (cherry picked from commit 61ec7db796f3aa70aec2305ea3b1a3161c433caf) --------- Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
* docs(blog): qualify the reported Context ON/OFF scores Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> * docs(issue-fix): keep publication link labels on one line Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --------- Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
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
APPROVE。 本轮独立复核提交 1e87c17fba4d70fe37bcd4e9c470f94dce97ef6c,实际目标 main 为 b9f2e2a516b58e62cbb0da6978625388322b5a90。未发现阻断问题;旧版两种恢复缺陷及本次主干集成均有决定性验证。
动机 / Motivation
通过 CLI 或 Codex App 恢复自主重规划的操作者,需要原样重发保存的命令,并结清原回合。
主干先生成 Todo 绑定回执,再添加 15 个真实待办使当前 frontier 变化;前缺陷头按新 replan 重绑而拒绝恢复,新头优先原 receipt,返回相同的原结算计划。
独立 File/SQLite 对照中,主干生成的原计划在新头及重复读取时保持一致,receipt 字节不变且零额外扣额;不同 Todo 继续拒绝。
本次验证源码恢复切片,不证明现用安装宿主、真实模型采用、原生 Windows、完整 C1 任务效果或总成本改善。
已安装宿主的组合恢复、实际模型接续和匹配预算的长期成果仍待原资格 owner 验证。
改动思路 / Approach
已经准入的 Turn 是一次有固定身份的工作回合。它的原回执决定 Todo、effect 和结算顺序;后来出现的待办或重规划不能把它改成新回合。候选先恢复原 receipt,再由共享 TypeScript replan/closeout owner 处理当前上下文、写回与尚欠的扣额。仅调整首次选择顺序无法修复历史回执或已写回待扣额的路径,因此这一组改动构成完整的恢复修复。
原 receipt 保持唯一 settlement identity;现有 TypeScript replan/closeout owner 决定义务与欠额,Python 仅输送、记录和执行已有步骤。仅调 fresh 选择顺序无法修好历史恢复。
本 PR 一并交付新重规划准入、旧回执与相同选择重放、原 writeback/ACK 和欠额接续;不增设第二结算台账或宿主策略。
既有事实来自原 guard 与持久回执,Stop 摘要是原文的派生值;没有新增需要操作者手工同步的台账。Python 仍负责既有输入、持久化和调用,业务身份与欠额判定复用 typed owner。本轮正常合入主干新增的纯 replan 收尾和 coverage-backed no-followup 指引,不创建并行结算规则。
| 触发 | 处理 | 结果 |
|---|---|---|
| 原回执之后出现新待办 | 先核原身份,再读当前上下文 | 原计划可继续,当前重规划仍需后续处理 |
| 同一显式 Todo 命令重送 | 与原已保存选择比较 | 相同选择恢复,不同选择拒绝 |
| 原写回已成功、扣额未完成 | 查原写回及欠扣回执 | 只结原 Turn 一笔;重放不再扣额 |
具体改动 / Changes
相对当前 main 的完整三点 diff 是 15 文件 +946/-148;其中10个产品路径、5个测试路径。相对上一轮3591,13个路径的 git blob 完全相同;另两处保留本轮主干的 no-followup 指引及测试。旧证据只以3591/0c3/75af原版本保留,本次批准依据新的集成执行结果。GitHub仍固定旧 base 59e68906d4082f43fae52e4219e374c5e97539a9、展示92文件 +6443/-1205;这与实际交付范围分别记录,未执行未经协调的 target PATCH。
按已接受规范 docs/architecture/rfcs/agent-loop-effect-interpreter-v0.md,版本 b9f2e2a516b58e62cbb0da6978625388322b5a90 的 M7.2,以及同版本 docs/reference/protocols/loopx-turn-v0.md 的在途结算约束核验。persisted-receipt:最新主干真实 CLI 写原回执,File/SQLite 均在候选中恢复同一完整计划。identical-retry:同一已保存选择可重送,不同 Todo 继续拒绝。causal-writeback:原写回、历史 ACK 与一次扣额按原身份排序。complete-stop:完整 Stop、权限拒绝和停止条件保留,重建上下文不等于完成义务。
关键代码讲解
- reconcile_existing_heartbeat_receipt 从原回执恢复 binding;fresh 准入才从当前 frontier 推导身份。相同的已保存规划 Todo 可作为同一意图重试,冲突选择仍报错。
- projectSemanticReplanGuard 核对短 Stop 或完整摘要/已知合同;未知或矛盾值拒绝。兼容来源只在允许阶段追加,不改原 effect。
- selectCloseoutCandidates 与 reduceUnsettledHostTurnRecovery 共用原回执和写回来源。尚未写回的正常 replan 与已经欠扣额的原回合分开,后者不会被后来 Todo 状态遮蔽。
- _expected_todo_receipt 从同一义务的原回执补足历史索引缺省的规划选择,仍校验原 effect 与因果时序。
对主干的风险 / Risks
最强反例是“恢复得到合法结构,却已换成当前任务或漏掉原 Stop”。本轮用最新主干 CLI 在两种真实本地 backend 生成原 Todo 回执,再经原生 CLI 新增15项待办;主干、候选和候选重试的完整 typed plan 一致。只归一化 checkout 可执行前缀,没有删除身份、顺序、停止条件或诊断。原receipt字节不变,额外扣额为0。先前75af在同类原始 fixture 上返回身份冲突的记录仍保留;本轮没有把历史失败改写成通过。
- PASS 四个 Python 模块共371项,含当前主干纯 replan 后继和写回投影;1项原生Windows专项跳过。
- PASS 三个受影响 TS 套件233项、完整 control-plane typecheck。
- PASS 标准 premerge:6项直接检查、18项选择检查,manual holds为0。
- UNVERIFIED 现用安装宿主、真实模型采用、原生Windows及完整C1同预算长期收益。首次环境代理与依赖查找失败已保留,恢复验证环境后完成上述检查;没有据此归因到PR。
语义与 CI 对齐
本变更扩展已有 replan/settlement guard 词汇,复用原 typed identity 与因果检查;不改变 scheduler apply、ACK 或受保护动作的权限。当前主干生成的 successor guard 仅传原 --turn-instance-id,no-followup 要求 scope coverage、证据与完整 Vision,均在集成头保留并经对应入口验证。没有新可选功能开关,普通原回执恢复保持原可观察合同。远端CI依当前契约未查询。
我的整体评价 / Verdict
长程连续性在所评源码和隔离 File/SQLite 路径得到改善:后续待办变化不能丢失原承诺,重复投递仍只结原回合。用户体验改善为可以原样重试保存的命令,无需新增确认或手改身份。已检查 quota/refresh/spend CLI、生成的宿主合同及原恢复入口;本次没有渲染界面、布局或首屏改动。
现用安装宿主、其他 OS 和真实模型执行未验证;视觉审查不适用。
兼容保留的是仍需结算的持久回执与原意图,不是任意旧请求模式;现有 owner 内的必要恢复逻辑可以保留。完整C1安装、模型采用及成本 qualification 沿原职责继续,批准不替代该验收或合并资格。
English verdict: APPROVE at 1e87c17. Fresh File/SQLite replay preserves the original plan and one-debit semantics; current-main replan closeout and no-followup guidance remain covered. Installed-host and long-horizon qualification remain separate.
The merge-base changed after approval.
…single-agent goal (#8844)
Bind scoped Todo reads to the active Goal lifetime and original creation or first-bind evidence. Keep nested read projections minimal and retain trusted v0 behavior. Independent exact-head review and local PostgreSQL/TLS, package, and integration qualification completed before merge. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Reuse the original-source history projection and shared quote reader in the persistent queue, preserving raw input and literal fallback. Scope queue container styles to keep original numbered lists readable. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Fix the existing phase-budget test fixture without changing runtime behavior or the original communication budget. Independent exact-head review, focused tests, native checks and scoped quality receipt were verified. The benchmark-sensitive manual review hold is retained and addressed by independent review and existing maintainer authorization; final release qualification remains separate. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Align the seven existing package, CLI, manpage and bilingual book identity anchors for the 2.4.0 source candidate. Independent exact-head review, targeted tests, standard premerge and the scoped quality receipt pass. This is source identity preparation; final integrated release qualification and publication remain separate. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Forward the selected registry into the extension CLI and reuse the shared runtime root resolver, preserving explicit storage overrides and ambiguous-default refusal. Validated with 99 tests, 10 paired baseline/head CLI cases, standard premerge checks and the packaged Chat build. Exact-head author-owned review and native merge readiness passed. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
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
APPROVE。 独立核验精确提交 1e87c17fba4d70fe37bcd4e9c470f94dce97ef6c,未发现阻断问题。以下验证来自本轮重新执行,旧批准和作者测试未作为本次结论的替代。
动机 / Motivation
通过 CLI 或 Codex App 恢复被中断回合的操作者。
先准入一个 Todo 回合,随后新增待办使当前工作前沿要求重规划;恢复仍应继续原回合,而不是改绑后来出现的义务。 原 Goal、Agent、Turn、Todo 和 effect 保持;原写回可以继续,重复结算只扣一笔。
本次验证源码 CLI 与隔离 File/SQLite,不代替已安装宿主、真实模型、原生 Windows 或完整 C1 成本验收。
已安装宿主、真实模型接续及匹配预算的 C1 长程成果和完整成本仍待原有资格流程验证。
改动思路 / Approach
原回执是唯一结算身份来源;TypeScript 读回、replan 和 closeout owner 决定义务及欠额,Python 保留既有 IO 与编排。
本 PR 完成新重规划准入、历史回执与相同选择重放、原写回及欠额接续这一恢复切片。 仅修表面参数选择或原始字符串比较,会留下持久恢复、独立等待或后续结算的缺口;新台账和更宽权限均无必要。
原 SettlementIdentity、heartbeat receipt、heartbeatWorkRequalification、typed replan/closeout 与原 ACK 读回可复用;没有增加独立选择台账。 必须保留尚欠结算的持久 Todo/replan 回执与原意图;短 Stop 和长 Stop 摘要有明确兼容读取,而非永久双写或第二决策 owner。对应在途身份全部结清或有正式迁移后方可退役。
具体改动 / Changes
GitHub仍固定旧 base 59e6890,展示92文件;当前实际共同基点 b9f2e2a 的净差异为15文件 +946/-148,其中10个产品路径 +400/-90、5个测试路径 +546/-58。其余77路径逐个 Git blob 与已接受基点一致,未静默缩减审查,也未执行无条件 target PATCH。与 b12608d 的本地组合无冲突并另做集成验证。
按 docs/architecture/rfcs/agent-loop-effect-interpreter-v0.md、规范版本 b12608d82bbf33d64f239e908d946cae360e556b 的既有条款核验:
- persisted-receipt:M7.2 的结算计划和回执绑定原 quota-turn effect,不由后来 Todo 前沿替换。 已以本轮真实入口及对应回归核验。
- identical-retry:原回合可重放;相同显式选择保持原意图,不同身份仍拒绝。 已实现;验证见公开路径
tests/control_plane/test_quota_settlement_cli.py。 - causal-writeback:验证、持久写回和一次扣额按原有因果身份及顺序组合。 已以本轮真实入口及对应回归核验。
- complete-stop:保留取消、权限拒绝、预算与调度/ACK 的独立边界。 已以本轮真实入口及对应回归核验。
关键代码讲解
-
reconcile_existing_heartbeat_receipt:从已持久回执恢复原绑定,fresh 准入才按当前有效动作选身份;同一已保留选择可重试,其他选择拒绝。 -
projectSemanticReplanGuard:验证短 Stop、完整摘要和已知兼容契约,未知或矛盾值拒绝;旧 guard 升级只追加来源,保持原 effect。 -
selectCloseoutCandidates:兼容 Todo 与义务绑定的 admitted replan;只在有验证过的写回时形成欠额恢复。 -
_expected_todo_receipt:同一原义务的历史 ACK 可从回执取保留的命令 Todo;原 effect、时间及因果匹配仍由后续验证保持。
对主干的风险 / Risks
真实 CLI 生成原 Todo 回执,原生添加15个待办,候选连续重放两次;原回执字节不变、无额外扣额。随后按原 in_flight_continuation 写回两次,只产生一笔扣额。
恢复到75af历史 Python 绑定分支时,两种后端均以 heartbeat_receipt_identity_conflict 拒绝;恢复精确源码后通过。其他 Todo 拒绝;错误 Stop digest/Agent/混合义务和历史 ACK 时序由233项 TS及335项 Python 检查覆盖。
PASS:Python 335 项、1项原生 Windows 跳过;TS233项;完整 control-plane typecheck、Ruff、DCO与差异检查。最新 main 组合的纯 replan/写回/结算检查112项通过、10项 Windows 专项跳过。标准 premerge 6项直接及18项选择检查通过,质量回执有效,无 manual hold。
首次“完整 plan 全文完全相同”的核验断言失败已保留:固定主干在前沿变化后也重建 authoring 提示,候选产生同样变化。这里不宣称计划全文逐字不变;另用原回合参数实际执行写回并重放,证实原步骤和一次扣额可用。
语义与 CI 对齐
已有 semantic replan review guard 的可读字段和 admitted-replan 派生事实扩展;默认 Stop 的版本化摘要恢复不授予新动作权限。 新准入的 autonomous replan 绑定义务;已有回执优先保持原 binding;保留的同一 Todo argv 可映射到原义务,真正不同的选择仍拒绝。 差分词汇 advisory 为0个受支持 carrier,但其扫描不涵盖所有动态语义;结论同时依据完整代码、类型及实际拒绝/恢复对照。远端 CI 依配置未查询。
我的整体评价 / Verdict
长程连续性:隔离真实 CLI 的重复读回和后续写回保留原承诺,避免当前前沿变化造成原回合丢失或多扣额。 用户体验:可以原样重发已保存的参数并继续原写回,无需增加确认或手改身份。
原回执是唯一结算身份来源;TypeScript 读回、replan 和 closeout owner 决定义务及欠额,Python 保留既有 IO 与编排。 本 PR 完成新重规划准入、历史回执与相同选择重放、原写回及欠额接续这一恢复切片。
已检查 quota/refresh/spend、生成的宿主合同及完整差异;净改动不包含渲染界面、布局或首屏,视觉检查不适用。 已安装宿主、真实模型、原生 Windows 和长期完整成本未验证。
该源码恢复切片是有用的独立增量;已安装宿主、真实模型接续及匹配预算的 C1 长程成果和完整成本仍待原有资格流程验证。 历史讨论与合并资格由原流程继续处理。
English verdict: APPROVE at 1e87c17. Native File/SQLite preserve the original effect and executable settlement steps; replayed writeback debits once. Installed-host, Windows and full C1 qualification remain separate.
The merge-base changed after approval.
…urce-registry-20261116 Prevent source-rebinding races in Chat cold import
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
已由 #8894 接续;本 PR 以替代关系关闭,未合并。原讨论、提交和历史负证据保留。
两个入口的源码头同为
fbda48745038fc4e5b7a1afa5b70db74a99499c7。本 PR 正常更新头后仍固定旧比较点59e68906d408,展示126文件;新 PR 从main@c9d86165ef建立,已逐项核对实际16文件 +876/-103,且完整本地恢复检查、CQR和标准premerge通过。依据仓库对排他 target 编辑的要求,本次没有执行无人值守 base PATCH、历史重写或临时 retarget。请在 #8894 审阅当前完整新头;旧头及 DISMISSED 批准不继承,新 PR 仍须独立评审与当前合并门。