HEL-913: correct runtime wiring and closeout instructions after coordinator checks
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -97,6 +97,7 @@
|
||||
git clone -b agent/2/8e99cc2cc592 ssh://git@192.168.200.36:222/leefer/CyberGril.git \
|
||||
/opt/cybergril-hel913/current
|
||||
cd /opt/cybergril-hel913/current
|
||||
git checkout --detach <本轮交付评论的运行包完整提交号>
|
||||
git merge-base --is-ancestor 4a38106eef21c43ba24ab7d07992b1bfe539137d HEAD
|
||||
git diff --stat 4a38106eef21c43ba24ab7d07992b1bfe539137d HEAD -- src web config tools tests # 空
|
||||
|
||||
@@ -161,8 +162,8 @@ cwd 是本实例目录)的进程,PID 被复用时拒杀并报告;启动健
|
||||
|
||||
| 上限 | 接线(唯一) | 性质 |
|
||||
| --- | --- | --- |
|
||||
| ASR 音频总量 / 每通重连 | `worker/.env` 三项 `CYBERGRIL_ASR_WINDOW_ID/_MAX_AUDIO_SECONDS/_MAX_CONNECT_RETRIES_PER_CALL`(空/0=拒绝一切 ASR;布防值见 `voice-window-arm.template.env`) | 程序硬闸,发送前拒绝(`src/cybergril/voice/asr_usage.py`,逐通落账) |
|
||||
| 每通墙钟/房间寿命 | `voice.yaml` `session_ttl_seconds: 900` + token TTL 300;挂断即删房(失败留账重试) | 程序硬闸 + 到期失效 |
|
||||
| ASR 音频总量 / 每通重连 | `worker/.env` 三项 `CYBERGRIL_ASR_WINDOW_ID`、`CYBERGRIL_ASR_WINDOW_MAX_AUDIO_SECONDS`、`CYBERGRIL_ASR_MAX_CONNECT_RETRIES_PER_CALL`(空/0=拒绝一切 ASR;布防值见 `voice-window-arm.template.env`) | 程序硬闸,发送前拒绝(`src/cybergril/voice/asr_usage.py`,逐通落账) |
|
||||
| 每通墙钟/房间寿命 | `voice.yaml` `session_ttl_seconds: 600` + token TTL 300;挂断即删房(失败留账重试) | 程序硬闸 + 到期失效 |
|
||||
| TTS 段数 | `tts_ctl.template.sh` start 时记录 tts.log 起始字节,`grep -c "first chunk"` 对照窗口段数上限 | 监控口径(到顶即人工 force_end;程序不硬闸) |
|
||||
| 窗口总时限 | `force_end.template.sh watch <deadline>` 到点强制收尾(DELETE 全部会话→worker→api→bridge→tts,各按专属句柄);更可靠的等价物是获批后装 systemd timer 调 `now` | 可执行停服,非口头承诺 |
|
||||
|
||||
@@ -177,7 +178,7 @@ cwd 是本实例目录)的进程,PID 被复用时拒杀并报告;启动健
|
||||
```bash
|
||||
# 停服口径(推荐;目录内 SQLite 一并 checkpoint+逐表核对)
|
||||
bash deploy/hel913-unified/api_ctl.sh stop
|
||||
.venv311/bin/python tools/release_snapshot_hel896.py snapshot \
|
||||
/opt/cybergril-hel913/venv311/bin/python tools/release_snapshot_hel896.py snapshot \
|
||||
--name <阶段名> --db /opt/cybergril-hel913/data/companion.db \
|
||||
--file /opt/cybergril-hel913/data --out /opt/cybergril-hel913/archives/
|
||||
```
|
||||
@@ -257,7 +258,7 @@ python3 -m pip download --only-binary :all: --implementation cp \
|
||||
-r requirements.lock -d wheels-product/ # 产品锁 19 项
|
||||
python3 -m pip download --only-binary :all: --implementation cp \
|
||||
--python-version 3.11 --platform manylinux2014_x86_64 --abi cp311 \
|
||||
-r deploy/hel913-unified/mem0-cp311-wheels.txt -d wheels-mem0/ # 记忆栈 40 项
|
||||
-c requirements.lock -r deploy/hel913-unified/mem0-cp311-wheels.txt -d wheels-mem0/ # 记忆栈 40 项
|
||||
# 其中 greenlet/pillow/truststore 3 项可从工作站 uv 缓存离线复用
|
||||
# (release-artifacts.json 记录),命中即从 wheels-mem0/ 删除同版本再放缓存件
|
||||
cp <hel857-data>/mem0ai-2.2.1-py3-none-any.whl wheels-mem0/
|
||||
@@ -265,29 +266,31 @@ cp <hel857-data>/mem0ai-2.2.1-py3-none-any.whl wheels-mem0/
|
||||
( cd wheels-mem0 && sha256sum * > ../wheels-mem0.sha256 ) # 逐项留证入库
|
||||
|
||||
# W2 · 传输与落位(scp 到 .12;约 wheels 250–350MB + 模型缓存 92MB)
|
||||
scp -r wheels-product wheels-mem0 <hel857-data>/fastembed-cache root@192.168.200.12:/opt/cybergril-hel913/
|
||||
ssh root@192.168.200.12 'sha256sum -c /opt/cybergril-hel913/wheels-product.sha256 && \
|
||||
sha256sum -c /opt/cybergril-hel913/wheels-mem0.sha256' # 传输后复核
|
||||
scp -r wheels-product wheels-mem0 wheels-product.sha256 wheels-mem0.sha256 <hel857-data>/fastembed-cache root@192.168.200.12:/opt/cybergril-hel913/
|
||||
ssh root@192.168.200.12 'cd /opt/cybergril-hel913/wheels-product && sha256sum -c ../wheels-product.sha256 && \
|
||||
cd ../wheels-mem0 && sha256sum -c ../wheels-mem0.sha256' # 传输后复核
|
||||
|
||||
# W3 · 隔离 venv 创建 + 仅本地轮安装(--no-index 全程,失败即停)
|
||||
ssh root@192.168.200.12
|
||||
python3.11 -m venv /opt/cybergril-hel913/venv311
|
||||
/opt/cybergril-hel879/runtime/cpython-3.11.16/bin/python3.11 -m venv /opt/cybergril-hel913/venv311
|
||||
/opt/cybergril-hel913/venv311/bin/python -m pip install --no-index \
|
||||
--find-links /opt/cybergril-hel913/wheels-product -r /opt/cybergril-hel913/current/requirements.lock
|
||||
/opt/cybergril-hel913/venv311/bin/python -m pip install --no-index \
|
||||
--find-links /opt/cybergril-hel913/wheels-mem0 \
|
||||
--find-links /opt/cybergril-hel913/wheels-product \
|
||||
-c /opt/cybergril-hel913/current/requirements.lock \
|
||||
mem0ai==2.2.1 qdrant-client==1.20.0 fastembed==0.9.1
|
||||
# mem0ai 的安装来源必须是 W0 的固定源码轮(同版本号不同来源不互认)
|
||||
|
||||
# W4 · co-import 冒烟(同进程;失败即停,不降级)
|
||||
cd /opt/cybergril-hel913/current
|
||||
PYTHONPATH=src /opt/cybergril-hel913/venv311/bin/python -c \
|
||||
MEM0_TELEMETRY=False HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 PYTHONPATH=src /opt/cybergril-hel913/venv311/bin/python -c \
|
||||
"import cybergril.api, mem0, qdrant_client, fastembed; print('co-import ok')"
|
||||
|
||||
# W5 · 模型缓存落位(真实本地嵌入零下载)
|
||||
mkdir -p /opt/cybergril-hel913/data/sem
|
||||
cp -a /opt/cybergril-hel913/fastembed-cache /opt/cybergril-hel913/data/sem/fastembed-cache
|
||||
# semantic.yaml 的 fastembed cache_dir 指向上面的目录(见 8.4)
|
||||
# api_ctl.sh 通过 FASTEMBED_CACHE_PATH 指向它,模型资源禁止联网获取。
|
||||
|
||||
# W6 · 清理暂存(轮文件传输件用毕即删;哈希清单留档)
|
||||
rm -rf /opt/cybergril-hel913/wheels-product /opt/cybergril-hel913/wheels-mem0 /opt/cybergril-hel913/fastembed-cache
|
||||
@@ -304,6 +307,9 @@ rm -rf /opt/cybergril-hel913/wheels-product /opt/cybergril-hel913/wheels-mem0 /o
|
||||
- `CYBERGRIL_SEMANTIC`(api_ctl.sh 的 `HEL913_SEMANTIC`):`stub`(默认,
|
||||
全链可跑、非语义)→ 批准后 `mem0`(真实)。
|
||||
- 配置:`cp config/semantic.example.yaml /opt/cybergril-hel913/etc/semantic.yaml`,
|
||||
启动器显式传 `CYBERGRIL_SEMANTIC_CONFIG=$BASE/etc/semantic.yaml`(不再误读仓库默认路径)。
|
||||
`MEM0_TELEMETRY=False`、`FASTEMBED_CACHE_PATH=$BASE/data/sem/fastembed-cache`、
|
||||
`HF_HUB_OFFLINE=1`、`TRANSFORMERS_OFFLINE=1` 由启动器在 import 前设置。
|
||||
填 `ledger_path=/opt/cybergril-hel913/data/embed_ledger.sqlite3`、
|
||||
`vector_root/history_root=/opt/cybergril-hel913/data/sem/{vec,hist}`、
|
||||
网关三键(与 models.yaml 同源)、`authority` 块。
|
||||
@@ -330,3 +336,43 @@ rm -rf /opt/cybergril-hel913/wheels-product /opt/cybergril-hel913/wheels-mem0 /o
|
||||
8300/8310/8320/8350 与既有资料不动、8340/ComfyUI 保持停机、不向
|
||||
`/opt/cybergril-hel879/current/.venv311` 增改依赖。旧三次测试窗口余额不
|
||||
结转;一切提额、安装、部署都是待批准建议。
|
||||
|
||||
|
||||
## 10. 总管独立取件勘误与最终执行约束(2026-10-29)
|
||||
|
||||
本节优先于上文笼统模板描述,当前仍全部待批,零真实调用。
|
||||
|
||||
- 运行包基线8ea5fdc之后仅机械收口:补语义配置路径/缓存/禁遥测离线变量;
|
||||
force_end按真实持久化sessions列表取session_id;补桥/TTS非法命令拒绝和失败收尾;
|
||||
传输hash清单与目标工作目录、既有3.11解释器路径纠正;每通TTL改600秒与10分钟一致。
|
||||
- 40项记忆缺轮与产品19项锁是现有版本清单。下载使用两份requirements合并约束,
|
||||
不得让第二次下载/安装解析器静默换掉产品锁版本:W1增加`-c requirements.lock`,
|
||||
W3记忆安装同时传`--find-links .../wheels-product -c .../requirements.lock`。
|
||||
解析冲突/缺cp311轮即停并留首错,不自动换版本、不引入新模型。
|
||||
- B记忆日顶明确为embed_daily=60、llm_daily=40(SDK提取另受累计llm_cap=60),
|
||||
authority/累计embed_cap=680、reserve=2原样。语义日账按UTC(北京时间08:00)
|
||||
切日,产品对话/生活日账显式TZ=Asia/Shanghai按北京时间00:00切日,不能混说。
|
||||
- 不运行测试脚本里的失管sleep替身作为长期任务。未来实际截止保护用获批后的
|
||||
systemd一次性定时服务(服务/日志/停机句柄可查);不能把本轮本地watch留到结束后。
|
||||
部署卡执行`systemd-run --unit=cybergril-hel913-expiry --on-calendar="<明确UTC截止时间>" \
|
||||
/usr/bin/env HEL913_BASE=/opt/cybergril-hel913 /usr/bin/bash \
|
||||
/opt/cybergril-hel913/current/deploy/hel913-unified/force_end.template.sh now`,
|
||||
放行前必须核`systemctl list-timers cybergril-hel913-expiry.timer`及临时实例停止句柄。
|
||||
这是未来待批动作,本轮没有创建服务/定时器。
|
||||
- 语音为团队陪同的3次预约短用,每次600秒,总ASR1800秒,建房尝试最多6次,
|
||||
每通ASR重连最多2次,TTS60段及声音登记+试听合计10次由当班执行者监督计数。
|
||||
这些软上限不冒充程序硬闸;不在无人值守时开启语音窗口。
|
||||
TTS段顶/语音配额到顶只结束语音,B文字生活仍可用;到期/用户叫停才停全实例。
|
||||
自定义声音需要既有8090面板的实例专属启动句柄与前后快照,
|
||||
复用HEL907已有面板启动方法,不动8081;句柄或快照未备齐不放行上传/试听,
|
||||
默认已有工程声音仍能通话。共享voices列表需恢复前快照,自定义参考材料在独立实例保留。
|
||||
- 到期脚本负责停本实例入口与自己启动的语音服务。封账归档、LiveKit只读核空、
|
||||
voices快照恢复由当班执行者另行执行并核实,不能把日志里的done当全部清理完成。
|
||||
清理失败保留原始错误/账/日志,不解除封账、不重启服务来“证明已停”。
|
||||
|
||||
|
||||
自定义声音细分额度(同一次待批方案):最多登记2段参考音频,每段由陪同人员先核≤20秒;
|
||||
自动转写最多2次/合计40秒,单列监督账,不冒充通话ASR的1800秒硬闸。
|
||||
最多试听8次;登记2次+试听8次共10次。试听合成并入60段TTS总上限。
|
||||
两类ASR合计最大1840秒(通话1800+参考40);失败/重试同样记账,不返余额。
|
||||
本轮未执行登记、转写或试听。
|
||||
|
||||
@@ -89,6 +89,12 @@ start() {
|
||||
export CYBERGRIL_DB=$BASE/data/companion.db
|
||||
export CYBERGRIL_SEMANTIC=${HEL913_SEMANTIC:-stub}
|
||||
export CYBERGRIL_R2_ENABLED=${HEL913_R2:-1}
|
||||
export TZ=Asia/Shanghai
|
||||
export CYBERGRIL_SEMANTIC_CONFIG=$BASE/etc/semantic.yaml
|
||||
export MEM0_TELEMETRY=False
|
||||
export FASTEMBED_CACHE_PATH=$BASE/data/sem/fastembed-cache
|
||||
export HF_HUB_OFFLINE=1
|
||||
export TRANSFORMERS_OFFLINE=1
|
||||
export CYBERGRIL_MODELS=$BASE/etc/models.yaml
|
||||
export CYBERGRIL_VOICE_CONFIG=$BASE/etc/voice.yaml
|
||||
export CYBERGRIL_WEB=$CODE/web/dist
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
# 用法: [ENV=..] bash bridge_ctl.template.sh start|stop|status
|
||||
# 环境变量: HEL913_BASE / HEL913_BRIDGE_PORT(8363) / HEL913_CERT / HEL913_KEY
|
||||
set -u
|
||||
case "${1:-}" in start|stop|status) ;; *) echo "invalid subcommand" >&2; exit 2 ;; esac
|
||||
BASE=${HEL913_BASE:-/opt/cybergril-hel913}
|
||||
PORT=${HEL913_BRIDGE_PORT:-8363}
|
||||
CERT=${HEL913_CERT:-/opt/cybergril-voice-certs/cybergril-voice.pem}
|
||||
@@ -74,4 +75,4 @@ echo "bridge starting (pid $(cat "$PIDF")) on :$PORT"
|
||||
sleep 3
|
||||
timeout 8 openssl s_client -connect "127.0.0.1:$PORT" -servername 192.168.200.12 </dev/null 2>/dev/null \
|
||||
| grep -q "TLSv1.3" && echo "OK: bridge TLS up" \
|
||||
|| { echo "WARN: TLS probe inconclusive — check $LOG"; tail -5 "$LOG"; }
|
||||
|| { echo "FAIL: TLS probe failed — check $LOG"; tail -5 "$LOG"; stop; exit 1; }
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
# # systemd timer 调本脚本 now)
|
||||
# 环境变量: HEL913_BASE / HEL913_HTTP(8360)
|
||||
set -u
|
||||
set -o pipefail
|
||||
BASE=${HEL913_BASE:-/opt/cybergril-hel913}
|
||||
HTTP=${HEL913_HTTP:-8360}
|
||||
PKG=$BASE/current/deploy/hel913-unified
|
||||
@@ -22,6 +23,7 @@ LOG=$BASE/logs/force_end.log
|
||||
usage() { echo "usage: [ENV=..] bash $0 now|watch <deadline_epoch_seconds>" >&2; exit 2; }
|
||||
|
||||
force_end() {
|
||||
mkdir -p "$BASE/logs"
|
||||
ts() { date -u +%FT%TZ; }
|
||||
{
|
||||
echo "[$(ts)] force_end begin"
|
||||
@@ -33,19 +35,12 @@ try:
|
||||
d = json.loads(p.read_text())
|
||||
except Exception:
|
||||
raise SystemExit
|
||||
state = d.get("state", d)
|
||||
def walk(o):
|
||||
if isinstance(o, dict):
|
||||
for k, v in o.items():
|
||||
if k in ("sessions", "active") and isinstance(v, dict):
|
||||
for sid, sess in v.items():
|
||||
print(sid)
|
||||
else:
|
||||
walk(v)
|
||||
elif isinstance(o, list):
|
||||
for i in o:
|
||||
walk(i)
|
||||
walk(state)
|
||||
# VoiceSessionService._persist_state stores sessions as a LIST, not a dict.
|
||||
# Debts already follow bounded SDK cleanup; do not reset their retry budgets here.
|
||||
for entry in d.get("sessions", []):
|
||||
sid = entry.get("session_id", "")
|
||||
if sid and all(c.isalnum() or c in "-_" for c in sid):
|
||||
print(sid)
|
||||
EOF
|
||||
); do
|
||||
code=$(curl -s -o /dev/null -w '%{http_code}' --max-time 8 -X DELETE "http://127.0.0.1:$HTTP/api/voice/session/$sid" || echo err)
|
||||
@@ -64,6 +59,8 @@ case "${1:-}" in
|
||||
now) force_end ;;
|
||||
watch)
|
||||
DL=${2:?deadline epoch seconds required}
|
||||
case "$DL" in *[!0-9]*|'') usage ;; esac
|
||||
mkdir -p "$BASE/logs"
|
||||
echo "[$(date -u +%FT%TZ)] watch start, deadline $(date -u -d "@$DL" +%FT%TZ) (pid $$)" >> "$LOG"
|
||||
while [ "$(date +%s)" -lt "$DL" ]; do sleep 30; done
|
||||
echo "[$(date -u +%FT%TZ)] DEADLINE REACHED — force end" >> "$LOG"
|
||||
|
||||
@@ -65,5 +65,22 @@
|
||||
"ledger_continuation": "authoritative embed ledger copied to instance data/embed_ledger.sqlite3 (ledger only — no test chats/vectors moved); authority prefix_rows=181, prefix_sha256 by manager, min_used=498, embed_cap=680 cumulative formula, frozen 2 untouched; 39/60 and old window balances never carried over"
|
||||
},
|
||||
"enablement_doc": "docs/hel913-capability-and-enablement.md §2 — single consistent pending-approval proposal: A/B/C separate accounts, all awaiting approval (manager does not self-approve A), B voice = 3 calls x <=10min = <=1800s ASR hard gate with per-cap consequences and executable window end, B/C boundary fixed",
|
||||
"boundaries": "not deployed; nothing listening; caps all 0; no PR; existing instances and data untouched; no downloads this card; protected venvs untouched"
|
||||
"boundaries": "not deployed; nothing listening; caps all 0; no PR; existing instances and data untouched; no downloads this card; protected venvs untouched",
|
||||
"coordinator_close_verification": "docs/rework/hel913/coordinator-close-checks.txt: 17/17 targeted offline checks; product baseline unchanged",
|
||||
"file_sha256": {
|
||||
"deploy/hel913-unified/README.md": "63c93587fd87750002b809203df5072ef81a1059e6c5166241fafdd5465f4c7b",
|
||||
"deploy/hel913-unified/api_ctl.sh": "3eeff54fcdc1becb79d9fe63767eceee9209ed6239663ff7d0a3e90d27379c55",
|
||||
"deploy/hel913-unified/bridge_ctl.template.sh": "43e951f01ceed07b9c1606cfc046aa1d34eefc8fad3a40c66db2de57f16c1d14",
|
||||
"deploy/hel913-unified/dist-manifest.json": "c2ebc6e515096b535f5e08cce18dc9c4f104c1b2cabe3f3afb5fdd88f12d63db",
|
||||
"deploy/hel913-unified/force_end.template.sh": "3f250942ff68e26e4a71750e17fd804fa57be921097d83ee76f1b5b0024fe893",
|
||||
"deploy/hel913-unified/mem0-cp311-wheels.txt": "2a6fd3d287fe0713a2ac683584ee7f3723c83c236696f39551015ca2db358b94",
|
||||
"deploy/hel913-unified/models.template.yaml": "0b8f051cedfcf0218929a652fed91b00762c33dd17fbb8f7eadcc50c65d4e837",
|
||||
"deploy/hel913-unified/test_ctl_scripts.sh": "702f7b911598fc0433f63f250f2f1e58dec9d727dd7eb6ae8a773d521fcad5cd",
|
||||
"deploy/hel913-unified/tts_ctl.template.sh": "f638f24a41f07cfef64e66eee996b4280fdd7aac80a5fc20be6d47a41b72cabf",
|
||||
"deploy/hel913-unified/verify_offline.py": "86ea3da6f2c682ad8ee9a932f91d713e0778c61be5d4c15f916e38d15e3e66e4",
|
||||
"deploy/hel913-unified/voice-window-arm.template.env": "4002b99d63fa556a5f1e8cb86bf74846e7b944571dd76ed40bfb549cf64f3307",
|
||||
"deploy/hel913-unified/voice.template.yaml": "55e556d5df149ab4fa257640b4d87dc40bb43107a5e90279826516a7ec423f4c",
|
||||
"deploy/hel913-unified/worker.env.template": "be80fc87cc04a379a776732ad94f392e08af4ecb9eaad4190a090f4071f40383",
|
||||
"deploy/hel913-unified/worker_ctl.sh": "57fd028e3b0d932cdbde483925cc7e39a5b994fa53742f9350cc5fc22381077f"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
# 用法: [ENV=..] bash tts_ctl.template.sh start|stop|status|snapshot
|
||||
# 环境变量: HEL913_BASE / HEL913_TTS_VENV(/opt/voice-agent/cosyvoice/venv/bin/python)
|
||||
set -u
|
||||
case "${1:-}" in start|stop|status|snapshot) ;; *) echo "invalid subcommand" >&2; exit 2 ;; esac
|
||||
BASE=${HEL913_BASE:-/opt/cybergril-hel913}
|
||||
CC=${HEL913_TTS_HOME:-/opt/voice-agent/cosyvoice}
|
||||
TTSVENV=${HEL913_TTS_VENV:-$CC/venv/bin/python}
|
||||
@@ -56,6 +57,11 @@ case "${1:-}" in
|
||||
esac
|
||||
|
||||
# start(仅 start 子命令落到这里)
|
||||
mkdir -p "$BASE/logs"
|
||||
p=$(pidfile_pid)
|
||||
if [ -n "$p" ] && kill -0 "$p" 2>/dev/null; then
|
||||
echo "REFUSED: live pid handle already exists; inspect/stop first" >&2; exit 1
|
||||
fi
|
||||
if curl -s --max-time 3 http://127.0.0.1:9880/health >/dev/null 2>&1; then
|
||||
echo "9880 already up — NOT ours, not touching"; exit 0
|
||||
fi
|
||||
@@ -76,4 +82,8 @@ for i in $(seq 1 60); do
|
||||
fi
|
||||
kill -0 "$(cat "$PIDF")" 2>/dev/null || { echo "FAIL: tts process died"; tail -10 "$CC/tts.log"; exit 1; }
|
||||
done
|
||||
echo "FAIL: tts not healthy in 120s"; tail -10 "$CC/tts.log"; exit 1
|
||||
echo "FAIL: tts not healthy in 120s"; tail -10 "$CC/tts.log"
|
||||
p=$(pidfile_pid)
|
||||
if ours "$p"; then kill "$p"; sleep 2; ours "$p" && kill -9 "$p"; fi
|
||||
rm -f "$PIDF"
|
||||
exit 1
|
||||
|
||||
@@ -20,4 +20,4 @@ tts_url: http://127.0.0.1:9880
|
||||
registry_file: /opt/cybergril-hel913/data/voices.json
|
||||
worker_state_file: /opt/cybergril-hel913/data/voice_state_cybergril.json
|
||||
token_ttl_seconds: 300
|
||||
session_ttl_seconds: 900
|
||||
session_ttl_seconds: 600
|
||||
|
||||
@@ -63,18 +63,16 @@ backup=false 为诚实声明;text=true)。
|
||||
性 4 次。**语音通话里的对话轮同样计 dialogue 日账**(不另开语音 LLM 账)。
|
||||
- **记忆(若批安装)**:提取 LLM 累计 60 次(`llm_ops`)、新增嵌入累计
|
||||
180 条(累计口径 `embed_cap=680`、冻结 2 不动,见运行包 README §8.4)、
|
||||
语义类 40 次/日。
|
||||
语义类 40 次/日;嵌入日顶60条,提取日顶40次(两项按UTC切日,即北京时间08:00)。
|
||||
- **语音(3 通 × ≤10 分钟 = 合计 ≤30 分钟)**:ASR 音频合计 ≤1800 秒
|
||||
(程序硬闸,发送前拒绝,重启进程不重置);每通连接重试 ≤2(硬闸);
|
||||
每通墙钟 ≤10 分钟(session_ttl 900 秒硬顶之内,超时房间失效);TTS
|
||||
合成 ≤60 段(监控口径:tts.log first-chunk 计数,到顶即人工 force_end
|
||||
收窗,程序不硬闸);建房即用即删(开房失败 503 不重试建房;挂断清理
|
||||
每通墙钟 ≤10 分钟(session_ttl 600 秒硬顶之内,超时房间失效);TTS
|
||||
合成 ≤60 段(监督计数,到顶人工仅关闭语音服务,不停文字生活;程序不硬闸);建房即用即删(开房失败 503 不重试建房;挂断清理
|
||||
失败留账自动重试);声音上传登记+试听合计 ≤10 次(监督口径:由陪同
|
||||
团队按次计数,程序不硬闸)。需要用户当场在浏览器允许麦克风(HTTPS+
|
||||
自签证书「高级→继续」)。自定义声音当场可用(上传→试听→应用)。
|
||||
- **碰顶后果(逐项如实)**:LLM 日顶→当次诚实拒绝、界面报错、次日恢复;
|
||||
ASR 触顶→发送前拒绝、本通结束、全窗不再接受新音频;TTS 段顶→不再有
|
||||
语音合成(文字仍可用);窗口到期→统一停服封账(见下)。
|
||||
ASR 触顶→发送前拒绝、本通结束、全窗不再接受新音频;TTS 段顶→陪同执行者关闭语音入口和worker/桥(文字生活仍可用);窗口到期→统一停服封账(见下)。
|
||||
- **截止停服(可执行,不口头承诺)**:`force_end.template.sh watch <到期
|
||||
epoch>`(受监督后台任务)或获批后装 systemd timer 调 `now`;到期动作 =
|
||||
逐个 DELETE 本实例房间 → worker → api → wss 桥 → 共享 TTS 按各自专属
|
||||
@@ -100,3 +98,23 @@ backup=false 为诚实声明;text=true)。
|
||||
本建议不改变任何需求与验收状态:8300/8310/8320/8350 与资料不动、正式界面
|
||||
不替换、PR 不合并、4080 不触、旧三窗口余额不结转;阶段体验不等于完整产品
|
||||
完成,R5–R7 未完项继续按主卡承接。
|
||||
|
||||
|
||||
## 4. 最终启用边界(总管取件勘误)
|
||||
|
||||
运行包README §10为操作勘误,优先于旧模板。全部仍待白栖知批准。
|
||||
语音仅团队陪同预约,每通600秒、总ASR1800秒、总建房尝试6次;
|
||||
TTS60段和登记+试听合计10次由当班人员监督,不冒称自动硬停。
|
||||
文字生活在语音配额耗尽后仍可运行到总截止;到期按受监督定时服务停服,
|
||||
资料保留、账封存,房间/共享音色与临时服务由团队核实清理。
|
||||
完整自定义声音的8090面板句柄需在放行前复用HEL907方法准备,不得占用8081。
|
||||
装包缺轮或解析冲突即停,不改锁版本。准备预计1–2小时,团队真链检查另限2小时,
|
||||
检查不过不把失败实例交用户。用户首次可用地址交付后计3个自然日(当日算第一日),
|
||||
用户也可先约定开始日期,避免地址发出时本人不在而浪费体验期。
|
||||
|
||||
|
||||
自定义声音细分额度(同一次待批方案):最多登记2段参考音频,每段由陪同人员先核≤20秒;
|
||||
自动转写最多2次/合计40秒,单列监督账,不冒充通话ASR的1800秒硬闸。
|
||||
最多试听8次;登记2次+试听8次共10次。试听合成并入60段TTS总上限。
|
||||
两类ASR合计最大1840秒(通话1800+参考40);失败/重试同样记账,不返余额。
|
||||
本轮未执行登记、转写或试听。
|
||||
|
||||
@@ -28,11 +28,11 @@
|
||||
"GOV-006",
|
||||
"DEL-001"
|
||||
],
|
||||
"deliverable": "deploy/hel913-unified/ 收口版:README(唯一照抄入口:§0 产品基线 vs 运行包提交与自校验、§4 首次准备+启停、§5 语音窗口唯一接线表、§7 离线验证口径如实、§8 Mem0 完整可审安装 W0–W6 与权威账续账)、manifest.json、dist-manifest.json、models/voice/worker.env/voice-window-arm 五份脱敏模板(预算全 0/未布防)、api_ctl.sh/worker_ctl.sh 身份核验版、bridge/tts/force_end 三个窗口模板(默认不生效)、verify_offline.py、test_ctl_scripts.sh、mem0-cp311-wheels.txt;docs/rework/hel913/{verify-offline-run.txt,ctl-checks-run.txt};docs/hel913-capability-and-enablement.md(能力表纠错 + §2 单份一致的待批启用方案)。产品代码(src/web/config/tools/tests)自 4a38106 起零改动(git diff --stat 为空可验证)。",
|
||||
"deliverable": "deploy/hel913-unified/ 收口版:README(唯一照抄入口:§0 产品基线 vs 运行包提交与自校验、§4 首次准备+启停、§5 语音窗口唯一接线表、§7 离线验证口径如实、§8 Mem0 完整可审安装 W0–W6 与权威账续账)、manifest.json、dist-manifest.json、models/voice/worker.env/voice-window-arm 五份脱敏模板(预算全 0/未布防)、api_ctl.sh/worker_ctl.sh 身份核验版、bridge/tts/force_end 三个窗口模板(默认不生效)、verify_offline.py、test_ctl_scripts.sh、mem0-cp311-wheels.txt;docs/rework/hel913/{verify-offline-run.txt,ctl-checks-run.txt};docs/hel913-capability-and-enablement.md(能力表纠错 + §2 单份一致的待批启用方案)。产品代码(src/web/config/tools/tests)自 4a38106 起零改动(git diff --stat 为空可验证)。 总管取件勘误见运行包README §10:语义配置与离线缓存环境、真实会话列表解析、临时语音服务失败收尾、传输校验与固定解释器、TTL600秒、定时服务及人工监督边界。",
|
||||
"acceptance": [
|
||||
"整包可执行:部署入口=运行包提交(含本目录);checkout 4a38106 会没有运行包——README §0 明确两者区别并给 merge-base 与 diff 空两条自校验;首次准备含 mkdir 骨架/模板落位/dist 哈希核验后只读复用/verify_offline 空档案守门复验,单一入口、不跳 HEL895 通用总装步骤",
|
||||
"启停安全(42/42 离线替身验证,docs/rework/hel913/ctl-checks-run.txt):非法子命令拒绝、重复 start 拒绝、PID 复用拒杀(身份核验=cmdline+cwd)、启动失败清自己留日志、worker .env 占位/解析守门、arm 模板默认全 0 可解析",
|
||||
"语音窗口唯一接线(README §5):ASR 三变量硬闸默认拒绝一切 ASR;session_ttl 900s+挂断删房;TTS 段数监控口径+tts.log 起始字节;force_end now|watch 到期可执行停服(各按专属句柄);wss 桥必需并给出默认 8363 接线",
|
||||
"语音窗口唯一接线(README §5):ASR 三变量硬闸默认拒绝一切 ASR;session_ttl 600s+挂断删房;TTS 段数监控口径+tts.log 起始字节;force_end now|watch 到期可执行停服(各按专属句柄);wss 桥必需并给出默认 8363 接线",
|
||||
"Mem0 安装完整可审(README §8):固定源双哈希核对→获批窗口下载 19+40 轮逐项 sha256→传输复核→隔离 venv /opt/cybergril-hel913/venv311 --no-index 安装→co-import→92MB 缓存落位→暂存清理;绝不向 /opt/cybergril-hel879/.venv311 增改;权威账只复制账本不搬测试聊天,authority 冻结前缀+embed_cap=680 累计算式;本卡零安装零下载零嵌入",
|
||||
"启用方案单份一致且全部待批(capability §2):A 55 次/50 万 tokens 为建议顶、总管不自行放行、不并入用户实例;B 语音 3 通×≤10 分钟=≤1800 秒 ASR 硬闸(含重连≤2、TTS 60 段监控、上传/试听 ≤10 次监督口径)、语音 LLM 计入 B 对话日账、T0=交付时刻/本地自然日/团队准备不占额度、碰顶后果逐项、到期=force_end+seal 可执行且封账不解除;B 窗口内生活/主动计入 B 日账、窗口后全停,与 C(暂不批)无重叠口径",
|
||||
"事实表纠错:生成中文字取消=未取得有效样本(未验证);打断停声=作者粗略观察非精确口径;首声修复后未实测、不承诺推算值;34/34 的 deps 只打印 4 包版本、空库裁剪未做种子对照——均在 README §7 与能力表如实标注;天气/素材/备份/摄像头/真实口型仍 ❌ 并追到承接",
|
||||
@@ -52,6 +52,7 @@
|
||||
"docs/rework/hel913/verify-offline-run.txt:34/34(.12 venv311、产品基线树、零监听零出站;总管同环境独立复跑亦 34/34、dist 哈希吻合——已过项保留不重跑)",
|
||||
"docs/rework/hel913/ctl-checks-run.txt:42/42 启停离线替身检查(工作站、stub、零真实服务/零监听/零出站)",
|
||||
"产品代码零改动:git diff --stat 4a38106 <运行包提交> -- src web config tools tests 为空",
|
||||
"未验证(如实):运行包尚未在任何现网端口实际起服(cap=0 未部署);修复后语音首声、真机、Safari——见 deferred,不冒充"
|
||||
"未验证(如实):运行包尚未在任何现网端口实际起服(cap=0 未部署);修复后语音首声、真机、Safari——见 deferred,不冒充",
|
||||
"总管机械收口:docs/rework/hel913/coordinator-close-checks.txt 17/17定向离线检查;真实sessions列表生成DELETE、环境变量传入、非法命令拒绝、失败句柄清理与shell语法;未安装/监听/调用真实服务。"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
PASS shell syntax api_ctl.sh
|
||||
PASS shell syntax bridge_ctl.template.sh
|
||||
PASS shell syntax force_end.template.sh
|
||||
PASS shell syntax test_ctl_scripts.sh
|
||||
PASS shell syntax tts_ctl.template.sh
|
||||
PASS shell syntax worker_ctl.sh
|
||||
PASS bridge_ctl.template.sh refuses invalid command before any service action
|
||||
PASS tts_ctl.template.sh refuses invalid command before any service action
|
||||
PASS deadline cleanup fixture exits successfully
|
||||
PASS real sessions LIST schema produces both room cleanup requests
|
||||
PASS launcher passes CYBERGRIL_SEMANTIC_CONFIG
|
||||
PASS launcher passes FASTEMBED_CACHE_PATH
|
||||
PASS launcher passes MEM0_TELEMETRY
|
||||
PASS launcher passes HF_HUB_OFFLINE
|
||||
PASS launcher passes TRANSFORMERS_OFFLINE
|
||||
PASS launcher passes TZ
|
||||
PASS failed stub launch removes its PID handle and exits failure
|
||||
17/17 targeted offline checks passed
|
||||
No real services, listeners, provider requests, installs or embeddings.
|
||||
Reference in New Issue
Block a user