Skip to content

Preserve original Vision settlement after linking a delegation - #10280

Open
loopx-agent wants to merge 1 commit into
mainfrom
codex/c1-retain-delegation-review-20261206
Open

loopx-agent wants to merge 1 commit into
mainfrom
codex/c1-retain-delegation-review-20261206

Conversation

@loopx-agent

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

Copy link
Copy Markdown
Collaborator

Goal and delivered outcome

An idle agent can receive a new delegation and start a bounded Vision review. Linking the request to the resulting Todo removes the inbox planning trigger. The original review then encounters an identity conflict on writeback because its admission receipt lacks a recoverable review policy.

For a review containing an ordinary Vision gap and a typed incoming delegation for that same agent, the admission receipt now preserves the existing Vision outcomes and complete stop condition. The original obligation and Turn still own settlement. The successor selection remains on the normal Todo entry point after the prior Turn settles.

Author declaration

  • Written by an OpenAI Codex model agent.
  • Implemented against the shared Vision and quota policy at base 7ac233da3cfd468b36f44495e6dc4f4245449058.
  • The regression covers the existing policy and persisted receipt shape. Invalid claimant or request revision witnesses, incomplete review coverage, and mixed acceptance-hold duties stay outside the scalar recovery rule.

Validation

Revision 1583d543eb482ea2b9f7332ce27fee7a567f7a9b. Synthetic constraints on isolated File and SQLite authorities, using the real CLI.

Check Result Evidence
Failing-before regression Passed Base emits no recoverable review policy for the mixed trigger. On a live CLI fixture, creating and linking work succeeds but original writeback rejects its obligation identity.
End-to-end receipt and successor Passed In both providers, a request with a recorded remainder stays out of planning. A fresh request triggers replan. Ordinary Todo creation and linkage feed the original evidence-linked Vision writeback. A new wake holds until the original debit, then selects that exact Todo. Replaying debit adds no slot.
Independent and composed author paths Passed Same receipt and normal linkage exercised on this head alone and with the separate native context, short-wake, and empty-frontier proposals.
TypeScript and local premerge Passed 44 replan semantic tests, control-plane typecheck, and quick premerge.

The typed successor-creation option has a separate live-obligation validation path. The exercised author route is the ordinary Todo action and original Vision settlement projected by the guard. Historic receipts with missing review evidence retain the strict recovery path. UI impact is none. The current commit has independent approval. Installed adoption remains open.

Native Codex App Server qualification

The same real Codex App Server thread first observed the waiting request and then received a fresh unlinked request through the scoped inbox. The native guard emitted both the Vision gap and the typed incoming-delegation trigger. In the admitted replan, the caller read the exact request, adopted it, created and linked an ordinary Todo, then invoked the writer from the original signed capture.

Both File and SQLite reproduced the main baseline identity conflict at that writeback, with zero durable writes and zero debits for the rejected replan. Applying only this change to the same main baseline restored the original writeback in both stores. The composed C1 candidate also passed. Each successful replan recorded one admission, one writeback, and one debit. A fresh native admission then selected the newly linked Todo and verified the scoped artifact. The already held request retained its published wait condition, recorded decision, and request state.

Inference used a scripted local Responses endpoint. Native scheduling, inbox linkage, authorizing receipts, and artifact readback used the real entries. This records isolated fixture behavior. Model judgment, paid execution, and adoption in the default installation remain separate qualifications.

The native successor also completed its scoped result on the composed candidate after applying main's #10315 changes. With File and SQLite hard leases, it wrote the result and ran the declared validator once. Its terminal receipt contains validation, durable writeback, a single debit and terminal closeout. A separate native requester session then independently verified the total and artifact digest, consumed the returned conclusion in its own admitted Turn, and confirmed that the conclusion left its pending Inbox. The same read in the soft-claim fixture displayed the result without exposing a consumption command. The requester read and acknowledgement added zero quota debits.

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

@BigDataDZ BigDataDZ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

独立评审(native Windows / Node 24.20)——APPROVE

精确核对 head:1583d543e。

本机复测(非沿用作者数据):tests/control_plane_ts/replan_semantics.test.ts → 44 passed / 0 failed;把同一个测试文件放回 main 基线 811c1a1f6 → 新增的 "linking an incoming delegation keeps its original Vision review settleable" 如声明失败——修复前后的对照成立。

代码核查:混合触发识别的收敛条件严格——每个 trigger 必须是 vision_acceptance_gap,或同 agent_id 且 frontier_revision 匹配 sha256:[1-9]\d* 形状的 unlinked_incoming_delegation;且仅在 receiptReviewKind 返回 null 时兜底(已有类型化义务不覆盖)。/^[a-f0-9]{64}:[1-9][0-9]*$/ 的形状门保证旧格式/畸形 revision 不会混入 scalar 恢复规则。负面断言(trigger_count: 3 等)与 identity-conflict 抛错路径都在测试内。

CI:该 head 上 kernel-static-checks/checks/merge-gate 红(main 仓库级状态),Python 分片按两级门控策略跳过、无完整套件结果。按既有先例(#9435/#10247):本机可验证的一切通过,直接批准。

未验证:真实 Lark/收件箱端到端(本 PR 的 synthetic 约束范围与作者声明一致);POSIX 运行。

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.

2 participants