Files
CyberGril/docs/r3/DEPLOY-HEL-835.md
T

51 lines
2.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# HEL-835 独立部署与回退(R3 审核实例 8350)
部署时间:2026-10-24 14:03 北京时间。审核结论:通过(独立重跑与端到端证据见 `docs/r3/*-HEL-835.txt`、`e2e-HEL-835.py`)。
## 实例
- 服务:`cybergril-hel835.service`(systemd,User=cybergril,ProtectSystem=strict,ReadWritePaths 仅数据目录)
- 地址:`http://192.168.200.12:8350`(内网);health `/api/health` 返回 `R3-backend`、`capabilities.memory=true`
- 代码:分支 `hel-835-unified-review` 提交 `fc5e294`(= 后台 `89d53b6` + HEL-834 视觉总监包 `2288471` + 审核证据文档);releases 路径 `/opt/cybergril-hel835/releases/hel835-20261024-fc5e294`,`current` 符号链接指向它
- 前端:本地 `npm run build` 的 `web/dist` 随包部署
- 数据:`/opt/cybergril-hel835-data/cybergril.db` 全新合成档案(小满),与 8300/8310/8320/8340 及真实用户库完全隔离,未复制任何真实数据
- 模型路由:复制自 hel829 隔离实例的 `config/models.yaml`(内网 halogen 服务),未改全局路由/模型/温度/预算
- Python 3.12.3 / SQLite 3.45.1;trigram 中文短语与三元组实测命中,短 MATCH=0 由基表 LIKE 回退(与实现设计一致)
- 日志:venv site-packages `sitecustomize.py` 开 INFO(部署层配置,未改产品代码),检索命中 JSON 日志进 journal
## 运维命令
```bash
systemctl status cybergril-hel835
journalctl -u cybergril-hel835 -f
# 检索命中日志
journalctl -u cybergril-hel835 | grep cybergril.memory.episodic
```
## 停止
```bash
systemctl stop cybergril-hel835 # 保留数据与日志
```
## 回退
```bash
systemctl stop cybergril-hel835
ln -sfn /opt/cybergril-hel835/releases/<上一release> /opt/cybergril-hel835/current # 本次为首版,回退即停服保留现场
systemctl start cybergril-hel835
```
schema 全增量(新列/表/索引),回退旧代码后新增结构被忽略、数据不删;`mem_fts` 旧索引未动。**任何回退不删除数据库、日志或证据目录。**
## 有限真实验证台账
持久台账:`/opt/cybergril-hel835-data/evidence/day1-summary.json`(副本 `ledger.json`)。上限:真实对话≤6轮、MEMORY_GIST≤8次(含失败/重试/后台,跨运行累计)、人格生成≤1。
- 2026-10-24 首日:人格生成 1/1;对话 2/6 轮(主题:旧书店蓝色封面诗集);MEMORY_GIST 4/8 次(4 条记忆全部压缩成功,零重试,2728 tokens);生活事件 0(R2 循环保持原样,明天观察是否自动生成并记账)
- 隔天取回:按近20轮排除设计,4 轮全部在窗口内,明日提问预期检索不注入(如实记录 hits);真实长期取回需累计>20轮,超出本卡授权,保留待验,不宣称通过
## 保护范围
不动 8300/8310/8320/8340、HEL-831 三天观察、共享语音口型与 4080;不并入 8310(须白栖知另行确认);不合并任何 PR。