Skip to content

Keep C1 Explore context reads available without Research - #9607

Open
cocolord wants to merge 1 commit into
mainfrom
codex/research-core-turn-readback-20261130
Open

cocolord wants to merge 1 commit into
mainfrom
codex/research-core-turn-readback-20261130

Conversation

@cocolord

Copy link
Copy Markdown
Member

Outcome

Complete Turn captures use the existing explore turn-context command to read scoped evidence from the Goal source. Core can run that command with Research removed. A ready Research wheel adds optional planning, full summaries and direct Explore recording. The bilingual mechanism RFC describes the boundary with Route A and the shared acceptance case.

Validation

  • Package Smoke runs the same Goal through matching-wheel installation, removal and reinstallation on File and SQLite. Both saved and fresh Complete Turn commands read the original findings and follow revision-bound pagination. After removal, direct Explore recording and an unregistered reader are refused. Reinstallation restores the full Research workflow. Capture, registry and ledger bytes match the original, with zero quota debits.
  • The same SQLite case fails on wheels built from base d0df4f970a when the saved reader exits 2 after removal. Both backends pass on wheels built from this head. All five changed runtime files in the wheels match the checkout.
  • 44 existing Explore and Goal-source tests passed. Installed Research smoke passed 7 cases. Bare wheel smoke passed 4 cases with 3 matching-wheel cases skipped. Core-only help and ordinary Turn smoke passed 3 cases.
  • TypeScript typecheck, Ruff, paired RFC validation, workflow YAML parsing and changed-file public boundary scan passed. The broader TypeScript run reported 6,875 passes, 4 skips and one file blocked by a missing compiler dependency. That file passed all 17 tests on rerun with the locked dependency available. Remote authority regressions passed 7 Node and 3 Python cases.

Author declaration

Written by a model agent using OpenAI Codex.

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh

动机 / Motivation

使用精简 Core 的操作者仍需要从已保存的 Complete Turn 读取有效的 Explore 依据。 旧 wheel 在卸载 Research 后连同 Explore 子命令一起拦住历史补读命令,File 与 SQLite 上均以退出码 2 中止。 对比两版同源 Core 与 Research wheel。写入四条证据,保留实际门禁捕获产生的命令,再卸载与重装 Research。 当前提交的两种后端都能用原始命令与新捕获命令翻页,读回四条原范围证据。重新安装时,摘要、规划与记录入口按原能力恢复。 独立验证使用 macOS、本地 File 与 SQLite、从两个精确源码提交构建的 wheel。托管 CI、生产安装与真实长程方法收益仍未在本轮独立验证。 此交付闭合现有命令在配套包移除时的本地读回断点。完整 C1 运行采用与发布验证仍有各自边界。

改动思路 / Approach

由 Core 注册并分发同一个 explore turn-context 只读处理函数。Python 解析现有 Goal 来源并检查包就绪,TypeScript 继续生成绑定证据 revision 的分页,在 Research 未就绪时隐藏可选动作。 原有 Goal 路由与 Agent 校验限定读取范围,Explore 证据账本为来源,TypeScript 证据投影负责分页和核对 Todo 范围。Research 继续负责直接写入和规划。 将已有注册、展示和处理移到共同的 Core reader。复用源 Goal 路由、包元数据、Explore 账本与同一 TypeScript 投影,无新增持久状态或第二判断者。 这次修改覆盖原捕获、静态 wheel 边界、实际补读和拒绝路径,保留原 CLI 和配置入口。

具体改动 / Changes

评审提交 4ecf870,目标基线 d0df4f9。完整 diff 为 10 个文件,+269/-59。5 处运行源码,2 处包验证代码,1 处 Package Smoke 接线及双语 RFC 说明。 按规范核对 内核保留轻量投影、权限与分页可复核、Research 专属写入保留。在隔离 Python 环境安装匹配 wheel,通过原生 quota should-run 捕获源命令,按需重装配套包,再运行同一命令与续页。 独立补充用例覆盖了过时续页、缺失一个 Research 模块和 Explore 关闭三种情况。旧 revision 要求从首页重读,缺少模块时隐藏写入与摘要命令且实际调用被拒,关闭后返回空图。两个后端通过,补读前后原 capture、注册表与证据日志逐字节相同,额度为零。 发行边界 捕获回读约束

关键代码讲解

  • _run_command。Core-only 仅注册 Explore 的既有 readback 子命令,其余命令沿原配套包门禁。 源码
  • handle_explore_turn_context。两个安装形态使用同一来源路径、参数校验与序列化。 源码
  • explore_turn_context。保留原证据投影和 agent 校验,现有元数据决定是否提供规划。 源码
  • projectExploreTurnContext。保留源证据和 revision 约束,按配套包就绪度调整暂不可执行的模板。 源码
  • test_installed_c1_explore_readback_across_research_reinstall。使用相同捕获、两种真实状态源及安装、移除、重装验证。 源码

对主干的风险 / Risks

保留旧已捕获的命令,同时需要兼容完整安装与缺失配套包。已重放跨状态的实际命令,并用坏 revision、损坏安装和禁用 Goal 检查失败隔离。 独立验证使用 macOS、本地 File 与 SQLite、从两个精确源码提交构建的 wheel。托管 CI、生产安装与真实长程方法收益仍未在本轮独立验证。 同一 wheel 用例基线两败、候选两过。补充实装两过,Core-only 三过,Research 原工作流七过、两个配对测试在单独执行时按环境跳过。79 项 Python、17 项 TypeScript、控制面 typecheck、Ruff 和双语文档检查通过。标准预合并 6 项直接检查与 17 项选择检查通过。 未查询远程 CI。

我的整体评价 / Verdict

APPROVE。实际安装边界已通过双后端对照。保留原补读命令与预算语义,让精简 Core 能继续利用已保存的证据。生产发布采用仍另行确认。

English verdict: APPROVE at 4ecf870. Both installed backends retain exact C1 readback across removal and reinstall, reject stale revisions and unavailable Research actions, and preserve state and quota. Production installation remains unverified.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants