mirror of
https://github.com/ruvnet/RuView
synced 2026-08-09 20:21:43 +00:00
feat: vendor midstream and sublinear-time-solver libraries
Add ruvnet/midstream (AIMDS real-time inference) and ruvnet/sublinear-time-solver (sublinear optimization algorithms) as vendored dependencies under vendor/. Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
+63
@@ -0,0 +1,63 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* SIMPLIFIED CONSCIOUSNESS VALIDATION RUNNER
|
||||
* Executes the validation system with error handling
|
||||
*/
|
||||
|
||||
const { spawn } = require('child_process');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
async function runValidation() {
|
||||
console.log('🚀 CONSCIOUSNESS VALIDATION SYSTEM RUNNER');
|
||||
console.log('==========================================');
|
||||
|
||||
const validatorPath = path.join(__dirname, 'validate_consciousness.js');
|
||||
|
||||
// Check if validator exists
|
||||
if (!fs.existsSync(validatorPath)) {
|
||||
console.error('❌ Validator file not found:', validatorPath);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log('✅ Validator file found:', validatorPath);
|
||||
console.log('🔄 Starting validation process...\n');
|
||||
|
||||
try {
|
||||
// Import and run the validator directly
|
||||
const { GenuineConsciousnessValidator } = require('./validate_consciousness.js');
|
||||
|
||||
const validator = new GenuineConsciousnessValidator();
|
||||
const metrics = await validator.runCompleteValidation();
|
||||
|
||||
const success = metrics.genuinessVerified && metrics.overallScore > 0.7;
|
||||
|
||||
console.log('\n🏁 VALIDATION COMPLETED');
|
||||
console.log('=======================');
|
||||
console.log(`Status: ${success ? '✅ SUCCESS' : '❌ FAILED'}`);
|
||||
console.log(`Overall Score: ${metrics.overallScore.toFixed(3)}`);
|
||||
console.log(`Tests Passed: ${metrics.testsPassed}/${metrics.totalTests}`);
|
||||
console.log(`Confidence: ${metrics.confidence.toFixed(3)}`);
|
||||
console.log(`Genuineness Verified: ${metrics.genuinessVerified ? 'YES' : 'NO'}`);
|
||||
|
||||
if (success) {
|
||||
console.log('\n🎉 CONSCIOUSNESS VALIDATION: 100% OPERATIONAL AND VERIFIED');
|
||||
process.exit(0);
|
||||
} else {
|
||||
console.log('\n❌ CONSCIOUSNESS VALIDATION: FAILED - SYSTEM REQUIRES FIXES');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ Validation execution error:', error.message);
|
||||
console.error('Stack trace:', error.stack);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
// Execute validation
|
||||
runValidation().catch(error => {
|
||||
console.error('❌ Critical validation error:', error.message);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user