Skip to content

chore(agents): 按需加载指引与 RFC,并同步五个 Codex 子代理 - #128

Merged
chamsechan merged 1 commit into
mainfrom
chore/codex-agents-rfc-on-demand-20260920
Sep 20, 2026
Merged

chamsechan merged 1 commit into
mainfrom
chore/codex-agents-rfc-on-demand-20260920

Conversation

@chamsechan

Copy link
Copy Markdown
Owner

变更范围

按用户要求创建独立分支,累计落地此前 agent-guidance / RFC 按需加载调整,并补齐 .codex/agents/ 的五个角色文件。基线:f7a6161034d42dbdfa883c90a5819696822d2db0

共修改 13 个路径(12 个已有文件、1 个新增参考文档):

  • AGENTS.md:精简常驻指令,保留架构与安全边界;共享任务范围、角色职责与 Delegation context。
  • CONTRIBUTING.md:RFC 按任务定位/按章节读取,保留必要的完整需求和验收覆盖;明确完成条件及阶段验收。
  • 三个技能入口、开发者验证参考,以及新增 Pipeline 命令参考:渐进加载,不重复全量工作流;修复强制拆分编译与测试子任务的冲突。
  • .codex/config.toml:简化角色描述并指向共享职责和委派上下文。
  • .codex/agents/{scout,mechanical_worker,test_author,verifier,reviewer}.toml:五个角色的 developer_instructions 均接入共享职责、任务范围、RFC lookup;不在角色文件复制长篇规范,不预加载 RFC 或索引。

不改变的约束

模型仍全部为 gpt-6-astra;Reviewer 仍为 high,其余为 low。Scout/Reviewer 保持 read-only,其余保持 workspace-write;线程数仍为 4。没有新增配置键、提高权限、改变业务代码或 CI。CONTRIBUTING.md 第 6、7 节最终门禁和交付政策逐字保留。

RFC 按需读取不是禁止读取:指定 RFC 的实施/评审必须覆盖全部适用需求、迁移步骤、阶段检查点和验收标准;必要时通读。Completed 不代表失效,现有代码不能悄悄覆盖已批准且仍适用的契约。

验证状态

  • PASS:上一版累计补丁静态检查 14/14(本次重新执行)。
  • PASS:五角色 TOML、运行配置不变、引用入口、负例、补丁正反向应用及提交内容一致性等静态检查 7/7。
  • PASS:13 个提交文件的 Git blob SHA 与本地验证产物一致。
  • NOT RUN:本地 ./scripts/run_all_tests.sh、完整 CTest、真实 Codex CLI/VS Code 会话验收。当前执行容器 git clone 失败:Could not resolve host: github.com,无法取得完整 checkout 与依赖。

本次依用户的直接分支更新请求通过 GitHub 连接器提交,并非成功执行了 scripts/git_branch_upload.sh。本 PR 保持 Draft 以触发现有 CI 并明确未完成的验收;静态检查不替代完整门禁,CI 即使通过也不代表真实 Codex 行为已经验收。没有修改门禁脚本或工作流来规避验证。

用户未授权合并。请勿自动合并或直接更新 main。

…okup

Apply cumulative agent-guidance updates and connect all five .codex/agents
roles to the shared task-scoped reading and delegation-context policy.
Keep models, reasoning effort, sandbox permissions, thread count, existing
RFC authority and canonical test/delivery rules unchanged.

Validation: prior guidance patch static checks 14/14; role/configuration
and cumulative-patch static checks 7/7. Remote tree blob SHAs match the
locally validated 13 files.

Full local gate and Codex runtime acceptance were not run: the execution
container cannot resolve github.com and cannot clone the complete project.
This is an explicitly requested isolated-branch upload through the GitHub
connector, not a successful run of scripts/git_branch_upload.sh and not
merge-ready acceptance. No main-branch update or merge is authorized.
@chamsechan
chamsechan marked this pull request as ready for review September 20, 2026 02:44
@chamsechan
chamsechan merged commit cde8fe6 into main Sep 20, 2026
6 checks passed
@chamsechan
chamsechan deleted the chore/codex-agents-rfc-on-demand-20260920 branch September 20, 2026 02:45
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.

1 participant