# 每日 Profile 记忆与异常巡检 HTML 看板

这个项目把 IT profile 的每日 cron 报告 `daily-profile-memory-and-anomaly-audit` 转成一个静态 HTML 可视化看板。

## 入口

- 看板：`deliverables/index.html`
- 云端链接：`https://wwyl.yipeng.online/detail-pages/hermes-profile-audit-a49833a87c60/`
- 云端目录：`wwyl-cloud:/srv/detail-pages/public/hermes-profile-audit-a49833a87c60/`
- 数据快照：`deliverables/profile_audit_dashboard_data.json`
- 每日原始巡检摘要：`work/raw_reports/YYYY-MM-DD.md`
- 生成脚本：`work/generate_dashboard.py`
- 定时巡检脚本：`/Users/bot1/.hermes/profiles/it/scripts/daily_profile_audit_dashboard.py`
- 历史数据源：`/Users/bot1/.hermes/profiles/it/cron/output/a49833a87c60/*.md` + `work/raw_reports/*.md`

## 刷新方式

本地刷新：

```bash
cd /Users/bot1/Volumes/root_for_ai/AI工作区/通用_HTML看板_Profile记忆异常巡检_20260604_2339
python3 work/generate_dashboard.py
```

每日 cron 正式刷新与云端部署：

```bash
python3 /Users/bot1/.hermes/profiles/it/scripts/daily_profile_audit_dashboard.py
```

该脚本会读取最新巡检状态、刷新本地 HTML、同步到 `wwyl-cloud:/srv/detail-pages/public/hermes-profile-audit-a49833a87c60/`，并验证公开 URL 返回 200。

脚本只读 profile/cron 输出报告；不修改 profile、不重启 gateway、不清理 memory、不写入凭证或日志。

## 看板内容

- 顶部“一眼摘要”：profile 数、红/黄/绿评级、临界记忆、24h 错误/超时、gateway 异常。
- “今日需要关注”：只突出会明显影响用户体验的高优先级问题，例如记忆临界、重连/错误集中、gateway 未运行。
- 普通项折叠展示：低优先级红/黄项默认收起，二次点开查看。
- 历史趋势：红色 profile 数、24h 错误量、临界记忆数。
- 记忆 TOP10：按 USER/MEMORY 最高使用率排序。
- 错误 TOP10：按 24h 错误量排序。
- Profile 明细表：支持按评级、机器和关键词筛选。
- 重点异常与建议：来自最新报告摘要，敏感字段会按脚本规则脱敏。

## 安全边界

本项目只做报告可视化。不要在页面或数据文件中加入 token、cookie、app secret、数据库密码、auth.json 内容或任何连接串。
