Files
2026-06-06 10:40:48 +08:00

54 lines
2.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-04 — 记忆系统全量审计 & 优化
## 凌晨审计(02:29 开始)
### 检查的项目
- 本地文件结构:memory/ 目录 27 个文件,结构完整
- 远程数据库:3 个 Schema(有 1 个预清理存的 `memory_0129b5ce_memory_0129b5ce_xiaolong`
- API 健康:健康检查通过,项目统计有重复
- Xialogo schema 下 44 条记忆(预清理后自动写入了不少)
- 远程 crontab 空(无,依赖本地调度)
### 发现的问题
1. **魔数 44 条记忆** — 比本地预期的多,可能是预清理期间的 session-compact/系统写入导致的
2. **数据库重复 schema**`memory_0129b5ce_memory_0129b5ce_xiaolong` 是预清理时 `ensureProject` 被嵌套调用导致的
3. **远程无 crontab** — 备份、看门狗功能全依赖本地调度
4. **psql 直连失败** — peer 认证,只能通过 API 查询
### 待清理
- `memory_0129b5ce_memory_0129b5ce_xiaolong`(空 schemaDrop 掉了)
- 远程服务器 crontab 搭建本地一样的调度
---
## 晚间 OpenClaw Agent OS v2 架构稳定化 (18:00-18:13)
### 审计完成
- 输出完整《架构健康报告》:成熟度 62/100,风险中高
- 发现 6 个 Memory 后端、3 种 Agent Runtime、4 层 Tool 投影
- 建议瘦身为统一核心
### PR-A Baseline Test ✅
- 13 个测试文件,67/67 通过
- 覆盖:Gateway/Session/memory_search/memory_get/exec/Agent/MCP/Config/Concurrency/Recovery/Compaction/ActiveMemory
### PR-B Architecture Guard ✅
- 6 个 Guard4 hard + 2 soft),全部 PASS
- 红线:Memory ≤ 2、Runtime ≤ 3、Dreaming phase ≤ 3、MEMORY.md 写入路径受控
### PR-C Deprecation Warning ✅
- 8 种废弃检测:active-memory blocking/REM phase/Dream Diary/QMD/Honcho/LanceDB/memory-wiki/Commitments
- warnOnce 工具 + check-deprecations 脚本 + 16 个测试全通过
- 当前仅有 1 条废弃提示:memory-wiki plugin(工具仍可用)
### 关键数据点
- OpenClaw 2026.5.28 (e932160)
- Gateway 运行中,port 18789loopback
- Memory: builtin 后端,36 文件,141 chunksDB 22.5MB
- Active-memory: 28 配置项,queryMode=recent
- Dreaming: 3 phase (light/deep/rem),当前未启用
- MCP SDK 1.29.0
### 下一步
PR-D Production Check → 建立一键验收脚本