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

fix(ci+witness): unblock CI build, witness verify, and trajectory smoke (#2311 #2274 #2312 #2275)

ruvnet5f3d7f33f25e
diff --git a/.github/workflows/v3-ci.yml b/.github/workflows/v3-ci.yml
index e07c53b012..b236867d9e 100644
--- a/.github/workflows/v3-ci.yml
+++ b/.github/workflows/v3-ci.yml
@@ -2322,6 +2322,13 @@ jobs:
pnpm install --frozen-lockfile
pnpm -r build
- name: Run trajectory graph edges smoke
+ # #2312 — TEST 2's post-task chain (intelligence.recordTrajectory →
+ # @ruvector/ruvllm SonaCoordinator) blows past the default 4 GB heap.
+ # Bump the runner ceiling to 6 GB so CI can complete; the underlying
+ # ruvllm allocation profile is tracked separately and will fix the
+ # cause, not the symptom.
+ env:
+ NODE_OPTIONS: '--max-old-space-size=6144'
run: node scripts/smoke-trajectory-graph-edges.mjs
graph-plugin-adapter-smoke:
diff --git a/plugins/ruflo-core/scripts/witness/verify.mjs b/plugins/ruflo-core/scripts/witness/verify.mjs
index b02b18f1eb..450502bf49 100644
--- a/plugins/ruflo-core/scripts/witness/verify.mjs
+++ b/plugins/ruflo-core/scripts/witness/verify.mjs
@@ -172,7 +172,17 @@ async function verifySignature(witness, repoRoot) {
};
}
- ed.etc.sha512Sync = (...m) => { const h = createHash('sha512'); for (const x of m) h.update(x); return h.digest(); };
+ // noble/ed25519 v2 freezes `etc` and ships sync verify by default — the
+ // sha512Sync shim is only needed for v1. Guard the assignment so it works
+ // on both major versions (#2274).
+ if (!ed.etc.sha512Sync) {
+ try {
+ ed.etc.sha512Sync = (...m) => { const h = createHash('sha512'); for (const x of m) h.update(x); return h.digest(); };
+ } catch {
+ // v2 freezes `etc`; assignment is unnecessary because sha512Sync
+ // is already wired internally. Swallow the TypeError and continue.
+ }
+ }
const recomputed = createHash('sha256').update(JSON.stringify(witness.manifest)).digest('hex');
const manifestHashOk = recomputed === witness.integrity.manifestHash;
diff --git a/v3/@claude-flow/security/package.json b/v3/@claude-flow/security/package.json
index 5cbb0fca20..e8f6ef8729 100644
--- a/v3/@claude-flow/security/package.json
+++ b/v3/@claude-flow/security/package.json
@@ -14,6 +14,7 @@
"build": "tsc"
},
"dependencies": {
+ "@noble/ed25519": "^2.1.0",
"bcryptjs": "^3.0.3",
"zod": "^3.22.0"
},