Repository navigation
fix(packaging): preserve collaboration in standalone Core - #9116
loopx-agent merged 1 commit into
Conversation
Signed-off-by: LoopX Agent <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.1-sol · OpenAI (runtime_reported, low)
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
仅安装 Core CLI、需要继续原会话协作的调用方。 此前父请求可见,但移除 Workspace 后转交在导入会话模块时异常退出;修复后无需重装即可向获授权接收方转交。 独立环境只安装当前 Core wheel,确认无 chat_store;File/SQLite 合法转交成功、child 保留原 parent/Turn,原会话 JSON 字节不变且协调根不创建 chat。 只修复 Core 只读协作;不宣称父 #9058、完整 Workspace 或发布资格完成。 Workspace wheel 构建因本地没有前端 bundle 失败,完整双 wheel 共装/移除、已安装 App、Windows 未验证。四项 Core-only 测试不使用 Workspace artifact,fixture 第二路径仅是未使用占位,不能视为 Workspace 证据。
改动思路 / Approach
既有 Core source_chat_observation 接管相同 schema 常量、opaque-id 校验和 JSON reader,Workspace chat_store 导入复用;既有 chat_action_store 原文件由 Core 分发,没有第二份状态或决策器。三个生产文件改变 import 方向与分发归属;四个测试文件验证 Core-only 读取、授权拒绝、来源字节不变及包限定 fixture 导入。地址只定位冻结来源,原 source-grant owner 仍决定是否允许转交;读取不获取会话写权限。
具体改动 / Changes
精确 head 4718d4e46629409f2991b6f477b1b58b4f619208,diff base 164ab0c95a9e977d61ec675215f18fd5804f0264,7 个文件 +115/-45。逐项复核 最小安装与可选依赖缺失、唯一机制与依赖方向。验收约定
关键代码讲解
- 旧 chat_store 导入复用下移后的同值 schema/helper,公共模块名保持。源码
- observer 无 Workspace 运行时 import,原身份/schema/来源拒绝保持。源码
- 既有 action store 原文件只由 Core 分发,Workspace 按相同分类排除。源码
- tests 包限定导入修复 fixture 可达性,real CLI 验证授权、拒绝与字节不变。源码
对主干的风险 / Risks
源码测试 90 PASS / 13 SKIP;明确提供 Core wheel 后四项 File/SQLite real CLI 测试 4 PASS,对照 base wheel 4 FAIL。quick premerge 六项 direct、三个 catalog canary 全通过。 Workspace wheel 构建因本地没有前端 bundle 失败,完整双 wheel 共装/移除、已安装 App、Windows 未验证。四项 Core-only 测试不使用 Workspace artifact,fixture 第二路径仅是未使用占位,不能视为 Workspace 证据。
语义与 CI 对齐
原 Chat/operation schema、source grant 和 Goal/Agent 过滤不变;仅恢复可选 Workspace 缺失时的已有读取路径。 未查询或等待 CI,quick 通过不能替代独立 merge gate。
我的整体评价 / Verdict
同意此范围明确的 Core 修复。实际 Core-only 安装恢复后续协作,保留来源只读和第三方拒绝。父 #9058、其他独立问题和完整 Workspace 资格仍未完成。Workspace wheel 构建因本地没有前端 bundle 失败,完整双 wheel 共装/移除、已安装 App、Windows 未验证。四项 Core-only 测试不使用 Workspace artifact,fixture 第二路径仅是未使用占位,不能视为 Workspace 证据。
English verdict: APPROVE. The Core-only wheel restores authorized forwarding and existing operation reads while preserving source bytes and audience rejection; full Workspace installation remains unverified.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
只安装 LoopX Core 的使用者,需要从已有 Chat 会话转交授权请求,也要读取此前写入的操作记录。 旧版这两条路径会加载独立 Core 没有的 Workspace 模块。新版让 Core 按原来的来源和授权规则读取冻结会话及操作记录。 独立构建的安装包在 File 与 SQLite 上完成了原请求转交并拒绝未授权接收方,原始记录保持原样。 此补丁以 #9058 的分支为目标,覆盖独立安装和组合回归,主干集成仍由上游 PR 负责。
改动思路 / Approach
冻结协作来源与 typed operation read 留在 Core,可变会话继续由 Workspace 管理。 核验的生产边界包括当前会话记录读取、操作存储包装归属及两种安装组合。 我按 #9058 的实际目标分支核对了补丁。独立 Core 无需安装 Workspace 就能读取已有数据。组合安装继续复用同一份会话记录和操作状态。 保留既有的拒绝判定和原数据归属,当前补丁无需引入第二套状态机。
具体改动 / Changes
以当前目标基线 164ab0c 的既有契约为依据,逐项核对期望行为。 原有契约
- CORE-AUTHORIZED 已实现。按已有授权来源转交请求,原会话和请求身份可追溯。 核对了 observe_source_chat 和实际入口。
- SOURCE-AUDIENCE 已实现。越过原授权范围的接收者被拒绝,原来源未被写入。 核对了 manager-inbox 和实际入口。
- CORE-OPERATIONS 已实现。已存在的操作存储支持无 Workspace 读回,错误格式仍拒绝。 核对了 _workspace_source 和实际入口。
独立构建的安装包在 File 与 SQLite 上完成了原请求转交并拒绝未授权接收方,原始记录保持原样。 此补丁以 #9058 的分支为目标,覆盖独立安装和组合回归,主干集成仍由上游 PR 负责。
对主干的风险 / Risks
重新构建两个匹配的轮子,组合与独立安装套件 13 项通过,Ruff 和 Git diff 检查通过。 正常路径和拒绝后的状态已在隔离输入上读回。我按 #9058 的实际目标分支核对了补丁。独立 Core 无需安装 Workspace 就能读取已有数据。组合安装继续复用同一份会话记录和操作状态。 未独立验证 Linux 或真实模型 Host,远端 CI 未检查。
我的整体评价 / Verdict
检查了实际安装轮子的 CLI、授权和拒绝读回、Workspace 移除后的操作路径,改动没有渲染页面。 未独立验证 Linux 或真实模型 Host,远端 CI 未检查。 当前精确提交 4718d4e 已满足此修复的边界。
English verdict: APPROVE
cc42fd0
into
codex/workspace-wheel-20261119
Goal And Delivered Outcome
Fix the standalone Core regression reported in the #9058 review. A Core-only install can forward an authorized parent request from its original Chat conversation and read an existing typed operation store without importing Workspace. This PR targets the #9058 branch at
164ab0c95a9e977d61ec675215f18fd5804f0264.Author Declaration
164ab0c95a9e977d61ec675215f18fd5804f0264.chat_action_store.py; the Workspace wheel keeps the mutable conversation storeScope And Continuation
This patch addresses the independent installation failure. The original PR retains ownership of integration with
mainand its other findings.Validation
4718d4e466(source plus matching locally built wheels).staticgit diff --check, and the paired RFC checkintegrationreal_entrypoint/real_backendreal_entrypointLocal validation ran on macOS. Linux CI and integration with
mainare separate checks.Frontend / Visual Evidence
UI impact: none. The change concerns Python module ownership and collaboration CLI behavior in an independent installation.
Type of Change
LoopX Area
Shared-authority RFC fixture impact: N/A.
Boundary Checklist