Repository navigation
Keep terminal returns pending until their message identity matches - #9222
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
[P2] 终态回执冲突被投影成仍在等待发送。 File 与 SQLite 的私有原会话中,匹配原请求和 Turn 的真实回复仍在。终态回执缺标识或标识指向另一回复时,四个准确头对照均留在 await_return_delivery。现有返回 worker 每组处理 0 条,回执字节和消息均不变,App 继续显示待处理。 复用已有证据恢复分支,明确标出终态回执的身份冲突及可走的原会话验真路径。仅在匹配原消息、请求、Turn 和结果时重新确认原证明,保留原回执和实际结果,避免重发。 读取位置 返回 worker
动机 / Motivation
已在原会话收到结论的操作者,以及需要依据 CLI 未完成事项决定下一步的 Agent。 主干只看存储的 delivered 标志,错误或缺失的消息标识会让事项从两处消失。 File 与 SQLite 的私有原会话中,匹配原请求和 Turn 的真实回复仍在。终态回执缺标识或标识指向另一回复时,四个准确头对照均留在 await_return_delivery。现有返回 worker 每组处理 0 条,回执字节和消息均不变,App 继续显示待处理。 回执冲突应使两处都保持 pending,指向可验证的原会话恢复路径,并避免重复发送。 本轮验证原会话结果的终态回执、App 请求清单和 CLI Agenda。正式安装、Feishu 与远端 CI 各自保留验收。
改动思路 / Approach
同一个 TypeScript 读取器为 App 和 CLI 生成结果状态。返回 worker 持有发送和确认的所有权,发现终态冲突需要从这条边界给出一致处理。 保留现有回执身份和返回 worker,只调整本 PR 涉及的冲突状态及恢复提示,沿用原消息可核验条件。 错误标识已经不会被展示成已送达。用现有证据恢复分类表达冲突,保持只读入口与发送分离。
具体改动 / Changes
评审当前提交 0c2fb28 与当前主干 b4e1ded。6 个文件,新增 106 行、删除 24 行。 核对两个读面共用状态、原生 worker 的终态规则、消息身份和 peer 结果边界。#9204 的已批准范围是 Inbox 返回读取预算,分别验收。 #9204
关键代码讲解
- 从请求和结果键复用原有确定性消息身份。 returnMessageId
- 排除错误和缺失的身份,向结果状态投影 explicit_unverified。 replyStatuses
- 把未确认的终态归到 await_return_delivery。 projectDelegationTurnItem
- 返回 worker 按持久终态筛选,已有 delivered 状态不进入处理。 pendingDelivery
- App 从相同批次消费状态与待处理记录。 _read_receipt_batch
A6 的现有身份和 peer 路径保留。A8 和 A28 的恢复与明确行动仍有缺口。A10 更广的 Feishu 和打包 App 仍待验证。 接受规范
对主干的风险 / Risks
真实 HTTP 请求、CLI Agenda 和返回 worker 对照覆盖 File 与 SQLite。精确头的正常终态无滞留,错误或缺失标识确实重新显露;主干同样四个反例均将请求隐藏。99 项定向 Python 与 84 项 TypeScript 检查通过。 quick premerge 的 4 项直接检查、Python 编译和 2 项目录检查通过。源头与当前主干可无冲突合并。 File 与 SQLite 的私有原会话中,匹配原请求和 Turn 的真实回复仍在。终态回执缺标识或标识指向另一回复时,四个准确头对照均留在 await_return_delivery。现有返回 worker 每组处理 0 条,回执字节和消息均不变,App 继续显示待处理。
语义与 CI 对齐
当前读面已修复错误的已送达状态。同一原消息存在时,重复唤醒现有 worker 仍无法完成该项。没有发送副作用,两个存储的回执和消息保持原样。未查询远端 CI,也未运行已正式安装 App 或真实 Feishu。
我的整体评价 / Verdict
请求修改。保留当前对错误消息身份的保护,并让 Agenda 指向真实的修复路径。复用已有证据恢复分支,明确标出终态回执的身份冲突及可走的原会话验真路径。仅在匹配原消息、请求、Turn 和结果时重新确认原证明,保留原回执和实际结果,避免重发。 本次更改服务端状态与 Agenda。现有界面样式及打包视觉未做复验。
English verdict: REQUEST_CHANGES at 0c2fb28. The new view restores visibility but queues the operator to await a delivery the existing worker skips as terminal, even when the original reply is still present. Expose scoped evidence recovery without duplicating the original send.
…sages 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
[P2] CLI 详情在原会话回执核对前显示已送达。 四组 File/SQLite 对照中,App 和 CLI 待办仍显示回传待核对时,manager-inbox status 已报告 delivered。 操作者从待办打开详情后会得到相反结论,可能提前停止跟进。让详情在完成原有作用域检查后读取和 App、CLI 待办相同的 TypeScript 回执投影,并给三个正常入口加入同一组核对前后断言。 投影分支 详情读取
动机 / Motivation
在原会话等待委派结论的用户,以及通过 CLI 查询该委派是否仍需跟进的操作者。 旧提交能看出回执的消息标识有问题,但待办把它归为等待发送,返回进程也不会再核对这条终态回执。 当回执没有原消息标识或指向另一条消息时,原会话里已有结果仍可核对。修复后,App 和 CLI 待办会保留这项工作,直到从原会话确认已有消息,然后自动结束待办。 同一请求的清单、待办和详情在核对前应都提示待核对,确认后都显示已送达,用户只收到一次结论。 本次修复覆盖私有 Chat 中已留存的终态结论、App 委派界面与 CLI 读回。外部提供方和 peer 消费仍走原路径。
改动思路 / Approach
返回进程在原会话和当前授权下验证已保存的消息,读取端消费同一份验证事实。 保留独立核对证明与现有返回事务,在本 PR 内接齐已暴露给操作者的详情读面。 当前实现把原回执、结果正文和返回路由绑定到一条独立证明。原会话匹配后,worker 保存证明,让 App 和 CLI 待办重新计算状态。把同一读取结果接到 CLI 详情,可以解决报错前后的不一致,也能沿用原有授权范围。
具体改动 / Changes
评审提交 550dcad7da45fa0320b4a0d462fc2064fef95404,对照合并基点 b4e1ded37d4ecf1d43b788cf9d870d3e1020d3ab 和上一评审提交 0c2fb28ccfc0ff6b3dc80d8cda89b1024fbeee6a。12 个文件新增 319 行、删除 40 行。生产变更涉及返回事务和回执证明、App 与 CLI 的读取适配,以及委派界面的状态和原会话详情。作者给出了与 #9204 的源码组合验证,提到三处文件重叠。组合结论沿用作者证据,本次独立测试在 #9222 单独提交上完成。 RFC 接受标准 #9204
关键代码讲解
scanPrivateReadback只把符合私有原会话条件、尚无匹配证明的终态结论交给原返回事务。普通排队和已有提供方凭证走保留分支。 worker 扫描_deliver_return通过已授权路由和确定性的消息 ID 读取原会话,再经现有事务写入证明。这个分支不会追加会话消息,也不会调用外部发送器。 原会话恢复observeTerminalReturn校验原 Turn、消息身份、角色、来源、正文和时间。证明绑定回执、结果和路由,对其中任一记录的替换会要求重新核对。 证明契约replyStatuses消费证明并向 App 和 CLI 待办提供explicit_unverified或delivered。CLI 详情还从旧回执读取裸状态。 共享读取 CLI 详情returnNeedsVerification用现有recover_evidence和manager_return_payload_conflict显示「回传待核对」,普通读取失败依旧使用原文案。 界面状态
规范映射。 A6 在本差异内保留既有请求、结果和 peer 消费身份。A7 的重复执行保护通过本地回执和消息字节对照,本轮覆盖该分支。A8 的私有原会话核对已实现。A10 的已授权读取状态一致性和 A28 的 CLI 原始详情同状态要求还有上述缺口。A10/A28 中的真实 Feishu、打包键盘及更广规模验证待验。
对主干的风险 / Risks
PASS 211 项定向 Python、83 项 TypeScript、控制平面类型检查和本地 quick premerge 通过。 普通已核验终态、正常排队、原会话正确回传、peer 消费与授权限制的定向检查通过。 四组均只核对一次,第二次处理零项,原回执字节和会话消息不变。原消息 Turn 或文本不符的仓库测试也保持待核对。
FAIL 四组 File/SQLite 对照中,App 和 CLI 待办仍显示回传待核对时,manager-inbox status 已报告 delivered。 在旧提交中,详情已沿用原始 delivered,旧待办停在 await_return_delivery。本提交修好了待办和 worker,因而有了可执行的核对路径,详情却仍跳过它。核对成功后,App 的送达时间来自原会话消息,详情仍显示旧回执时间。
UNVERIFIED 截图来自合成 SQLite 工作区,本次独立执行覆盖 HTTP、CLI 和本地返回进程,打包交互、键盘流程、真实 Feishu 与远端 CI 未独立验证。
语义与 CI 对齐
这条新分支按结构化身份和现有状态启用,没有新增设置、激活入口或命令。新增的私有核对记录带本地 schema,投影继续沿用注册的交付状态、错误和待办步骤。File 和 SQLite 都通过了原消息不匹配的保护、一次性核对和无外部发送检查。远端 CI 本轮未查询,本地检查和远端状态分别作为证据。
我的整体评价 / Verdict
请求修改。长期执行方面,旧问题已关闭,返回进程现在能核对原结果并恢复推进。用户体验方面,从待办进入详情会在核对尚未完成时看见已送达。让详情在完成原有作用域检查后读取和 App、CLI 待办相同的 TypeScript 回执投影,并给三个正常入口加入同一组核对前后断言。 复审时按同一请求核对顺序检查三个读面,同时保留事务的一次性验证和原会话权限边界。
对比了作者提交的前后打包截图。冲突行从「待送达」变为「回传待核对」,相邻状态与分页仍可辨认,窄屏展开能看到原问题及一条结论。 截图来自合成 SQLite 工作区,本次独立执行覆盖 HTTP、CLI 和本地返回进程,打包交互、键盘流程、真实 Feishu 与远端 CI 未独立验证。 桌面截图 窄屏截图
English verdict: REQUEST_CHANGES at 550dcad. Private return recovery works without resend. Four File/SQLite checks show detailed CLI status reports delivery before the shared projection verifies the receipt. Read the same typed projection in the detailed CLI path.
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
动机 / Motivation
管家与委派发起人在原私有对话核对已完工的结论回传。 旧提交 550dcad 的 App 和 CLI agenda 显示待核对时,manager-inbox status 仍把同一条结论显示为已交付。 缺失或冲突回执地址在 App、CLI agenda 和 CLI 详情同步显示待核对,确认后沿用原消息的交付时间。 当前页在原有 Goal/受众过滤后统一读取既有类型化回传投影,原始消息只读恢复一次。 本轮以现有打包截图核对布局,并独立使用当前源码 HTTP 和 CLI 验证状态。未独立重跑安装版 Desktop、真实飞书或 Windows。
改动思路 / Approach
保留回传 worker 和 App/CLI 共用的类型化 Inbox;用旁路证明绑定原 Router、回执和原始消息。 只有私有 Chat 可以使用原消息证明。Peer 和外部 provider 沿用原有确证路径,CLI 先核查请求范围再读回执。 在过滤后的有界页复用已有状态交易,避免把展示层再做成独立判定源。
具体改动 / Changes
准确头 7f5a657,merge base b4e1ded,14 个文件,+356/-44。按当前准确头复审原发现,旧头失败的同一独立用例在当前头修复。 按修订 b4e1ded 的现有规范核对各项要求。 目标规范
关键代码讲解
-
CLI 详情 先验证 Goal 和可见性,再将当前页交给类型化投影。
-
统一状态 识别冲突,原时间必须由可验证证明读回。
-
A6-A7-revision 原回执和 revision 的身份独立,重复运行保持单次确认。
-
A8-private-recovery 重启后只用原私有结果继续确认。
-
A10-A28-projections App、CLI 和受众范围一致,待核对行仍可打开原对话。
对主干的风险 / Risks
同一独立用例在旧头四次失败,在当前头四次通过。真实 App HTTP、CLI agenda 和 manager-inbox status 在 File 与 SQLite 上同报待核对;找到原消息后恢复原始交付时间,agenda 随即清理,回执及原对话不变,第二次 drain 处理数为 0。 原结论的 message_id 缺失或与派生 ID 冲突时,三处均不把它当作已交付。现有错误 Turn、错误 payload、其他 revision、无权限及普通返回路径的测试均通过。 用当前准确头跑 Python 注册工作区集成、TypeScript Inbox/return transaction、标准 premerge,并读回同一轮日志的原回执和原始时间。 60 项 Python、83 项 TypeScript、控制面类型检查及源码标准 premerge 通过。与已取证 main 02fd18d 的三方合并无冲突。PR 描述保留其 Windows 共享研究 fixture 的失败记录;本轮未读取远程 CI 或独立归因该失败。
我的整体评价 / Verdict
批准。保留回传 worker 和 App/CLI 共用的类型化 Inbox;用旁路证明绑定原 Router、回执和原始消息。 只有私有 Chat 可以使用原消息证明。Peer 和外部 provider 沿用原有确证路径,CLI 先核查请求范围再读回执。 当前提交修复此前 CLI 详情误报,复用原回执并保持待核对状态的可见性。
复看 1440 px 和 390 px 的打包界面截图:17 条混合记录中,回传待核对和待送达能区分;窄屏长标题换行后仍露出单行状态,展开后仍能读到原问题和结论。截图修订为 550dcad,已核对当前头的 Dashboard 文件树完全相同。 本轮以现有打包截图核对布局,并独立使用当前源码 HTTP 和 CLI 验证状态。未独立重跑安装版 Desktop、真实飞书或 Windows。 桌面默认 窄屏默认 窄屏展开
English verdict: APPROVE at 7f5a657. Approve the exact head. File and SQLite now agree across App, CLI agenda and CLI detail, and recover the original timestamp without replaying the return. Local premerge passed; remote CI and installed Desktop were not independently rechecked.
What changes
The App request list and CLI unfinished-delegation agenda now verify that a terminal return receipt names the message derived from its request and result key. A missing or conflicting identifier puts the request in Return needs verification. The same row opens the original conversation.
For private Chat, the existing return worker reads the saved message from the original session. It checks the message identity, original Turn, exact result payload, and current source grant. It records a separate proof tied to the original receipt, result, and route. The original transcript and receipt stay intact. Missing or mismatching evidence keeps the request open. This recovery uses private Chat evidence. External returns and peer acknowledgements continue through their own evidence paths.
This addresses the independent review finding. The App inventory, CLI unfinished-delegation agenda, and
manager-inbox statusdetail all read the same typed return projection. The CLI detail applies its existing Goal and audience checks before reading the resulting page. While proof is missing, the detail shows the pending verification state without a delivery timestamp. After confirmation, the detail and App show the timestamp of the original message.Validation
550dcadfound that CLI detail showed delivery while the App and CLI agenda still required verification. The extended regression reproduced this on both File and SQLite.7f5a657f768732d1afc2d49b5fd92335d2a09a69, both stores agreed across App HTTP, CLI agenda, and CLI detail while the wrong or absent receipt identifier was still unresolved. After the worker found the exact original message, App and detail reported its saved timestamp and the agenda cleared. Wrong Turn and result text stayed unverified. The original receipt and transcript bytes were preserved, and repeating the worker run performed zero additional deliveries.loopxexecutable in both stores. The packaged frontend asset bytes match550dcad. Only the bundle manifest records the updated TypeScript source.de5a83dpassed 89 TypeScript tests and both File/SQLite cases. The composition reuses the prior three-file conflict resolution and adds the current patch. The branches are open for separate review.550dcadfailed in the shared research fixture withWinError 10038. The fixture is byte-identical on that head, current head, and main. #9218 addresses that fixture and passed its native Windows check.d316980with the host interaction refactor, the composed source installation and isolated wheel each completed eight fresh guard cycles on both File and SQLite. Removing just the separate readback proof put the same result back in Return needs verification in App, CLI detail, and the host's required Inbox context. The sixth normal cycle was followed by the configured periodic review. Its guard retained the same pending request and accepted the evidence-linked review decision under the existing Todo. The worker then rebuilt the same proof from the original saved message. The next freshly admitted guard cleared the request, and App and CLI showed the original delivery time. All four runs kept the receipt and transcript bytes intact and made zero external sends.resume_latestrequest to model an unavailable archived executor. The delegation interactions made no writes, and the original session, transcript, and receipt were preserved.6720392, which includes the Chat action refactor, this head composed without conflicts. The independently installed local composition passed 94 Python cases across App requests, workspace selection, and the manager host, plus 83 TypeScript transaction cases. The Chat bundle and control-plane typecheck passed. On File and SQLite, App HTTP, CLI agenda, and CLI detail stayed pending while the original message was inaccessible. When it became available, the return service recovered the original timestamp and could restore a missing proof without mutating the conversation or its receipt. The fixture made zero external sends.WinError 10038failures in the same shared research fixture. GitHub review decisions still refer to older commits. Current-head independent review, remaining hosted checks, formally installed Desktop, and live Feishu qualification are open.Visual evidence
Packaged Chat in Chromium with a synthetic SQLite workspace, 17 pending delegations, and mixed pending, queued, and verified history. At 1440 px the conflict has its own status. At 390 px the affected row wraps, and the original conversation shows the exact question and result once. The verified row moved to history and the neighboring queued return stayed pending. The disposable fixture declined browser session creation during startup on both versions.
Before at 1440 px (0c2fb28)
After at 1440 px (550dcad)
Before at 390 px (0c2fb28)
After at 390 px (550dcad)
Original conversation at 390 px (550dcad)