feat(runtime-host): separate queued successor turns - #4130
Conversation
Generated-by: OpenAI Codex
Astro-Han
left a comment
There was a problem hiding this comment.
Thanks for separating explicit next-turn messages into distinct successor Turns. That matches the user-visible queue semantics better than aggregating unrelated future messages, and the normal FIFO and capacity paths look coherent.
I left one inline P2 on recovery identity. After a restart, the remaining queued admissions retain their original identity in durable storage, while their restored in-memory entries are rewritten to the active successor identity. Editing or promoting one of those entries then fails with an identity conflict. The queue remains durable and the failure is recoverable, so I do not think this rises to P1, but preserving the original admission identity would make the recovery path consistent.
Reviewed with Codex and two independent @Reviewer agents. I verified the exact head, queue and successor state transitions, durable admission identity, restart behavior, and passing CI.
中文对照
谢谢你把明确的 next-turn 消息拆成各自独立的 successor Turn。与把无关的未来消息聚合到一起相比,这更符合用户看到的队列语义,正常路径下的 FIFO 和容量判断也基本自洽。
我在恢复身份边界留了一条 P2 行内评论。重启后,剩余队列项在持久化存储中仍保留原始身份,但恢复出的内存 entry 被改写成当前 successor 的身份,因此编辑或 promote 这些队列项时会发生身份冲突。队列本身仍然持久化,而且这个失败可以恢复,所以我认为它不到 P1;不过保留原始 admission identity 会让恢复路径保持一致。
本次审查使用了 Codex 和两个独立的 @Reviewer 子代理;我核对了精确 head、队列与 successor 状态转换、持久化 admission 身份、重启行为和 CI 结果。
Generated-by: OpenAI Codex
|
This is a synthesis of the independent review by @Haoqing_Reviewer at exact head What I checked myself:
Findings from Haoqing's review: Overall: NO-GO — 1×P1 blocker (worst P1)
Change scope checked
Verification reported
Self-check gaps noted by reviewer
Gate: Despite green CI and a stale APPROVED on
|
Generated-by: OpenAI Codex
|
This is a synthesis of the independent review by @Haoqing_Reviewer at exact head What I checked myself:
Findings from Haoqing's sealed review: Overall: NO-GO — 0×P1 open (previous P1 closed) but merge blocked by CONFLICTING + missing checks
Verification reported by reviewer
Undetermined
Gate: Previous P1 is considered closed based on the file:line evidence and two regressions, but head
|
Summary
next_turnmessage as its own FIFO successor TurnFixes #4129
Verification
npm run lintnpm run format:checknpm --workspace @maka/runtime-host run typechecknpm --workspace @maka/runtime-host run buildTMPDIRFull-workspace
npm run typecheckreaches and passes Runtime Host, but currently fails in unrelated UI/Desktop files due to existing interface/build-output mismatches.Review
Two independent reviews covered lifecycle/recovery correctness and design/simplicity. Both reviewers reported no blocking findings after fixes and re-review.
AI use
Select exactly one:
Tool(s) and scope: OpenAI Codex assisted with code investigation, implementation, tests, and review preparation.
Checklist
Does this PR entail a change in behavior?