# 2026-03-22

## 今日摘要
1. 03:00（Asia/Shanghai）完成每日例行日志更新；已按清单扫描 `/var/root/.openclaw/logs`、站点仓库近24小时提交、以及 `watchdog/watchdog.log`。
2. 近24小时 `network-watchdog` 总体稳定：仅在 03-21 09:36 出现一次短时不健康，自动切入 fast 模式后于 09:42 恢复并退出 fast；随后到 03-22 02:37 持续 healthy。
3. `health-monitor.log` 继续以 `severity=warn` 写入，`consecutiveBad` 由 852 增长到 878（+26），告警累计趋势未反转。
4. `gateway-daemon.err.log` 显示 `gmail-watcher` 持续重启风暴：`[gog] resolve user config dir: $HOME is not defined`，约每 5 秒重启一次（近24小时约 1.9 万次失败/重启记录）。
5. `gateway-daemon.out.log` 同步出现大量 watcher 启动尝试（参数已脱敏处理）；服务层面仍未稳定驻留。
6. `halewongai.github.io` 近24小时有 2 次提交：`Update logs`（bf71625）与 `Update status`（e760c17）。
7. `/Users/hale/Desktop/openclaw_log/watchdog/watchdog.log` 仅见 2026-02-03 历史内容，近24小时无新增。
8. 本日网络/权限相关关键结论：未观测到新的 TCC / Full Disk Access / sudo NOPASSWD 变更；已继续使用 `su -l hale -c` 执行用户态 git 检查，避免 getcwd 权限噪声。

## 关键操作（命令/配置/服务变更）
- 最近24小时日志扫描：
  - `find /var/root/.openclaw/logs -type f -mtime -1`
  - `tail -n 220 /var/root/.openclaw/logs/network-watchdog.log`
  - `tail -n 220 /var/root/.openclaw/logs/health-monitor.log`
  - `tail -n 180 /var/root/.openclaw/logs/gateway-daemon.err.log`
  - `tail -n 180 /var/root/.openclaw/logs/gateway-daemon.out.log`
- watchdog 历史扫描：
  - `tail -n 200 /Users/hale/Desktop/openclaw_log/watchdog/watchdog.log`
- Git 扫描（按规范以 hale 登录壳执行）：
  - `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"'`
- 服务状态结论：
  - `gmail-watcher` 当前仍受 `$HOME` 缺失影响，持续重启。
  - 本日志未记录 token/密码/私钥等敏感信息。

## 交付物/链接
- 每日日志：`/Users/hale/Desktop/openclaw_log/daily/2026-03-22.md`
- 日志索引：`/Users/hale/Desktop/openclaw_log/INDEX.md`
- 站点仓库：`/Users/hale/Desktop/github/halewongai.github.io`
- 近24小时提交：
  - `e760c17` — Update status
  - `bf71625` — Update logs

## 待办
1. 修复 `gmail-watcher` 运行环境（显式注入 `HOME`）并验证 `gog gmail watch serve` 能稳定驻留。
2. 为 watcher 增加退避/熔断策略，避免固定 5 秒重启造成日志风暴。
3. 持续跟踪 `health-monitor` 的 `consecutiveBad` 增长，并设定明确告警阈值与自动处置动作。
4. 复核 `network-watchdog` 在 slow→fast→slow 切换路径的触发条件，避免误触发 fast 模式。
