docs(context): note agent memory shadow setup for fusion E2E
Memind CI / Test, build, and release guards (push) Failing after 3m15s
Memind CI / Test, build, and release guards (push) Failing after 3m15s
Allow custom shadow portal probe messages and document admin-db steps to enable recall_fusion_resolved without turning on active injection. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -74,7 +74,24 @@ node scripts/run-context-runtime-shadow-portal-e2e.mjs
|
||||
# 通过 → CONTEXT_RUNTIME_SHADOW_PORTAL_OK
|
||||
```
|
||||
|
||||
`recall_fusion_resolved` 在 agent memory 关闭时可能缺失,脚本会 WARN 但不阻断。
|
||||
`recall_fusion_resolved` 需要 **agent memory resolve 开启**(admin-db `runtimeControl.agentResolveEnabled=true` + `agentInjectionMode=shadow`,**不要**开 `active` injection)。缺失时脚本 WARN 但不阻断。
|
||||
|
||||
本地曾用(仅 dev,不入库):
|
||||
|
||||
```bash
|
||||
# admin-db 写入 shadow resolve(示例 one-shot)
|
||||
node -e "
|
||||
import { createDbPool } from './db.mjs';
|
||||
import { createMemoryV2AdminConfigService } from './memory-v2-admin-config.mjs';
|
||||
const pool = createDbPool();
|
||||
const svc = createMemoryV2AdminConfigService(pool);
|
||||
await svc.updateAdminConfig({
|
||||
runtimeControl: { agentResolveEnabled: true, agentInjectionMode: 'shadow' },
|
||||
chatIntentRouter: { memoryResolveEnabled: true },
|
||||
}, { updatedBy: 'local:context-runtime-shadow' });
|
||||
await pool.end();
|
||||
"
|
||||
```
|
||||
|
||||
## 用户自测清单(有 LLM 配额时)
|
||||
|
||||
|
||||
@@ -149,11 +149,16 @@ async function runPortalTurn(pool) {
|
||||
user_message: {
|
||||
id: randomUUID(),
|
||||
role: 'user',
|
||||
content: [{ type: 'text', text: '帮我搜索一下今天上海的天气,简要回答即可' }],
|
||||
content: [{
|
||||
type: 'text',
|
||||
text: process.env.MEMIND_SHADOW_E2E_MESSAGE
|
||||
?? '你还记得我的偏好吗,一句话回答即可',
|
||||
}],
|
||||
metadata: {
|
||||
userVisible: true,
|
||||
agentVisible: true,
|
||||
displayText: 'context runtime shadow agent ping',
|
||||
displayText: process.env.MEMIND_SHADOW_E2E_DISPLAY
|
||||
?? 'context runtime shadow memory ping',
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user