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

test: residual fixes — speedup honesty + inline timeout + macOS Node 24

Reuven5372f83553a2
diff --git a/.github/workflows/v3-ci.yml b/.github/workflows/v3-ci.yml
index a5d3436506..b3cdc2c226 100644
--- a/.github/workflows/v3-ci.yml
+++ b/.github/workflows/v3-ci.yml
@@ -157,6 +157,13 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
node: ['22', '24']
+ # macos-latest's bundled Python 3.12 removed distutils, breaking
+ # node-gyp on Node 24's hnswlib-node + better-sqlite3 builds. Drop
+ # that one combo until the macOS image ships a compatible setup.
+ # (Linux Node 24 + macOS Node 22 still cover the cross-product.)
+ exclude:
+ - os: macos-latest
+ node: '24'
steps:
- name: Checkout code
diff --git a/v3/@claude-flow/hooks/src/__tests__/guidance-provider.test.ts b/v3/@claude-flow/hooks/src/__tests__/guidance-provider.test.ts
index b9b28aa02d..8d8b5d6b59 100644
--- a/v3/@claude-flow/hooks/src/__tests__/guidance-provider.test.ts
+++ b/v3/@claude-flow/hooks/src/__tests__/guidance-provider.test.ts
@@ -405,7 +405,9 @@ describe('GuidanceProvider', () => {
expect(result.shouldStop).toBe(true);
});
- it('should block stopping when too many unconsolidated patterns', { timeout: 15000 }, async () => {
+ it('should block stopping when too many unconsolidated patterns', { timeout: 60000 }, async () => {
+ // Bumped 15s → 60s: storing 12 patterns triggers HuggingFace embedding
+ // generation; cold-cache CI runs exceed 15s without warm models.
// Store more than 10 patterns to trigger the check
for (let i = 0; i < 12; i++) {
await reasoningBank.storePattern(`Pattern ${i}`, 'general');
diff --git a/v3/__tests__/honesty/tool-honesty.test.ts b/v3/__tests__/honesty/tool-honesty.test.ts
index faf437895f..4813396290 100644
--- a/v3/__tests__/honesty/tool-honesty.test.ts
+++ b/v3/__tests__/honesty/tool-honesty.test.ts
@@ -262,11 +262,22 @@ describe('Tool Honesty (v3.5.56-57)', () => {
it('should not generate fake speedup claims when no backend is available', () => {
const source = readSource('hooks-tools.ts');
- const attentionStart = source.indexOf("name: 'hooks_intelligence_attention'");
const handlerSection = extractToolBlock(source, 'hooks_intelligence_attention');
- // Speedup should be null when implementation is not real
- expect(handlerSection).toMatch(/speedup:.*implementation\.startsWith\('real-'\)/);
+ // Honesty principle: don't fabricate a speedup claim. The handler can
+ // satisfy this two ways:
+ // (a) Have no speedup field at all (current implementation — no
+ // claim is made when there's no real backend).
+ // (b) Have a speedup field gated by implementation.startsWith('real-')
+ // so it only emits a value when real work happened.
+ // Both pass; only an UNCONDITIONAL speedup claim should fail.
+ const speedupRegex = /\bspeedup\s*:/m;
+ const hasSpeedupField = speedupRegex.test(handlerSection);
+ if (hasSpeedupField) {
+ expect(handlerSection).toMatch(/speedup\s*:[^,}]*implementation\.startsWith\('real-'\)/);
+ }
+ // Always verify no fabricated number literal is unconditionally returned.
+ expect(handlerSection).not.toMatch(/speedup\s*:\s*[\d.]+/m);
});
});