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

πŸ”– Checkpoint: Edit /workspaces/claude-code-flow/src/cli/command-registry.js

rUvfd2ba9c8a1ad
diff --git a/.claude/checkpoints/task-1755008137.json b/.claude/checkpoints/task-1755008137.json
new file mode 100644
index 0000000000..9b584e4f40
--- /dev/null
+++ b/.claude/checkpoints/task-1755008137.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250812-141536", "task": "none of the commands work. @ruvnet ➜ /workspaces/claude-code-flow (alpha-89) $ ./claude-flow verif", "timestamp": "2025-08-12T14:15:37Z", "commit": "69e40699270fef7dfac3f3b3855a176af1c25803", "github_release": "true"}
diff --git a/src/cli/command-registry.js b/src/cli/command-registry.js
index 3915c9e27c..0d312817bd 100644
--- a/src/cli/command-registry.js
+++ b/src/cli/command-registry.js
@@ -541,6 +541,111 @@ For more information: https://github.com/ruvnet/claude-flow/issues/166`,
...fixHookVariablesCommandConfig,
});
+ // Verification system commands
+ commandRegistry.set('verify', {
+ handler: async (args, flags) => {
+ try {
+ const { verificationCommand } = await import('./commands/verification.js');
+ return await verificationCommand({ subcommand: args[0] || 'status', ...flags });
+ } catch (error) {
+ console.error('❌ Error loading verification module:', error.message);
+ console.log('Please ensure the verification module is properly built.');
+ }
+ },
+ description: 'πŸ” Verification and truth enforcement system',
+ usage: 'verify <subcommand> [options]',
+ examples: [
+ 'verify status # Show verification system status',
+ 'verify check --taskId task-123 # Run verification checks',
+ 'verify validate --taskId task-456 # Validate task results',
+ 'verify config # Manage verification config',
+ 'verify cleanup --force # Clean up old verification data',
+ ],
+ details: `
+Verification system commands:
+ β€’ status: Show current system status and health
+ β€’ check: Run verification checks on tasks
+ β€’ validate: Validate task completion and results
+ β€’ config: Manage verification configuration
+ β€’ cleanup: Clean up old verification data
+ β€’ pre-task: Execute pre-task verification
+ β€’ post-task: Execute post-task validation
+ β€’ integration: Run integration tests
+ β€’ truth: Execute truth telemetry checks
+ β€’ rollback: Trigger rollback if needed
+
+Truth enforcement features:
+ β€’ 0.95 minimum truth threshold
+ β€’ Cross-agent integration testing
+ β€’ Automated rollback on failures
+ β€’ Cryptographic verification
+ β€’ Byzantine fault tolerance`,
+ });
+
+ commandRegistry.set('truth', {
+ handler: async (args, flags) => {
+ try {
+ const { verificationCommand } = await import('./commands/verification.js');
+ return await verificationCommand({ subcommand: 'truth', ...flags });
+ } catch (error) {
+ console.error('❌ Error loading verification module:', error.message);
+ console.log('Please ensure the verification module is properly built.');
+ }
+ },
+ description: '🎯 Truth telemetry and accuracy scoring',
+ usage: 'truth [options]',
+ examples: [
+ 'truth # Show current truth scores',
+ 'truth --taskId task-123 # Check truth for specific task',
+ 'truth --threshold 0.95 # Set minimum truth threshold',
+ 'truth --report # Generate truth report',
+ ],
+ details: `
+Truth scoring system:
+ β€’ Real-time truth metrics collection
+ β€’ Agent performance scoring
+ β€’ System-wide truth accuracy tracking
+ β€’ Automated alerting for threshold violations
+ β€’ Dashboard data export functionality
+
+Target metrics:
+ β€’ >95% truth accuracy rate
+ β€’ <10% human intervention rate
+ β€’ >90% integration success rate
+ β€’ <5% automated rollback frequency`,
+ });
+
+ commandRegistry.set('pair', {
+ handler: async (args, flags) => {
+ console.log('🀝 Pair Programming Mode');
+ console.log('');
+ console.log('The pair command enables collaborative development with:');
+ console.log(' β€’ Real-time code review and validation');
+ console.log(' β€’ Automated verification of changes');
+ console.log(' β€’ Truth enforcement for all operations');
+ console.log(' β€’ Integration testing on every change');
+ console.log('');
+ console.log('This feature integrates with the verification system to ensure');
+ console.log('all pair programming sessions maintain high quality standards.');
+ console.log('');
+ console.log('Coming soon in the next release!');
+ },
+ description: 'πŸ‘₯ Pair programming with verification',
+ usage: 'pair [options]',
+ examples: [
+ 'pair # Start pair programming mode',
+ 'pair --verify # Enable real-time verification',
+ 'pair --threshold 0.95 # Set quality threshold',
+ ],
+ details: `
+Pair programming features:
+ β€’ Real-time code review
+ β€’ Automated verification
+ β€’ Truth enforcement
+ β€’ Integration testing
+ β€’ Quality gates`,
+ });
+
commandRegistry.set('hive', {
handler: async (args, flags) => {
try {