Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Merge PR #3453: fix(mcp): report unsupported memory consolidation honestly

ruvaa6cb0719138
diff --cc v3/@claude-flow/cli/src/memory/memory-bridge.ts
index 1c3794c187,2ed4904107..574bc7c9ca
--- a/v3/@claude-flow/cli/src/memory/memory-bridge.ts
+++ b/v3/@claude-flow/cli/src/memory/memory-bridge.ts
@@@ -3361,17 -3275,13 +3361,14 @@@ export async function bridgeHierarchica
} catch (e: any) { return { results: [], error: e.message }; }
}
- /**
- * Run memory consolidation.
- *
- * Real MemoryConsolidation API (agentdb alpha.10+):
- * consolidate() → Promise<ConsolidationReport>
- * ConsolidationReport = { episodicProcessed, semanticCreated, memoriesForgotten, ... }
- * Stub API (fallback):
- * consolidate() → { promoted, pruned, timestamp }
- */
+ /** Run consolidation when a real controller is available. */
export async function bridgeConsolidate(params: { minAge?: number; maxEntries?: number }): Promise<any> {
+ if (!operationContext.getStore()?.active) return withBridgeOperation(() => bridgeConsolidate(params));
+ // No installed consolidation API accepts these historical options. Reject
+ // them explicitly rather than silently claiming their limits were applied.
+ if (params.minAge !== undefined || params.maxEntries !== undefined) {
+ return { success: false, status: 'unsupported', error: 'minAge and maxEntries are not supported by the consolidation controller' };
+ }
const registry = await getRegistry();
if (!registry) return null;
try {