# 2026-03-15

## 今日摘要
1. 03:00 例行日志更新执行：完成近24小时扫描（`/var/root/.openclaw/logs/`、`watchdog.log`、站点仓库 git log）。
2. `gateway-daemon` 发现新的核心异常：`gmail-watcher` 自 02:35 起进入约 5 秒一次的重启循环。
3. 异常根因在 `gateway-daemon.err.log` 稳定复现：`resolve user config dir: $HOME is not defined`，导致 `gog` 进程退出（code=1）。
4. `network-watchdog.log` 在近24小时窗口内持续 `healthy`，未触发 fast watchdog 或网络自愈动作。
5. `health-monitor.log` 继续按小时写入，状态保持 `severity=warn`；`consecutiveBad` 由 687 增长至 710。
6. `openclaw_log/watchdog/watchdog.log` 仍仅有 2026-02-03 的历史记录，近24小时无新增。
7. `halewongai.github.io` 在近24小时有 2 次提交：`Update logs`（03:10）与 `Update status`（06:00），说明站点维护有持续推进。
8. 近24小时未观察到新的 TCC / Full Disk Access / sudo NOPASSWD 变更记录。

## 关键操作（命令/配置/服务变更）
- 日志扫描：
  - `find /var/root/.openclaw/logs -type f -mtime -1`
  - `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 扫描（按规范使用 `su -l hale -c`，避免 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'"`
- 服务状态结论：
  - 主要异常集中在 gmail watcher 运行环境变量缺失（`HOME`），并非网络连通性故障。

## 交付物/链接
- 每日日志：`/Users/hale/Desktop/openclaw_log/daily/2026-03-15.md`
- 日志索引：`/Users/hale/Desktop/openclaw_log/INDEX.md`
- 站点仓库：`/Users/hale/Desktop/github/halewongai.github.io`
- 近24小时提交：`35eb562`、`6321de1`

## 待办
1. 修复 gmail-watcher 启动环境（补齐 `HOME`），并验证 `gog gmail watch serve` 可稳定运行。
2. 为 watcher 增加失败退避/熔断，避免 5 秒级重启风暴。
3. 排查 gateway 子进程环境继承策略，确认是否存在同类隐患。
4. 继续跟踪 `health-monitor` 长期 `severity=warn` 的根因与告警阈值设置。
