[codex] 补强 sync PR 提交 agent#8
Merged
Merged
Conversation
wlvh
force-pushed
the
codex/pr-submit-agent-prompt
branch
from
May 3, 2026 09:48
6c5f6d3 to
ea7a5e0
Compare
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.
1. 背景与目标
PR #7 已合并后,用户指出
scripts/OPERATIONS.md中的 PR 提交 agent 信息不够充分。本 PR 的目标是只补强 PR 提交 agent 的可执行信息,让它能按同一个 prompt 完成读取、核对、final gate、单 commit 发布、PR body 更新和结果回报,不再依赖临场推导
PR_Checklist.md的发布细节。2. 实现方案
scripts/OPERATIONS.md的## 3. PR 提交 Agent中新增明确任务边界:只执行 PR 提交,不补写 PASS 1/2/3/4 语义内容。PR_Checklist.md、TESTING.md、.github/pull_request_template.md、PR_BODY.md、.coding_workflow/diffs/sync_state.json。git diff --name-only <base>...HEAD、PR_BODY.md变更范围、Full Document Reconcile/Remaining Human Decisions在PR_BODY.md中的具体读取位置、FDR 完整性、语义风险、测试记录和 final gate。git commit --amend --no-edit、git push --force-with-lease、gh pr edit --body-file、gh pr create --draft --body-file。3. 变更范围
来自
git diff --name-only origin/main...HEAD:scripts/OPERATIONS.mdtests/test_sync_coding_workflow.py4. 文档影响
受影响文档:
scripts/OPERATIONS.md说明:
capability_contract.json、interact.md或docs/business_user_guide.md。5. 用户与架构影响
用户可见变化:
架构变化:
6. Review / 修复记录
scripts/OPERATIONS.md,tests/test_sync_coding_workflow.pymain新建后续分支,只提交 PR 提交 agent 的增量修改。git status,gh pr view 7Full Document Reconcile/Remaining Human Decisions,因为 prompt 没告诉它去哪里读。PR_BODY.md的对应 heading,以及 agent-owned sentinel 区间。scripts/OPERATIONS.md,tests/test_sync_coding_workflow.py7. 已知限制与回滚
已知限制:
回滚方式:
8. 最终自检
codex/pr-submit-agent-promptgit diff --name-only origin/main...HEADTESTING.md完成测试与测试记录interact.mdarchitecture.md