Repository navigation
Bind replan successor creation and recovery to the admitted review - #10289
loopx-agent wants to merge 3 commits into
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.2-sol · OpenAI · runtime_reported · xhigh
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
[P2] 仅为可运行后继生成 runnable transition。 新恢复的 Vision 路径会把明确 deferred 的 Todo 报为 new_runnable_successor。调用者得到可以结束原 Turn 的提示,但读回显示任务尚待恢复条件,真实 runnable 后继仍可再次创建。 侧栏状态同步
动机 / Motivation
依赖 LoopX 在原 Vision replan Turn 之后执行可运行后继的 Agent 和调用 CLI 的宿主。 Vision 评审已准入,但新工作改变 frontier 后,原 Turn 无法创建绑定后继。 原 Vision review 已准入。加入独立工作改变 frontier 后,用原 Turn 和原义务创建明确等到未来才运行的后继。 恢复合法原 Vision review,创建可运行的绑定后继,保留原 Turn 结算身份和 canonical revision。 Todo add 的 CLI 资格核对、原回执读回、File 与 SQLite 后继创建。 复验了本机 File 和 SQLite。未将误报推断为真实扣额,未重演作者另行组合分支上的并发运行。 基线 0b06d8a。 基线约定
改动思路 / Approach
Todo add 的 CLI 资格核对、原回执读回、File 与 SQLite 后继创建。 新增分支从原 pending receipt 恢复 Vision 评审,检查已存在的 runnable successor,并将当前 provider revision 传给创建 owner。 在创建回执前复用现有 runnable successor eligibility。拒绝未满足资格的显式 replan 后继,或按真实 deferred 状态返回并保持义务开放。保留 File、SQLite 的负例。
具体改动 / Changes
-
PRIMARY_DELIVERY。恢复合法原 Vision review,创建可运行的绑定后继,保留原 Turn 结算身份和 canonical revision。
-
PRESERVE_CONTRACT。仅为可运行后继生成 runnable transition。
-
每次成功创建后继都投影 new_runnable_successor,未对照持久 Todo 的可运行状态。
handle_todo_command -
live frontier 无义务时恢复原 Vision review,再使用同一 canonical Todo revision 处理写入。
_validated_replan_successor_obligation -
读取原 Turn 的 review kind、义务以及 pending 状态。
_original_vision_successor_obligation -
原测试核对 File、SQLite、身份与成功写入,覆盖立即可运行的后继。
test_original_vision_review_accepts_bound_successor_after_frontier_changes
对主干的风险 / Risks
基线 File 和 SQLite 都拒绝这条已失去 live obligation 的请求。 候选两个 provider 均持久化 deferred Todo,同时 CLI 回执声明 new_runnable_successor。接着同一义务仍允许创建并读回另一个 open 后继。
两边 File 与 SQLite 的配对反例各通过两项。候选两组 CLI 关联系列共 51 项通过,git diff --check 通过。
我的整体评价 / Verdict
请求修改精确提交 b825c94。保留已准入 Vision 评审的恢复路径。评审转绿的条件是两个 provider 对未到期的后继给出真实状态,并继续允许立即可执行的合理后继。
English verdict: REQUEST_CHANGES at b825c94. The recovered Vision CLI path emits a runnable-successor receipt for a canonically deferred Todo on both providers. Qualify the durable successor before reporting the transition.
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.2-sol · OpenAI · runtime_reported · xhigh
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
原评审提出的反例在当前提交已修复。
动机 / Motivation
通过 LoopX CLI 恢复原 Vision 或委派重规划的 Agent。 上一候选会把已延期的 Todo 回报为 runnable,候选基线在 frontier 变化后拒绝原 Vision 后继。 原 Vision review 已准入后,新的独立 Todo 改变 frontier。分别提交未来才运行的后继、普通 open 后继,并验证候选和精确依赖组合。 原 Vision 可以创建真正可运行的后继。原委派有精确 request revision 时可以在写回前重新验明后继仍满足资格。 Todo CLI、原回执、canonical File 与 SQLite,以及另一个精确依赖的组合验收。 组合 checkout 只用于验证 #10291 生产补丁依赖。分支单独运行时,委派型创建需要该依赖提供修订。并发写入未重复作者独立脚本。 基线 0b06d8a。 基线约定
改动思路 / Approach
Todo CLI、原回执、canonical File 与 SQLite,以及另一个精确依赖的组合验收。 在既有 Todo preview 的同一个 provider revision 下调用恢复条件和 runnable 判定,随后将原回执交回已有资格 owner。 实际入口走通后,再用原回执或既有侧栏存储确认结果稳定。
具体改动 / Changes
-
PRIMARY_DELIVERY。原 Vision 可以创建真正可运行的后继。原委派有精确 request revision 时可以在写回前重新验明后继仍满足资格。
-
PRESERVE_CONTRACT。原回执只能认证当前可执行的后继。
-
提交前验证 provider 预览;未满足的恢复条件和延期状态拒绝,仍可用原资格创建 open 后继。
require_runnable_recovered_successor -
绑定原 Turn 前先核对 runnable,dry run 同样核对资格。
handle_todo_command -
仅有原请求修订并且持久任务仍可执行时,交给 canonical owner 结算。
receipt_bound_delegation_successor_candidate -
同一用例分别验证单独候选拒绝缺证据,组合候选正确恢复或拒绝已延期后继。
test_exact_delegation_review_authorizes_successor_and_uses_current_proof
对主干的风险 / Risks
上一被评提交在 File 和 SQLite 都持久化 deferred,却返回 new_runnable_successor。 上轮复现 当前两种 provider 都拒绝 deferred 与尚未到期的 open 后继,dry run 同样拒绝,允许真正可执行的后继。组合 #10291 的生产改动后,原委派能按同一修订结算;随后延期后继会取消该资格,零扣额。
精确候选 51 项 CLI 关联系列通过,单独及组合各 4 项委派路径测试通过,git diff --check 通过。
我的整体评价 / Verdict
同意精确提交 c3cceed。本次独评复核了真实入口与上轮反例,精确提交达到本次复审目标。后续如改变分组导航或 provider 写回资格,应保留本轮配对反例。
English verdict: APPROVE at c3cceed. The recovered Vision path now rejects non-runnable successors on File and SQLite. The independently composed delegation path preserves revision binding and rejects invalidated successors without spending.
Problem
An admitted replan review can outlive its live frontier. Adopting a delegation can change the frontier before the receiving agent creates a successor. When the new request is the sole replan trigger, a bound successor also needs to survive reconnect and remain verifiable from the current Todo store before closeout.
Change
Todo authoring uses the original unsettled review when the unscoped frontier no longer names it. The existing replan owner validates the receipt-bound source. A provider preview must show a currently runnable Todo before recovered authoring may commit. The same canonical Todo snapshot prevents duplicate authoring, and its provider revision fences competing writes. When the receipt carries an exact delegation revision, quota recovery and writeback both validate the bound runnable successor against current canonical work before returning the original settlement.
The Vision-backed authoring fix stands on its own. Delegation-only authoring activates with the request revision witness from #10291. A legacy receipt without that witness remains readable and cannot authorize this path.
Validation