# 2026-03-23

## 今日摘要
1. 03:00（Asia/Shanghai）完成每日例行日志更新；已按清单扫描 `/var/root/.openclaw/logs/`、站点仓库近24小时提交、以及 `watchdog/watchdog.log`。
2. 近24小时 `gateway-daemon` 主要噪声来自 `gmail-watcher`：`gog gmail watch serve` 以约 5 秒周期反复拉起。
3. `gateway-daemon.err.log` 持续报错：`[gog] resolve user config dir: $HOME is not defined`，并伴随 `gog exited (code=1)... restarting in 5s`，服务未稳定驻留。
4. `gateway-daemon.out.log` 在同时间窗记录大量 watcher 启动尝试（参数已脱敏处理），与 err 日志重启风暴相互印证。
5. `network-watchdog.log` 近24小时（03-22 03:37 至 03-23 02:38）均为 `slow CHECK: healthy`，未出现新的 fast 模式切换。
6. `health-monitor.log` 仍按小时写入 `severity=warn`，`consecutiveBad` 从 879 增长到 902（+23），告警累计趋势持续。
7. `halewongai.github.io` 近24小时有 2 次提交：`Update logs`（87fe50d）与 `Update status`（1529601）。
8. `/Users/hale/Desktop/openclaw_log/watchdog/watchdog.log` 仍仅见 2026-02-03 历史记录，近24小时无新增。
9. 本日网络/权限关键结论：未观察到新的 TCC / Full Disk Access / sudo NOPASSWD 变更；已继续使用 `su -l hale -c` 进行用户态 git 检查，避免 getcwd 权限噪声。

## 关键操作（命令/配置/服务变更）
- 最近24小时日志扫描：
  - `tail -n 120 /var/root/.openclaw/logs/gateway-daemon.out.log`
  - `tail -n 120 /var/root/.openclaw/logs/gateway-daemon.err.log`
  - `tail -n 160 /var/root/.openclaw/logs/network-watchdog.log`
  - `tail -n 120 /var/root/.openclaw/logs/health-monitor.log`
  - `python3` 过滤 24h 窗口内 `[ws]` / `gmail-watcher` 事件做快速归类（仅统计与状态确认）。
- 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-23.md`
- 日志索引：`/Users/hale/Desktop/openclaw_log/INDEX.md`
- 站点仓库：`/Users/hale/Desktop/github/halewongai.github.io`
- 近24小时提交：
  - `1529601` — Update status
  - `87fe50d` — Update logs

## 待办
1. 为 `gmail-watcher` 显式注入 `HOME`（或改为以正确用户环境启动），验证 `gog gmail watch serve` 能连续稳定运行。
2. 在 watcher 重启策略中加入退避/熔断，避免固定 5 秒重启造成日志风暴与资源浪费。
3. 持续跟踪 `health-monitor` 的 `consecutiveBad` 增长，补充可执行的阈值告警与自动处置动作。
4. 对 `network-watchdog` 增加日级摘要输出（healthy 比例/异常次数），降低人工 tail 成本。
