# 2026-03-30

## 今日摘要
1. 03:00（Asia/Shanghai）完成每日日志例行更新：已扫描 `/var/root/.openclaw/logs/` 最近24小时、站点仓库最近24小时提交、以及 `watchdog/watchdog.log`。
2. `network-watchdog.log` 在 03-29 白天到 03-30 凌晨出现多次 `unhealthy → fast(2m) → healthy` 自愈循环；多数在 1~3 次 fast 检查后恢复。
3. 03-29 15:45 附近出现一次连续失败到 `fails=3`，触发自动恢复链路（重启代理相关进程、刷新系统代理、bounce 网络服务），随后恢复健康并退出 fast 模式。
4. `gateway-daemon.err.log` 持续出现 `[gmail-watcher] [gog] resolve user config dir: $HOME is not defined`，并导致 watcher 以约 5 秒节奏反复退出重启。
5. `gateway-daemon.out.log` 与上述现象一致，持续记录 gmail watcher 高频启动，确认重启风暴仍在持续。
6. `network-watchdog-fast.launchd.out.log` 继续出现网络服务名/接口映射噪声（`Wi-Fi is not a Wi-Fi interface`，随后回退到 `en1`），说明服务名识别仍不稳定。
7. `health-monitor.log` 近24小时持续按小时写入 `severity=warn`，`consecutiveBad` 从 1047（03-29 03:30）增长到 1070（03-30 02:30）。
8. 站点仓库 `halewongai.github.io` 近24小时新增 2 次提交：`8f3fc1e Update logs`、`5cf37c4 Update status`。
9. `/Users/hale/Desktop/openclaw_log/watchdog/watchdog.log` 仍仅见 2026-02-03 历史记录，近24小时无新增。
10. 本日网络/权限关键结论：未发现新的 TCC / Full Disk Access / sudo NOPASSWD 变更；当前关键风险仍是 gmail watcher 缺失 `HOME` 环境导致的持续重启，以及网络服务名识别不一致带来的恢复噪声。

## 关键操作（命令/配置/服务变更）
- 日志扫描：
  - `find /var/root/.openclaw/logs -type f -mtime -1`
  - `tail -n 120 /var/root/.openclaw/logs/network-watchdog.log`
  - `tail -n 120 /var/root/.openclaw/logs/gateway-daemon.err.log`
  - `tail -n 120 /var/root/.openclaw/logs/gateway-daemon.out.log`
  - `tail -n 120 /var/root/.openclaw/logs/network-watchdog-fast.launchd.out.log`
  - `tail -n 120 /var/root/.openclaw/logs/health-monitor.log`
  - `tail -n 120 /Users/hale/Desktop/openclaw_log/watchdog/watchdog.log`
- Git 核查（按要求使用登录壳，避免 getcwd 噪声）：
  - `su -l hale -c 'cd /Users/hale/Desktop/github/halewongai.github.io && git log --since="24 hours ago" --date=iso --pretty=format:"%h %ad %an %s" -n 50'`
- 服务行为观察（来自日志）：
  - 网络自愈链路在失败阈值触发后执行（重启代理/刷新代理设置/bounce 网络服务）。
  - gmail watcher 持续因 `$HOME` 缺失退出并重启。

## 交付物/链接
- 每日日志：`/Users/hale/Desktop/openclaw_log/daily/2026-03-30.md`
- 日志索引：`/Users/hale/Desktop/openclaw_log/INDEX.md`
- 仓库：`/Users/hale/Desktop/github/halewongai.github.io`
- 近24小时提交：
  - `8f3fc1e` — Update logs
  - `5cf37c4` — Update status

## 待办
1. 修复 gmail watcher 运行环境（补齐 `HOME` 与用户上下文），终止 5 秒重启循环。
2. 为 watcher 增加失败退避/熔断策略，避免持续高频重启与日志放大。
3. 统一 watchdog 的网络服务名与接口映射（`Wi-Fi` 与 `en1`），减少 `networksetup` 噪声。
4. 针对网络抖动高发时段（如 15:45）补充根因定位（代理进程异常 vs 链路抖动）。
5. 对 `health-monitor` 的长期 `severity=warn` 与持续递增 `consecutiveBad` 建立分级处置阈值。
