agent: resolve #1 - #5
Open
github-actions[bot] wants to merge 2 commits into
Open
Conversation
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.
针对 issue #1 的自动化有界 agent 周期。
当前状态:complete
当前轮次:1/5
最新摘要:
独立复核通过。工作树实际 diff 仅触及 check-updates.sh、update-sources.sh、AGENTS.md、README.md 共 4 个文件(+22/-6),改动最小且与 bootstrap.sh 已有的 track 分支校验(第 160-170 行)风格一致。check_git_repo 新增第 5 参 ref 并在 branch 模式下、网络探测前校验(不符即 error、退出码 2、不入缓存),probe 调用点正确传入 $SRC_REF;update_git_repo 新增第 4 参 ref 并在 pull 模式的 fetch 重试循环前拦截(不 fetch 不合并,-n/-f 不旁路,游离 HEAD 显示为「游离 HEAD」);pinned/latest 等非 pull/branch 模式不受影响。本人在验证者保留的 /tmp/issue1-fix-test 环境(脚本与工作树逐字节一致)独立重跑核心场景:fixture 停在 feature 时 check 退出码 2 并输出「配置要求分支 main,当前在 feature,请先切回 main」、update 无 fetch 且 HEAD 不变并报「分支不符(feature ≠ main)」;切回 main 后 check 退出码 0 报最新、远端推进后 check 退出码 10、update ff-only 合并成功。bash -n 与 shellcheck 无新告警类别。验证者报告 pass,验收条件逐点满足。
Closes #1