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
从全局注册入口为启用了 Explore 的 Goal 接收研究证据的操作者。 在全局注册仅保留 Goal 引用时,旧 readback 错误在全局视图核对 Explore,导致同一已启用 Goal 被拒绝。 读取和投影先沿既有 Goal 来源解析,已准入证据进入原 Explore 节点,重复回放不会再次追加。 交付范围是 Research CLI 的 Goal 来源路由与实装回放。
改动思路 / Approach
与 explore observe-external 共用现有 Goal 来源解析器,过滤、父级准入和写入仍由原 Research bridge 拥有。 交付范围是 Research CLI 的 Goal 来源路由与实装回放。 没有变更外部提供方、Goal 权限、父级准入或日志格式。 同一组输入可从正常命令取得可比结果,也能复核之前误判的边界。
具体改动 / Changes
审查精确提交 c94ee173b140cb99dd1beb8e9d06763e850e294c,原生包记录比较分支 509360fb0d3e9e6e578ddf5c12db587886016b23,运行对照采用实际共同基点 2302e42d9cad35a8a4150e24496ffecfbfdce8cb。相对合并基点 2302e42 两个文件增加 45 行、删除 21 行,当前 main 试合成也只有这两个路径。 canonical-explore-source 已验证投影使用启用 Explore 的同 Goal 来源。reversible-research-wheel 已验证Core 在安装 Research 前及卸载后保持独立。 验收依据
关键代码讲解
handle_external_evidence_command。将原 Goal 的注册与运行根提供给现有 bridge。 源码resolve_goal_source_runtime_route。沿全局引用定位项目来源,保留已有显式运行根行为。 源码project_external_evidence_to_explore。沿既有同 Goal、节点、权限、过滤和重复回放判定。 源码
对主干的风险 / Risks
实测全局引用和项目直连都预览同一源日志。全局执行只在源日志追加两条,跨命令 replay 追加零条,文件逐字节保留,共享运行根无日志。直接预览、禁用 Goal、错误 Goal 和缺父级准入的对照在两个版本一致。 独立配对复现基线全局引用误拒。现头对文件缺失与有效文件中缺该 Goal 都返回来源路由错误,两版文件对照确认无共享运行根写入。 同源 Core 与 Research 2.4.1 wheel 的 1926 与 30 个产品文件与精确头逐字节一致。安装匹配 Research 后 7 项通过,安装前和卸载后的清单和帮助对照各 1 项通过。35 项源码路由与输入检查、Ruff、Git diff 检查通过。 本地 wheel 使用合成证据。实际外部提供方、当前 main 合成树运行及远端 CI 未复验。
我的整体评价 / Verdict
APPROVE。 读取和投影先沿既有 Goal 来源解析,已准入证据进入原 Explore 节点,重复回放不会再次追加。 已沿真实命令回读正常结果与原失败边界,当前范围内没有发现阻塞项。本地 wheel 使用合成证据。实际外部提供方、当前 main 合成树运行及远端 CI 未复验。
English verdict: APPROVE at c94ee17. The installed Research wheel resolves global aliases to the original Explore log, rejects missing or mismatched source declarations, and replays the same receipt without an append.
Goal And Delivered Outcome
Follow up on #9061, which made Explore the primary workflow of the Research companion wheel.
external-evidence readback --goal-id … --explore-node …used the global registry view and could reject an enabled Goal or search its shared runtime for a source node.The two projection commands now use the same existing Goal source route. An admitted receipt updates the original Explore log when invoked through a global alias. A missing source returns a routing error before projection. Replaying the same receipt through
explore observe-externalleaves the log byte-identical.Author Declaration
Written by
model_agent(OpenAI Codex).Implemented against
Small-kernel RFC, section 5, at base
2302e42d9c, and the follow-up review on #9061.resolve_goal_source_runtime_routeandproject_external_evidence_to_explore. Source and installed tests cover direct and aliased calls, missing source refusal, source-only writes and replay.Scope And Continuation
This is a two-file CLI routing repair and an extension of the existing Research journey test. Admission, version checks and evidence filtering stay with their existing owners. Standard CLI package-smoke recovery is tracked in #9522, and full split-install qualification remains in #5072.
Validation
c94ee173b140cb99dd1beb8e9d06763e850e294c, based on2302e42d9c.2.4.1wheels.mainrefused an enabled Goal via its global alias. The candidate previews and writes using the original source, refuses a missing source, and replays without a second append.git diff --check, and quick premerge with six direct and two selected checks. The two mypy diagnostics in the CLI file reproduce unchanged onmain.Provider responses in this run were fixtures. Frontend scope is the existing CLI.
Related to #9061 and #5072.