feat(context): promote MCP compactor to active locally
Memind CI / Test, build, and release guards (push) Has been cancelled

Add active-mode probe script and document mixed shadow/active promotion;
first active switch is MEMIND_MCP_COMPACT_MODE only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-09-10 09:39:32 +08:00
parent 0daf40d950
commit 3414ae42b1
2 changed files with 37 additions and 0 deletions
+16
View File
@@ -24,6 +24,21 @@ MEMIND_ZVEC_WORKSPACE_MODE=shadow
HEADROOM_OUTPUT_SHAPER=0
```
**混合晋升(逐项 active**:shadow 证据足够后,每次只改一个开关,例如:
```bash
MEMIND_MCP_COMPACT_MODE=active # 其余保持 shadow
```
验证:
```bash
node scripts/check-mcp-compactor-local.mjs
node scripts/check-mcp-compact-active-local.mjs
```
active 时 `tkmind-search` / `tkmind-excel` MCP 会暴露 `ctx_fetch`,大 payload 会被压缩为 handle。
Bundle 常量见 `context-runtime-profile.mjs``CONTEXT_RUNTIME_SHADOW_ENV`
## 离线事件形状预览
@@ -56,6 +71,7 @@ node scripts/check-zvec-workspace-local.mjs
# MCP compactor shadow/active 逻辑
node scripts/check-mcp-compactor-local.mjs
node scripts/check-mcp-compact-active-local.mjs
# codebase-memory-mcp CLI + Memind 索引(见 docs/codebase-memory-mcp-local.md
node scripts/check-codebase-memory-mcp-local.mjs