From 234030be2e77cd1df357c125640eed9713aefdaf Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Fri, 24 Jul 2026 21:42:53 +0800 Subject: [PATCH] chore: disable livingmemory in ops vm --- docs/错题本.md | 8 ++++++++ main.py | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/错题本.md b/docs/错题本.md index ff43ac0..656e2da 100644 --- a/docs/错题本.md +++ b/docs/错题本.md @@ -110,3 +110,11 @@ - 修复或规避:增加独立迁移器,支持 preview/run、格式校验、目标非空拒绝、SQLite backup、临时目录、迁移标记和失败清理;启动过程不自动执行。 - 预防规则:所有生产数据迁移必须先预览、再备份、后执行;目标目录必须为空;成功后保留迁移标记和源目录。 - 验证证据:`tests/test_ops_migration.py` 5 项 unittest 通过;人格与记忆插件 compileall 通过。 + +## 2026-07-24 — VM 放弃 LivingMemory + +- 决策:运维 VM 不安装、不启用、不接入 LivingMemory;MemoryCompanion 作为唯一长期记忆源。 +- 实现:运维人格分支将 LivingMemory 协同强制设为关闭,避免旧配置误开启兼容链。 +- 保留:旧 LivingMemory 迁移代码暂不立即删除,待 Q9 清理遗留依赖时移除;不作为运行时依赖。 +- 影响:Memory Archivist 只联动 `astrbot_plugin_memory_companion_ops`,不再设计 LivingMemory 回退路径。 +- 验证:运维人格仍通过 compileall;MemoryCompanion 运行时探测和归档 Bridge 测试保持通过。 diff --git a/main.py b/main.py index 992e094..e88056c 100644 --- a/main.py +++ b/main.py @@ -1878,7 +1878,8 @@ class PrivateCompanionPlugin( self.group_episode_provider_id = self._cfg_str(c, "GROUP_EPISODE_PROVIDER_ID", "") self.group_slang_provider_id = self._cfg_str(c, "GROUP_SLANG_PROVIDER_ID", "") self.group_followup_judge_provider_id = self._cfg_str(c, "GROUP_FOLLOWUP_JUDGE_PROVIDER_ID", "") - self.enable_livingmemory_integration = self._cfg_bool(c, "enable_livingmemory_integration", True) + self.enable_livingmemory_integration = False + self.livingmemory_disabled_reason = "运维版 VM 不使用 LivingMemory;仅保留历史迁移代码" self.livingmemory_tool_name = self._cfg_str(c, "livingmemory_tool_name", "recall_long_term_memory", "recall_long_term_memory") self.memory_companion_context_timeout_seconds = self._cfg_float(c, "memory_companion_context_timeout_seconds", 1.2, 0.2) self.enable_memory_companion_emotional_drift = self._cfg_bool(c, "enable_memory_companion_emotional_drift", True)