Files
zclaw_openfang/docs/archive/old-test-reports/test-results/T2-intelligence/REPORT.md
iven 2e5f63be32
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
docs: reorganize docs — archive outdated, create brainstorming folder
- Create docs/brainstorming/ with 5 discussion records (Mar 16 - Apr 7)
- Archive ~30 outdated audit reports (V5-V11) to docs/archive/old-audits/
- Archive superseded analysis docs to docs/archive/old-analysis/
- Archive completed session plans to docs/archive/old-plans/
- Archive old test reports/validations to respective archive folders
- Remove empty directories left after moves
- Keep current docs: TRUTH.md, feature docs, deployment, knowledge-base, superpowers
2026-04-07 09:54:30 +08:00

5.3 KiB
Raw Blame History

T2 智能层(记忆/反思/心跳/自主) 测试报告

执行日期: 2026-04-05 | 测试工具: tauri-mcp execute_js | V12 基线: 61/100

摘要

  • 执行用例数: 10/133 个需 UI 交互,未执行)
  • 通过: 7
  • 未修复(已知问题确认): 2 ⚠️
  • 已修复V12 P0 问题): 1
  • 新发现缺陷: 1

缺陷统计

级别 数量 说明
P0 0 -
P1 1 Heartbeat 未自动初始化
P2 2 heartbeat 极短间隔无验证; identity_propose_change 参数不透明
P3 1 memory_store entry ID 重复 (knowledge/knowledge)

V12 已知问题验证

V12 ID 描述 V12 严重度 验证结果 备注
M4-01 双数据库PersistentMemoryStore vs SqliteStorage P0 已修复 unified-client.ts 统一了路径Tauri 模式下全部使用 Rust SqliteStorageFTS5不再 fallback 到 localStorage。fallback 仅在浏览器/dev 模式使用
M4-02 反思 LLM 驱动未接入 P0 ⚠️ 部分修复 reflection_reflect 返回了 improvements 和 suggestions但需确认是否使用了 LLM返回内容较短可能仍基于规则
M4-03 心跳不自动启动 P2 ⚠️ 未修复 heartbeat_get_config 返回 "Heartbeat engine not initialized",需手动调用 heartbeat_init
M4-04 自主授权后端无强制 P2 T1 已验证 supervised 模式正确拦截需审批 Hand
M4-05 前端记忆搜索用 LIKE 非 FTS5 P2 已修复 unified-client 统一使用 Tauri 后端 FTS5
M4-06 types 参数数组 vs 单值 P2 未验证 memory_search 的 options 参数结构需确认
M4-07 记忆内容无长度限制 P2 ⚠️ 需确认 memory_store 未测试超长 content
M4-08 heartbeat interval 无下限 P2 ⚠️ 未修复 heartbeat_init 接受 0.001 分钟间隔
M4-09 心跳 interval 下限验证 P2 同 M4-08 -
M4-10 memory_build_context 返回值 P2 未验证 -
M4-11 memory_export 格式 P2 未验证 -
M4-12 memory_import 去重 P2 未验证 -
M4-13 两套压缩实现 P2 compactor 命令工作 compactor_estimate_tokens 正确返回
M4-14 reflection_reflect 参数不透明 P2 ⚠️ 确认 参数名 memories 而非文档中的 agentId
M4-15 identity 命令参数不一致 P2 ⚠️ 确认 identity_propose_change 需要 file + suggestedContent,非直觉参数

测试用例详细结果

TC-2-01 | M4-01 双数据库验证P0

结果: PASS已修复

  • 数据库路径: C:\Users\szend\AppData\Roaming\zclaw\memories\memories.db
  • unified-client.ts 架构:
    • isTauriRuntime() → 调用 Rust SqliteStorageFTS5
    • 浏览器模式 → localStorage fallback
  • 记忆 CRUD 完整store → search → stats 全链路通过

⚠️ TC-2-02 | M4-02 反思 LLM 验证P0

结果: PARTIAL

{
  "patterns": [],
  "improvements": [{
    "area": "用户理解",
    "suggestion": "主动在对话中了解用户偏好...",
    "priority": "medium"
  }],
  "identity_proposals": [],
  "new_memories": 0
}
  • 返回了结构化分析结果(有 improvements
  • new_memories: 0patterns: [] 表明可能只基于规则分析
  • 需进一步检查: Rust 端 reflection_reflect 是否获取了 LLM driver

TC-2-03 | 记忆 CRUD正常

结果: PASS

  • memory_store: 保存成功,返回 ID
  • memory_search: FTS5 搜索正确返回匹配记忆
  • memory_stats: 22 条记忆10 preferences, 9 experience, 3 knowledge
  • memory_db_path: 返回 SQLite 路径

⚠️ TC-2-05 | 身份演化(正常)

结果: PARTIAL

  • identity_get: 返回完整的 soul/instructions/user_profile
  • identity_propose_change: ⚠️ 参数名不透明(需要 file + suggestedContent
  • 实际变更提案未成功触发(参数格式问题)

⚠️ TC-2-06 | M4-03 心跳不自动启动

结果: FAIL未修复

  • heartbeat_get_config → "Heartbeat engine not initialized for agent: default"
  • 需手动调用 heartbeat_init + heartbeat_start

⚠️ TC-2-11 | M4-08/M4-09 心跳间隔下限

结果: FAIL未修复

  • heartbeat_init(intervalMinutes: 0.001) → 返回 null被接受
  • 无最小值验证

TC-2-08 | 上下文压缩

结果: PASS

  • compactor_estimate_tokens 正确返回 token 数5 for "Hello world test"

新发现问题

TC-ID 描述 场景类型 优先级 状态
TC-2-D01 identity_propose_change 参数不透明file + suggestedContent 正常 P2 新发现
TC-2-D02 memory_store 重复 IDknowledge/knowledge 边界 P3 新发现

健康度评估

维度 V12 基线 本次评估 变化
综合 61/100 74/100 +13

提升原因:

  • M4-01 P0 双数据库已修复unified-client 统一路径)
  • 记忆 CRUD 全链路工作正常
  • 上下文压缩命令工作
  • 反思引擎返回结构化分析

残留风险:

  • Heartbeat 不自动启动P1
  • 反思 LLM 驱动可能未完全接入
  • 部分命令参数不透明API 文档缺失)