# 2026-03-24

## 今日摘要
1. 03:00（Asia/Shanghai）完成每日例行日志更新；已按要求扫描 `/var/root/.openclaw/logs/`、站点仓库近24小时提交、以及 `watchdog/watchdog.log`。
2. 近24小时日志文件更新集中在 `gateway-daemon.*`、`network-watchdog.log`、`health-monitor.log` 与 `config-audit.jsonl`。
3. `gateway-daemon.err.log` 在 02:51-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-23 03:38 至 03-24 02:39）均为周期性 `CHECK: healthy`，未出现新的 fast 切换或网络重置动作。
6. `health-monitor.log` 仍按小时写入，`severity=warn` 持续，`consecutiveBad` 从 903 增长到 926（+23）。
7. `halewongai.github.io` 近24小时有 2 次提交：`Update logs`（56d435e）与 `Update status`（9839f4a）。
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）：
  - `python3` 脚本遍历 `/var/root/.openclaw/logs/*` 并筛选最近24小时变更文件。
- 日志抽查：
  - `tail -n 220 /var/root/.openclaw/logs/gateway-daemon.out.log`
  - `tail -n 220 /var/root/.openclaw/logs/gateway-daemon.err.log`
  - `tail -n 200 /var/root/.openclaw/logs/network-watchdog.log`
  - `tail -n 200 /var/root/.openclaw/logs/health-monitor.log`
  - `tail -n 120 /var/root/.openclaw/logs/config-audit.jsonl`
- 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" --name-status'`
- watchdog 日志检查：
  - `tail -n 200 /Users/hale/Desktop/openclaw_log/watchdog/watchdog.log`
- 配置/服务观察结论：
  - 近24小时 `config-audit.jsonl` 无新增配置写入（最新仍为 2026-03-23 模型设置记录）。
  - `gmail-watcher` 当前阻塞点仍是运行环境缺失 `HOME`，尚未恢复稳定运行。

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

## 待办
1. 为 `gmail-watcher` 补齐 `HOME` 环境（或切换到正确用户上下文启动）并验证 `gog gmail watch serve` 持续驻留。
2. 给 watcher 重启逻辑增加退避/熔断，减少固定 5 秒重试造成的日志风暴与资源浪费。
3. 持续跟踪 `health-monitor` 的 `consecutiveBad`，补充阈值告警与自动修复动作（至少区分网络类/服务类原因）。
4. 为 `network-watchdog` 增加日级摘要（healthy 比例、异常次数、动作次数），降低人工排查成本。
