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

feat(metaharness): drift-from-history table surfaces path + wall (iter 96)

ruv1e856ab96706
diff --git a/plugins/ruflo-metaharness/scripts/drift-from-history.mjs b/plugins/ruflo-metaharness/scripts/drift-from-history.mjs
index 9a94900739..5479c718d0 100755
--- a/plugins/ruflo-metaharness/scripts/drift-from-history.mjs
+++ b/plugins/ruflo-metaharness/scripts/drift-from-history.mjs
@@ -87,6 +87,12 @@ function emitAndExit(payload, code) {
} else {
console.log(`Baseline: ${payload.baseline?.key ?? payload.baseline?.startedAt}`);
console.log(`Current: ${payload.current?.startedAt ?? '(fresh)'}`);
+ // iter 96 — surface the timing.path label so users see which
+ // fast-path ran (or didn't) at a glance.
+ if (payload.timing?.path) {
+ const wallMs = payload.timing.parallelWallMs;
+ console.log(`Path: ${payload.timing.path} (wall ${wallMs}ms)`);
+ }
console.log('');
const sd = payload.drift?.structuralDistance;
if (sd && sd.verdict !== 'unavailable') {
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh
index 8d0a6eb363..f45022503c 100755
--- a/plugins/ruflo-metaharness/scripts/smoke.sh
+++ b/plugins/ruflo-metaharness/scripts/smoke.sh
@@ -191,6 +191,19 @@ grep -q "execCli(\[\s*'-y'\s*,\s*'metaharness@latest'" "$F" 2>/dev/null || \
grep -q "cwd: opts" "$F" || miss="$miss no-cwd-passthrough"
[[ -z "$miss" ]] && ok || bad "$miss"
+step "17z59. drift-from-history table output shows path + wall (iter 96)"
+miss=""
+F="$ROOT/scripts/drift-from-history.mjs"
+grep -q "Path:.*payload.timing.path" "$F" 2>/dev/null || miss="$miss no-path-line-in-table"
+grep -q "wall \${wallMs}ms" "$F" 2>/dev/null || miss="$miss no-wall-label"
+# Runtime: table output contains the new Path: line
+TMPB=$(mktemp)
+node "$ROOT/scripts/oia-audit.mjs" --dry-run --format json 2>/dev/null > "$TMPB"
+node "$F" --baseline-file "$TMPB" --dry-run 2>&1 | grep -q "Path: *file" \
+ || miss="$miss runtime-no-path-line"
+rm -f "$TMPB"
+[[ -z "$miss" ]] && ok || bad "$miss"
+
step "17z58. drift-from-history exposes derived timing.path field (iter 95)"
miss=""
F="$ROOT/scripts/drift-from-history.mjs"