chore: 本地快照 — 终端 UI、服务器 site_url、后台任务与 Agent 导航

汇总未提交工作区:Servers 列表 site_url 链接、终端页与选机器 UI、SSH 连通性与 Telegram 通知、agent/offline/unset_path 后台调度与 gate_ai_review 门控;更新 AGENTS 与 agent-exploration 规则(仅本机 commit);同步 web/app 构建产物与相关文档。
This commit is contained in:
r
2026-06-18 06:01:50 +08:00
parent 1a79c0fbfb
commit 9c9a51263c
5436 changed files with 95947 additions and 236 deletions
@@ -0,0 +1,42 @@
# Changelog — 门控 Gate 8 AI Review
**日期**: 2026-06-14
## 变更摘要
部署前门控从 7 道增至 **8 道**,新增 **AI Review**:对 `HEAD~1..HEAD` 源码变更自动调用 `cursor-agent`ask 只读模式)审查,结果缓存到 `docs/reviews/`,同 `head_sha` 复用。
## 动机
用户要求部署前自动 AI review,避免仅靠人工审计交叉校验;与 `/ce-code-review` 互补(门控为轻量 diff 审查 + 可机读 JSON 阻断 P0/P1)。
## 涉及文件
- `scripts/gate_ai_review.py` — 审查、缓存、阻断逻辑
- `scripts/gate_ai_review.sh` — 包装入口
- `deploy/pre_deploy_check.sh` — Gate 8/8
- `docs/reviews/` — 审查产物目录
- `docs/design/specs/2026-06-14-gate-ai-review-design.md`
- `docs/design/plans/2026-06-14-gate-ai-review.md`
## 环境变量
| 变量 | 默认 | 说明 |
|------|------|------|
| `NEXUS_AI_REVIEW_MODE` | `auto` | 无缓存时自动跑 agent`cache` 仅校验缓存 |
| `NEXUS_SKIP_AI_REVIEW` | — | `1` 时 WARN 跳过(应急) |
| `NEXUS_AI_REVIEW_TIMEOUT` | `600` | agent 超时秒数 |
| `CURSOR_AGENT_BIN` | — | 自定义 cursor-agent 路径 |
## 迁移 / 重启
无需 DB 迁移;仅改门控脚本。
## 验证方式
```bash
python3 scripts/gate_ai_review.py --run # 生成 docs/reviews/*.json
bash deploy/pre_deploy_check.sh # 应 8/8 PASS
```
P0/P1confidence≥75)或 `verdict=Not ready` 时 Gate 8 BLOCK。