chore: disable livingmemory in ops vm

这个提交存在于:
YokiiroBW 2026-07-24 21:42:53 +08:00
父节点 796e379e74
当前提交 234030be2e
共有 2 个文件被更改,包括 10 次插入 和 1 次删除

查看文件

@ -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 测试保持通过。

查看文件

@ -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)