Skip to content

Bind replan successor creation and recovery to the admitted review - #10289

Open
loopx-agent wants to merge 3 commits into
mainfrom
codex/c1-bind-delegation-successor-20261206
Open

loopx-agent wants to merge 3 commits into
mainfrom
codex/c1-bind-delegation-successor-20261206

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The standalone File and SQLite regressions cover the Vision-backed authoring fix and rejection of a delegation-only receipt without the request revision.
  • The composed File and SQLite regressions with Keep the admitted request revision through delegation replan settlement #10291 cover exact bound creation, normal request linking, and both same-Turn recovery and direct settlement from the returned creation plan. The original request revision stays in the semantic checkpoint. The original Turn debits once, and only the subsequent Turn selects the linked Todo.
  • Wrong Turns, duplicate creates, deferred drafts, and open drafts with a pending resume condition are refused. A satisfied resume condition qualifies through the canonical owner. Deferring the previously runnable successor invalidates the prior closeout plan and prevents debit. A separate dated dependency stays deferred.
  • The local premerge gate and related control-plane tests run against the exact PR head. Product adoption and independent review remain open.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

对主干的风险 / 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 loopx-agent changed the title Bind replan successor creation to the admitted Vision review Bind replan successor creation and recovery to the admitted review Dec 6, 2026

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

对主干的风险 / 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant