[codex] 收紧 sync pass 漂移触发器#7
Merged
Merged
Conversation
wlvh
force-pushed
the
codex/per-pass-drift-triggers
branch
from
May 3, 2026 08:35
cec6361 to
ccb5f66
Compare
wlvh
force-pushed
the
codex/per-pass-drift-triggers
branch
from
May 3, 2026 08:41
ccb5f66 to
400b379
Compare
wlvh
marked this pull request as ready for review
May 3, 2026 08:45
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 #6 合并后,继续收紧 workflow docs sync 的 pass prompt:三类漂移不能只作为通用标签存在,每个 pass 需要直接拿到自己 owned docs 的漂移触发器,避免 agent 为查一个集中词典去读整份
OPERATIONS.md。本 PR 的目标是把判断口径放进对应 PASS code block,同时压缩每个 pass 的控制文字,减少上下文消耗。
2. 实现方案
scripts/OPERATIONS.md的 4 个 PASS prompt 内分别加入本 pass owned docs 的class-1 template/missing、class-2 upstream、class-3 code/test/behavior drift触发器和最小闭合规则,明确 drift 发现后应写回 owned doc、写入downstream impact,还是写入not adopted because。remaining_human_decisions,只处理本 pass 负责的Full Document Reconcile行。tests/。停止条件段,把停止 / 越权边界收进前置条件、只允许修改、闭合规则和完成后步骤。PR_BODY.md默认不提交仓库。remaining_human_decisions,所有 pass prompt 不包含停止条件/读取收口heading。3. 变更范围
来自
git diff --name-only origin/main...HEAD:scripts/OPERATIONS.mdtests/test_sync_coding_workflow.pyremaining_human_decisions或恢复停止条件/读取收口heading。4. 文档影响
受影响文档:
scripts/OPERATIONS.md说明:
capability_contract.json、interact.md或docs/business_user_guide.md。5. 用户与架构影响
用户可见变化:
架构变化:
6. Review / 修复记录
### 2.0 漂移触发器词典去读整份OPERATIONS.md,违背减少上下文消耗的目标。scripts/OPERATIONS.mdremaining_human_decisions的旧范围,且 PASS 3 / PASS 4 可能通读过多前置文档。scripts/OPERATIONS.md,tests/test_sync_coding_workflow.pyscripts/OPERATIONS.md,tests/test_sync_coding_workflow.py停止条件段可以不要,容易增加 prompt 体积并重复已有边界。停止条件段;测试锁住不再恢复停止条件/读取收口heading。scripts/OPERATIONS.md,tests/test_sync_coding_workflow.pyscripts/OPERATIONS.md,tests/test_sync_coding_workflow.py7. 已知限制与回滚
已知限制:
回滚方式:
8. 最终自检
codex/per-pass-drift-triggersgit diff --name-only origin/main...HEADTESTING.md完成测试与测试记录interact.mdarchitecture.md