Files
ruflo/docs/ALPHA_58_ROADMAP.md
T
2025-07-17 04:11:59 +00:00

7.7 KiB

Claude Flow Alpha 58 Release Roadmap

🎯 Priority Issues for Alpha 58

🚨 Critical Bugs

Issue #312 - MCP Tools Don't Actually Write to Database (SHOWSTOPPER)

  • Priority: CRITICAL - #1 PRIORITY
  • Problem: MCP tools return success but don't persist ANY data to SQLite
  • Impact: Users think work is saved but databases remain empty - complete data loss
  • Root Cause: MCP server returns mock responses without database integration
  • Solution:
    • Connect all MCP tools to DatabaseManager
    • Implement real database writes for every tool
    • Add transaction support and error handling
    • Create integration tests to verify persistence
  • Files to modify:
    • src/mcp/mcp-server.js - Add database integration
    • src/hive-mind/core/DatabaseManager.ts - Ensure proper APIs
    • src/mcp/claude-flow-tools.ts - Update tool implementations
  • Expected outcome: All MCP operations actually persist data to SQLite

Issue #330 - Hive-mind Wizard Hangs and Never Creates Prompt File

  • Priority: CRITICAL (Breaks Core Feature)
  • Problem: Wizard completes but work never starts, prompt file never saved
  • Impact: Users can't use hive-mind feature at all without manual workarounds
  • Root Cause: Prompt file only saved if Claude CLI is NOT installed (backwards logic)
  • Solution:
    • Always save prompt file regardless of Claude installation
    • Fix stdio handling to prevent terminal conflicts
    • Add clear instructions for two-terminal workflow
    • Use proper non-interactive flags when spawning Claude
  • Files to modify:
    • src/cli/simple-commands/hive-mind.js (spawnClaudeCodeInstances function)
    • src/cli/commands/hive-mind/spawn.ts
  • Expected outcome: Hive-mind wizard works seamlessly, saves prompt file, provides clear next steps

Issue #325 - Hive Session Management: Can't Stop or Resume Sessions

  • Priority: HIGH (Core Feature Broken)
  • Problem: Ctrl+C leaves orphaned processes, sessions stay "active", can't resume
  • Impact: Users have zombie processes consuming resources, no clean shutdown
  • Root Cause: SIGINT handler doesn't terminate child processes
  • Solution:
    • Add process tracking (store PIDs in database)
    • Implement proper SIGINT handler that kills children
    • Add stop, pause, and ps commands
    • Fix session state transitions
  • Files to modify:
    • src/cli/simple-commands/hive-mind/auto-save-middleware.js
    • src/cli/simple-commands/hive-mind.js
    • src/cli/simple-commands/hive-mind/session-manager.js
  • Expected outcome: Clean process lifecycle with stop/pause/resume commands

🤖 Claude API Integration

Issue #331 - Implement Temperature Control & Model Selection

  • Priority: High (Core Functionality)
  • Problem: Configuration files have non-functional Claude API settings
  • Impact: Users expect temperature, model selection, and token limits to work
  • Solution: Implement actual Claude API integration with proper parameter handling
  • Implementation:
    • Add Claude API client integration
    • Implement temperature control (0.0-1.0)
    • Add model selection (claude-3-opus, claude-3-sonnet, claude-3-haiku)
    • Add token limit enforcement
    • Add fallback model support
  • Files to modify:
    • src/core/orchestrator.ts
    • src/config/config-manager.ts
    • examples/01-configurations/ (restore cleaned configs)
  • Expected outcome: Functional Claude API integration with proper configuration

🔧 TypeScript Compilation Fixes

Issue #290 - Complete TypeScript Migration

  • Priority: High (Build System)
  • Problem: 643+ TypeScript compilation errors preventing clean builds
  • Impact: Development workflow issues, can't use compiled TypeScript
  • Solution: Fix all TypeScript compilation errors systematically
  • Implementation:
    • Fix TextDecoder/TextEncoder type issues (typeof TextDecoder)
    • Add missing type definitions (@types/commander, @types/blessed)
    • Fix missing override modifiers
    • Resolve implicit 'any' types
    • Complete remaining file conversions from issue #290
  • Files to modify:
    • src/cli/runtime-detector.ts
    • src/cli/repl.ts
    • src/cli/simple-cli.ts
    • tsconfig.json (compiler options)
  • Expected outcome: Clean TypeScript compilation with zero errors

🧪 Testing & Validation

Test Suite Stabilization

  • Priority: Medium (Quality Assurance)
  • Problem: Tests failing due to environment setup and missing imports
  • Impact: Unreliable CI/CD and development workflow
  • Solution: Fix test configuration and missing dependencies
  • Implementation:
    • Fix missing test.utils.ts imports
    • Update Jest configuration for ESM support
    • Resolve module resolution issues
    • Fix logger configuration errors in test environment
  • Expected outcome: Stable, passing test suite

📋 Configuration Management

Config System Overhaul

  • Priority: Medium (Developer Experience)
  • Problem: Configuration system has dead/non-functional options
  • Impact: Confusing user experience with features that don't work
  • Solution: Clean audit and implementation of all config options
  • Implementation:
    • Audit all configuration files for non-functional settings
    • Implement or remove each configuration option
    • Update documentation to match actual functionality
    • Add validation for unsupported options
  • Expected outcome: Honest, functional configuration system

📚 Documentation & Help System

Issue #323 - CLI Help Text Improvements

  • Priority: Low (Core Already Implemented)
  • Problem: Help text was decentralized and inconsistent
  • Current Status: ✅ Core implementation complete in src/cli/help-text.js
  • Alpha 58 Refinements:
    • Remove legacy show...Help() functions from command files
    • Add automated tests to verify help completeness
    • Consider auto-generating help from command definitions
    • Add --json output format for machine-readable help
  • Files to modify:
    • Various command files to remove old help functions
    • Add tests in tests/unit/cli/help-text.test.js
  • Expected outcome: 100% accurate, testable help documentation

🚀 Success Criteria for Alpha 58

✅ Must Have:

  1. FIX DATABASE PERSISTENCE: MCP tools MUST write to SQLite (Issue #312)
  2. Claude API Integration: Temperature, model selection, and token limits working
  3. Clean TypeScript Build: Zero compilation errors
  4. Functional Configs: All configuration options either work or are removed

🎯 Should Have:

  1. Stable Tests: Passing test suite with reliable CI/CD
  2. Documentation Updates: Accurate docs reflecting actual functionality

💎 Nice to Have:

  1. Performance Improvements: Based on Alpha 57 usage feedback
  2. Enhanced Error Handling: Better user-facing error messages

📊 Estimated Timeline

  • Week 1: Claude API integration and core TypeScript fixes
  • Week 2: Test stabilization and configuration cleanup
  • Week 3: Documentation updates and final testing
  • Release Target: 3-4 weeks from Alpha 57

🔄 Migration from Alpha 57

Users upgrading from Alpha 57 to Alpha 58 will get:

  • Working Claude API features that were previously just configuration placeholders
  • Faster, more reliable builds with clean TypeScript compilation
  • Cleaner configuration with only functional options
  • Better development experience with stable tests and clear documentation

📝 Notes

  • This roadmap focuses on making existing features actually work rather than adding new ones
  • Priority is on reliability and honesty - features either work correctly or are removed
  • Alpha 58 should be the first "production-ready" alpha with fully functional core features