# 2026-03-25

## 今日摘要
1. 03:00（Asia/Shanghai）完成每日例行日志更新；已按要求扫描 `/var/root/.openclaw/logs/`、站点仓库近24小时提交、以及 `watchdog/watchdog.log`。
2. 近24小时主要活跃日志仍集中在 `gateway-daemon.out.log` 与 `gateway-daemon.err.log`，核心异常未变：`gmail-watcher` 循环拉起失败。
3. `gateway-daemon.err.log` 在 02:57-03:00 持续出现 `[gog] resolve user config dir: $HOME is not defined`，并伴随 `gog exited (code=1)... restarting in 5s`。
4. `gateway-daemon.out.log` 同时段记录高频 `gmail-watcher` 启动尝试（参数中敏感字段已脱敏，不入日志明文），与 err 日志形成重启风暴对应关系。
5. `network-watchdog.log` 近24小时（03-24 03:39 至 03-25 02:39）均为周期性 `CHECK: healthy`，未见 fast 切换或恢复动作。
6. `health-monitor.log` 按小时持续写入，`severity=warn` 未恢复，`consecutiveBad` 从 927 增长到 950（+23）。
7. `halewongai.github.io` 近24小时有 2 次提交：`Update logs`（8dcf0ba）与 `Update status`（f0098ce）。
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小时窗口日志扫描（按 mtime 筛选并抽查 tail）：
  - 遍历 `/var/root/.openclaw/logs/*`，对近24小时变更文件执行 `tail` 抽样。
- 重点日志抽查：
  - `tail -n 80 /var/root/.openclaw/logs/gateway-daemon.err.log`
  - `tail -n 80 /var/root/.openclaw/logs/gateway-daemon.out.log`
  - `tail -n 120 /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" -n 30'`
- 配置/服务观察结论：
  - 近24小时未见新的权限策略变更信号；
  - `gmail-watcher` 仍因运行环境缺失 `HOME` 无法稳定启动。

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

## 待办
1. 为 `gmail-watcher` 补齐 `HOME`（或改为在正确用户上下文启动），并验证 `gog gmail watch serve` 连续稳定运行。
2. 给 watcher 重试机制加退避/熔断，避免固定 5 秒重启导致日志风暴。
3. 持续跟踪 `health-monitor` 的 `consecutiveBad` 增长，并补充分级告警（网络类/服务类）。
4. 为 `network-watchdog` 增加日级摘要（healthy 比例、异常次数、动作次数），降低人工排查成本。