memoryweave/go/internal/governance
xiaowei 31712986de fix(graph_sqlite): fix ExpandFromResults - wrong field access + Chinese entity extraction
Root causes fixed:
1. ExpandFromResults accessed p["to"] but SQLiteGraphStore.Navigate
   returns {"source","target","relation","weight"} - field name mismatch
   caused graph expansion to always return empty
2. Original logic checked seen[r.ID] (memory ID) against entity name
   (neighbor string), which never matched - removed stale logic

Also improved extractPotentialEntities:
- Now handles Chinese continuous character sequences (2-8 chars)
- Chinese entities extracted as whole words, not split by spaces
- English capitalized words preserved with original casing

Changes:
- ExpandFromResults: correct field access (source/target/relation),
  bidirectional neighbor detection (forward + reverse edges),
  separate seenEntities map for entity dedup
- extractPotentialEntities: full rewrite for Chinese + better English
  word tokenization without space-based splitting
2026-05-30 19:17:12 +08:00
..
bench_test.go perf: 34 benchmarks + 性能报告 — i5-11260H 2026-05-28 18:41:11 +08:00
eventbus.go v3.8 完整代码: Go API + Rust sidecar + ONNX BGE + Client SDK 2026-05-29 01:07:05 +08:00
governance.go G3: 治理闭环 — 遗忘策略激活 + 持久化软删除 2026-05-30 02:10:39 +08:00
governance_test.go test: 60 tests — governance/selfoptimize/routes/integration/edge 2026-05-28 18:35:19 +08:00
graph_auto.go v3.8-graph: P0-P6 图谱增强 2026-05-30 05:23:15 +08:00
graph_expander.go v3.8 完整代码: Go API + Rust sidecar + ONNX BGE + Client SDK 2026-05-29 01:07:05 +08:00
graph_file.go F1-F4: 端到端管道修复 + 蒸馏激活 + 治理基础 2026-05-30 02:01:11 +08:00
graph_mem.go fix: Search IPC 捕获 created_at/updated_at,recall 时间戳不再为零值 2026-05-30 10:31:25 +08:00
graph_sqlite.go fix(graph_sqlite): fix ExpandFromResults - wrong field access + Chinese entity extraction 2026-05-30 19:17:12 +08:00
graph_store.go fix: Search IPC 捕获 created_at/updated_at,recall 时间戳不再为零值 2026-05-30 10:31:25 +08:00