# 审计 — Agent 401 停心跳(A-05) **Changelog**: `docs/changelog/2026-06-08-agent-401-stop-heartbeat.md` ## 变更文件 `heartbeat_policy.py` · `agent.py` · `install.sh` · `servers.py` · `server_batch_common.py` · `server_batch_service.py` · `agent_version.py` · `test_agent_heartbeat_stop.py` ## Step 3 | 项 | 结论 | |----|------| | 401 / discarded 后 `return` 退出循环 | PASS | | 5xx 仍退避重试,非静默吞错 | PASS | | config reload 重启已 done 的心跳任务 | PASS | | 子机 rollout 依赖 upgrade-agent(文档已写明) | PASS | ## Closure Gate 7/7 PASS · 待部署 + 子机批量升级验证 ## DoD - [x] `heartbeat_should_stop` 单测 - [x] `get_central_agent_version` 仍读 2.0.0 - [ ] 生产抽样子机 journalctl 401 后无重复心跳(#7 rollout 后)