Repository navigation
Install the local Workspace alongside standalone Core - #9058
Conversation
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · reasoning_effort=max
Exact head 2dc3be7
批准当前提交。实际安装和移除路径通过验证。
动机 / Motivation
受影响的是先在 standalone Core 完成受管理任务,随后在同一 Python 环境使用本地浏览器读回验收的用户。
原 standalone Core 可验收任务,但不提供本地 Workspace。现在可安装同版本 Workspace wheel,再用原 registry 和 runtime 打开 Dashboard 或 Chat。
同版本 wheel 安装后,Dashboard 与 Chat 从原 File 和 SQLite 读出相同已完成的 Todo 和验收文字。移除 Workspace 后,Core 可重放原 Turn,宿主、状态写入和配额均无新增。
本次验收覆盖 macOS arm64 的本地 wheel、File/SQLite 和合成任务。原生 App、IM、其他系统和正式版本仍有各自的发行验证。
把安装和移除验证复跑在含当前 #9038 与 #9049 的最终发行候选上。当前评审只覆盖这个提交及其 base。
改动思路 / Approach
本次评审边界是standalone Core 的可选本地 Workspace 安装、任务读回和移除。现有 CLI 分派复用发行包版本和 RECORD 文件归属,原运行目录保留唯一的任务权威。服务身份纳入实际安装字节,Dashboard 沿原身份校验决定复用。
Core 和 Workspace wheel 在一个解释器环境拥有互斥文件。命令帮助基于安装状态提供入口,执行仍需用户显式启动。Workspace 提供已构建 Web 资产。Research Analysis 在通过所属 Goal 和范围检查后才载入实现。
具体改动 / Changes
精确差异涉及 15 个文件,新增 562 行,删除 59 行。I2、I4、I7 的任务归属、缺包与按需启动通过独立安装验证,当前 D2 的 Workspace 边界有 wheel 读回。V6 的原生 App/IM 采用待另验。 Monorepo Distribution Split RFC
- _workspace_installed。原命令路由与帮助共同读取可选 Workspace 是否可用。 当前代码
- builtin_capability_installed。以同版本 wheel 和模块的 RECORD 归属确认此能力。 当前代码
- _workspace_source。原构建流程按实际调用路径划归 Workspace,并保持文件互斥。 当前代码
- _distribution_runtime_fingerprint。服务身份使用实际 wheel 字节,避免复用上一个安装状态的服务。 当前代码
- _research_analysis_store。仅在所选分析入口按需载入,对特定缺包返回可恢复的 503。 当前代码
对主干的风险 / Risks
缺少 Workspace 时 Core 帮助继续工作,dashboard 给出可恢复的安装提示。改动同版本的 Workspace 文件时拒绝复用旧服务。移除后原结果仍可重放,宿主、写入和扣额均未增加。
实际 wheel 安装验证 3 项、目标源码回归 134 项通过。验证了 File/SQLite、独立 wheel 归属及资产摘要。真实安装的 Dashboard 在桌面与窄屏均可打开原任务详情并读到验收文字。基准分析库的独立缺包路径由源码检查覆盖。本提交的 Core wheel 仍带有该实现。 本地 quick premerge 通过 6 项直接检查和 4 项选中检查。远端 CI 未查询。
我的整体评价 / Verdict
更换呈现方式不会重新执行已完成任务。移除呈现包后,原 Core 能继续读取和重放已验收状态。用户能通过现有 Dashboard 的任务页打开原完成记录,并在桌面和窄屏看到其验收证据。
由精确提交构建的 Workspace wheel 直接向 Ego Lite 提供页面及资产。打开已完成列表,检查默认任务详情的状态与证据。此提案沿用当前布局和折叠规则。真实安装的 macOS arm64 环境及合成任务已验证。原生 App、IM 和其他系统未纳入。
English verdict: APPROVE. At 2dc3be7, the matching Workspace wheel reads the original accepted Core task, rejects a stale service, and leaves the task replayable after removal.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI (runtime_reported, max)
[P2] 移除 Workspace 后,Core 转交带原来源的 Inbox 请求会报错
用当前 wheel 在 File 和 SQLite 保留一个已授权的外部来源父请求。移除可选 Workspace 后,Core 的 manager-inbox read 能读到原请求,但带 --parent-request-id 转交会退出 1,并抛出 ModuleNotFoundError: loopx.chat_store。未写入子请求。重装匹配 wheel 后同一操作能转交,收件人采用后结果可读回。 相关代码
动机 / Motivation
使用独立 Core 处理工作的维护者和 Agent,可以按需加装 Workspace 查看原任务。新增配套 wheel 能启动已有 Chat 和 Dashboard。移除它后,Core 应继续读回原任务与收件箱。同一个获准的原请求应继续由 Core 读回和转交。回到原会话投递结果由 Workspace 负责。本轮验证本地隔离安装。公开发行、真实 App 与飞书旅程仍由各自的验收覆盖。
改动思路 / Approach
Core 保留原有任务和 Inbox owner。Workspace 按同一版本拥有局部入口、浏览器资源和会话适配器。启动按已安装文件和来源校验,帮助与目录只显示实际可用入口。本轮判断本地配套 wheel 的安装、使用和移除。25 个净改动包括 Core 命令分派、原 Inbox 早期读取、会话模块分布和包验收。现有外部投递保留原授权。实际构建匹配的 Core 和 Workspace,按原注册库安装、打开、卸载。另保留一组经原来源授权的父请求,比较普通主干、卸载后的 Core 和重装匹配 package。
具体改动 / Changes
精确 head 164ab0c95a9e977d61ec675215f18fd5804f0264,diff base 5cfd6ae7d571f2f97da40982db23f76540723c89,25 个文件 +825/-174。逐项复核 matching-wheel-boundary、original-task-roundtrip、core-inherited-inbox。验收约定
关键代码讲解
- 配套 wheel 按现有 owner 补入命令与匹配资源,帮助不会启动服务。源码
- 服务复用核对安装的实际文件和 RECORD,包版本相同也会查真实字节。源码
- Core 直接读取已有 Inbox,Turn 起始继续携带原请求身份。源码
- 带父请求的转交在 Core 再核验原会话,此处仍依赖只由 Workspace 安装的模块。源码
对主干的风险 / Risks
本地 5 项安装验证与 12 项源码 Steward、包身份验证通过。安装验证包含独立 Core 互派、任务提交及从两种安装入口读回、同版本字节变化拒绝复用、卸载后回放不二次扣配额。父请求转交的独立 File 与 SQLite 对照均失败。Core 能读到原请求,转交时只输出 Python traceback;两次环境对照里原请求与 registry 均保持原值。
语义与 CI 对齐
当前 RFC 将 Core 的 Inbox 生命周期与 Workspace 的原会话投递分开。启用和关闭使用同一份原请求并核对来源授权。关闭后转交没有结构化错误或结果,远端 CI、真实桌面和 IM 继续按本项目验收。当前 RFC 约定
我的整体评价 / Verdict
请求修改。让 Core 转交继续通过现有只读来源验证,原会话写入仍由 Workspace 负责。真实来源不可读时,用现有结构化阻塞反馈,并用安装后移除的真实复现覆盖带父请求的路径。
English verdict: REQUEST_CHANGES. Removing Workspace breaks an authorized inherited Inbox request on File and SQLite. Core can read the parent, then forwarding raises ModuleNotFoundError. Reinstalling the matching wheel recovers the same operation.
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · Gemini · Google (self_reported)
Target exact head: 164ab0c95a9e977d61ec675215f18fd5804f0264 (PR #9058)
结论摘要: 建议修改(REQUEST_CHANGES)。本 PR 在拆分 loopx-workspace wheel、分离运行期身份指纹及延迟加载 Chat/Steward 依赖方面打下了合理边界,但在无 Workspace 仅装 loopx-core 的真实协作路径及现有测试上存在 3 项已实证阻塞缺陷:source_chat_observation 将 _read_json 移入函数内直接破坏现有回归测试 test_paging_and_unreadable_source_do_not_report_empty_or_mutate_receipts[file/sqlite];核心控制面仍硬导入仅属于 Workspace 的 loopx.chat_store(外部渠道转发/控制未捕获 ModuleNotFoundError);残留 chat/actions/actions.json 时 manager-inbox read 触发 operation_handoff._store 未捕获导入 loopx.chat_action_store 崩溃。
动机 / Motivation
受影响对象: 依赖精简命令行内核 loopx-core 的无头自动化与节点代理操作者,以及在同一运行目录按需装卸本地工作区 loopx-workspace 的用户。
前后对比场景: 变更前,dashboard 与本地网页 Chat 资源及代码同内核捆绑、核心代码顶层直接导入 chat_store;变更后,PR #9058 将本地 Chat/Web 服务与 14 个工作区模块拆入独立的 loopx-workspace wheel,并在缺失该包时对 dashboard/chat 给出明确安装提示而非悄悄退回。
预期与实测结果: 独立 loopx-core 与 loopx-workspace 打包文件集严格互斥且基础转交与卸载重放测试通过,但核心协作检查路径在真实脱离 Workspace 运行时仍存在未捕获 ModuleNotFoundError 崩溃且破坏既有库存单测。
非目标: 本次不迁移桌面壳 apps/、不改变内核工作流或结算语义、不拆分三个可选能力 wheel,也不引入除 pip/uv wheel 之外的新安装器。
当前剩余缺口(remaining_gap): 核心协作观察路径 source_chat_observation 与 operation_handoff 在卸载或缺少 loopx-workspace 时尚未对已持久化的外部来源会话与残留 chat/actions/actions.json 完成只读解耦或类型化降级,导致既破坏了仓库现有单测,又在真实跨进程/残留状态下抛出未捕获 ModuleNotFoundError。
改动思路 / Approach
架构流向如下:打包阶段由 packages/loopx-core/prepare.py 的 _workspace_source() 将 loopx/chat/**、loopx/chat_*.py、loopx/web/chat(经 scripts/chat_bundle.py 校验摘要)与 14 个 WORKSPACE_MODULES 划入 loopx-workspace,并从 loopx-core 与 loopx/cli.py 排除;运行期 loopx/cli_runtime.py 通过 _workspace_installed()(调用 loopx/python_install_owner.py 的 builtin_capability_installed 核对 dist-info RECORD 与同版本约束)决定 --help、commands 及 dashboard/chat/chat-endpoint 的可用性。身份校验由 loopx/release_manifest.py 的 _distribution_runtime_fingerprint() 把 loopx-core 与互斥同伴 wheel 的 RECORD 文件合并计算哈希,使服务端启动与运行期可识别代码热改或混合安装。
架构评估与当前 PR 边界: 将打包清单收口至 packages/loopx-core/prepare.py 单一声明源并复用 builtin_capability_installed 与 inbox_turn_start 的既有协作范围在整体方向上是合理的,但将核心路径 source_chat_observation 与 operation_handoff 改为运行时懒导入仍属 Workspace 专属的 chat_store 与 chat_action_store 而未剥离只读逻辑或捕获缺失,会直接阻断独立 Core 运行与现有单测,必须在当前 PR 内完成简化收口。 当前 PR 边界:M3 阶段的 loopx-workspace wheel 拆出、release_manifest 联合 RECORD 指纹校验与 turn_start_hook 向核心协同层的提取,不含可选能力 wheel 拆分及仍未封口的 Core 只读 Chat/动作适配。
具体改动 / Changes
关键代码讲解
packages/loopx-core/prepare.py:40-112(_workspace_source,prepare_core_source,prepare_workspace_source):通过WORKSPACE_MODULES与loopx/chat*规则切分核心与工作区代码;构建loopx-workspace时调用scripts/chat_bundle.py verify --source验证静态资源完整性,并写出同版本约束requires-core.txt(loopx-core==<version>)。loopx/release_manifest.py:313-374(_owned_runtime_files,_distribution_runtime_fingerprint):在installed.name == "loopx-core"时按RECORD遍历WORKSPACE_DISTRIBUTION与同伴能力包并确认键集互不相交,再与磁盘文件集合actual == files.keys()精确比对后计算package_fingerprint。loopx/cli_runtime.py:725-733,971-990,1046-1056(_workspace_installed,_run_command):仅当_standalone_core()为真且_workspace_installed()为假时拦截chat/chat-endpoint/dashboard并提示安装匹配版本 wheel;在commands与--help中按安装态动态披露工作区命令。loopx/control_plane/collaboration/source_chat_observation.py:29-84(original_turn_reader,observe_source_chat):将原本模块顶层的from ...chat_store import _read_json, ...移入函数体,虽然避开了核心启动阶段导入失败,却移除了解析测试依赖的模块属性source_chat_observation._read_json,并在执行外部来源检查时直接触发ModuleNotFoundError。loopx/control_plane/collaboration/inbox_turn_start.py:16-98(turn_start_hook)与loopx/cli_commands/quota_should_run.py:70:将turn_start_hook从loopx.capabilities.manager_context提取至 Core 所属的control_plane.collaboration下,保持独立安装loopx-core时不加载manager_context即可完成 Turn 前置 inbox 观察。
规范映射(spec_basis)
依据接受的规范 docs/architecture/rfcs/monorepo-distribution-split-v0.md(固定基线修订 5cfd6ae7d571f2f97da40982db23f76540723c89):
I1(implemented):单仓单 PR 跨包演进,packages/loopx-core/prepare.py、loopx/与.github/workflows/package-smoke.yml同 PR 提交并验证。I2(not_met):核心与工作区包成员在静态打包上互斥(test_core_workspace_distribution.py2 项及test_core_distribution.py42 项通过),但核心协同观察路径source_chat_observation.observe_source_chat与operation_handoff._store仍直接依赖 Workspace 私有模块loopx.chat_store/loopx.chat_action_store。I3(implemented):loopx/capabilities/manager_context/__init__.py:42为turn_start_hook保留公开 re-export;未破坏manager_context既定公开导入。I4(not_met):未安装loopx-workspace时,dashboard能正确提示缺失(rc=2),但面对既有外部渠道来源的manager-inbox request --parent-request-id与存在残留actions.json的manager-inbox read未能优雅降级,而是抛出未捕获ModuleNotFoundError。I6(implemented):loopx check公共/私有边界与双语 RFC 校验通过(canary premergepublic_boundary与check_rfc_bilingual.py均通过)。V1(implemented):test_core_workspace_distribution.py验证仅装 Core 时不加载chat_server/dashboard_launcher/manager_context/chat_store。V2(not_met):基础协作转交在无外部/动作残留时通过,但外部会话转发与actions.json待办读取在file和sqlite两种后端均崩溃,破坏了核心独立读写的等效性。V3(implemented):loopx --help、commands、chat-endpoint --help与缺失提示退出码(2)表现一致。V6(not_met):虽然dashboard/chat协同只读视图与重放通过,但外部渠道原始请求被接收方在 Core 环境下通过--parent-request-id转交或控制时崩溃,无法维持原始会话协作边界。
对主干的风险 / Risks
阻塞发现(Findings)
-
[P1 / pr_regression]
source_chat_observation失去模块级_read_json导致现有测试双后端失败- Trigger:
tests/control_plane/test_chat_request_inventory.py:311读取source_chat_observation._read_json。 - Code Path:
loopx/control_plane/collaboration/source_chat_observation.py:35,61将from ...chat_store import _read_json移入original_turn_reader与observe_source_chat函数内部,移除模块属性。 - Incorrect Outcome:在当前提交 head 执行
pytest tests/control_plane/test_chat_request_inventory.py时[file]与[sqlite]两个变体均以AttributeError: module 'loopx.control_plane.collaboration.source_chat_observation' has no attribute '_read_json'失败(而在基线5cfd6ae7d571上同一测试两项均通过)。 - Minimum Repair:将只读 JSON 读取辅助与 Core 的只读校验留在核心模块(或由测试显式指向公共只读 helper,并在移除 Workspace 模块后仍不依赖
chat_store私有_read_json)。 - Regression Test:
uv run --extra test python -m pytest -q tests/control_plane/test_chat_request_inventory.py
- Trigger:
-
[P1 / core_boundary_break] 核心协作来源读取
observe_source_chat仍硬导入 Workspace 专属的loopx.chat_store(确认并扩展已有loopx-agentreview 发现)- Trigger:先在含
loopx-workspace的环境中由外部受众渠道(如manager.external.fixture)发起并持久化一条已授权父请求,再在仅安装loopx-core的环境下由接收 Agent 执行loopx manager-inbox request --parent-request-id <id>(或通过request_control_source/delegation_context/source_grant_observation核验该来源)。 - Code Path:
loopx/control_plane/collaboration/peers.py:235->peer_context_observation.py:50(仅捕获(OSError, KeyError))->source_chat_observation.py:56-62执行from ...chat_store import ...;同调用链还存在于request_control_source.py:75、delegation_context.py:141,171、source_grant_observation.py:207,215(均未捕获ModuleNotFoundError)。 - Incorrect Outcome:经反事实独立 venv 实测,在
file与sqlite两种存储后端下,仅装loopx-core执行外部渠道父请求转发均直接以rc=1崩溃,stderr 抛出ModuleNotFoundError: No module named 'loopx.chat_store';重新安装loopx-workspace后相同命令恢复rc=0, ok=true。这违反 RFCI2/I4/V2/V6。 - Minimum Repair:将
source_chat_observation.observe_source_chat所需的只读 Chat session/turn 校验、schema 常量与 ID 校验下沉至 Core 只读层(不依赖 Workspace 的ChatSessionStore写入/服务端栈),或显式将此缺失映射为带loopx-workspace恢复提示的受控阻塞,并在 4 处 Core 调用方补齐负向测试。 - Regression Test:在仅装
loopx-core的环境对已持久化的manager.external.*请求运行manager-inbox request --parent-request-id并在 Core/Workspace 拆分测试中覆盖。
- Trigger:先在含
-
[P1 / core_boundary_break] 运行根目录存在残留
chat/actions/actions.json时manager-inbox read崩溃- Trigger:在同一运行根目录曾由 Workspace 产生过
<runtime_root>/chat/actions/actions.json(即便为空列表{"proposals": []}),随后在仅安装loopx-core的环境下执行loopx manager-inbox read。 - Code Path:
loopx/control_plane/collaboration/inbox.py:228-234(_pending_result)->operation_handoff.py:90-98(pending_operation_handoffs检查actions.json文件存在后调用_store(runtime_root))->operation_handoff.py:30执行from ...chat_action_store import ChatActionStore;而cli_commands/manager_inbox.py:552与inbox_turn_start.py:51仅捕获(OSError, ValueError)。同路径亦被核心模块loopx/control_plane/turn_driver/managed_operation_host.py:155,275调用。 - Incorrect Outcome:实测
file与sqlite两种后端下loopx manager-inbox read均以rc=1崩溃并抛出ModuleNotFoundError: No module named 'loopx.chat_action_store',导致残留历史状态阻断纯 Core 用户的日常收件箱读取。 - Minimum Repair:将只读
ChatActionStore查询能力纳入 Core 协同层或将actions.json读取与缺失 Workspace 的降级转为核心可处理边界(不可让未捕获ModuleNotFoundError逃逸)。 - Regression Test:在含
<runtime_root>/chat/actions/actions.json的 Core-only 环境下验证manager-inbox read与turn_start_hook。
- Trigger:在同一运行根目录曾由 Workspace 产生过
验证汇总与基线归因
| 验证项 | 命令/范围 | 结果 | 归因/说明 |
|---|---|---|---|
| 静态质量与类型 | git diff --check、ruff check、mypy、tsc --noEmit |
PASS | mypy 17 文件无错误;changed .py ruff 全通过 |
| TypeScript 控制面 | npm run test:control-plane |
PASS (6661 passed, 91 skipped) | 91 条 PostgreSQL 测试因无 PG 环境按契约跳过 |
| Canary Premerge | loopx canary premerge --from-git-diff --git-diff-base 5cfd6ae7d571 --tier quick |
PASS (4/4) | check_rfc_bilingual.py、3 项目录金丝雀及公共边界扫描均通过 |
| Core 与 Workspace 分发套件 | test_core_distribution.py + test_core_workspace_distribution.py + test_installed_core_context.py |
PASS (42 + 11 passed) | 顺序执行于独立 wheel venv,互不冲突 |
| 协同清单与身份 | test_chat_request_inventory.py + test_distribution_runtime_identity.py |
FAIL (2 failed, 74 passed) | pr_regression:上述 Finding 1 在 [file]/[sqlite] 失败(基线 5cfd6ae7d571 同测均通过) |
| Native Steward Host | test_native_steward_turn_host.py -k "not stopped_after_model";stopped_after_model 对比基线 |
96 passed;1 failed | stopped_after_model 在基线 5cfd6ae7d571 上复现同等 assert 'committed' == 'failed',属 pre_existing_unrelated |
| 反事实 Wheel 实测 | 独立 venv 安装 Core/WS 后卸载 WS 测试外部父请求与 actions.json |
FAIL (4/4 Core-only probes) | 复现 Finding 2(chat_store)与 Finding 3(chat_action_store),重装 WS 后恢复 |
另外,注意远端 PR 当前 mergeable == CONFLICTING(相对主干存在冲突需后续作者 rebase 解决),但本次评价与退回完全基于当前精确提交的代码正确性与边界缺陷。
我的整体评价 / Verdict
综合 Long-Horizon(regression) 与 User Experience(regression) 评估:拆分 loopx-workspace、release_manifest.py 联合指纹以及 dashboard/chat 缺失时的 CLI 引导均符合 docs/architecture/rfcs/monorepo-distribution-split-v0.md 演进方向(reuse_existing 既有分发所有权与协同范围,未引入多余语义词表),default_off_isolation 与 authority_semantics 对仅装 Core 的静态隔离及生命周期语义保持一致;但代码体量(code_volume: necessary / simplify_now)与架构变更合理性(change_proportionality: proportionate,但 architecture_assessment 为 simplify_now)受限于 Core 边界未收口——source_chat_observation 破坏现有测试 _read_json 属性且 observe_source_chat / operation_handoff._store 仍强依赖已被移入 Workspace 的 chat_store 与 chat_action_store。
Visual Review: 已核查 loopx/presentation/research_analysis_api.py 与受影响 CLI/服务器接口,本 PR 未修改任何前端渲染页面或视觉组件(前端仅改由后端静态资源清单打包并由 503 JSON 状态码隔离 research_analysis_unavailable),并已运行真实 chat/dashboard HTTP 服务及资产读写测试。 未验证范围(unverified_scope):none。
剩余风险与重审门槛: 作者需修复上述 3 项 Core-Workspace 边界漏洞(保留/解耦 source_chat_observation 只读能力、处理 chat/actions/actions.json 跨包存在场景、通过 test_chat_request_inventory.py),并解决相对最新 main 的 CONFLICTING 状态后重新提交评审。
English verdict: REQUEST_CHANGES — PR #9058 breaks tests/control_plane/test_chat_request_inventory.py (AttributeError on source_chat_observation._read_json) and leaves loopx-core crashing with uncaught ModuleNotFoundError (loopx.chat_store on external parent forwarding and loopx.chat_action_store when chat/actions/actions.json is present) after Workspace removal.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
动机 / Motivation
在独立 Core 里完成受检任务后,选择安装 Workspace 来查看原结果的用户,需要知道 Web 入口是否可用。 保留两个同版 wheel 和 RECORD,只移出 Workspace 的必需文件 chat_store.py,顶层 help 仍显示 Dashboard。dashboard --help、chat-endpoint --help 和 chat 实际入口都因缺少同一个模块退出 1。恢复原文件后两个子命令的 help 均退出 0。 提案把可选 Workspace 装进匹配 Core 的环境,并在显式启动时通过已有 Dashboard 或 Chat 读取原登记资料。 本次评审覆盖本地成对 wheel、Core 的 Inbox 与 Web 读回。完整公开发行、桌面安装、真实模型和 IM 使用分别验收。 当前缺口是残缺安装被显示为可用,用户直到打开入口才收到 Python traceback。
改动思路 / Approach
Core 继续持有原任务、Inbox 和结算,Workspace 持有已有会话服务和浏览器资产。安装状态应由同一个轻量检查向 help 和实际入口提供。 当前切片是本地 Workspace 成对安装、显式启动与卸载后 Core 续用。 独立安装可以复用原数据,无需把浏览器服务重新打进 Core。补齐缺件检查即可保留轻量帮助路径。用捕获所有 ImportError 掩盖故障会使启动器更难判断是可选组件缺失还是其它导入回归。
具体改动 / Changes
审查提交 cc42fd0,基线 5cfd6ae。29 个文件 +931/-210。当前头的 #9116 修复将只读来源解析留给 Core,旧批次的来源转交和残留操作记录场景用实装覆盖。
分发 RFC 约束三个本次切片的验收点。V2 权威与结算由原登记、Todo 与结算身份持续读回。V6 本地读回在实际 HTTP 服务的 Dashboard、Chat 两个入口返回同一完成结果。安装状态与恢复仍需处理 wheel 文件不全的真实失败。公开的组合发行资格仍按 M3/R2 验收。
关键代码讲解
prepare_workspace_source验证构建清单并只打包 Workspace 归属的文件。Core 和 Workspace wheel 可共存,前端资产来自同一头。打包observe_source_chat直接读取原会话和 Turn 记录,使用 Core 内的类型常量和 JSON 解析,Core-only 不再为 Inbox 导入 Workspace 会话存储。来源解析_workspace_installed使用已有分发版本与文件归属判断。它没有把chat_store列入必需模块,而chat_server在导入时直接依赖它。发现门 服务依赖
对主干的风险 / Risks
[P2] 拒绝缺少会话存储模块的残缺 Workspace 安装。 保留两个同版 wheel 和 RECORD,只移出 Workspace 的必需文件 chat_store.py,顶层 help 仍显示 Dashboard。dashboard --help、chat-endpoint --help 和 chat 实际入口都因缺少同一个模块退出 1。恢复原文件后两个子命令的 help 均退出 0。 对照环境用相同安装元数据和工作目录。缺件时三个入口的 traceback 均指向 loopx.chat_store,正常 Core-only 则已有安装提示。把 chat_store 加入 Workspace 的必需模块清单或由同一安装清单派生该检查。让顶层 help、commands 与三个实际入口共享同一拒绝和重装提示,保留轻量加载。
完整安装的 Core 与 Workspace 在 File 和 SQLite 上读回原 Todo 和已验收结果,移除 Workspace 后重放原结算没有副作用。Core 单独安装可转交带原来源的 Inbox 请求。 独立重建两个 wheel,1900 个 Core 文件和 90 个 Workspace 文件与当前源码一致,文件不重叠,37 项打包 Web 资产齐全。快速预合入 6 项直接与 4 项选定检查均通过。 扩展套件 275 过、1 败。失败在 Steward 的既有停止负例,基线和审查头单独复验为同一断言失败,尚未归因到这次打包变化。初次 Workspace 构建按预期拒绝了未准备的前端,重新从同头构建后通过。 GitHub 当前分支有冲突,平台门与代码结论分开。远端 CI 无查询。
语义与 CI 对齐
沿用现有的安装可用性判断和半包拒绝约定。声明可用时至少要能导入该入口共同依赖的会话存储模块。实装匹配 wheels,移出 chat_store.py 保留 RECORD,核对帮助和 Workspace 入口均给出明确重装提示;恢复原文件后重跑原 Task 读回。
我的整体评价 / Verdict
求改。复用既有任务与结算提供了实际的 Core 到 Workspace 旅程,#9116 的来源读取修复也在两种本地数据后端有效。缺件时在帮助和实际入口给出一致恢复提示,是这条新安装路径仍需补齐的部分。Workspace 复用现有前端,净 diff 没有改渲染源码。打包 HTTP 入口返回的 HTML、脚本和已完成任务已验证。 实际本地 wheel 和 HTTP 服务已测试。浏览器交互、桌面和 IM 安装、真实模型效果及标准发行组合未在本轮测试。
English verdict: REQUEST_CHANGES at cc42fd0. The installed Workspace readiness gate must reject a missing session-store module before advertising or entering its commands.
cc42fd0 to
9c2eaff
Compare
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · Gemini · Google DeepMind · self_reported
动机 / Motivation
本轮对 PR #9058 精确头 9c2eaff1c9a5d0ab2b143d33e0dfe72b3718cc65 完成整包独立复审。Operators running standalone loopx-core who install or uninstall the matching loopx-workspace wheel to view Core-accepted tasks in local Dashboard/Chat, plus peer agents running Core manager-inbox and Steward adapters on shared registries.
Before PR #9058 (and on earlier review heads), standalone Core could not pair with an optional local Workspace wheel cleanly, and missing or partial Workspace modules triggered discovery/import mismatches; at exact head 9c2eaff, loopx-core and loopx-workspace build cleanly as disjoint wheels, Core forwards source-backed peer requests and reads Core ChatActionStore without chat_store, half-installed removal of chat_store.py or steward_reports.ts consistently hides Workspace entries from --help/commands and exits 2 on dashboard/chat/chat-endpoint with a matching-wheel reinstall prompt until restored, live Dashboard/Chat HTTP endpoints serve the exact Core-accepted Todo evidence on File and SQLite, and uninstalling loopx-workspace leaves Core replay idempotent with zero side effects.
At exact head 9c2eaff, 65/65 installed Core+Workspace wheel tests (0 skipped across test_core_workspace_distribution, test_core_distribution, test_installed_core_context) pass, clean contention-free rerun of test_native_steward_turn_host passes 101/101 alongside 242/242 across 11 collaboration/contract/architecture suites (after an earlier combined-sqlite 15s wait timeout occurred solely under concurrent wheel+canary CPU load), ruff/typecheck:control-plane/check_rfc_bilingual/docs-governance/semantic-vocabulary-drift/maintainability-ratchet/loopx check (39 files)/canary premerge (24/24 checks) all pass, and independent isolated wheel probes verify absent loopx.cli/chat/chat_store on Core-only, residual actions.json tolerance, and missing steward_reports.ts rejection+restore.
- 非目标(non_goals): Does not publish public PyPI/GitHub split releases, package native Desktop shells or IM/Lark end-to-end delivery, move capability packages outside packages/, or run matched model outcome/cost benchmarks.
- 剩余缺口(remaining_gap): Interactive browser walkthrough, native Desktop/IM end-to-end adoption, split pre-release publication, and capability package extraction remain separate RFC M3/R2/M4 milestones.
- 下一步(next_step): Execute package-smoke pre-release workflow and R2/M4 capability extraction milestones under their separate RFC acceptance gates.
- 切分依据(boundary_reason): Landing disjoint loopx-core and loopx-workspace packaging, Core Inbox/ChatActionStore independence, RECORD-completeness install gating, and companion runtime fingerprinting together delivers the complete install-readback-uninstall boundary cleanly without coupling to separate release or IM milestones.
- 规范基线(
spec_basis): 基于基线提交6ac6c6fe285c7e3d244f70aa5aac89935b5a3366的docs/architecture/rfcs/monorepo-distribution-split-v0.md核对规则I1、I2、I3、I4、I6、I7、M3全部implemented。
改动思路 / Approach
将共享的只读源会话校验与 ChatActionStore 核心辅助下沉至 Core collaboration、打包清单收口于 prepare.py 单一分发规则、并在 python_install_owner 与 release_manifest 复用 RECORD 元数据做无导入完整性校验,零新增权威写者且完全满足 I2/I3/I4/I7。
当前 PR 边界(current_pr_boundary): 本 PR 交付可共存可卸载的本地 loopx-core 与 loopx-workspace wheel、Core 独立协作转交/动作存储读回、半包检测与服务指纹校验;公开拆包预发布、桌面端与飞书端到端继续留待 RFC 既定后续阶段验收。
相比前序阻塞轮次(164ab0c95a 与 cc42fd052f),已独立实证所有阻塞项修复:
- 半残 Workspace 安装检测(原
PRRT_kwDOStEbEs66UjG6):loopx/cli_runtime.py的_workspace_installed()将loopx.chat_store与全量必需 Workspace 模块及非模块资源(endpoints.py、lark_api.py、steward_reports.ts)纳入检查,loopx/python_install_owner.py的builtin_capability_installed()校验dist-info RECORD中所有非字节码loopx/产物均真实存在磁盘且不提前导入 Workspace 代码。实测移除chat_store.py或steward_reports.ts后--help与commands --format json均隐藏工作区命令,dashboard --help/chat-endpoint --help/chat均退出2提示安装匹配 wheel,恢复后即恢复0。 - Core 独立 Inbox 转交与
ChatActionStore剥离(原PRRT_kwDOStEbEs65RSn4):source_chat_observation.py持有CHAT_SESSION_SCHEMA_VERSION/CHAT_TURN_SCHEMA_VERSION/_opaque_id/_read_json并在TYPE_CHECKING下引用ChatSessionStore,inbox_turn_start.py承载turn_start_hook(manager_context/__init__.py保留 re-export);同时将action_store_{common,operations,review_cards}.py移入loopx/control_plane/collaboration/且loopx/chat_action_store.py归入loopx-core,使纯 Core 在File与SQLite上均可独立读回actions.json并转发已授权外部来源请求。 - 复合指纹与懒加载隔离:
release_manifest.py_distribution_runtime_fingerprint将loopx-core与loopx-workspace/ 同伴能力 wheel 的不重叠RECORD产物一并纳入哈希(拒绝错版、重叠与热改);research_analysis_api.py懒加载benchmark_toolkit.trajectory_assessment_store,缺包返回 HTTP503research_analysis_unavailable。
具体改动 / Changes
相对于合并基线 6ac6c6fe285c7e3d244f70aa5aac89935b5a3366,共修改 39 个文件(+1045 / -231):
- 拆包构建与工作流(4 文件):
packages/loopx-core/prepare.py(_stage_source、_workspace_source、prepare_workspace_source校验前端清单并生成requires-core==<version>)、packages/loopx-workspace/{pyproject.toml,README.md}、packages/{README.md,loopx-core/README.md}、.github/workflows/package-smoke.yml。 - 安装门控、帮扶提示与服务指纹(4 文件):
loopx/python_install_owner.py(builtin_capability_installed)、loopx/cli_runtime.py(_workspace_installed与前置门控)、loopx/help_surface.py、loopx/release_manifest.py(_owned_runtime_files与伴随包指纹)。 - Core 协作与 Steward/研究接口解耦(19 文件):
loopx/control_plane/collaboration/{inbox_turn_start.py,source_chat_observation.py,action_store_*.py}、loopx/chat_action_store.py、loopx/chat_store.py、loopx/chat/todo_action_*.py、loopx/capabilities/manager_context/{__init__.py,roundtrip.py}、loopx/capabilities/native_chat/steward_{commands,monitor,turn}.py(全切换_build_selected_parser)、loopx/cli_commands/{manager_inbox,quota_should_run}.py、loopx/presentation/research_analysis_api.py。 - 双语 RFC 与验证矩阵(12 文件):
docs/architecture/rfcs/monorepo-distribution-split-v0.{md,zh-CN.md}、tests/test_core_workspace_distribution.py(365 行)及 7 个关联契约/分布测试文件。
对主干的风险 / Risks
未发现阻塞主干风险。
- 独立实wheel验证(
65/65零跳过): 在隔离 venv 中从当前精确头自构建loopx_core-2.4.1(7.8M)与loopx_workspace-2.4.1(1.7M),完整执行tests/test_core_workspace_distribution.py、tests/test_core_distribution.py与tests/control_plane/test_installed_core_context.py,65 passed in 526.83s(0 skipped)。 - Steward 并发超时归因与无争用复验: 首次与其他重负载进程并发跑 12 个套件时,
tests/test_native_steward_turn_host.py::test_native_task_consumes_owner_goal_checks[combined-sqlite]曾因 CPU 争用触发 15swait_for_turn超时(其余 342 项通过);在无争用环境下单独复跑该用例5.89s通过,随后完整重跑tests/test_native_steward_turn_host.py全部101 passed in 235.36s。 - 既有注解与边界说明:
mypy --strict --follow-imports=silent在移入的inbox_turn_start.py(4 处,来自manager_context/__init__.py)与未改函数的source_chat_observation.py:99(1 处)存在与基线6ac6c6fe28相同的既有类型注解缺失;pyproject.toml[tool.mypy]mypy --follow-imports=silent17 个源文件全通过。
本地验证汇总(精确头 9c2eaff1c9a5d0ab2b143d33e0dfe72b3718cc65,wait_for_ci: false)
scripts/chat_bundle.py build --install && verify --source+loopx_core-2.4.1/loopx_workspace-2.4.1打包与 65 项实装测试:PASS(65 passed, 0 skippedin 526.83s)- 隔离实轮反事实探测(Core-only
-I模块find_spec、残留actions.jsonmanager-inbox read、移除并恢复steward_reports.ts触发帮助隐藏与rc=2拒绝):PASS - 协同/身份/架构 pytest 矩阵:
tests/test_native_steward_turn_host.py无争用全套101 passed(235.36s);其余 11 个套件(test_chat_action_store_contract、test_chat_todo_actions_contract、test_distribution_runtime_identity、test_chat_internal_module_layout、test_chat_request_inventory、test_peer_source_store、test_top_level_module_budget、test_chat_action_kind_owner、test_package_kernel_import_ratchet、test_maintainability_ratchet、test_rfc_bilingual)242 passed npm run typecheck:control-plane/ruff check/mypy --follow-imports=silent(17 源文件)/scripts/check_rfc_bilingual.py/scripts/generate_rfc_status_index.py --check:PASS- 隔离
HOME烟雾测试(docs-governance-smoke.py、semantic-vocabulary-drift-smoke.py34/34、control-plane-maintainability-ratchet-smoke.pyunreviewed_count=0):PASS loopx check --scan-path ...(39 个改动文件):PASS(0 errors, 5 checks)loopx canary premerge --from-git-diff --git-diff-base 6ac6c6fe28 --profile standard:PASS(5/5直接检查与编译、10/10目录金丝雀、8/8风险烟雾、1/1公开边界扫描全过,merge_gate_passed: true)
我的整体评价 / Verdict
在精确头 9c2eaff1c9a5d0ab2b143d33e0dfe72b3718cc65 上独立构建实包并完成全量 65 项 Core/Workspace 实装测试、反事实缺件探测与 343 项协同/契约/架构测试:既有所有阻塞线程已实质修复,Core 独立协作与 Workspace 安装/读回/卸载边界完整一致,给出 APPROVE。
English verdict: APPROVE at head 9c2eaff. Built loopx-core==2.4.1 and loopx-workspace==2.4.1 from exact head and passed 65/65 installed distribution tests (0 skipped) across File and SQLite, isolated counterfactual probes (missing chat_store.py / steward_reports.ts hiding Workspace commands and exiting 2 until restored; Core-only actions.json tolerance), 101/101 contention-free test_native_steward_turn_host plus 242/242 across 11 contract/architecture suites, ruff, mypy --follow-imports=silent (0/17; 5 strict annotations in inbox_turn_start/source_chat_observation match base parity), typecheck:control-plane, check_rfc_bilingual, docs/vocabulary/ratchet smokes, loopx check (39 files), and canary premerge (24/24 checks; wait_for_ci: false).
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 缺失打包前端清单时仍报告 Workspace 就绪。 从精确提交构建 2.4.1 Core 与 Workspace。只把 RECORD 已记录的 loopx/web/chat/bundle-manifest.json 移到安装树之外。 Distribution.files 在返回时省略缺失路径,两处完整性检查都只看到了剩余文件。目录和命令帮助仍显示可用,运行时指纹非空且已变化,真实 Dashboard 启动退出 1。 在现有 Python 安装归属 owner 从原始 wheel RECORD 取完整声明清单,再逐项检查文件。发现与服务身份复用同一结果,缺件时隐藏命令并停止生成指纹。 增加移走前端清单这一负例,要求普通发现、启动诊断、指纹都拒绝;恢复后验证原指纹及 Dashboard 上的原任务和证据。
安装检查 · 服务指纹
动机 / Motivation
独立 Core 用户加装 Workspace 后,通过命令目录确认 Dashboard 可用,再读回原任务与验收证据。
完整安装可以直接浏览已完成任务。若前端清单缺失,命令目录仍列出 Dashboard,实际执行却以退出码 1 报清单不可用。 在 Python 3.12.15 和 3.14.8 的真实 Core 与 Workspace wheel 上均复现。原始 RECORD 保留清单路径,发现仍报告就绪,服务身份还生成不同于健康安装的非空指纹。恢复同一文件后原指纹与任务读回恢复。
本轮验证本机打包 Workspace 加装、原任务读回、缺件和恢复。公开拆包发布、客户端与飞书采用仍待各自验收。
以 6ac6c6fe285c7e3d244f70aa5aac89935b5a3366 的分发规范核对 I2、I3、I4、I7。Core 保有原任务权威,已知导入和不应启动的可选路径维持边界。I4 的损坏安装降级需要补齐。原分发规范
改动思路 / Approach
保留同一 Core 状态、已有命令入口和独立 Workspace 包。安装阶段从共享归属模块取完整文件声明,运行时只消费验证结果。此前缺少必需 Python 模块和指定资源的反例已覆盖。缺失的前端清单无需增加一个特例,完整声明中的任一组件丢失都应让现有检查给出同一结论。
具体改动 / Changes
- 分发脚本从同一提交构建两份互斥 wheel,验证前端资源清单和匹配版本。定向安装测试 7 项全过,包含 File、SQLite 上原任务读回、卸载后的重放和 Core 独立协作。已检查实际打包 Workspace 中既有任务列表和展开详情,桌面与窄屏都可读回状态和证据。
- 动作库和来源读取薄层留在 Core,Steward、会话日历与 Dashboard 由 Workspace 持有。研究评估等通过作用域检查后再延迟加载。当前合成任务独立验证后,Dashboard 在实际浏览器显示
已完成与原验收文字。 builtin_capability_installed与_owned_runtime_files都使用 Python 已过滤的文件列表。清单失踪不会使这些检查找到缺件,后续 Dashboard 自己的 bundle 校验会拒绝。该分歧在两种实际解释器下均出现,恢复原字节即可重用原身份。Python 元数据枚举
对主干的风险 / Risks
首次标准预检的安装冒烟测试在 120 秒上限超时,隔离重跑的 6 项直接和 19 项执行检查均通过。 对本轮核实的主干做只读整合预览,存在 7 个文件冲突,涉及共享安装归属、CLI、运行时指纹与包准备。修复后需要在组合后的精确提交上重验共享入口。已构建的当前包中,缺失清单的实际启动会提示修复;发现和身份仍给出错误信号。
我的整体评价 / Verdict
REQUEST_CHANGES。 先在共同安装归属边界验证完整 RECORD,再用实际缺件与恢复反例核对发现和指纹。已检查实际打包 Workspace 中既有任务列表和展开详情,桌面与窄屏都可读回状态和证据。本轮页面使用合成任务。未验证窄屏默认列表、原生桌面和飞书。
English verdict: REQUEST_CHANGES at 9c2eaff. Removing only the recorded browser bundle manifest leaves Workspace discoverable and produces a nonempty runtime fingerprint, while the real Dashboard refuses startup on both Python 3.12 and 3.14. Validate the full declared file set through the shared owner.
9c2eaff to
68f35fe
Compare
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…re discovery or dispatch Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…tion package Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…tern Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
68f35fe to
6e39d0c
Compare
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
已核对当前提交和既有评审的阻塞项。未实测真实模型输出、原生客户端、飞书和远端 CI。
动机 / Motivation
用独立 Core 完成有验收任务、之后安装 Workspace 的用户,以及重新使用同版本本地服务的调用方。 从精确提交构建 Core 与 Workspace。在隔离环境完成带独立验证的任务。临时移走已在 RECORD 登记的前端清单,然后恢复同一字节并打开原任务。 缺少清单时命令目录隐藏 Dashboard,启动和帮助退出 2,指纹不再发布。恢复后指纹与原值相同,Chromium 的合成任务显示已完成和原验收文字。390 px 的任务详情无页面横向溢出。 本次交付是本机打包候选和现有浏览器旅程。公开拆包、原生桌面及 IM 安装采用有独立资格验证。 之前的精确头在 wheel 丢失已登记的前端清单时,发现报可用,服务身份仍给指纹,实际 Dashboard 拒绝运行。 Core 和 Workspace 复用原始任务及回执。同一完整安装检查决定发现、启动和身份,组件不可用时可恢复,并保留 Core 的原有工作。 对照契约 对照修订 ff55255012b7b192ed7fb92d64b91ae40ecce801。
- I2 安装与卸载 Workspace 时保留同一个 Core 任务权威和原回执。 通过。
- I3 协作兼容入口继续由 Core 提供,原会话由 Workspace 按需打开。 通过。
- I4 缺失任一选定 Workspace 组件时发现、诊断和身份一起降级。 通过。
改动思路 / Approach
Core 的状态、管理收件箱和动作 owner 仍只存在一份。Workspace 增加同进程的可选前端、服务和原会话适配器。 脆弱点是已裁剪的元数据枚举,不是特殊清单文件。用原始 RECORD 的完整声明同一处裁定,让健康、缺件和修复走正常入口。 此前精确安装在 Python 3.12 与 3.14 中仅移走 bundle manifest 后仍宣告可用,服务生成新的非空指纹。主干 RFC 定义可选安装等于默认关闭的降级。 重放上一轮真实的丢失清单场景,并复核当前整份分发与核心任务旅程。 按仓库经验,在局部规则与包装变更之间检查首次使用及失败读回,从同一真实入口取证。
具体改动 / Changes
精确提交 6e39d0c01af59d419fa71fa7dee048b4b6d1961f,40 个文件 +1117/−244。40 个文件集中在分发准备、Core 路由、薄兼容导入和安装用例。没有新增用户状态 owner 或新面板。
distribution_recorded_files。按原始 RECORD 读取已声明的安装项目,删除已登记的清单也保留其预期项。 代码builtin_capability_installed。相同版本、模块和在包根的声明文件一起决定可用性。 代码_workspace_installed。发现和三条选定命令在入口使用同一已安装状态。 代码_owned_runtime_files。服务身份消费由既有 owner 给出的完整定义。 代码
93 项源码验证驱动的安装包测试通过。实际双 wheel 后端通过合成任务回执、HTTP 资源与原验收读回,浏览器桌面和 390 px 截图确认详情。 定向回归测试
对主干的风险 / Risks
旧头缺件如同装好。现头在真实 Python 3.14 安装树隐藏能力并停止发布指纹,恢复同一资源后整套状态与初始相同。 标准本地预检 19 项执行检查均通过。 针对 PR 基线的只读 merge-tree 和签署检查通过。首次本地预检因缺少根目录 TypeScript 开发依赖中断,完成 npm ci 后以同一提交复跑。未实测真实模型输出、原生客户端、飞书和远端 CI。
语义与 CI 对齐
构建当前两份 wheel,分别在 File、SQLite 运行原任务、已登记资产缺失和恢复、HTTP/浏览器只读与卸载后重放。 同一入口的变体先验证作用域,再从原捕获校验关键事实。
我的整体评价 / Verdict
APPROVE。 沿已有安装归属 owner 用原始声明统一验证,CLI、发现和身份复用同一文件集合。保留新整合后的独立包验证。 当前包的安装、失败与恢复得到相同服务入口的真实读回,原评审问题已封闭。 保持同一包命名空间、公用任务存储及原有代际,与可选 Issue Fix 安装无耦合。 本机可选包的读回已验证,公开拆包及其他 host 渠道仍按各自契约完成。
English verdict: APPROVE at 6e39d0c. Built Core and Workspace wheels now hide Workspace and omit the runtime fingerprint when the recorded bundle manifest is missing. Restoring the same file restores identity and verified-task readback in the packaged browser.
Goal and delivered outcome
A user can complete a checked task in standalone Core, add the matching Workspace wheel, and find the original task and its accepted result in the local browser. The existing
dashboard,chatandchat-endpointcommands use the original registry and runtime. The packaged frontend is built and checked against the same checkout. Workspace starts on explicit request, and Research Analysis loads its assessment implementation after scope validation.Core and Workspace own disjoint installed files in the same Python environment. The existing service identity includes the installed Core companion wheels, so Dashboard can reuse a matching service and refuse a service that is still running older bytes of the same version. The paired RFC and package instructions describe installation, readback and removal.
The Workspace wheel also owns the native Steward and session-calendar adapters that use the original conversation store, while using the existing selected Core commands (
_build_selected_parser) to execute and recover work. Core keeps the shared Inbox, typed action store helpers (loopx/control_plane/collaboration/action_store_{common,operations,review_cards}.pybehindloopx/chat_action_store.py), and original peer identity. Its before-work read, request, adoption and result return work in a Core-only installation (find_spec("loopx.chat") is None), and reads of original Workspace conversations load the session store on demand.Before discovery or dispatch,
_workspace_installed()andbuiltin_capability_installed()check all required Workspace entry modules (includingloopx.chat_store) and read the rawRECORDmanifest (distribution_recorded_files()+is_distribution_artifact()inloopx/python_install_owner.py, reused byloopx/release_manifest.py:_owned_runtime_files()) rather thanimportlib.metadata.Distribution.files, which filters missing files on disk. Removing a non-Python asset such asloopx/web/chat/bundle-manifest.jsonnow consistently hides Workspace commands from discovery/help, returns exit code2with reinstall guidance ondashboard,dashboard --help,chat-endpoint --help, andchat, and omitspackage_fingerprintuntil restored.loopx/chat/action_normalization.pyalso imports_REPO_PATTERNdirectly from Core-includedloopx.capabilities.issue_fix.github_publicso Workspace works cleanly without optionalloopx-capability-issue-fix.Related to #5072 and the package boundaries in #9038 and #9049. Rebased onto
origin/main@379b9ea3e9(cleangit merge-tree --write-tree origin/main HEAD:2dddbd946dagainstorigin/main@ff55255012), preserving#9499package-smokepull_requesttrigger boundaries and#9494decision_contextturn-start hook registration.Verification of the current head (
6e39d0c01af59d419fa71fa7dee048b4b6d1961f)Tested exact rebased head
6e39d0c01af59d419fa71fa7dee048b4b6d1961fwith source-builtloopx-core==2.4.1andloopx-workspace==2.4.1wheels on macOS arm64 (Python 3.14.8). Runtime tests use synthetic tasks and local Codex and Lark fixtures.tests/test_distribution_runtime_identity.py,tests/test_core_workspace_distribution.py([sqlite]&[file]with real builtloopx-core==2.4.1+loopx-workspace==2.4.1wheels, confirmingloopx/capabilities/decision_context/turn_start_hook.pyis packaged inside Core),tests/test_core_distribution.py, andtests/control_plane/test_installed_core_context.py. Covers disjoint wheel ownership, Core-onlyfind_spec("loopx.chat") is None, CoreChatActionStorereadback, Workspace HTTP/chat/&/api/chat/*readback, independent removal/restoration of bothloopx/chat_store.pyandloopx/web/chat/bundle-manifest.jsonwith rawRECORDretained (hiding Workspace discovery, omittingpackage_fingerprint, refusingdashboard/dashboard --help/chat-endpoint --help/chatwith exit code2, and restoring original fingerprint + Dashboard readback), realDistribution.at()rawRECORDunit coverage, and Core replay after uninstall.tests/test_ci_resource_policy.py(includingpackage-smokepull_requesttrigger checks),tests/test_python_ci_workflow.py,tests/test_distribution_runtime_identity.py, andtests/capabilities/test_decision_context_turn_hook.py.npm run typecheck:control-plane(0errors),scripts/check_rfc_bilingual.py --base origin/main --head HEAD(pass),ruff check(All checks passed!), strictmypy --strict --follow-imports=silent loopx/python_install_owner.py loopx/release_manifest.py(2/2passed),loopx/*.py == 112, scoped public boundary check (0errors /0warnings), and premerge gate (--tier standard --timeout-seconds 300,merge_gate_passed: true,0failures).Prior verification
68f35fea190d742a294cf2da6bb6b6eec484f33balso passed305 passed in 923.80s (0 failed, 0 skipped)acrosstests/architecture/,tests/canary/test_maintainability_ratchet.py,tests/test_chat_action_store_contract.py,tests/control_plane/test_chat_todo_actions_contract.py,tests/test_chat_internal_module_layout.py,tests/control_plane/test_chat_request_inventory.py,tests/control_plane/test_peer_source_store.py, andtests/test_native_steward_turn_host.py.164ab0c95a9e977d61ec675215f18fd5804f0264,2dc3be7333f6424c72a402d47fbc13f93458afcd) verified 20 native Steward installed cases and packaged Chromium views at1365 x 900and390 x 844on macOS arm64; no frontend bundle styling changed on6e39d0c01a.The Package Smoke lane builds both artifacts and exercises the same install, File/SQLite readback and removal contract. Public split release, native Desktop and IM adoption, and matched model outcomes and complete costs remain separate RFC acceptance.
Author declaration
Written with AI assistance (DCO sign-off preserved across all commits).