claude-memory/graph/insights/auto-edge-implementation-design-analysis-findings-and-fixes-ab3ffc.md
2026-02-28 22:13:13 -06:00

1.8 KiB

id type title tags importance confidence created updated relations
ab3ffc18-1707-42ff-ad7e-bffb16f6fdef insight Auto-edge implementation: design analysis findings and fixes
cognitive-memory
edges
code-review
design-patterns
mcp-server
auto-edges
0.7 0.8 2026-03-01T04:12:45.563773+00:00 2026-03-01T04:13:13.331186+00:00
target type direction strength edge_id
ee85bf89-93f0-48e4-b911-7ddc18a735b5 RELATED_TO outgoing 0.9 34ca4c9a-5f16-4e37-b333-5ac7921bdb1a
target type direction strength edge_id
9ea72015-0b85-4a42-9ae1-144866f8d86f BUILDS_ON outgoing 0.75 13e98a58-b81d-49b0-89b9-0f23d3d24657
target type direction strength edge_id
9eb16f9f-c825-4233-b64f-d0acd140374a FOLLOWS outgoing 0.65 ed1f50e9-eec3-491a-9e41-097f567ee28d

Auto-edge Implementation: Design Analysis Findings and Fixes

Issues Found and Fixed

  1. Similarity threshold bypass — keyword-only results lack a "similarity" key, so if similarity is not None always short-circuited the threshold check. Fixed by requiring tag overlap for the keyword-only path instead.

  2. Backwards description arrow — The in the edge description could point the wrong direction when a heuristic reversed from/to. Fixed by building the description string after direction resolution.

  3. Wasted slice slots[:AUTO_EDGE_MAX] slice happened before threshold filtering, consuming slots on results that would later be rejected. Fixed by filter-then-slice ordering.

  4. Weak recall query — Title-only recall gave weak signal. Fixed by concatenating tags into the query string.

Deferred Issues (Not Fixed This Session)

  • Git commit batching in relate() (issue #2)
  • Semantic recall surfacing dormant memories (issue #3)