HEL-833: R3真实聊天记忆、中文召回与回忆接口 #9

Open
leefer wants to merge 15 commits from agent/agent/4d31c9a5ed04 into agent/agent/de8874a3803b
Owner

成功聊天现在会在同一事务保存双方原文和持久压缩作业,之后按既有 low 路由生成 gist/affect,并通过中文检索将近20轮以外的记忆注入对话。新增 /api/memories 分页与详情;公开记忆整条继承来源门禁,未确认、未判定、仍有私密候选及未知来源均隐藏,包括摘要、标题、关联、详情和检索。

保留 LifeRuntime 原六参数工厂调用,创建后装配记忆服务,首次恢复及后续租约/衰减统一使用注入时钟。中文索引由增量触发器维护,填充旧库重复迁移、旧代码回退写入再升级均已隔离验证。前端和模型/路由/预算配置零改动。

验证:Python 3.12.14 / SQLite 3.53.1 全量 225 passed(原194 + 新31);原档案工厂测试2通过。四类隐私负例、底色指纹、正常生活/成长保留、与精确 c285a0f 三接口响应字节等价、FTS integrity-check、取消/断连/事务回滚、预算/租约/衰减通过。Python修改模块ruff、双目标需求检查含handoff通过;web build、37项vitest通过,lint0错1条既有警告。完整证据和首次192通过2失败历史保存在 docs/r3/,交接见 STATUS-HEL-833.md、handoff-HEL-833.json。

基准v1.10/59项,需求变更无;目标 agent/agent/de8874a3803b。零真实模型调用、未读取或复制真实用户库、未合并、未部署。缺少分享凭据的历史伴侣消息及R2关闭时的伴侣来源保持隐藏。真实模型质量、隔天取回、服务器迁移回退与真机体验留独立审核部署;回忆页由视觉总监后续接线,HEL-831及R4–R7继续原承接。请独立审核后再推进后续卡。

成功聊天现在会在同一事务保存双方原文和持久压缩作业,之后按既有 low 路由生成 gist/affect,并通过中文检索将近20轮以外的记忆注入对话。新增 `/api/memories` 分页与详情;公开记忆整条继承来源门禁,未确认、未判定、仍有私密候选及未知来源均隐藏,包括摘要、标题、关联、详情和检索。 保留 LifeRuntime 原六参数工厂调用,创建后装配记忆服务,首次恢复及后续租约/衰减统一使用注入时钟。中文索引由增量触发器维护,填充旧库重复迁移、旧代码回退写入再升级均已隔离验证。前端和模型/路由/预算配置零改动。 验证:Python 3.12.14 / SQLite 3.53.1 全量 **225 passed**(原194 + 新31);原档案工厂测试2通过。四类隐私负例、底色指纹、正常生活/成长保留、与精确 c285a0f 三接口响应字节等价、FTS integrity-check、取消/断连/事务回滚、预算/租约/衰减通过。Python修改模块ruff、双目标需求检查含handoff通过;web build、37项vitest通过,lint0错1条既有警告。完整证据和首次192通过2失败历史保存在 `docs/r3/`,交接见 `STATUS-HEL-833.md`、`handoff-HEL-833.json`。 基准v1.10/59项,需求变更无;目标 `agent/agent/de8874a3803b`。零真实模型调用、未读取或复制真实用户库、未合并、未部署。缺少分享凭据的历史伴侣消息及R2关闭时的伴侣来源保持隐藏。真实模型质量、隔天取回、服务器迁移回退与真机体验留独立审核部署;回忆页由视觉总监后续接线,HEL-831及R4–R7继续原承接。请独立审核后再推进后续卡。
leefer added 14 commits 2026-10-24 12:56:09 +08:00
- 13 modified / 8 added / 1 deleted per CHANGES.json (author package 76bc120b)
- docs/requirements v1.10 + prototypes/hel-799 + PROVENANCE from bundle, verified byte-identical to 63799f0
- AGENTS.md + scripts/check_requirements.py restored from governance commit 63799f0

Co-authored-by: multica-agent <github@multica.ai>
- browser_check.py: 视觉观察 → 视觉观察(模拟) (author renamed the aria-label, selector not migrated)
- import_check.py: handle the dirty-settings leave confirmation before opening the record (pre-existing gap, fails at base db571ba too)
- rework_browser_check.py: long-user-line reply budget 10s→60s (approved hel-799 dwell ≈2.4s/page), conditional 继续 resume (toLatest resumes flow in the approved prototype), 600ms settle before measuring compact typing nav transition
- regenerated docs/frontend + docs/rework evidence from this Linux run

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
- 6 modified + handoff JSON per CHANGES-HEL-824.json, all hashes verified against git 4321aeb and package bytes
- rework_browser_check: skip full-text sheet at micro height (<420px design hides the control); migrate stale 返回日子 selector to 结束交谈 · 回到日子
- fresh run evidence: web build 25/25 unit tests, backend 142/142 (py3.12), all four browser checks PASS incl. new compact first-press and 700ms slow-frame sections (slow_frames_new_turn_to_reply_s=2.32s), layout regression 320/390/1024/1600 both themes

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
leefer added 1 commit 2026-10-24 12:56:09 +08:00
leefer added 1 commit 2026-10-24 13:07:45 +08:00
leefer changed title from [WIP] HEL-833: R3记忆后台草稿(回归失败已停工) to HEL-833: R3真实聊天记忆、中文召回与回忆接口 2026-10-24 13:08:03 +08:00
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent/agent/4d31c9a5ed04:agent/agent/4d31c9a5ed04
git checkout agent/agent/4d31c9a5ed04
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leefer/CyberGril#9