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

docs: update dream-cycle ledger for 2026-10-18 (memory)

Claudefa7846d19b34
diff --git a/docs/dream-cycle/LEDGER.md b/docs/dream-cycle/LEDGER.md
index 0904957cd8..551edf3990 100644
--- a/docs/dream-cycle/LEDGER.md
+++ b/docs/dream-cycle/LEDGER.md
@@ -235,3 +235,5 @@ as a first-class, high-priority candidate, not a background note.
| 2026-10-15 | performance | `RaftConsensus.awaitConsensus()` (Ruflo's default hive-mind consensus, reachable via `UnifiedSwarmCoordinator.proposeConsensus()`) busy-polled `this.proposals` via `setInterval(...,10)` even though `checkConsensus()` already emits `'consensus.achieved'` on every accept/reject transition β€” third instance of a busy-poll bug class already fixed twice (UnifiedSwarmCoordinator #3378, MessageBus #3563); also resolved a 3-night research thread (10-09/10-10/10-14) by confirming `ruvector`'s real `minCut`/`louvainCommunities` exports are plain JS, not native-accelerated, so wiring them into `graph-analyzer.ts` would not be a performance win (REJECT, with evidence, not fixed) | #4214 | #4215 | yes | ACCEPT | 4 new discriminating tests, baseline-fails-3-of-4/candidate-passes-4-of-4 via stash isolation (1 correct non-discriminating control); full `@claude-flow/swarm` suite 281/281 (277+4 new), 0 regressions, `tsc --noEmit` clean both ways; standalone wall-clock probe 3.639ms/30 poll-timers β†’ 0.058ms/0 timers (N=30, ~63x mean-latency reduction); independent adversarial critique CONFIRMED, no blocking issues (verified concurrency via 200 simultaneous proposals + same-tick timeout/vote race) | 2ca9c495... | 10-09/10-10/10-11 MERGED; 10-12/10-13/10-14 open/draft, none stale; 10-05 closed-not-merged (duplicate) |
**Note (2026-10-16):** #4053 (10-11, security) and #3977 (10-10, performance) confirmed **MERGED** via GitHub MCP tools (`gh` CLI's `GH_TOKEN` is invalid this session, but MCP tools work fine β€” not FALLBACK). Confirmed real `dream/*` branches for every night 10-12 (intelligence, #4081), 10-13 (memory, #4138), 10-14 (swarm, #4174), 10-15 (performance, #4215) via `git ls-remote` β€” no run gap, all currently open/draft, none stale. **Correction**: 10-11's own PR (#4053) cited "CVE-2026-25725" as a future-candidate CVE β€” direct NVD/MITRE lookup this session found **this ID does not resolve to any real record**, likely garbled; flagging so it isn't re-cited without a fresh, verified ID.
| 2026-10-16 | security | `DENYLISTED_ENV_NAMES` (`validateEnv()`, gates `terminal_create`'s caller-supplied env before a persistent merge into every later `execSync`'d command) missed credential/arbitrary-command vars in the same git family as the already-denylisted GIT_SSH_COMMAND (GIT_ASKPASS, GIT_PROXY_COMMAND), interpreter-flag-injection vars for Perl/Ruby/Java (PERL5OPT/RUBYOPT/JAVA_TOOL_OPTIONS/_JAVA_OPTIONS/JDK_JAVA_OPTIONS), two more search-path vars (PYTHONHOME, CLASSPATH), and git's numbered GIT_CONFIG_KEY_n/VALUE_n/COUNT runtime-config-injection family (added via regex, not a fixed name); PYTHONEXECUTABLE and PSModulePath researched and explicitly rejected on evidence grounds (Grade C / cosmetic) | #4229 | #4230 | yes | ACCEPT-scoped (post-critique) | 19 new tests (18 discriminating + 1 negative control), stash-isolated 18/19 fail baseline β†’ 51/51 pass candidate; full `@claude-flow/cli` suite byte-identical 60-failure set baseline vs candidate; `tsc --noEmit` 0 errors both ways; independent adversarial critique CONFIRMED-WITH-CAVEATS β†’ both caveats (an evaluation-writeup arithmetic error, two undocumented-rationale comments) fixed forward same session | fd98a162... | 10-01 #3599 MERGED; 10-10 #3977 MERGED; 10-11 #4053 MERGED; 10-12..10-15 (#4081/#4138/#4174/#4215) all open/draft, none stale; 10-04 no-run gap. Prior gist (10-15, performance) scored 10/10 (2+2+2+2+1(1031 words)+1) |
+**Note (2026-10-18):** verified via `git ls-remote --heads origin "dream/*"` + GitHub MCP search (not inferred) that 2026-10-16 (security, #4229/#4230) and 2026-10-17 (intelligence, #4249/#4250) both ran with real branches/issues/draft PRs β€” same "ledger rows only reach `main` via PR merge" structural gap noted since 2026-08-19; not transcribed as their own rows here. Trailing-7-night fates before tonight (GitHub-verified via `pull_request_read`): #4215 (10-15) **MERGED** 2026-10-17; #4053 (10-11) **MERGED**; #3977 (10-10) **MERGED**; #3929 (10-09) **MERGED**; #3563 (09-30) **MERGED**; #3539 (09-29) **MERGED**; #3517 (09-28) **MERGED** β€” **7/7 merged**, a reversal from the 0/7 pattern noted as of 2026-09-22; #4230 (10-16) and #4250 (10-17) open/draft, neither stale. Prior gist (10-15, performance) scored 10/10 (2+2+2+2+1(1031 words)+1).
+| 2026-10-18 | memory | `ReasoningBank.consolidate()` (`v3/@claude-flow/hooks/src/reasoningbank/index.ts`) deleted pruned/deduplicated patterns from `shortTermPatterns`/AgentDB via `deleteFromStorage()` but never called `hnswIndex.removePoint(id)` β€” `storePattern()`'s unguarded `addPoint()` throws once the HNSW index's `maxElements` (orphans included) is exhausted, permanently breaking pattern learning in the `HooksLearningDaemon`'s every-60s `consolidate()` loop even though the index is full of logically-deleted ghosts; fixed with two additive `removePoint()` calls alongside the existing deletion sites | #4270 | #4271 | yes | ACCEPT | 2 new discriminating tests (prune path, dedup path) against a real built-from-source AgentDB+HNSW backend (`@claude-flow/memory`+`@claude-flow/neural` both required building in-session β€” dist was missing for both, and without it the tests would pass vacuously in in-memory fallback mode, caught via direct internals inspection); stash-isolated baseline fails both exactly as predicted (`Index is full, cannot add more elements` at the predicted `HNSWIndex.addPoint`←`storePattern` call site), candidate passes both β€” independently reproduced twice (session + a separate adversarial-critic subagent from scratch); full `@claude-flow/hooks` suite 147/147 (7/7 files), 0 regressions, `tsc --noEmit` clean; independent adversarial critique CONFIRMED, no blocking issues | b2ad8c15... | 10-09/10-10/10-11/09-28/09-29/09-30/10-15 MERGED (7/7); 10-16 #4230, 10-17 #4250 open/draft, neither stale |