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(dream-cycle): append 2026-10-19 swarm ledger row

Claudea02d8aca6d8a
diff --git a/docs/dream-cycle/LEDGER.md b/docs/dream-cycle/LEDGER.md
index 551edf3990..9fca8e903c 100644
--- a/docs/dream-cycle/LEDGER.md
+++ b/docs/dream-cycle/LEDGER.md
@@ -237,3 +237,5 @@ as a first-class, high-priority candidate, not a background note.
| 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 |
+**Note (2026-10-19):** verified via GitHub MCP tools (`gh` CLI unavailable this session, same fallback since 2026-09-17) before tonight's own row: 2026-10-16 (security, `DENYLISTED_ENV_NAMES` git/perl/ruby/java hijack family, #4229/#4230) ran with a real branch/issue/draft PR, not transcribed as its own row here (same "ledger rows only reach `main` via PR merge" structural gap noted since 2026-08-19); still open/draft with 1 pending reviewer comment as of tonight, 3d old, not stale. 2026-10-17 (intelligence, `agentdb-backend.ts` calling a native HNSW controller that never existed, #4249/#4250) and 2026-10-18 (memory, `ReasoningBank.consolidate()` HNSW orphan leak, #4270/#4271) both ran with real branches/issues/open draft PRs, confirmed via `search_pull_requests`; neither transcribed here either. Trailing-7-night fates before tonight (via `pull_request_read`, authoritative β€” `search_pull_requests`'s own `merged` field remains unreliable per the 2026-09-21 note): 10-09 #3929 **MERGED**; 10-10 #3977 **MERGED**; 10-11 #4053 **MERGED**; 10-12 #4081 open/draft; 10-13 #4138 open/draft; 10-14 #4174 open/draft (`mergeable_state: dirty`); 10-15 #4215 **MERGED** 2026-10-17 β€” none of 10-12..10-18 stale (<14d).
+| 2026-10-19 | swarm | `TopologyManager.electLeader()`'s hierarchical/centralized branches read the cached `queenNode`/`coordinatorNode`, nulled by `removeFromRoleIndex()` on death with no replacement, and silently fell through to generic mesh-style ranking β€” electing a leader without ever promoting its `.role`, so `getQueen()`/`getCoordinator()` returned `undefined` forever after exactly one death despite `failoverEnabled: true` (default) documenting failover; added `promoteToRole()`, gated on that same flag, re-using the existing role-index cache pair | #4285 | #4286 | yes | ACCEPT | 3 new discriminating tests, baseline-fails-2-of-3/candidate-passes-3-of-3 via stash isolation (1 correct non-discriminating `failoverEnabled:false` control); full `@claude-flow/swarm` suite 335/335 (332+3 new), 0 regressions, `tsc --noEmit` clean both ways; independent adversarial critique CONFIRMED-WITH-CAVEATS β€” 1 caveat (promotion doesn't rewire connections/adjacency, self-healing under default `autoRebalance:true`) disclosed in-source as a KNOWN LIMITATION comment, 2 others (insertion-order candidate pick, no new locking) confirmed to match pre-existing class-wide convention, none blocking; confirmed zero blast-radius into raft/byzantine/gossip consensus | 7cf5c70f... | 10-09/10-10/10-11/10-15 MERGED; 10-12/10-13/10-14/10-16/10-17/10-18 open/draft, none stale |