# 2026-03-21

## 今日摘要
1. 03:00（Asia/Shanghai）完成每日例行日志更新，已按要求扫描 gateway/network/health/watchdog 日志与站点仓库近24小时提交。
2. `gmail-watcher` 仍处于重启风暴：`gog` 因 `$HOME is not defined` 持续报错并约每 5 秒重启一次（截至本次更新仍未恢复）。
3. `network-watchdog` 在 03-20 07:49–09:08 出现一段长时间不健康窗口；期间多次执行「重启 Clash Party + mihomo / 刷新代理 / bounce Wi‑Fi」，随后恢复健康并回退到慢速巡检。
4. 03-20 13:36 曾短暂触发 fast watchdog，13:40 已恢复健康并自动关闭 fast 模式；其后至 03-21 02:36 slow check 持续 healthy。
5. `health-monitor.log` 连续写入 `severity=warn`，`consecutiveBad` 在近24小时由 830 增至 854，告警计数仍在增长。
6. `halewongai.github.io` 近24小时有 2 次提交：`Update logs`（ba438ae）与 `Update status`（eb1cc97）。
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 200 /var/root/.openclaw/logs/network-watchdog.log`
  - `tail -n 120 /var/root/.openclaw/logs/health-monitor.log`
  - `tail -n 120 /var/root/.openclaw/logs/gateway-daemon.err.log`
  - `tail -n 120 /var/root/.openclaw/logs/gateway-daemon.out.log`
- watchdog 扫描：
  - `tail -n 200 /Users/hale/Desktop/openclaw_log/watchdog/watchdog.log`
- Git 扫描（按规范使用 `su -l 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-21.md`
- 日志索引：`/Users/hale/Desktop/openclaw_log/INDEX.md`
- 站点仓库：`/Users/hale/Desktop/github/halewongai.github.io`
- 近24小时提交：
  - `eb1cc97` — Update status
  - `ba438ae` — Update logs

## 待办
1. 修复 `gmail-watcher` 子进程环境注入，显式补齐 `HOME` 后复测 `gog gmail watch serve` 稳定性。
2. 为 watcher 重启策略增加指数退避/熔断，降低固定 5 秒重启造成的日志噪声。
3. 针对 `network-watchdog` 的长窗口不健康场景补充根因定位（代理、DNS、网卡切换链路）。
4. 继续跟踪 `health-monitor` 的 `consecutiveBad` 增长，并定义可执行的恢复阈值与告警处置动作。
