From ca680b08b99f97a1e6773bac79fd0c7ff8db850b Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 12 Aug 2025 14:16:50 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/src/cli/command-registry.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/task-1755008137.json | 1 + src/cli/command-registry.js | 105 +++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 .claude/checkpoints/task-1755008137.json 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 [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 {