From 45835f666a5aefc28a1cb48f2244c32238350c4b Mon Sep 17 00:00:00 2001 From: "SYM.BOT" Date: Mon, 30 Mar 2026 05:34:44 +0100 Subject: [PATCH] Fix CMB test: use CAT7 fields instead of deprecated rawText createCMB requires structured fields (MMP Section 8), not rawText. This fixes 2 test failures that blocked CI. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/memory-store.test.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/memory-store.test.js b/tests/memory-store.test.js index d3c1b32..f8cb4b2 100644 --- a/tests/memory-store.test.js +++ b/tests/memory-store.test.js @@ -41,7 +41,18 @@ describe('MemoryStore', () => { it('should store CMB when provided', () => { const { createCMB } = require('@sym-bot/core'); - const cmb = createCMB({ rawText: 'user tired and frustrated', createdBy: 'test-agent' }); + const cmb = createCMB({ + fields: { + focus: 'debugging auth module', + issue: 'tired and frustrated', + intent: 'needs a break', + motivation: 'prevent errors from fatigue', + commitment: 'coding session', + perspective: 'developer, late afternoon', + mood: { text: 'frustrated', valence: -0.5, arousal: -0.3 }, + }, + createdBy: 'test-agent', + }); const entry = store.write('user tired and frustrated', { cmb }); assert.ok(entry.cmb, 'should store CMB');