mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* dream(performance): AttentionCoordinator embedding-cache memoization (WIP, evaluation in progress) Memoizes AttentionCoordinator.getOrCreateEmbedding()'s synthetic content-hash embedding per-AgentOutput via an identity-keyed WeakMap, instead of rebuilding it from scratch on every O(n^2)/O(numHeads*n^2) pairwise call across the flash/multi-head/hyperbolic/graph-rope coordination mechanisms. Twice-deferred finding (2026-10-20, 2026-10-25), now closed. 6 new tests (attention-coordinator-embedding-cache.test.ts), stash-isolated baseline fails 3/6 as predicted -> candidate 6/6 pass. Full @claude-flow/swarm suite 367/367 (361+6 new), 0 regressions. tsc --noEmit 0 errors both ways. Standalone wall-clock probe (multi-head, 5-trial median): n=20 25.927ms->1.070ms (~24.2x), n=50 158.119ms->4.655ms (~34.0x), n=100 652.951ms->16.550ms (~39.5x). Research gist + full receipt: docs/dream-cycle/dream-gist-2026-10-30.md. Issue/PR/ledger update to follow once the independent adversarial critique completes. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH484YJNjSdtxKAvbzp * dream(performance): post-critique fixes + final witness for AttentionCoordinator cache Independent adversarial critique: CONFIRMED-WITH-CAVEATS, no blocking issues (reproduced stash-isolated baseline/candidate result and the wall-clock speedup independently, on different hardware; confirmed no production caller exists outside this package's own new test). Fixed forward the one cheap, concrete caveat: documents the identity-keyed WeakMap cache's mutate-and-reuse staleness risk as a KNOWN LIMITATION comment (no current caller triggers it). The other caveat (2 of 6 tests reach into private internals) is disclosed, not fixed -- no other public surface exists to assert an identity-caching implementation detail against. Finalizes the research gist with the critique summary and witness stamp. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH484YJNjSdtxKAvbzp * dream(performance): backfill 2026-10-29 ledger row + append 2026-10-30 2026-10-29's row was never appended last night even though the pipeline really ran (dream/2026-10-29-swarm, #4572, #4573 all exist) -- STEP 25's "ledger update always happens" invariant was missed once. Backfilled from the real issue/PR content, not fabricated. Appended tonight's own row (#4597/#4598, AttentionCoordinator embedding-cache memoization). Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH484YJNjSdtxKAvbzp --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: r <r@x>