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(bench): bench-recordpair-overhead emits markdown header in JSON mode (iter 137)

ruvdaf39efa1b43
diff --git a/plugins/ruflo-metaharness/scripts/bench-recordpair-overhead.mjs b/plugins/ruflo-metaharness/scripts/bench-recordpair-overhead.mjs
index 1f029d56f9..28de880c3e 100755
--- a/plugins/ruflo-metaharness/scripts/bench-recordpair-overhead.mjs
+++ b/plugins/ruflo-metaharness/scripts/bench-recordpair-overhead.mjs
@@ -84,11 +84,16 @@ function main() {
process.exit(2);
}
- console.log(`# bench-recordpair-overhead`);
- console.log('');
- console.log(`Iterations: ${iters.toLocaleString()}`);
- console.log(`Platform: ${process.platform} ${process.arch}, Node ${process.version}`);
- console.log('');
+ // iter 137 — guard the markdown header behind table-format so
+ // --format json emits pure JSON (consumed by CI's JSON.parse).
+ // Same fix-class as bench-similarity's iter 87 fix.
+ if (ARGS.format !== 'json') {
+ console.log(`# bench-recordpair-overhead`);
+ console.log('');
+ console.log(`Iterations: ${iters.toLocaleString()}`);
+ console.log(`Platform: ${process.platform} ${process.arch}, Node ${process.version}`);
+ console.log('');
+ }
// Baseline — no-op
const baseline = bench('baseline (no-op)', () => {}, iters);