Repository navigation
Conversation
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…-python-runtime-owner-20261130 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
通过 pip 安装依赖型 LoopX 套装并使用 Doctor 的用户需要可核对的运行归属和能维持套装可用的升级指引。只装 Core 或单体 wheel 时,运行文件由原 RECORD 识别。加入仅含依赖的同版本 loopx 元包后,旧逻辑仍把元包当单体,深度 Doctor 和 Dashboard help 失败。 让同版本的干净套装从 Core 读回运行身份,同时保证 Doctor 提供的操作会维持套装可用。 现有运行归属、CLI 路由、Doctor 指引和服务指纹。公开发行与迁移仍属于 #5072 的单独验收。
在干净 pip 环境装入同版本 Core、Workspace 和依赖型 loopx 元包,再照 Doctor 给出的升级命令执行。 用真实源码 wheel 和本地生成的元包。安装后深度 Doctor、Dashboard help 和 pip check 都通过。 Doctor 给出只升级 loopx-core 的 pip 命令。pip 返回 0,但只把 Core 从 2.4.1 升到合成 2.4.2。两份精确版本约束被破坏,pip check、安装 Doctor 和 Dashboard help 均返回 1。
改动思路 / Approach
在现有安装归属模块中保留一个文件所有者选择器。Doctor 从已安装的套装依赖另行确定何种升级保持版本闭合。 没有准确的 Core pin、元包有运行文件、缺 RECORD 或版本不同时,沿现有保守归属处理。 保留 Core 的运行文件所有权,并让整套更新符合元包和 Workspace 的同版本约束。
具体改动 / Changes
精确头 ac83ab4,提案基线 29db965。RFC §8 至 §11 要求同一发行版本的依赖闭合、安装读回与可回退。这里核对已接入的 runtime 识别和 Doctor 指引。 验收依据
选择器检查同版本的精确 Core 依赖和仅含元数据的 RECORD,再允许 CLI、Doctor 和运行指纹识别 Core。基线、候选两个 wheel 的 1937 个文件中只有选择器和对应 RECORD 字节变化。 选择器
installed-runtime-identity 检查指纹与安装入口,matched-package-upgrade 检查升级前后的精确版本约束。 定向回归 97 项通过,3 项 PowerShell 相关用例跳过。打包 Workspace 三项通过,包含 File 与 SQLite 上的原结果及回放。标准 premerge 6 个直接检查、5 个选定检查全部通过。
对主干的风险 / Risks
[P2] 为依赖型安装保留整套升级约束。 已装文件由 Core 所有,当前依赖闭合由元包和 Workspace 的精确 pins 承载。Doctor 把前者直接作为升级目标,导致 pip 允许两个依赖约束失配。 触发位置
以 fdbba5c 做只读三方合并检查,无文本冲突。#9656 的同版本元包构建与 #9661 的 Core console-script 保留是相邻分发验收。 反例在 macOS 的干净 pip 环境使用本地构建的实际 Core/Workspace 和合成元包,下一版本仅为离线对照。正式发布迁移和 Windows 仍待验收。
我的整体评价 / Verdict
REQUEST_CHANGES。 将实际运行文件的归属与升级目标分开。对依赖型安装,升级指引应保持整套同版本,或者在整套升级具备之前给出明确的停止与恢复步骤。加一个真实 pip 的正反例。
安装后 Core 的指纹可正常读回,Dashboard help 可用。隔离恢复 Core 2.4.1 后,pip check、深度 Doctor 和 Dashboard help 再次通过。
English verdict: REQUEST_CHANGES at ac83ab4. Runtime ownership is correct, but Doctor's Core-only pip upgrade exits successfully with broken exact-version pins and an unavailable Dashboard.
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
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
通过 pip 或 pipx 安装 Core 运行套装的使用者需要让 Doctor 为由 Core 提供运行文件的同版套装指向可验证、可回退的整套切换。 旧提交的 Doctor 指引只升级 Core。隔离 pip 返回 0,但其他包仍保留旧精确 pin,pip check、安装 Doctor 与 Dashboard help 都失败。 新头 JSON 的升级命令为空,Markdown 明确提示另建完整环境、深度检查、处理未结事项和保留旧环境。同版 2.4.1 和本地 2.4.2 各八件通过验证。 旧命令破坏版本约束,在原环境重新装回匹配 Core 后恢复。用两套干净环境轮流读原 SQLite 结果,回切后同一任务身份、日志及产物仍一致,累计只调用一次宿主和扣额一次。
安装归属、Doctor 文字和本地验证后的环境切换。已发布 updater 的迁移、正式发行和原生 Windows 仍待单独资格。 先用上轮 Workspace 与本轮 Core 配对时,chat-endpoint 的导入不兼容。按本次同一源码树重建 Workspace 后重验。旧发布器自动迁移、跨平台和真实安装升级发布仍待验收。 RFC §7、§8 要求同版安装闭合、切换前核对组合和未结事项、保留可回退环境。 验收依据
改动思路 / Approach
复用安装归属、Doctor 的更新指引和原任务回读。已选择 Core 时统一省略包管理器的单包升级命令。 既有非 Core 的 pip 或 pipx 更新指引仍由原分发名分支生成。元包版本、精确 Core pin 与记录不匹配时保持原归属。 安装归属、Doctor 文字和本地验证后的环境切换。已发布 updater 的迁移、正式发行和原生 Windows 仍待单独资格。
具体改动 / Changes
精确提交 1cda0788492e167c687b582873ddd78a3c2e0b54。仅依赖的同版元包由 Core 提供 console、指纹和实际 Workspace 路由。五个核心文件在现主干合并树中精确对应,GitHub 报告的另外 217 个路径已随主干进入。 实现位置
验收项 scoped-packaged-entry 对应实际安装,preservation-and-negative 对应依赖约束的负例。98 项源代码检查通过,3 项平台检查跳过;真实 SQLite 跨环境切换测试通过。同一源码的已装 Workspace 定向测试通过。本地 premerge 6 项直接与 5 项选定检查通过,Ruff 通过。
对主干的风险 / Risks
在当前主干 7b9cee5a2d1f 按实际 merge-base 核对了完整净改动,三方合并无文本冲突。原提交中 Doctor 给出的单包升级问题已修复。 原评审
当前验证使用两个干净环境和一个隔离 SQLite 任务。旧环境继续保留,切换前仍需处理未结任务。两次回读均命中原提交的运行记录。
我的整体评价 / Verdict
APPROVE。 让 Doctor 为由 Core 提供运行文件的同版套装指向可验证、可回退的整套切换。 正式发布与旧 updater 的迁移保留各自的验收。
English verdict: APPROVE the exact repair. Doctor no longer emits the broken Core-only upgrade. Both matched installations and the SQLite switch and rollback passed.
The merge-base changed after approval.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
动机 / Motivation
通过 pip 安装同版 LoopX 套装的用户需要确定运行文件归属和可执行的升级路径。 同版套装的深度安装 Doctor 从退出 1 变为退出 0,裸 Core 的正常升级命令却消失。 候选修复元包归属,同时移除了合法独立 Core 环境的包管理器升级命令。 正式 PyPI 发布、原生 Windows 和全套迁移采用继续由既有发行验收负责。
改动思路 / Approach
安装层继续读取 Python 分发的 RECORD,并在元包只含元数据、依赖同版 Core 且实际 Core 版本相符时切换运行文件归属。编排层应从已安装的依赖组合决定升级范围。把包名直接作为条件,导致独立 Core 和同版套装走同一条建议。
具体改动 / Changes
精确提交 1cda0788492e167c687b582873ddd78a3c2e0b54。GitHub 的旧比较显示 222 个路径,HTTP 406 无法返回整份 diff。完整 Git 对象和与当前 main 1af849a8a45aebe62fa447ae6f73accf21a4ed6c 的合并树核对后,实际净提案是 5 文件,增加 124 行、删除 16 行。除两个实现文件外,三个测试文件分别覆盖 freshness 输出、合成 RECORD 六种组合和取消 Core 命令的断言。原同头批准已被撤销,本次结论取自新的实际安装配对。
关键代码讲解
installed_loopx_distribution仅在精确同版 pin 与元数据 RECORD 一致时改用 Core。深度 Doctor 由此匹配真正拥有命令和 Python 文件的分发。 选择器python_distribution_upgrade_command先对所有 Core 返回空命令,然后才检查 pip 或 pipx。这个路径无法区分裸 Core 与被精确反向依赖固定的套装。 升级分支build_install_freshness和 Markdown 输出将同一组合无关的建议交给用户。裸 Core 的安装和依赖检查均通过。 诊断投影
验收依据 719727f05e525e805eb78c3cf94411ba122c5c00。Mixed versions 在本轮正例绑定同一版本和实际 RECORD。Default changes 涉及原有合法独立安装的更新路径。当前头的 PR 说明和变更未给出独立分发改用整套切换的依据。M3 的正式分发及原环境读回继续由 #5072 负责。 分包 RFC
对主干的风险 / Risks
[P2] 为有精确依赖的套装收紧升级提示时,保留裸 Core 的合法更新命令。 真实 pip 环境只安装 loopx-core 2.4.1 和 pip,pip check 通过;运行已安装的 loopx doctor。 主干提供可执行的 Core 更新命令。候选把命令置空并显示同一套分包切换指引,即使环境中没有其他 LoopX 包。 按已安装的同版元包和有效精确反向依赖选择升级方式。裸 Core 保留现有 pip 或 pipx 指引。 分别用只有 Core、Core 加匹配元包和 Core 加精确反向依赖的干净 pip 环境运行普通与深度安装 Doctor,核对 JSON 及 Markdown 指引。单独补测实际 pipx。 其余七个同版 wheel 用作配套归属夹具,本轮未重跑两个候选发行间的全套切换。
普通 Doctor 在两边均返回 0。深度安装 Doctor 的裸 Core 两边均为 0;装入同版套装后主干为 1,候选为 0。92 个源测试通过,3 项平台检查跳过;本地标准门的 6 项直接和 5 项选定检查通过。新增单测把裸 Core 取消命令写成预期,因此不会发现这一变化。
我的整体评价 / Verdict
REQUEST_CHANGES。 保留元包归属修复,并按可读回的精确依赖证据约束升级指引。当前普通用户迁移到另一个环境前多承担一次配置与路径切换。真实 pipx、跨环境长期续跑和正式发行保持各自验收。已检查 CLI 文本或 RFC 小节。提案没有产品页面布局改动。
English verdict: REQUEST_CHANGES at 1cda078. Installed Doctor corrects the split package owner but removes the healthy standalone Core upgrade command. Keep the safe bundle guidance scoped to an observed matching dependency composition.
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
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
[P2] 排除当前环境确定不生效的 Core 依赖。 在 macOS 只安装 Core 和一个 只在 Windows 生效的版本约束包时,当前环境的 marker 求值为 false,pip check 正常。主干给出 Core 原命令,候选将命令置空并要求切换整套。 按 PEP 508 判断当前环境可生效的 marker。确定为假的平台条件应忽略。已安装元数据无法确认选择的 extra 时,可保留保守策略。 在实际 pip 环境对照同版本的 darwin marker,确认有效 pin 仍走整套指引。 触发位置
动机 / Motivation
使用者包括运行已安装 Core 或同版分包、使用 Doctor 判断升级范围的人。由实际拥有文件的分发包提供 CLI 和诊断,同版依赖约束由安装时生效的依赖决定。主干在同版依赖型元包环境无法认出 Core 所有的运行文件。裸 Core 仍给出 pip 升级命令。完整八包环境的深度安装诊断由失败变为成功,Core 文件归属与运行入口相符。单独安装 Core 时,候选保留 pip 升级命令。有效 pin、无元包的 Workspace 和完整套装均走整套指引,深度安装检查通过。装有匹配分包的使用者能确认 Core 所有权并获得完整套装的验证和回退步骤。本次范围限于 Core 文件归属与 Doctor 的升级范围判定。真实 pip 与 Python 3.14 已验证。本轮未独立复跑 pipx 与安装后的长期切换。在 macOS 只安装 Core 和一个 只在 Windows 生效的版本约束包时,当前环境的 marker 求值为 false,pip check 正常。主干给出 Core 原命令,候选将命令置空并要求切换整套。
改动思路 / Approach
本轮评审覆盖 Core 文件归属与 Doctor 的升级范围判定。相同版本的纯元数据包把运行归属交给 Core。Doctor 按反向依赖选择原安装器命令或整套切换指导。安装文件归属沿用 distribution RECORD,Doctor 的选择还需要判断该环境真的受哪条 PEP 508 约束。 上次评审
具体改动 / Changes
精确头 ebe2e791918e9580723305d3441933d6587a297c,评审范围 5 个文件 +198/-26。与主干 134b6624512ef0dcbda8e56aba78f4cfebb14aab 三方合成只涉及这五个文件,五个文件的 blob 和精确评审头一致。
核对 docs/architecture/rfcs/monorepo-distribution-split-v0.md 在 134b6624512ef0dcbda8e56aba78f4cfebb14aab 的 §8、§9。 固定版本
关键代码讲解
installed_loopx_distribution选择实际安装分发包。metadata-only、同版 exact pin 与 RECORD 必须吻合。把 Core 交回原模块及 console 文件验证。 代码core_upgrade_requires_matched_release检测反向依赖版本约束。需要区分当前环境不生效的 marker。候选扫描所有 Requires-Dist 文本并生成布尔提示。 代码build_install_freshness按升级范围设置 JSON 和可读指导。原安装器与 Core 归属是独立输入。布尔匹配把 upgrade_command 置空,并提供整套指引。 代码
对主干的风险 / Risks
完整八包环境的深度安装诊断由失败变为成功,Core 文件归属与运行入口相符。在 macOS 只安装 Core 和一个 只在 Windows 生效的版本约束包时,当前环境的 marker 求值为 false,pip check 正常。主干给出 Core 原命令,候选将命令置空并要求切换整套。定向套件 125 项通过、75 项跳过。标准 premerge 的 6 项直接检查和 5 项选中检查通过,有 1 项非阻塞建议。真实 pip 与 Python 3.14 已验证。本轮未独立复跑 pipx 与安装后的长期切换。
我的整体评价 / Verdict
请求修改。保留同版归属与有效 pin 的修复,缩小升级指引的触发条件。 裸 Core 无反向依赖时命令保留,生效的条件 pin 或 Workspace 精确 pin 仍受保护。候选只改变安装归属识别和建议,不执行升级。保留原环境供复验和回退。
English verdict: REQUEST_CHANGES at ebe2e79. The actual Core owner and effective same-version pins are handled correctly. An installed requirement whose platform marker is false still suppresses the valid standalone Core upgrade command.
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
使用分包和 Doctor 管理 CLI 安装的维护者。 原 Doctor 在同版纯元数据包不能识别 Core 文件归属,旧候选也把当前平台不生效的约束当真。 已有 Core 所有权与适用约束判定需要和公开的标准组合安装一起可用。 真实 pip 环境中裸 Core 与 Windows-only 假 marker 均保留升级命令,生效的 darwin pin 保留整套切换指导。 复验 macOS 隔离 venv、真实 pip 和 uv,不含公共发布、pipx 或迁移后的完整长期状态验收。 同一 wheelhouse 里的基线 Core 和三个配套包可在空 venv 完成标准安装。候选缺少 packaging>=25 时,文档里的 --no-index 命令在解析阶段报 unsatisfiable。预装该依赖后原命令和深度 Doctor 均通过。 冻结规范
改动思路 / Approach
同版纯元数据入口按实际分发 RECORD 找到 Core。Doctor 独立选择升级范围。分包的外部依赖由 installer 根据 wheel METADATA 解析。 复验 macOS 隔离 venv、真实 pip 和 uv,不含公共发布、pipx 或迁移后的完整长期状态验收。 已验证 PEP 508 marker 的真实安装正反例。 四个本地 wheel 用于标准组合反例。主干轮内 module 对照固定基线。 Core 使用说明
具体改动 / Changes
评审精确提交 64fd9a836974ec1c621dd323d10fbe0fe81da6b7,基线 134b6624512ef0dcbda8e56aba78f4cfebb14aab。七个文件 +232/-27。复用安装分发 RECORD、Doctor 和 PEP 508 marker owner,Core wheel 新增 packaging>=25。 依据 docs/architecture/rfcs/monorepo-distribution-split-v0.md。§8-分包验证与回退 仍需补齐;§9-安装归属与标记 已核对。 主要变更
关键代码讲解
安装归属走已安装 RECORD。仅当 Core 的反向约束可在当前环境生效时,Doctor 才给整套升级提示。离线 resolver 在 Doctor 启动前必须取得 packaging wheel。
对主干的风险 / Risks
[P2] 补齐标准组合离线安装的新依赖。 使用 README 的标准组合示例,只构建 Core 和三个配套 wheel。 同一 wheelhouse 里的基线 Core 和三个配套包可在空 venv 完成标准安装。候选缺少 packaging>=25 时,文档里的 --no-index 命令在解析阶段报 unsatisfiable。预装该依赖后原命令和深度 Doctor 均通过。 在线准备阶段将 packaging 的适用 wheel 纳入离线 wheelhouse,更新标准组合的准备步骤,并在干净 venv 复跑文档命令。 packages/loopx-core/pyproject.toml L13
精确提交的 standard premerge 阻断项通过,git diff --check 通过。 104 项定向通过,3 项平台测试跳过。为隔离标记选择使用 pip 安装,避免把 uv 管理器无 pip 升级指令误判为 marker 差异。
我的整体评价 / Verdict
请求修改。 在线准备阶段将 packaging 的适用 wheel 纳入离线 wheelhouse,更新标准组合的准备步骤,并在干净 venv 复跑文档命令。
English verdict: REQUEST_CHANGES at 64fd9a8. The inactive-platform marker is fixed in a real pip environment. The documented offline standard install now fails in a clean environment because its wheelhouse lacks packaging>=25. Preparing that dependency first restores the standard install and deep Doctor.
…-offline-wheelhouse-integration-20261201 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Resolve dependencies against the selected Core wheel before moving the wheelhouse. Derive its directory from that wheel on the target so the offline command can follow a relocated wheelhouse. Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Prepare the wheelhouse from the local Core Standard wheel and the three local companion wheels. The existing clean Standard and split meta-package installs can then resolve Core's dependencies without an index. 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
使用 pip 安装 LoopX 分包、再用 Doctor 检查环境的维护者,需要同时知道运行文件属于哪个包,以及更新时哪些包必须保持同版。主干在装有同版元包时从元包查找 CLI 文件。元包只带安装元数据,深度 Doctor 因此找不到实际运行文件,服务指纹也缺失。
管理员拿到一套同版 wheel 后,应能在空环境离线安装,并由 Doctor 识别 Core 和已就绪的配套包。最新提交在离线前补齐外部依赖,安装后能够读回 Core 指纹和六个匹配配套包。裸 Core 和只有不生效的平台约束的安装保留原 pip 更新命令。当前交付限于分包归属、Doctor 指引和离线准备。公开发行与渠道采用仍由分包发行验收覆盖。
改动思路 / Approach
安装元数据提供同版依赖关系,RECORD 提供实际文件归属。依赖型元包符合条件时,原有归属入口交给 Core 的 RECORD 验证。Doctor 在归属确定后再用 PEP 508 约束决定升级范围。独立安装可以给出原包管理器命令,存在生效约束时给出分环境验证与回退指引。
只改 Doctor 显示会让深度安装诊断和服务身份继续读错分发包。只给 Core 声明 packaging 会让离线解析停在启动前。补齐既有安装归属、依赖解析和诊断投影即可交付这段路径。本次改动在现有安装与诊断流程内交付,使用同一份 wheel 元数据。
具体改动 / Changes
复审精确头为 016072e1194baff08ab6757cffbd5600dc561803。GitHub 显示 63 个文件。核对实际远端 main 250932eee1eafd0c926cd2d498f5a11870c78432 后,54 个文件的 Git 对象与主干一致,实际变更 9 个文件,+254/-32。对上次评审头 64fd9a836974ec1c621dd323d10fbe0fe81da6b7,本分包范围内只改了 Core README 和 Package Smoke 的依赖准备。
按 docs/architecture/rfcs/monorepo-distribution-split-v0.md 的固定版本 719727f05e525e805eb78c3cf94411ba122c5c00 核验。§8-分包安装与回退 的匹配安装通过,现有环境留作回退,真实发布切换保持在发行验收。§9-发布包与核心入口 的无 Node help、只读 status 和八包安装通过。§10-安装版本与组合读回 由深度 Doctor 及实际 Dashboard 入口验证。§11-M3公开发行 继续由 #5072 的发行里程碑验收。 固定规范 · 分发跟踪
关键代码讲解
installed_loopx_distribution结合元包精确 pin、同版 Core 与纯元数据 RECORD 选择运行分发。原模块、console 和服务指纹仍由实际文件读回证明。 安装归属core_upgrade_requires_matched_release读取已装分发的 Core 版本约束,由 packaging 求值环境标记。对于当前平台确定不生效的约束,Doctor 保留裸 Core 的合法提示。 约束扫描build_install_freshness根据有效约束选择原安装器命令或匹配版指引。随后 JSON 与 Markdown 将结果给到调用者。 Doctor 投影- Package Smoke 与 README 使用现有 resolver 将传递依赖加入 wheelhouse。Core 的新依赖由 wheel 的 METADATA 声明。 流水线 · 离线说明
对主干的风险 / Risks
在 macOS arm64/Python 3.11 用实际 pip 比较主干与候选。八包安装两边都通过 pip check,主干深度 Doctor 仍因代表性导入及文件归属校验失败。候选读回 Core 指纹、六个就绪配套包及 Dashboard help。候选同时验证了裸 Core、Windows-only 无效约束、macOS 有效约束、仅 Core+Workspace 和整套安装。
把 packaging 从组装后的依赖来源排除时,空环境在离线 resolver 阶段按预期失败。按新版命令准备依赖并复制 wheel 到含空格的路径,摘要一致,离线安装、pip check、深度 Doctor 和能力目录读回均通过。Standard 的三项真实安装测试覆盖 File 与 SQLite 同一任务恢复。应用准备阶段允许访问包索引,离线安装继续固定 --offline --no-index。 上轮离线发现
定向 Python 104 项通过、3 项平台跳过。邻接诊断和 ZCode 指引 38 项通过。Ruff、diff 和无 Node 的 help/status 通过。标准 premerge 最终 6 项直接检查、18 项选中检查通过,保留 1 项维护性建议。初次运行发现本地缺少 TypeScript 开发依赖,补齐后复测通过。
语义与 CI 对齐
包归属复用现有 RECORD。升级提示是只读诊断,wheel 依赖由包管理器强制解析。没增加部署、调度或权限状态。外部依赖准备属于当前 Standard 安装前置,应用者可以从本地复制产物复跑验收。生产机器的 pipx、Windows 执行及真实版本的分阶段切换不在这轮本地证据内。
我的整体评价 / Verdict
APPROVE。 已复验运行文件归属、裸 Core 更新指引、生效平台条件和旧离线安装失败四处边界。依赖准备与实际安装形成一个可验收的分包切片,后续维护者可先在独立环境检查配套组成与恢复证据。已读回八包与标准三配套两条安装路径。旧评审和合入条件按 GitHub 当前状态保留核验。
English verdict: APPROVE at 016072e. Matched split installs now identify Core and its six companions. The staged wheelhouse installs offline, and the standalone and platform-marker controls preserve the correct upgrade guidance.
The merge-base changed after approval.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent; model=gpt-6.2-sol; provider=OpenAI; reasoning_effort=xhigh; declaration_source=runtime_reported.
动机 / Motivation
使用拆分版 Core 和离线 wheelhouse 的操作者需要可追溯的 CLI 所有权、正确的安装建议和可恢复的升级。纯元数据 loopx 会挡住 Core 的实际所有权。前一头改进了归属和 marker,公开离线步骤却没有为新增的 packaging 依赖准备 wheel。通过实际 RECORD 认定拥有者,按当前平台及可能启用的 extra 选择升级建议,并在联机阶段备齐离线依赖。GitHub 记录的旧 base 显示 63 条路径,其中 54 条与当前 main 的文件逐字一致。本轮安装复验覆盖 macOS arm64。Hosted Package Smoke、Windows 实机和公共发布仍待验证。 M3 迁移契约
改动思路 / Approach
同版纯元数据装载将 RECORD 检查交给 Core。Doctor 读取关联平台和 extra 约束。README 与 Package Smoke 用 pip 先补齐依赖,安装端沿现有 uv 离线入口。当前 main 是该头的祖先,相对当前主干实际变更为九个文件。
具体改动 / Changes
- Core RECORD 与升级范围。真 pip 安装的五组隔离环境均经 pip check、deep Doctor。裸 Core 和当前 macOS 不生效的 Windows marker 保留原 pip 命令,当前平台约束和可能启用的 extra 进入匹配环境指引。正式构建的元数据 loopx 与六项配套均安装,runtime/Doctor 归 Core。 实际分发所有权 · 约束范围 · Doctor
- 离线 Standard 依赖齐全。前一头的独评发现现在闭环。取同一批四个产品 wheel、空缓存和空环境,用相同 --offline --no-index 安装,缺 packaging 时仍立即报不可解析。候选显式联机准备后可重用同一套工件和同一安装命令。 按候选 README 和实际 Package Smoke shell 独立备齐 packaging,四个产品 wheel 的 SHA 保持一致。把 wheelhouse 移到含空格的路径,空 venv 使用 --offline --no-index 安装 Standard 成功,三项配套均显示 ready,pip check、安装版 capability list 和 deep Doctor 成功。三个 Standard 用例通过,包含 File/SQLite 的原任务回放和能力移除。 README 准备命令 · Package Smoke 实际入口
- 公共发布资格。Core wheel 声明
packaging>=25,源检出的测试依赖也同步更新。 Core 包声明
对主干的风险 / Risks
104 项安装与 Doctor 源测试通过、3 跳过,3 项 Standard 安装测试通过。使用 actionlint 检查 Package Smoke 通过,standard premerge 6 项直接、18 项选中检查通过。既有 package-prep 断言在固定目标 main 与候选均失败,均匹配到两个步骤,预期为一个。预合并仍有既有维护性告警。
我的整体评价 / Verdict
批准当前提交。离线安装现在能够准备完整的依赖,Doctor 的升级建议与实际生效的安装约束一致。转移 wheelhouse 后,File 和 SQLite 都能恢复原任务并保持重放幂等。
English verdict: APPROVE — 016072e1194baff08ab6757cffbd5600dc561803 closes the missing offline dependency, preserves standalone Core upgrades, and retains matched-release guidance for effective constraints. Real wheel installs and replay passed. Hosted and release qualification remain pending.
The merge-base changed after approval.
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…dec04 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
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
使用 Doctor 或 update dry-run 选择升级方式的 Python 发行包用户。 依赖型 loopx 元包只含发行信息,实际 runtime 从 Core 安装。Doctor 要区分安装所有权和允许单包升级的有效约束。 八个候选 wheel 首次离线安装后,Core 拥有代码与 console,六个配套包就绪,深度 Doctor 和 pip check 通过,update 仍为 dry-run。Python 3.11 和 3.14 的独立 Core 恢复单包建议。
逐字节核对候选 wheel 的两个生产模块。安装验证限于 macOS arm64,反斜杠路径用隔离夹具覆盖,三项平台专用测试跳过。
改动思路 / Approach
九个文件新增 353 行、删除 30 行,集中于发行归属、Doctor、Core 依赖声明、离线安装文档和 Package Smoke。 importlib.metadata 和 wheel RECORD 提供发行证据,packaging 判定要求、平台和 extras。实际升级仍由包管理器执行。
这次同步的 workflow 用 Dashboard package-lock.json 为 npm 缓存提供版本键。Package Smoke 与离线文档继续在安装前阶段备齐依赖。
具体改动 / Changes
- OWNER。依赖型元包安装时 Core 拥有真实 CLI 与运行时文件。 独立验证通过。 python_install_owner.py
- SAFETY。损坏元数据和适用约束继续给匹配建议。 独立验证通过。 test_doctor_installation_scope.py
- OFFLINE。离线安装可从完整同版 wheelhouse 验证。 独立验证通过。 package-smoke.yml
关键代码讲解
- 依赖型同版元包委托 Core 提供真实安装归属。 installed_loopx_distribution
- 验证记录的路径、长度和定长摘要。 _recorded_metadata_matches
- 通过实际模块路径判定安装并组织诊断。 python_distribution_install
- 依 Dashboard 锁文件缓存 npm,构建及离线依赖解析继续走原命令。 setup-node
- 用现有真实发行记录捕获可保守回退的失败路径。 test_core_upgrade_with_peer_without_reported_dependencies
对主干的风险 / Risks
118 项定向通过,3 项平台专用跳过。用当前源码构建 8 个 wheel 后离线安装,并另在 Python 3.11 和 3.14 对照升级建议。 Standard premerge 串行的 6 项直接检查与 18 项选中检查通过。 同版锁定配套包、损坏或缺失 METADATA、反斜杠 RECORD 路径中的破损记录和不可核对的摘要均返回匹配环境及回滚提示。健康、无约束的配套包仍允许单包建议。
分支更新后的目标差分逐字节相同。重新构建同版 wheel、复验发行组合,并在更新提交上运行标准 premerge。
我的整体评价 / Verdict
通过。 当前精确提交独立验证同版八包安装、真实 Core 所有权及升级边界。锁定和损坏记录保留匹配环境提示。
本结论绑定上述精确提交和冻结基线,覆盖本次改动触及的执行路径。
English verdict: APPROVE at 5c8f7c6. The reviewed head identifies Core as the installed runtime owner in an eight-wheel offline installation. The standalone and damaged-record controls passed on Python 3.11 and 3.14, and serial standard premerge passed.
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…e-current Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…urrent Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…0073-queue-current Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…concile-9646-after-9911-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…concile-10069-reward-memory-current-main-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…concile-10073-node-scripts-current-main-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…concile-10068-settlement-current-main-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…concile-10043-workbench-core-current-main-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…rd-memory-config-on-status-20261204-0SIMP8 Defer Reward Memory configuration imports on disabled quota status
…concile-10073-node-tool-environment-after-10069-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…concile-10068-ordinary-quota-settlement-after-10069-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…in-python-tool-environment-20261204-YJh0LD Find Node installed in the Python tool environment
…concile-10068-ordinary-settlement-after-10073-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…y-reward-memory-settlement-20261204-uyJhW5 Defer staged Reward Memory on ordinary quota settlement
…concile-10043-workbench-installed-after-10068-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…installed-core-entry-20261203 fix(workbench): start managed Core through the installed CLI
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Current main and native Windows qualification
The author branch was synchronized to main
c7095d2854at18145cb01c. The PR diff is byte-for-byte identical to the earlier proposal. The aligned head passed 118 focused tests on macOS, with three Windows-only exclusions. Standard premerge passed six direct checks and nineteen selected checks.A separate native Windows x64 installation combined this head with #9876 and #9999 at product commit
b6b9a91065. All nine same-version wheels installed offline. Deep Doctor passed through the absolute console executable and the Python module. Removing each of the seven companions produced a version-specific repair and reinstalling its wheel restored the original installation fingerprint. The candidate passed 474 help routes, including 467 shared with public 2.4.1 and all 260 previously refused routes. Bare Core passed the copied-launcher rejection and the cold Node-free read and write controls. Native qualificationThe current head is mergeable and awaits independent review, four open review discussions and required checks. The integrated Windows result qualifies the candidate assembly. The split prerelease has its own acceptance gate.
Goal and delivered outcome
When the installed
loopxpackage is metadata-only and pins Core at the same version, Core owns the console, Doctor and the service fingerprint. The owner checks the exact requirement and the installed distribution record.Doctor keeps the owning package and the upgrade scope independent. Standalone Core keeps its pip or pipx upgrade command. When an installed distribution constrains the Core version, Doctor directs the operator to qualify a matched set in a separate environment and keep the current one for rollback. This covers the exact pin in Workspace even when the
loopxmetapackage is absent. Split upgrade finding · Standalone Core review. Related to #5072.Doctor evaluates platform markers with PyPA
packaging. It skips a constraint that is false in the current environment and retains constraints that can apply under a declared extra because installed metadata records the available extras. An unevaluable constraint retains the existing matched-environment guidance. The split Core wheel declares one new Python runtime dependency. Platform marker finding · PyPA dependency specifiers · Split candidate qualificationMatched Meta readiness on the current head
Validated
c045e12a71018da168e574558feda35664ceca9don main8fca137dc2. Doctor now reads the required companion pins from the resolution that identifies the matching metadata-only Meta. The earlier eight-wheel assembly returned success after Workspace was removed.Native Windows installed-wheel follow-up
Windows x64, Python 3.11.9 and Node 24.22.3 reproduced the missing Workspace control on Core
f9e3350467. The exactc045e12a71wheel reported the missing pin and recovered through the Python module entry point. Its three Windows PowerShell cases passed. The absoluteloopx.exeentry point still failed launcher discovery with the venv Scripts directory off PATH.Applying #9999 at
1e1c424f93produced tree924493a6a5c3fde71b34194207f2e4fa70f10141. Onlyloopx/doctor.pyand the wheel'sRECORDchanged inside Core. The combined eight-wheel assembly passed Deep Doctor through both entry points. Every one of the six individual companion removals produced the named version pin and returned to the same fingerprint after reinstall. Bare Core and selected Workspace upgrade guidance passed, and Doctor rejected a copied launcher. Native Windows runThe current head also passed all nine focused METADATA and RECORD regression cases.
loopx/doctor.py, the three metadata validation functions, and those tests match6823e56230, whose installed-wheel controls ran on Python 3.11 and 3.14. The four open threads cover absent or directory metadata, truncated metadata, Windows RECORD separators, and variable-length digests. The current-head regression run and the earlier installed-wheel controls cover all four cases.Author declaration
Written by OpenAI Codex (
model_agent). Validated against the distribution RFC.Validation
The earlier head
64fd9a836974ec1c621dd323d10fbe0fe81da6b7merges withmain@8af533a8dca3b04ac5678d0cda18198ebf6ce6f8to the same tree used for local qualification on macOS arm64. The target-relative diff contains seven files.The prior composed source
82ad004fb81847624ebaf8ef078e3abc055b84a0established the historical matched-install switch and rollback proof. Applying the former Core-only upgrade advice in the matched fixture broke seven exact dependencies. Reinstalling matched Core recovered the package checks. Switching between two clean sets preserved the original completed SQLite task, its run index, ledger and artifact, with one host invocation across that trial.Offline wheelhouse follow-up
At
016072e119, the Core README stages dependencies before transfer and derives the wheelhouse from the copied Core wheel. Package Smoke resolves dependencies from the local Core Standard and companion wheels before its offline installs.packagingdependency. After staging, all three Standard cases passed, including File and SQLite task recovery. The full meta-package install passedpip checkand deep Doctor with six ready, same-version companions.First-screen evidence
UI impact
none. Validation exercised the installed Dashboard entrypoint and existing SQLite task readback.Type and area
Revalidated on the current base
The signed head
a2bd3df03cee5e4b32aed2f4b4d3bd9995216d33incorporatesmain@c91c517d59. The target-relative diff contains nine files. On this head, 104 focused tests passed and three platform-only tests skipped. Standard premerge passed six direct and 18 selected checks with one inherited maintainability advisory.The public v2.4.1 wheel matched both the GitHub checksum and PyPI digest. A local
2.4.2rc1composition with #9649 passed 16 artifact checks and offline installation of all eight matching distributions. Switching to the separate environment and rolling back preserved the completed SQLite task, result, journal and quota. The Workspace server returned all 46 packaged assets with matching digests.An isolated in-place
pip --pre --upgraderemoved 2,006 runtime files also owned by the legacy wheel. Pip check returned success while the launcher and module entry point were unavailable. Reinstalling the complete verified split set recovered the CLI and deep Doctor. The matched-environment guidance covers the verified switch and rollback path. Public release qualification remains tracked under #5072.Paired failure replay against current main
We replayed the same 95 historical failure cases on
main@0950cea53f8eedfd7e56a397a447eecfc87bcc50and on that base with only this PR's heada2bd3df03cee5e4b32aed2f4b4d3bd9995216d33composed in. Both runs used macOS arm64, Python 3.11.15, Node 24.23.0, two pytest workers and coverage.Both runs returned the same 92 failing case IDs, two passes and one Linux-only skip. All four cases that previously appeared only in this PR's failed run also reproduced on current main. The independent Steward protocol and Python 3.11 RECORD fixture fixes are #9837 and #9838. Earlier main run · Earlier PR run
The Core installation smoke passed on this PR's hosted head. The current CI selector still requires six Python shards for this packaging change. Core installation job
Current main conflict resolution and validation
The synchronized head is
ac3ea08dcc. Doctor offers a standalone Core command after it confirms installation ownership and the absence of applicable version constraints. An unqualified update retains the main branch guard. The complete split installation reports the matched-environment guidance, andloopx update plancontinues to report that automatic apply is unavailable.The local combination with #9862 and #9865 passed the complete standard premerge on both cold and warm runs. The final combined revision
d0ee3412c6passed all 19 selected checks. The cold installer smoke took 95.1 seconds under the existing 120-second limit. The reviewer can qualify the prerequisites independently. #9865Current-main installed qualification
The current signed head
1335316a09is based on upstream mainf2a9c7ecd6. The review scope is nine files.pip checkand deep installation Doctor for standalone Core, the documented Standard extra, Workspace, the matched eight-wheel metapackage, and the monolithic package. The eight-wheel control built from main used the same companion wheels. It selected the metadata-only package and failed deep Doctor with zero ready companions and a missing runtime fingerprint. The candidate selected Core, reported six ready companions, and restored the fingerprint.Exact-head review and the required hosted gate remain open. Previous hosted gate
On head
1d1a8ac678, the full local standard premerge passed when run alone. The install-local smoke took 59.195 seconds under the existing 120-second deadline. A prior run overlapped with other validation and timed out at 121.572 seconds. The malformed-peer regression passed with the Doctor suites (109 passed, 3 platform skips), and a newly installed Core wheel completed deep Doctor with the malformed peer present.Review follow-up
Validated the existing metadata follow-up on this head. The focused source suite passed 112 tests with 3 skips. On pip-installed Core with Python 3.11 and 3.12, ordinary Doctor suppressed the in-place Core upgrade and retained matched-environment and rollback guidance when a peer's METADATA was missing or was a directory. With readable dependency-free metadata, Doctor offered the standalone Core upgrade again.
Review follow-up
At
480f5fa1a2, normalize Windows RECORD separators before matching wheel metadata and treat variable-length digests as unverifiable. Installed Core and fixture peer wheels on Python 3.11 and 3.14 returned structured Doctor output in every case. Valid SHA-256 preserves standalone guidance for an unconstrained peer. A same-size metadata change or SHAKE digest preserves matched-release and rollback guidance. 118 focused tests passed (three platform-specific tests skipped), and Ruff and diff checks passed. The broad install smoke exceeded the default 120 seconds. Quick premerge passed on rerun with a 240-second per-check allowance (the install smoke completed in 160 seconds).CI baseline follow-up
The approved head still has a failing hosted merge gate. Its Windows recovery job fails while reopening the peer mailbox SQLite database. That failure is in the shared mailbox path on main. The matching repair is tracked in #9928 and the combined required-check repair in #9997. The failed run also reported six pytest shards. Their complete failure set is separate from the confirmed Windows diagnosis. Windows failure
The approved head is still the PR head. A local candidate aligned with main at
6248a6d50epassed 162 targeted Doctor, installation-owner and CI-workflow tests (three platform-specific skips). The hosted Windows and merge-gate results still need revalidation after the shared repair lands.Review follow-up
Revision
5c8f7c6930againstmain@3956eb54f7. Synced the installation fix with current main, which has removed the unused settlement import that failed kernel-static. Scoped Ruff passed for that module and the installation owner. Doctor and distribution-owner suites passed 118 tests with 3 platform skips. GitHub checks and review are pending.Review follow-up
Revision
a4529e06d0againstmain@33388bda9a. Synced the install ownership fix with current main and revalidated the dependency-only split installation. Scoped Ruff and 118 targeted tests passed with 3 platform skips. Fresh Core and Meta wheels passed Deep Doctor with six matching companions. Removing the Meta-pinned Benchmark Toolkit correctly made Deep Doctor fail. The new head is ready for re-review.Review follow-up
Revision
dd95e76714againstmain@5d7ac0e622. Synced the unchanged Python installation-owner proposal after #10075 advanced main. The previous standalone Core and Meta wheel qualification remains attached above. The focused source suite passed again on this revision with 118 passes and 3 platform skips.Review follow-up
Revision
5c73244be0againstmain@355a887e55. Synced with the main branch after #9911. The complete proposal diff is identical to the previous review target. Scoped Ruff, RFC diff validation, and the current source installation-owner suite passed (118 passed, 3 platform skips). The standalone Core and Meta wheel evidence above remains from the previous revision.Review follow-up
Revision
0681743e69againstmain@0e784d7cba. Synced the same installation-owner proposal with current main after #10071. Fresh Core and Meta wheels were built from this revision and installed offline with six existing companion wheels of the same release. Pip check and Deep Doctor passed, with all six companions ready and a runtime package fingerprint. Removing Benchmark Toolkit from the disposable install made Deep Doctor reject the incomplete assembly. The focused source suite passed 118 tests with three PowerShell-dependent skips. Scoped Ruff, RFC diff validation, and quick premerge passed.Current revision Doctor regression
The Core wheel built from
0681743e6914141e811c7deca31b9aabd2096febpassed ten ordinary Doctor cases in each of two fresh macOS arm64 pip environments using Python 3.11.15 and 3.12.13. Both permitted a standalone Core upgrade when intact peer metadata declared no Core constraint. Both kept the matched-release guidance for a pinned companion, missing or malformed metadata, same-size content changes under forward-slash or backslash RECORD paths, and an unsupported SHAKE digest. Doctor returned structured output in every case. Restoring the original peer metadata restored its exact release pin.The backslash case used a Windows-style RECORD path in these macOS fixtures. Metadata availability · Required metadata headers · Windows-style RECORD paths · Variable-length RECORD digest