Repository navigation
Conversation
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.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
从干净 checkout 运行打包安装门禁的维护者。 smoke 只打包运行材料,归档内没有 dashboard 源码。冻结基线也没有预生成的 Chat bundle,解包后尝试构建时退出。 候选在归档前构建并核验 Chat bundle。临时目录完成本地归档安装,launcher 使用选定解释器,Doctor、发布清单、技能及 man page 的断言通过。
验证使用独立 checkout、临时安装目录和本地归档。复验限于 macOS arm64,构建依赖按锁文件读取。
改动思路 / Approach
两个文件新增 14 行、删除 2 行。新增归档准备上下文,复用既有校验和进程锁。 scripts/chat_bundle.py 持有既有排他锁。临时归档通过现有 installer 和 Doctor 核对内容。
两个 context manager 按进入的逆序关闭,tarfile 完整关闭后才释放 Chat 构建锁。
具体改动 / Changes
- COLD。没有现成 Chat bundle 的 checkout 能通过真实临时归档安装。 独立验证通过。 codex-cli-packaged-install-smoke.py
- LOCK。归档写入期间阻止同一 checkout 的并发 bundle 写入。 独立验证通过。 chat_bundle.py
关键代码讲解
- 归档和 bundle 准备共用同一上下文,启动真实临时安装。 packaged install smoke
- 使用同一把构建锁,准备 bundle 后直到归档结束才释放。 prepare_archive_bundle
- 安装使用预构建验证入口。 prebuilt runtime
对主干的风险 / Risks
40 项 Chat bundle、launcher 和源码启动回归通过。 Standard premerge 的 5 项直接检查和 6 项选中检查通过。 原生跨进程锁探针在归档上下文持有期间等待超时,退出上下文后立即可取得同一锁,期间 bundle 清单摘要稳定。
第一次离线构建缺少一个锁定的 Vite 包,取齐依赖后的冷启动实测通过。锁探针另行验证了归档时的跨进程排他。
我的整体评价 / Verdict
通过。 冷归档安装现可独立验证,bundle 准备与归档写入共用原构建锁。真实安装和锁竞争均已复验。
本结论绑定上述精确提交和冻结基线,覆盖本次改动触及的执行路径。
English verdict: APPROVE at eec516e. The cold source archive now installs through the real packaged path. The archive holds the Chat build lock while it is written, and the previously missing-bundle baseline fails as expected.
…0060-queue-current Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Goal and delivered outcome
The packaged installer smoke failed from a clean checkout. Its archive includes the runtime but omits the dashboard build sources, and a fresh checkout has no generated Chat bundle. This made the smoke depend on another installation check building Chat first.
The smoke now prepares the Chat bundle with the existing shared build lock and holds that lock while capturing the archive. The archive installs through prebuilt bundle verification and still exercises the selected interpreter, Doctor, release manifest, skills and launcher.
Author declaration
loopx/canary/core_domain_profiles.pyand the packaged validation in the distribution split RFC, §9.Validation
bundle-manifest.jsonnor dashboard build sources.eec516e98d, all 40 existing Chat bundle, launcher and source-bootstrap tests passed.install-update. Both installation smokes ran in parallel from a checkout without a generated Chat bundle on macOS arm64 using the local npm cache.This change makes the cold archive check reproducible for the install ownership work in #9646 and the split release assembly in #9876.
Review follow-up
Revision
c2a76221f2againstmain@33388bda9a. Synced with current main. All 8 Chat bundle and launcher tests passed. The archive-install smoke also passed starting without a built Chat bundle in the checkout. It built and verified the bundle, archived it, and installed to an isolated temporary profile.