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

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

## 入口

- 看板：`deliverables/index.html`
- 数据快照：`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 输出报告，不修改 profile、不重启 gateway、不清理 memory、不写入凭证或日志。

## 看板内容

- 最新巡检总览：profile 数、红/黄/绿评级、临界记忆、24h 错误/超时、gateway 异常。
- 历史趋势：红色 profile 数、24h 错误量、临界记忆数。
- 记忆 TOP10：按 USER/MEMORY 最高使用率排序。
- 错误 TOP10：按 24h 错误量排序。
- Profile 明细表：支持按评级、机器和关键词筛选。
- 重点异常与建议：来自最新报告摘要，敏感字段会按脚本规则脱敏。

## 安全边界

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