# 2026-03-14

## 今日摘要
1. 03:00 每日例行日志更新完成：已扫描 `/var/root/.openclaw/logs/` 近24小时、`/Users/hale/Desktop/openclaw_log/watchdog/watchdog.log`、以及站点仓库最近24小时提交（使用 `su -l hale -c ...`）。
2. `gateway-daemon` 在近24小时最显著事件为 **gmail-watcher 持续重启风暴**：`gog gmail watch serve` 每约 5 秒重启一次。
3. 错误根因在日志中稳定复现：`resolve user config dir: $HOME is not defined`，说明 watcher 进程环境变量 `HOME` 缺失，导致 `gog` 无法定位用户配置目录。
4. `network-watchdog.log` 近24小时（03-13 03:00 至 03-14 03:00）slow check 持续 `healthy`，未触发 fast 模式和网络自愈动作。
5. `health-monitor.log` 继续按小时写入，状态维持 `severity=warn`，`consecutiveBad` 从 663 增长至 686（仅表征持续告警态）。
6. `openclaw_log/watchdog/watchdog.log` 文件存在但仍停留在 2026-02-03，近24小时无新增记录。
7. `halewongai.github.io` 仓库最近24小时无新提交（git log 空结果）。
8. 本轮未观察到新的配置写入（`config-audit.jsonl` 最后一条为 2026-03-13 02:26Z，已超过24小时窗口）。
9. 已新增 `daily/2026-03-14.md` 并更新 `INDEX.md` 索引。

## 关键操作（命令/配置/服务变更）
- 日志扫描：
  - `tail -n ... /var/root/.openclaw/logs/gateway-daemon.out.log`
  - `tail -n ... /var/root/.openclaw/logs/gateway-daemon.err.log`
  - `tail -n ... /var/root/.openclaw/logs/network-watchdog.log`
  - `tail -n ... /var/root/.openclaw/logs/health-monitor.log`
  - `tail -n ... /Users/hale/Desktop/openclaw_log/watchdog/watchdog.log`
- Git 扫描（按规范避免 getcwd 权限噪声）：
  - `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"'`
- 网络/权限相关结论：
  - 近24小时网络链路稳定，watchdog 未触发恢复动作。
  - 本轮未见新的 TCC / Full Disk Access 变更迹象。
  - 本轮未见新的 sudo NOPASSWD 变更迹象。
  - 当前主要可执行问题仍是 watcher 运行环境缺少 `HOME`。

## 交付物/链接
- 日志文件：`/Users/hale/Desktop/openclaw_log/daily/2026-03-14.md`
- 索引文件：`/Users/hale/Desktop/openclaw_log/INDEX.md`
- 站点仓库：`/Users/hale/Desktop/github/halewongai.github.io`（近24小时无新 commit）

## 待办
1. 为 gmail-watcher 启动命令补齐 `HOME`（并验证 `gog` 可读取用户配置目录）。
2. 给 watcher 加入失败退避/熔断策略，避免 5 秒级重启刷屏。
3. 复查 gateway 启动器对子进程环境变量继承策略，确认不仅是 gmail-watcher 受影响。
4. 持续观察 `health-monitor` 的 `severity=warn` 与 `consecutiveBad` 增长原因，判断是否需要降噪或阈值调整。
