Skip to content

agent: resolve #1 - #5

Open
github-actions[bot] wants to merge 2 commits into
mainfrom
agent/issue-1
Open

agent: resolve #1#5
github-actions[bot] wants to merge 2 commits into
mainfrom
agent/issue-1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

针对 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

solve-it Run the bounded Agent Cycle for this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] track 策略未校验 sources.sh 指定的 ref,其他分支会被判定为最新

1 participant