HEL-879 rework materials: hatchling cache correction with the offline mem0ai wheel actually built from the fixed source (sha256 698284b6..., zero downloads/installs, no 3.10 mixing, recorded in release-artifacts.json), hel895 release doc §0 now separates the historical HEL-895/896 candidate from the current hel-879-assembly candidate and §4/§5 carry the v3 snapshot semantics, budget §6.2.4 amended - a sealed library is never reopened by raising total_requests (contradiction removed), runbook §3.3/3.5/3.6/4.4/4.5 corrected (bounded cleanup ledger replaces the unproven rooms-die-naturally claim; assistant_interim kind; real-but-default-off proactive seam; single-owner dual launcher), one comment-only correction in web/src/voice/session.ts removing the unproven server-auto-cleanup claim (no logic/style change; CSS and JS bundle hashes byte-stable), CG-011 + her incremental subtitles now have a real minimal backend seam (voice/seam.py + worker/llm_chat_api wiring, proactive default off) with the precise frontend interface and acceptance list in docs/rework/hel879/voice-seam-interfaces.md, real-SDK check extended to 10 items (worker callback path on real SpeechHandle/SpeechCreatedEvent; interim seam through real LLMStream) and re-run on .12 ALL PASS, handoff-HEL-879.json appended with the rework scope; regression at this head: pytest 341/341, ruff clean except 1 pre-existing error identical at 7f0a739, web typecheck 0 errors / lint 0 errors 1 pre-existing warning / vitest 88/88 / build passes (CSS index-BpZaybfD.css unchanged), voice chain 8/8, budget split 10/10, release offline R1-R7, http pagination 7/7, real-service browser 9/9 with zero non-loopback outbound, pinned-SDK 16/16+12/12+6/6+7/7+12/12, requirements checks 4/4 (origin/main and c121c42, each with/without handoff)
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
multica-agent
parent
78a5cfd8d7
commit
7c73d392b9
@@ -28,6 +28,16 @@ HEL-881 已审核的主动留言前端(`bf234570`)装成一个统一候选
|
||||
|
||||
## 0. 精确 head 与整合方式
|
||||
|
||||
> **HEL-879 返修勘误(2026-10-27)**:本节以下原文记录的是 **HEL-895/896 历史
|
||||
> 候选**(分支 `hel-870-assembly`,PR #11 未合并),其 299 pytest / 55 vitest 等
|
||||
> 验证数字属于那个历史 head,**不是当前发布候选**。当前统一发布候选是分支
|
||||
> `hel-879-assembly`(在 7f0a739 之后正常追加返修提交,不强推、不并入 PR #11),
|
||||
> 其精确 head、pytest/vitest/build 全量数字与证据以**交付评论与
|
||||
> `docs/requirements/handoff-HEL-879.json` 记录为准**;本文件的安装/检查入口
|
||||
> (§2/§4/§5/§6)继续适用于当前候选,产物清单见
|
||||
> `docs/rework/hel879/sdk-audit/` 与 `docs/rework/hel879/release-artifacts.json`
|
||||
> (`rework_head` 字段)。历史叙述保留原样,不冒充、不改写。
|
||||
|
||||
- **候选 head**:见交付评论(分支 `hel-870-assembly`,PR #11 的正常追加提交,
|
||||
未强推、未合并)。第一父为 HEL-894 通过复审的 `152479b3503c3d1ab27681170e6bfd592c54380a`,
|
||||
合并入 HEL-881 已审核的 `bf234570c0b6595a72f8dbc79e42c63685e08e01`
|
||||
@@ -129,13 +139,22 @@ weather/materials/backup=false。**主动留言前端已并入本候选:生活
|
||||
```
|
||||
不一致即停;不得改用索引 `mem0ai==2.2.1` wheel 冒充固定源(audit 已证明两者
|
||||
身份不可互证)。
|
||||
- **第 2 步 · 固定源码构建轮**:`python3 -m pip wheel --no-deps --no-index
|
||||
--no-build-isolation -w wheels/ mem0-2c81af3.tar.gz`。**前置缺口如实保留**:
|
||||
build backend `hatchling` 当前不在任何本机缓存(audit 实测),未获批不联网补齐;
|
||||
hatchling 落位后本命令完全离线,构建出的 wheel 逐项 sha256 留证。
|
||||
- **第 2 步 · 固定源码构建轮(HEL-879 返修:已完成可离线构建)**:此前此处写
|
||||
「hatchling 当前不在任何本机缓存、待补」——经总管只读核查与本卡复核**勘误**:
|
||||
uv wheels-v6/wheels-v7 均有 hatchling **1.32.4** 缓存(`release-artifacts.json`
|
||||
`build_backend` 节逐路径留证)。固定源 tarball 已在 3.11.16 + `uv build --wheel
|
||||
--offline` 下**离线构建出轮**(零下载、零安装、不混 3.10 site-packages):
|
||||
`mem0ai-2.2.1-py3-none-any.whl`,
|
||||
sha256 `698284b6083ab8b7761454d65876a6d1bb983d278ad21a7bee38d760cb20e9db`。
|
||||
发布卡在目标机重跑同一命令并核对该哈希:
|
||||
```bash
|
||||
tar xzf <hel857-data>/mem0-2c81af3.tar.gz && cd mem0-2c81af3*/
|
||||
uv build --wheel --offline --python 3.11 -o wheels/
|
||||
sha256sum wheels/mem0ai-2.2.1-py3-none-any.whl
|
||||
```
|
||||
- **第 3 步 · 目标 cp311 依赖准备**:41 项缺项中**缓存今天即可复用 3 项**
|
||||
(greenlet 3.5.6 cp311、pillow 12.3.0 cp311、truststore 0.10.5 py3-none-any,
|
||||
uv wheels-v6/v7 缓存实测,HEL-879 重跑核实仍命中);其余 37 项 + hatchling
|
||||
uv wheels-v6/v7 缓存实测,HEL-879 重跑核实仍命中);其余 37 项
|
||||
**由总管获批后发布窗口拉取**(`python3 -m pip download --only-binary :all:
|
||||
--implementation cp --python-version 3.11 --platform manylinux2014_x86_64
|
||||
--abi cp311 -r <缺项清单> -d wheels/`),逐项 sha256 留证;本卡零下载、零联网。
|
||||
@@ -156,7 +175,8 @@ weather/materials/backup=false。**主动留言前端已并入本候选:生活
|
||||
|
||||
产品 venv 目前 `import mem0/qdrant_client/fastembed` 均缺、产品代码导入不受影响;
|
||||
在 wheel 落位且 co-import 通过前,不得以 stub/FTS 冒充真实 Mem0 体验就绪。
|
||||
真缺的下载(37 项 + hatchling)仍待主卡授权,本卡不为补命令联网。
|
||||
真缺的下载(37 项运行闭包;hatchling 已勘误为缓存命中并完成离线构建,不在缺单)
|
||||
仍待主卡授权,本卡不为补命令联网。
|
||||
|
||||
## 5. 停用与保留数据回退
|
||||
|
||||
@@ -165,18 +185,23 @@ weather/materials/backup=false。**主动留言前端已并入本候选:生活
|
||||
`systemctl stop` → 数据目录原样保留 → 切回上一 release/上一提交(R4 迁移全部
|
||||
增量新表,旧代码可安全打开同一数据库);彻底撤销留数据档不删。
|
||||
|
||||
**HEL-896 归档/回退修订 + HEL-879 收口(2026-10-27)**:在线库只复制主 `.db` 会丢
|
||||
WAL 里已提交的资料(总管复现件连 `companion` 表都不在)。发布归档一律二选一:
|
||||
**停服务 + `PRAGMA wal_checkpoint(TRUNCATE)` 后整目录归档**(推荐),或**在线用
|
||||
SQLite backup API 对显式单库做一致性快照**。工具已按收口语义强制执行(v2):
|
||||
**HEL-896 归档/回退修订 + HEL-879 收口(2026-10-27,v3 返修)**:在线库只复制主
|
||||
`.db` 会丢 WAL 里已提交的资料(总管复现件连 `companion` 表都不在)。发布归档一律
|
||||
二选一:**停服务 + `PRAGMA wal_checkpoint(TRUNCATE)` 后整目录归档**(推荐),或
|
||||
**在线用 SQLite backup API 对显式单库做一致性快照**。工具已按收口语义强制执行
|
||||
(v3;v2 的两处已证缺陷由总管独立复核提出并修复):
|
||||
|
||||
- checkpoint 返回 busy≠0 或源/快照行数不一致 → CLI 非 0、不产生可交付归档
|
||||
(「先停服」是前提,不是忽略失败结果的理由);
|
||||
- 目录内真实 SQLite(history_root 的 `mem0_public_history.db`、向量目录内库等,
|
||||
按文件头魔数递归识别)在停服口径一并 checkpoint+逐表核对;
|
||||
- 在线模式只接受显式 `--db`(backup API);传入含 SQLite 的 `--file` 目录直接拒绝;
|
||||
- `verify` 拒绝记录了 `rows_match=False` 的旧包,回退演练按源路径映射解包到隔离
|
||||
新目录、实际打开各库核对行数与哈希,输出 rollback_plan。
|
||||
- `verify` 要求**三个计数直接相等**(manifest 源行数 = manifest 快照行数 = 恢复
|
||||
实测;`rows_match` 只是额外约束——v2 的 `rows_match is True or …` 允许记录值
|
||||
绕过源计数比较,源 2/快照 1 仍 ok,已废除);回退演练按源路径映射**实际恢复**
|
||||
到归档旁的持久独立目标树、打开恢复库核对行数与哈希,输出 rollback_plan;
|
||||
- 归档侧目标名无冲突映射:不同目录的同名 `ledger.db` 不再互相覆盖(v2 后写覆盖
|
||||
前写仍先交成功包);同一源重复传入直接拒绝。
|
||||
|
||||
照抄命令:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user