# 2026-03-26

## 今日摘要
1. 03:00（Asia/Shanghai）完成每日例行日志更新，已按清单扫描 `/var/root/.openclaw/logs/`、站点仓库近24小时提交、以及 `watchdog/watchdog.log`。
2. `gateway-daemon.err.log` 在 02:57-03:00 持续出现 `gog` 启动错误：`resolve user config dir: $HOME is not defined`，并伴随固定 5 秒重启循环。
3. `gateway-daemon.out.log` 与 err 日志对应，`gmail-watcher` 在同一窗口高频拉起失败，形成重启风暴。
4. `network-watchdog.log` 在 03-25 白天出现多轮 fast 模式自愈动作（重启 Clash Party + mihomo、bounce Wi-Fi），并多次记录恢复后回退到 2h 慢巡检。
5. `health-monitor.log` 仍按小时写入 `severity=warn`，`consecutiveBad` 从 950（前一日窗口末）增至 974（本次扫描窗口末）。
6. `halewongai.github.io` 近24小时有 2 次提交：`Update logs`（e78f61d）和 `Update status`（6178d3d）。
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 权限噪声。

## 关键操作（命令/配置/服务变更）
- 日志扫描与抽样：
  - `find /var/root/.openclaw/logs -type f -mtime -1 -maxdepth 2`
  - `tail` 抽查 `gateway-daemon.err.log`、`gateway-daemon.out.log`、`network-watchdog.log`、`health-monitor.log`
  - 关键词抽查：`HOME is not defined|TCC|Full Disk Access|NOPASSWD|Permission denied|getcwd`
- 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` 缺失导致 `gog` 退出）；
  - `network-watchdog` 白天执行过多次自动恢复动作，当前无新增权限策略变更信号。

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

## 待办
1. 为 `gmail-watcher` 补齐 `HOME`（或改为在正确用户上下文启动），并验证 `gog gmail watch serve` 稳定运行。
2. 给 watcher 重试逻辑增加退避/熔断，避免固定 5 秒重启造成日志风暴。
3. 持续跟踪 `health-monitor` 的 `consecutiveBad`，补充分级告警（网络类/服务类）。
4. 复盘 03-25 白天 `network-watchdog` 多轮 fast 模式触发原因（网络侧 vs 代理侧），沉淀可执行修复项。