Memory integration (step 5.5 System 1 real-time writing)
server/core/knowledge-search.js
Chinese n-gram tokenization + relevanceScore rating
start.bat
Enhanced one-click deployment (7 checks)
II. Outstanding Issues and Risks
? P0 — Must Fix
#
Issue
Impact
Fix
1
esbuild 0.21.5 binary corrupted
Frontend cannot rebuild, npm run build consistently fails
Need to find an esbuild version compatible with Node v22, or downgrade Node. The current dist directory contains previously built artifacts that run normally.
2
Memory Service DB initialization race condition
_getDb() synchronously calling createDatabase() may fail before sql.js is initialized
Switch to asynchronous initialization mode, or pre-initialize during server.js startup.
3
WeChat channel not end-to-end validated
wechat-channel.js logic is correct but not tested in a real WeCom environment
Requires a WeCom administrator to configure the callback URL before validation.
? P1 — Should be fixed
#
Issue
Impact
Fix
4
Memory fact extraction rules are simplistic
Only based on keyword matching (BOM/cost/supplier/change/approval), cannot extract complex facts
Phase 2 should introduce LLM-assisted fact extraction.
5
WeChat channel lacks OpenClaw integration
Currently only WeCom self-built app is implemented; OpenClaw+ClawBot solution not yet realized
Need to install openclaw package (pnpm add openclaw), but installation times out
6
Direct JWT_SECRET reference still exists in server.js
softAuth area fixed, but other files may still have process.env.JWT_SECRET \
\
'fallback'
Globally search and remove all hardcoded fallbacks
7
token-cache.js not integrated into miniapp-auth.js
token-cache.js created but not used in miniapp-auth.js
Need to replace memory cache with file cache
8
Memory API lacks authentication protection
/api/memory/* endpoints accessible without authentication, exposing anyone's memories
Should add JWT authentication middleware
? P2 — Can be optimized
#
Issue
Impact
Fix
9
Memory evolution chain not fully implemented
memory_evolution table created but query API does not expose evolution chain details
Add /api/memory/evolution/:type/:id endpoint
10
Memory Layer 4-6 Not Implemented
Session Summary, Mental Model, Proactive Intent to be implemented in Phase 2
Execute according to Phase 2 plan in tasks.md
11
Limited Accuracy of Chinese Word Segmentation in Knowledge Search
n-gram segmentation performs poorly on long sentences
Consider introducing FTS5 support from better-sqlite3
12
start.bat Does Not Check esbuild
One-click deployment may cause frontend build failure due to esbuild issues
Add esbuild health check
13
WeChat Channel Lacks Message Retry
wechat-channel.js has no retry after sendTextMessage fails