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 #3485: fix(memory): enforce TTL when retrieving and searching live rows

ruv4dc4045111e7
diff --cc v3/@claude-flow/cli/src/memory/memory-bridge.ts
index 15928773ba,415e3adc67..df0252ca75
--- a/v3/@claude-flow/cli/src/memory/memory-bridge.ts
+++ b/v3/@claude-flow/cli/src/memory/memory-bridge.ts
@@@ -17,12 -17,10 +17,13 @@@
* @module v3/cli/memory-bridge
*/
+ import { liveMemoryRowSql } from './live-memory-row.js';
import * as path from 'path';
import * as crypto from 'crypto';
+import { realpathSync } from 'node:fs';
import { createRequire } from 'node:module';
+import { AsyncLocalStorage } from 'node:async_hooks';
+import { validateFeedbackPatterns } from './feedback-patterns.js';
// ===== Lazy registry cache, keyed by database path =====
@@@ -1626,10 -1572,12 +1634,10 @@@ export async function bridgeGetEntry(op
const { key, namespace = 'default' } = options;
// Phase 2: Check TieredCache first
- const safeNs = String(namespace).replace(/:/g, '_');
- const safeKey = String(key).replace(/:/g, '_');
- const cacheKey = `entry:${safeNs}:${safeKey}`;
+ const cacheKey = entryCacheKey(namespace, key);
dropCacheIfDbChangedElsewhere(registry, ctx);
const cached = await cacheGet(registry, cacheKey);
- if (cached && cached.content) {
+ if (cached && cached.content && (cached.expiresAt == null || cached.expiresAt > Date.now())) {
return {
success: true,
found: true,