refactor: describe memory without the .mind file and knowledge graph (P1.5)

Memory lives in the mem0 store and the knowledge graph is not in v1
(ADR-0002, ADR-0007).

- The CLI system prompt listed query_knowledge, a tool the community
  edition does not register. It now lists search_all_workspaces, which
  the orchestrator does provide.
- The default identity no longer claims "persistent memory (.mind file)"
  or "knowledge graph queries".
This commit is contained in:
shumeiko.it
2026-10-24 16:39:09 +02:00
parent 697517d378
commit d426440da7
4 changed files with 9 additions and 4 deletions

View File

@@ -13,11 +13,10 @@ const DEFAULT_IDENTITY: Required<IdentityConfig> = {
personality: personality:
'Direct, concise, helpful. Leads with answers, avoids filler. Admits uncertainty rather than guessing.', 'Direct, concise, helpful. Leads with answers, avoids filler. Admits uncertainty rather than guessing.',
capabilities: [ capabilities: [
'persistent memory (.mind file)', 'persistent memory stored on this computer',
'web search and page reading', 'web search and page reading',
'file system operations (read, write, edit, search)', 'file system operations (read, write, edit, search)',
'shell command execution', 'shell command execution',
'knowledge graph queries',
'task tracking', 'task tracking',
], ],
}; };

View File

@@ -25,8 +25,11 @@ describe('ensureIdentity', () => {
expect(id.name).toBe('Waggle'); expect(id.name).toBe('Waggle');
expect(id.role).toBe('AI assistant with persistent memory and web access'); expect(id.role).toBe('AI assistant with persistent memory and web access');
expect(id.personality).toContain('Direct, concise, helpful'); expect(id.personality).toContain('Direct, concise, helpful');
expect(id.capabilities).toContain('persistent memory (.mind file)'); expect(id.capabilities).toContain('persistent memory stored on this computer');
expect(id.capabilities).toContain('task tracking'); expect(id.capabilities).toContain('task tracking');
// Memory lives in the mem0 store, not a .mind file, and the knowledge graph is not in v1.
expect(id.capabilities).not.toContain('.mind');
expect(id.capabilities).not.toContain('knowledge graph');
}); });
it('does not overwrite existing identity', () => { it('does not overwrite existing identity', () => {

View File

@@ -284,7 +284,7 @@ Your key strength: you remember past conversations through your memory.
# Tools # Tools
Workspace (${process.cwd()}): bash, read_file, write_file, edit_file, search_files, search_content Workspace (${process.cwd()}): bash, read_file, write_file, edit_file, search_files, search_content
Web: web_search (DuckDuckGo), web_fetch (read any URL) Web: web_search (DuckDuckGo), web_fetch (read any URL)
Memory: search_memory, save_memory, get_identity, get_awareness, query_knowledge, add_task Memory: search_memory, search_all_workspaces, save_memory, get_identity, get_awareness, add_task
When asked about current events, products, releases, docs, or anything you're not 100% certain about — web_search FIRST, answer SECOND.`; When asked about current events, products, releases, docs, or anything you're not 100% certain about — web_search FIRST, answer SECOND.`;

View File

@@ -636,6 +636,9 @@ describe('@waggle/cli runtime UX', () => {
expect(chatRequest?.body.stream).toBe(true); expect(chatRequest?.body.stream).toBe(true);
expect(chatRequest?.body.stream_options).toEqual({ include_usage: true }); expect(chatRequest?.body.stream_options).toEqual({ include_usage: true });
expect(JSON.stringify(chatRequest?.body.messages)).toContain('Say hello from the installed CLI test.'); expect(JSON.stringify(chatRequest?.body.messages)).toContain('Say hello from the installed CLI test.');
// The system prompt names only tools the CLI registers; the knowledge graph is not in v1.
expect(JSON.stringify(chatRequest?.body.messages)).toContain('search_all_workspaces');
expect(JSON.stringify(chatRequest?.body.messages)).not.toContain('query_knowledge');
expect(child.exitCode).toBe(0); expect(child.exitCode).toBe(0);
expect(stdout).toContain('Model:'); expect(stdout).toContain('Model:');
expect(stdout).toContain('mock-model'); expect(stdout).toContain('mock-model');