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

checkpoint: File edit:

rUv7cd80727fdf1
diff --git a/v3/@claude-flow/performance/__tests__/attention.test.ts b/v3/@claude-flow/performance/__tests__/attention.test.ts
index 2b9baa9d8b..dd75195cf3 100644
--- a/v3/@claude-flow/performance/__tests__/attention.test.ts
+++ b/v3/@claude-flow/performance/__tests__/attention.test.ts
@@ -298,8 +298,13 @@ describe('FlashAttentionOptimizer', () => {
describe('resetMetrics()', () => {
it('should reset all metrics to zero', () => {
- // Generate some metrics
- optimizer.benchmark();
+ // Generate some metrics via optimize (which increments operations)
+ const input: AttentionInput = {
+ query: new Float32Array(512).fill(0.5),
+ keys: [new Float32Array(512).fill(0.3)],
+ values: [new Float32Array(512).fill(0.2)],
+ };
+ optimizer.optimize(input);
expect(optimizer.getMetrics().totalOperations).toBeGreaterThan(0);
// Reset