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:

rUvec25eea4ce4c
diff --git a/v3/@claude-flow/performance/__tests__/attention.test.ts b/v3/@claude-flow/performance/__tests__/attention.test.ts
index 82df0a8431..b6bee51ff6 100644
--- a/v3/@claude-flow/performance/__tests__/attention.test.ts
+++ b/v3/@claude-flow/performance/__tests__/attention.test.ts
@@ -486,17 +486,22 @@ describe('Edge Cases', () => {
});
it('should handle single key/value pair', () => {
+ // Use matching dimension optimizer
+ const singleOptimizer = createFlashAttentionOptimizer(512);
const input: AttentionInput = {
query: new Float32Array(512).fill(0.5),
keys: [new Float32Array(512).fill(0.3)],
values: [new Float32Array(512).fill(0.2)],
};
- const output = optimizer.optimize(input);
+ const output = singleOptimizer.optimize(input);
expect(output).toBeDefined();
+ expect(output.result.length).toBe(512);
});
it('should handle many keys/values', () => {
+ // Use matching dimension optimizer
+ const manyOptimizer = createFlashAttentionOptimizer(512);
const numKeys = 100;
const input: AttentionInput = {
query: new Float32Array(512).fill(0.5),
@@ -504,7 +509,8 @@ describe('Edge Cases', () => {
values: Array.from({ length: numKeys }, () => new Float32Array(512).fill(0.2)),
};
- const output = optimizer.optimize(input);
+ const output = manyOptimizer.optimize(input);
expect(output).toBeDefined();
+ expect(output.result.length).toBe(512);
});
});