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

ci: surface witness-verify failure details (was exiting silently)

Reuven19867b339f33
diff --git a/.github/workflows/v3-ci.yml b/.github/workflows/v3-ci.yml
index 5615b260b4..df00177994 100644
--- a/.github/workflows/v3-ci.yml
+++ b/.github/workflows/v3-ci.yml
@@ -289,16 +289,32 @@ jobs:
# is the same script external adopters use — dogfooding ensures
# the plugin pathway works and avoids CI-specific cli build
# issues (e.g. missing @ruvector/sona, sharp native postinstall).
+ # Capture both streams; analyze regardless of exit code so we
+ # always see WHY a verification failed.
+ set +e
node plugins/ruflo-core/scripts/witness/verify.mjs \
--manifest verification.md.json \
- --json > /tmp/witness-result.json
+ --json > /tmp/witness-result.json 2> /tmp/witness-result.err
+ VERIFY_EXIT=$?
+ set -e
+ echo "--- verify.mjs exit code: $VERIFY_EXIT ---"
+ echo "--- stderr ---"
+ cat /tmp/witness-result.err || true
+ echo "--- summary ---"
node -e "
- const r = require('/tmp/witness-result.json');
- const s = r.summary;
- console.log(JSON.stringify({signature: r.signature, summary: s}, null, 2));
+ const fs = require('fs');
+ const raw = fs.readFileSync('/tmp/witness-result.json', 'utf8');
+ if (!raw.trim()) { console.error('verify.mjs produced no JSON output'); process.exit(1); }
+ const r = JSON.parse(raw);
+ console.log(JSON.stringify({signature: r.signature, summary: r.summary}, null, 2));
+ const failures = (r.results || []).filter(x => x.status !== 'pass' && x.status !== 'drift');
+ if (failures.length) {
+ console.error('non-pass fixes:');
+ for (const f of failures) console.error(' ' + f.status + ': ' + f.id + ' (' + f.file + ')');
+ }
if (!r.ok) { console.error('witness verify FAILED'); process.exit(1); }
- if (s.regressed > 0) { console.error('regressed fixes:', s.regressed); process.exit(1); }
- console.log('witness verify ok:', s.pass, 'fixes pass,', s.drift, 'drifted');
+ if (r.summary.regressed > 0) { console.error('regressed fixes:', r.summary.regressed); process.exit(1); }
+ console.log('witness verify ok:', r.summary.pass, 'pass,', r.summary.drift, 'drift');
"
- name: History summary (ADR-103 — surface regression-introduction commits)