Codex CLI MVP: 宿主适配层 + MCP artifact server(change-set codex-mvp) - #6
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ex 日志与 hooks 配置 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…为「事件层零改+handler 三处机械转换」) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…完整存档 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…DE_PLUGIN_ROOT 在 mcpServers 不展开/MCP _meta 原生带 session+cwd/updatedInput 可注参/Bash 有 CODEX_THREAD_ID
…拉起 server(占位符在 command/args/env 均不展开)
…oks.codex.json + codex-adapter(apply_patch→Write/Edit 逐文件 fail-closed、mcp__paceflow__*→Agent 派遣门桥接+updatedInput 注参、SessionStart/UPS 纯文本包 JSON、exit2 透传)+ session.js CODEX_THREAD_ID fallback;21 例测试;隔离 CODEX_HOME 真机验收两硬门+注入
…fail-closed deny(P1-2)、apply_patch 逐文件总预算 20s 超时 fail-closed(P2-2)、batch 字段 Codex 专属 deny(P2-3)、子进程 env 同步 CODEX_THREAD_ID+删 TEAM_NAME(P2-4/P3-7)、MCP 放行合并真 hook additionalContext(P2-8,探针实测三者可共存)、PostToolUse 多文件合并 context(P3-4)、additionalContextLimit 8000(P3-6)、空数组/对象不产裸 key(P3-8);测试 21→25(=形态/非法 key/batch deny/伪造 _pace 覆盖/CODEX_THREAD_ID-only 链路/PostToolUse e2e/E12-E13 去 vacuous)
…o server(get_context/reserve_artifact_id/create_chg/update_chg[approve|approve-and-start|update-status|append|verify|review])+ 虚拟 writer 管线(以 artifact-writer 身份跑真 pre/post-tool-use,两阶段:全部预检通过再落盘)+ 确定性 artifact 生成器(frontmatter 9 key/4 段/索引行/三标记/状态机联动)+ 上下文解析(hook 注入>_meta>env);9 例测试;隔离 CODEX_HOME 真机 reserve→create→approve-and-start→apply_patch 跑通
… T-NNN→completed→VERIFIED→REVIEWED+审查记录→archived+task.md 移 ARCHIVE+walkthrough 行,幂等)+ record_finding(3-key frontmatter/body 原样/索引最新在顶/related_changes 解析全名+别名/rejected 拒绝理由段/slug 碰撞加序号);pipeline dryCheck 改顺序内存模拟(同文件连续 Edit);测试 9→12
…MCP reserve→create→approve-and-start→apply_patch→close_chg→Stop 放行)
…ex CLI(MVP) 安装与边界节、REFERENCE §5.2 Codex 宿主(组件表/能力边界/安装)、Bash 门覆盖范围文案精确化(finding bash-gate)、pace-workflow/artifact-management skill Codex 宿主段、adapter deny 出口追加 Codex 译注(P3-10)、run-all 挂 codex-adapter/mcp-server 两套件(RUN-3 同步)、CLAUDE.md 套件/bump 说明 10 套件+6 处;run-all 10/10
…失败释放资源锁/PostToolUse 按文件去重(P0-1/P2-2/P2-7);walkthrough 与 findings 锚点全文唯一(P1-1/P2-1);全 [-]→cancelled 写 archived-date + 终态拒改 update-status(P1-2/P2-3);长驻进程每次调用清 artifact-dir/exec-ctx 缓存(P1-3,path-utils 新导出 _clearExecCtxMemo);_pace_* 与 _meta 冲突 fail-closed + 告警进人读报告(P2-5);reserve 子进程同步 CODEX_THREAD_ID(P2-6);缺 ARCHIVE 标记先补(P2-4,前置管线);新增 archive_chg(取消式/完成式/repair);close 后 markChangeOwnerClosed(P3-16);protocolVersion 白名单/partial 文件清单/project_root 取字符串/append 空行/标题转义/slug 告警/未知 T-NNN 与重复 id 拒绝/research 段位/not-pace-project 前置(P3 群);adapter:exit2 阻断统一翻译成 JSON block(Windows Codex 实测不认 exit2 只认 JSON)、passthrough 工具也注入 _pace_*(Windows _meta 缺 workspaces)、emit 去 process.exit;server cwd realpath 归一(macOS CI MS-E3);测试 mcp-server 12→17、codex-adapter 25;run-all 10/10
…s)、_meta 缺 workspaces、exit2 阻断被记 Failed 只认 JSON、修后完整闭环 + Stop Blocked 同语义;隔离目录已清理
…vate/var,PR #6 CI 第二轮)
…;exit2 阻断由 adapter 译成 JSON)
…gin+mcp+hooks.codex.json+adapter)/12 类 hook 表 Codex 子集/Subagent 段 Codex 例外(合并前用户要求核对)
paceaitian
marked this pull request as ready for review
August 16, 2026 09:08
paceaitian
added a commit
that referenced
this pull request
Aug 16, 2026
…-01~04,PR #6) - bump 6 处版本号 7.2.32 → 7.3.0(constants.js / .claude-plugin / .codex-plugin / marketplace.json / REFERENCE 标题 / README.zh-CN footer) - README.zh-CN 版本历史加 v7.3.0 行:.codex-plugin 双 manifest + codex-adapter 适配层 + MCP artifact server + 发布面;Linux+Windows 真机闭环、CI 三平台绿 - 发布面同步 archive_chg 已实现(28853ae 加的,README 双语/REFERENCE §5.2/两 skill 仍列在「未覆盖」):工具表补 archive_chg、未覆盖清单去 archive-chg、pace-workflow 映射表加行 - run-all 10/10 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex CLI MVP(change-set codex-mvp,4 CHG)
Draft PR:先跑 CI 三平台(Windows/macOS/ubuntu),暂不合并。
.codex-plugin/plugin.json+hooks/hooks.codex.json+hooks/codex-adapter.js(apply_patch→Write/Edit 逐文件 fail-closed、mcp__paceflow__*→artifact-writer 派遣门桥接、纯文本→JSON、exit2 透传)+session.jsCODEX_THREAD_IDfallback;opus 对抗审计 P1×2/P2×9/P3×10 全部处置。close_chg/record_finding;隔离 CODEX_HOME 真机单会话完整 P-A-C-E-V-R 闭环跑通。codex-adapter/mcp-server两套件(10/10)。真 hook 脚本与
hooks/hooks.json零改动;Claude Code 宿主行为不变(claude plugin validate通过)。研究与验收存档:docs/research-2026-08-15-codex-port-feasibility.md、docs/research/codex-port/。已知边界(finding 已记):Windows 上的 Codex 未实测(
${CLAUDE_PLUGIN_ROOT}经 shell 展开);Codex 子代理内写入不受门约束(宿主限制 openai/codex#16226)。🤖 Generated with Claude Code