Frontmatter
| id | 7867 |
| title | Refactor MemoryService to use crypto-based IDs |
| state | Closed |
| labels | airefactoring |
| assignees | tobiu |
| createdAt | Nov 22, 2025, 10:05 PM |
| updatedAt | Nov 22, 2025, 10:09 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7867 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 22, 2025, 10:09 PM |
The
MemoryService.mjscurrently generates memory IDs using a timestamp-based format (mem_${timestamp}). This is inconsistent withSessionService.mjs, which usescrypto.randomUUID()for session IDs. Furthermore, relying on timestamps for IDs is generally discouraged when better alternatives like UUIDs are available, especially since the timestamp is already stored as metadata.Goal: Refactor
MemoryService.mjsto generate memory IDs usingcrypto.randomUUID(), ensuring consistency across the memory core services.Tasks:
cryptoinai/mcp/server/memory-core/services/MemoryService.mjs.addMemorymethod to generatememoryIdusingcrypto.randomUUID()instead of the timestamp-based string.