Files
CyberGril/deploy/hel895-release-candidate.md
T
zonggongandmultica-agent 04eff611e7 HEL-895 release candidate: the approved kernel 152479b + the HEL-881-passed proactive-inbox frontend bf234570 assembled into one auditable head, with the full post-synthesis battery, the release package and the one-approval budget execution package - integration is a clean merge (the mainline 31970c4..152479b never touched web/, so the merge brings exactly the visual director's six frontend files plus handoff-HEL-875/880.json; web/ is verbatim bf234570 and src/tests/tools/config are verbatim 152479b, all HEL-874..894 backend fixes preserved, no redesign, no visual decision, the unpushed b48d28b test merge superseded); verification rerun on the merged head: 299 python tests pass on the 3.11.16 venv + requirements.lock offline, ruff clean (src/tests/tools), web typecheck 0 errors / lint 0 errors 1 pre-existing warning / vitest 55/55 / build passes with CSS still index-DdDYzR5S.css (visual untouched), pinned-SDK regressions on hel857-venv (3.10.12, deterministic 512-dim stand-in, loopback-only, temp ledgers): verify_close_ownership_hel894.py 16/16, verify_shutdown_queued_hel889.py 12/12, verify_inflight_lifecycle_hel886.py 6/6, verify_semantic_recovery_hel885.py 7/7, verify_mem0_real_hel874.py 12/12, check_release_offline_hel882.py R1-R7 15/15 (R6 honestly records the 3.11 mem0 gap); NEW real-HTTP pagination contract 7/7 (tools/verify_http_pagination_hel895.py: the real product service seeded with 327 rows proves the reverse-page + limit+1 probe + next_before + epoch contract the approved frontend depends on, the public field allowlist with proactive exactly on reach-out rows, and a mechanical port of inbox.ts fetchAfter proving the HEL-880 gap semantics against the real backend - 5-page cap leaves the gap, the next call closes it and hands the two new reach-outs exactly once); NEW real-server browser 7/7 (web/tests/hel895_real.mjs: Chromium CDP against the real API + built dist - real boot, reach card arriving over real HTTP, stage playback, the 260-row long-absence gap regression, SIGTERM restart epoch+1 with no duplicate rows, zero permission requests; evidence docs/rework/hel895/); deliverables: deploy/hel895-release-candidate.md (exact head, manifest, install reference, health matrix, disable/rollback, the exact 3.11 fixed-SDK gap verified offline - product venv imports fine, no mem0/qdrant/fastembed wheels in any local cache, hel857-venv 3.10 fixed stack untouched and un-mixed, zero downloads, resolution path unchanged per hel874-release.md §4) and docs/budget-package-hel895.md (the A/B/C tables as one approvable package: per-send four-gate stacking semantics, the cross/duplicate/missed accounting verdict - A totals stack on daily category caps by design, B extraction LLMs are dual-counted in llm_ops cumulative AND the semantic daily gate by design, embeds count only as items, all four request categories plus the global token pool cover every outbound site, failures/cancels conservatively billed with no refunds, cap-hit stop semantics and evidence - all still cap=0 defaults, the 39/60 and 498/500 freezes and the HEL-835 gate untouched); requirement checks 6/6 (origin/main, origin/agent/agent/de8874a3803b and the actual mainline 152479b, each with and without handoff-HEL-895.json); zero real LLM, zero real embeddings, zero downloads, authoritative ledgers and freezes unwritten, not deployed, PR#11 appended-not-merged, no visual changes, R5/R6/R7 honestly deferred
Co-authored-by: multica-agent <github@multica.ai>
2026-10-27 02:23:08 +08:00

6.5 KiB
Raw Blame History

HEL-895 · 统一发布候选(离线核验过,未执行部署)

状态:候选。审核通过与预算/部署授权前不启动面向用户的真实循环、不部署、不合并 PR、不交体验地址。 本文件把已通过独立复审的内核(HEL-894 @ 152479b)与 HEL-881 已审核的主动留言前端(bf234570)装成一个统一候选,给出精确 head、 交付物清单、安装命令、健康矩阵与停用回退。发布卡照抄即可执行;不触 8300–8350 与共享 ASR/TTS/口型,不访问 4080,不导入演示/测试档案为用户伴侣。

0. 精确 head 与整合方式

  • 候选 head:见交付评论(分支 hel-870-assembly,PR #11 的正常追加提交, 未强推、未合并)。第一父为 HEL-894 通过复审的 152479b3503c3d1ab27681170e6bfd592c54380a, 合并入 HEL-881 已审核的 bf234570c0b6595a72f8dbc79e42c63685e08e01 (origin/hel-880-inbox-continuation,与 origin/hel-875-proactive-wiring 同点)。
  • 整合的机械性:母线 31970c4..152479b 从未触碰 web/(git diff 31970c4 152479b -- web/ 为空),合并只带入原作者六个前端文件与 handoff-HEL-875/880.json 共 9 个文件;src/tests/tools/config 相对 152479b 逐字不变。无重设计、无视觉决定;旧 b48d28b 测试合并未推送,由本候选取代。
  • 合成后验证(全部在本 head 实跑):299 pytest(3.11.16 venv + requirements.lock 离线)+ ruff 干净;web typecheck 0 错、lint 0 错/1 条既有警告、 vitest 55/55、build 通过且 CSS 仍为 index-DdDYzR5S.css(视觉零改动); 固定 SDK 回归:关闭所有权 16/16、关闭排队 12/12、处理中生命周期 6/6、语义恢复 7/7、真实接线 12/12;发布离线检查 15/15;真实 HTTP 分页合同 7/7 (tools/verify_http_pagination_hel895.py,真实服务 + 327 行播种 + fetchAfter 缺口游标移植对真实后端复验);真实服务浏览器 7/7(web/tests/hel895_real.mjs, Chromium CDP 对真实 API:留言卡、舞台播放、260 行缺口不跳留言、重启 epoch 去重、 零权限申请)。证据 docs/rework/hel895/。双目标及实际母线需求检查各含/不含 handoff-HEL-895 共 6/6 通过(origin/main、原产品目标 de8874a3803b、实际母线)。

1. 交付物清单

交付物 位置/来源 说明
代码 分支 hel-870-assembly,精确 head 见交付评论 含本文件、docs/budget-package-hel895.md、tools/verify_http_pagination_hel895.py、web/tests/hel895_real.mjs
Python 依赖 requirements.lock(19 项固定版本,uv 离线可装) Python 3.11(发布机 3.11.16 实测)
前端产物 web/(原作者界面 + HEL-875/880 主动留言) npm ci && npm run build;CSS 哈希与已审核版一致
mem0 固定栈 deploy/mem0-stack.lock(mem0ai 2.2.1 / qdrant-client 1.20.0 / fastembed 0.9.1) 3.11 wheel 仍未落位,见 §4;缺项不阻塞其余发布
systemd 模板 deploy/cybergril-hel874-8360.service.example(PYTHONPATH=src 已内置) 独立单元/端口/数据目录模式
配置模板 config/models.yaml(预算全 0)+ config/semantic.example.yaml 批准值写入位置见 docs/budget-package-hel895.md
预算执行包 docs/budget-package-hel895.md A/B/C 一次批准核定稿,默认 0

2. 安装命令(发布卡执行)

与 deploy/hel874-release.md §2 完全相同(服务账号 → 全新空目录 clone 本 head → uv venv --python 3.11 + uv pip install -r requirements.lock → npm ci && npm run build → 安装 service → curl /api/health),此处不重复抄写;唯一差别是 git checkout <本文件 §0 的精确 head>。发布前必过检查同样按 deploy/hel874-release.md §6 执行,另加本卡两个新工具(真实 HTTP 分页合同、真实服务浏览器)在目标机重跑。

3. 健康能力矩阵(/api/health 预期)

与 deploy/hel874-release.md §3 一致:version=R4-assembly;backend mood/reach_out/semantic 接线;semantic_backend=stub(发布初期,真实 mem0 待 §4 与 B 部分预算);capabilities.proactive=true(生活循环开启时);voice/vision/ weather/materials/backup=false。主动留言前端已并入本候选:生活循环开启且产生 真实 reach-out 后,打开的页面每 20 秒读一次新行、回来立即读,未读有标记;该行为 已在本 head 用真实服务验证(§0)。

4. 固定 SDK(3.11)准确缺项与不下载路径

本卡离线核实(2026-10-27):产品 3.11.16 venv 仅含 requirements.lock, import mem0/qdrant_client/fastembed 均缺;本机 uv(974M)与 pip 缓存中没有 任何 mem0ai/qdrant-client/fastembed 的 wheel(任意 Python 版本);固定安装 hel857-venv 是 Python 3.10.12 + mem0ai 2.2.1/qdrant-client 1.20.0/fastembed 0.9.1(本卡全部 SDK 回归仍在其上实跑,3.10/3.11 site-packages 未混用)。 缺项清单(发布卡落 wheel 时照抄):mem0ai==2.2.1、qdrant-client==1.20.0、 fastembed==0.9.1 的 cp311/manylinux2014_x86_64 wheel(及其纯 Python 传递依赖 wheel,pip download 会一并解析);目标平台 x86_64 Linux(部署机 uname -m 复核);锁定来源 deploy/mem0-stack.lock(源码身份 2c81af3 / tarball SHA256 见 lock 注释)。下载与离线并入命令、sha256 留证、co-import 最终判据不变,照 deploy/hel874-release.md §4 执行。在 wheel 落位且 co-import 通过前,不得以 stub/FTS 冒充真实 Mem0 体验就绪;本卡未下载任何内容。

5. 停用与保留数据回退

与 deploy/hel874-release.md §5 相同:CYBERGRIL_SEMANTIC=off|stub 停语义层 (表保留、按后端区分续跑);CYBERGRIL_R2_ENABLED=0 停生活/主动联系;整实例 systemctl stop → 数据目录原样保留 → 切回上一 release/上一提交(R4 迁移全部 增量新表,旧代码可安全打开同一数据库);彻底撤销留数据档不删。

6. 本候选不做的事

不合并任何 PR(PR #11 保持开放待总管/白栖知决定);不部署、不交体验地址; 零真实 LLM/嵌入/下载;不触 8300–8350、共享语音口型、GPU/4080;不导入演示测试 档案为用户伴侣;不替视觉作者改稿(前端内容以原作者六文件与 CSS 可追溯为准)。 R5(HEL-878/879 语音)、R6(天气/素材/完整备份)、R7(有条件视觉观察)未接入, 界面保持诚实文案,不冒充已运行。