refactor: Archive experimental LLM features for MVP stability (Phase 1.1)
Moved experimental LLM integration code to optimization_engine/future/: - llm_optimization_runner.py - Runtime LLM API runner - llm_workflow_analyzer.py - Workflow analysis - inline_code_generator.py - Auto-generate calculations - hook_generator.py - Auto-generate hooks - report_generator.py - LLM report generation - extractor_orchestrator.py - Extractor orchestration Added comprehensive optimization_engine/future/README.md explaining: - MVP LLM strategy (Claude Code skills, not runtime LLM) - Why files were archived - When to revisit post-MVP - Production architecture reference Production runner confirmed: optimization_engine/runner.py is sole active runner. This establishes clear separation between: - Production code (stable, no runtime LLM dependencies) - Experimental code (archived for post-MVP exploration) Part of Phase 1: Core Stabilization & Organization for MVP Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
165
DEVELOPMENT.md
165
DEVELOPMENT.md
@@ -1,14 +1,13 @@
|
||||
# Atomizer Development Status
|
||||
# Atomizer Development Guide
|
||||
|
||||
> Tactical development tracking - What's done, what's next, what needs work
|
||||
**Last Updated**: 2025-11-21
|
||||
**Current Phase**: Phase 3.2 - Integration Sprint + Documentation
|
||||
**Status**: 🟢 Core Complete (100%) | ✅ Protocols 10/11/13 Active (100%) | 🎯 Dashboard Live (95%) | 📚 Documentation Reorganized
|
||||
|
||||
**Last Updated**: 2025-11-17
|
||||
**Current Phase**: Phase 3.2 - Integration Sprint
|
||||
**Status**: 🟢 Phase 1 Complete | ✅ Phases 2.5-3.1 Built (85%) | 🎯 Phase 3.2 Integration TOP PRIORITY
|
||||
|
||||
📘 **Strategic Direction**: See [DEVELOPMENT_GUIDANCE.md](DEVELOPMENT_GUIDANCE.md) for comprehensive status, priorities, and development strategy.
|
||||
|
||||
📘 **Long-Term Vision**: See [DEVELOPMENT_ROADMAP.md](DEVELOPMENT_ROADMAP.md) for the complete roadmap.
|
||||
📘 **Quick Links**:
|
||||
- [Protocol Specifications](docs/PROTOCOLS.md) - All active protocols consolidated
|
||||
- [Documentation Index](docs/00_INDEX.md) - Complete documentation navigation
|
||||
- [README](README.md) - Project overview and quick start
|
||||
|
||||
---
|
||||
|
||||
@@ -131,6 +130,85 @@
|
||||
|
||||
## Completed Features
|
||||
|
||||
### ✅ Live Dashboard System (Completed 2025-11-21)
|
||||
|
||||
#### Backend (FastAPI + WebSocket)
|
||||
- [x] **FastAPI Backend** ([atomizer-dashboard/backend/](atomizer-dashboard/backend/))
|
||||
- REST API endpoints for study management
|
||||
- WebSocket streaming with file watching (Watchdog)
|
||||
- Real-time updates (<100ms latency)
|
||||
- CORS configured for local development
|
||||
|
||||
- [x] **REST API Endpoints** ([backend/api/routes/optimization.py](atomizer-dashboard/backend/api/routes/optimization.py))
|
||||
- `GET /api/optimization/studies` - List all studies
|
||||
- `GET /api/optimization/studies/{id}/status` - Get study status
|
||||
- `GET /api/optimization/studies/{id}/history` - Get trial history
|
||||
- `GET /api/optimization/studies/{id}/pruning` - Get pruning diagnostics
|
||||
|
||||
- [x] **WebSocket Streaming** ([backend/api/websocket/optimization_stream.py](atomizer-dashboard/backend/api/websocket/optimization_stream.py))
|
||||
- File watching on `optimization_history_incremental.json`
|
||||
- Real-time trial updates via WebSocket
|
||||
- Pruning alerts and progress updates
|
||||
- Automatic observer lifecycle management
|
||||
|
||||
#### Frontend (HTML + Chart.js)
|
||||
- [x] **Enhanced Live Dashboard** ([atomizer-dashboard/dashboard-enhanced.html](atomizer-dashboard/dashboard-enhanced.html))
|
||||
- Real-time WebSocket updates
|
||||
- Interactive convergence chart (Chart.js)
|
||||
- Parameter space scatter plot
|
||||
- Pruning alerts (toast notifications)
|
||||
- Data export (JSON/CSV)
|
||||
- Study auto-discovery and selection
|
||||
- Metric dashboard (trials, best value, pruned count)
|
||||
|
||||
#### React Frontend (In Progress)
|
||||
- [x] **Project Configuration** ([atomizer-dashboard/frontend/](atomizer-dashboard/frontend/))
|
||||
- React 18 + Vite 5 + TypeScript 5.2
|
||||
- TailwindCSS 3.3 for styling
|
||||
- Recharts 2.10 for charts
|
||||
- Complete build configuration
|
||||
|
||||
- [x] **TypeScript Types** ([frontend/src/types/](atomizer-dashboard/frontend/src/types/))
|
||||
- Complete type definitions for API data
|
||||
- WebSocket message types
|
||||
- Chart data structures
|
||||
|
||||
- [x] **Custom Hooks** ([frontend/src/hooks/useWebSocket.ts](atomizer-dashboard/frontend/src/hooks/useWebSocket.ts))
|
||||
- WebSocket connection management
|
||||
- Auto-reconnection with exponential backoff
|
||||
- Type-safe message routing
|
||||
|
||||
- [x] **Reusable Components** ([frontend/src/components/](atomizer-dashboard/frontend/src/components/))
|
||||
- Card, MetricCard, Badge, StudyCard components
|
||||
- TailwindCSS styling with dark theme
|
||||
|
||||
- [ ] **Dashboard Page** (Pending manual completion)
|
||||
- Need to run `npm install`
|
||||
- Create main.tsx, App.tsx, Dashboard.tsx
|
||||
- Integrate Recharts for charts
|
||||
- Test end-to-end
|
||||
|
||||
#### Documentation
|
||||
- [x] **Dashboard Master Plan** ([docs/DASHBOARD_MASTER_PLAN.md](docs/DASHBOARD_MASTER_PLAN.md))
|
||||
- Complete 3-page architecture (Configurator, Live Dashboard, Results Viewer)
|
||||
- Tech stack recommendations
|
||||
- Implementation phases
|
||||
|
||||
- [x] **Implementation Status** ([docs/DASHBOARD_IMPLEMENTATION_STATUS.md](docs/DASHBOARD_IMPLEMENTATION_STATUS.md))
|
||||
- Current progress tracking
|
||||
- Testing instructions
|
||||
- Next steps
|
||||
|
||||
- [x] **React Implementation Guide** ([docs/DASHBOARD_REACT_IMPLEMENTATION.md](docs/DASHBOARD_REACT_IMPLEMENTATION.md))
|
||||
- Complete templates for remaining components
|
||||
- Recharts integration examples
|
||||
- Troubleshooting guide
|
||||
|
||||
- [x] **Session Summary** ([docs/DASHBOARD_SESSION_SUMMARY.md](docs/DASHBOARD_SESSION_SUMMARY.md))
|
||||
- Features demonstrated
|
||||
- How to use the dashboard
|
||||
- Architecture explanation
|
||||
|
||||
### ✅ Phase 1: Plugin System & Infrastructure (Completed 2025-01-16)
|
||||
|
||||
#### Core Architecture
|
||||
@@ -206,7 +284,23 @@
|
||||
|
||||
## Active Development
|
||||
|
||||
### In Progress
|
||||
### In Progress - Dashboard (High Priority)
|
||||
- [x] Backend API complete (FastAPI + WebSocket)
|
||||
- [x] HTML dashboard with Chart.js complete
|
||||
- [x] React project structure and configuration complete
|
||||
- [ ] **Complete React frontend** (Awaiting manual npm install)
|
||||
- [ ] Run `npm install` in frontend directory
|
||||
- [ ] Create main.tsx and App.tsx
|
||||
- [ ] Create Dashboard.tsx with Recharts
|
||||
- [ ] Test end-to-end with live optimization
|
||||
|
||||
### Up Next - Dashboard (Next Session)
|
||||
- [ ] Study Configurator page (React)
|
||||
- [ ] Results Report Viewer page (React)
|
||||
- [ ] LLM chat interface integration (future)
|
||||
- [ ] Docker deployment configuration
|
||||
|
||||
### In Progress - Phase 3.2 Integration
|
||||
- [ ] Feature registry creation (Phase 2, Week 1)
|
||||
- [ ] Claude skill definition (Phase 2, Week 1)
|
||||
|
||||
@@ -256,15 +350,19 @@
|
||||
- ✅ Log file generation in correct locations
|
||||
- ✅ Hook execution at all lifecycle points
|
||||
- ✅ Path resolution across different script locations
|
||||
- ✅ **Dashboard backend** - REST API and WebSocket tested successfully
|
||||
- ✅ **HTML dashboard** - Live updates working with Chart.js
|
||||
- ⏳ **React dashboard** - Pending npm install and completion
|
||||
- ⏳ Resume functionality with config validation
|
||||
- ⏳ Dashboard integration with new plugin system
|
||||
|
||||
### Test Coverage
|
||||
- Hook manager: ~80% (core functionality tested)
|
||||
- Logging plugins: 100% (tested via integration tests)
|
||||
- Path resolution: 100% (tested in all scripts)
|
||||
- Result extractors: ~70% (basic tests exist)
|
||||
- Overall: ~60% estimated
|
||||
- **Dashboard backend**: ~90% (REST endpoints and WebSocket tested)
|
||||
- **Dashboard frontend**: ~60% (HTML version tested, React pending)
|
||||
- Overall: ~65% estimated
|
||||
|
||||
---
|
||||
|
||||
@@ -401,6 +499,21 @@
|
||||
|
||||
## Development Commands
|
||||
|
||||
### Running Dashboard
|
||||
```bash
|
||||
# Start backend server
|
||||
cd atomizer-dashboard/backend
|
||||
python -m uvicorn api.main:app --reload --host 0.0.0.0 --port 8000
|
||||
|
||||
# Access HTML dashboard (current)
|
||||
# Open browser: http://localhost:8000
|
||||
|
||||
# Start React frontend (when ready)
|
||||
cd atomizer-dashboard/frontend
|
||||
npm install # First time only
|
||||
npm run dev # Starts on http://localhost:3000
|
||||
```
|
||||
|
||||
### Running Tests
|
||||
```bash
|
||||
# Hook validation (3 trials, fast)
|
||||
@@ -450,8 +563,18 @@ git push origin main
|
||||
- [studies/README.md](studies/README.md) - Studies folder organization
|
||||
- [CHANGELOG.md](CHANGELOG.md) - Version history
|
||||
|
||||
### Dashboard Documentation
|
||||
- [docs/DASHBOARD_MASTER_PLAN.md](docs/DASHBOARD_MASTER_PLAN.md) - Complete architecture blueprint
|
||||
- [docs/DASHBOARD_IMPLEMENTATION_STATUS.md](docs/DASHBOARD_IMPLEMENTATION_STATUS.md) - Current progress
|
||||
- [docs/DASHBOARD_REACT_IMPLEMENTATION.md](docs/DASHBOARD_REACT_IMPLEMENTATION.md) - React implementation guide
|
||||
- [docs/DASHBOARD_SESSION_SUMMARY.md](docs/DASHBOARD_SESSION_SUMMARY.md) - Session summary
|
||||
- [atomizer-dashboard/README.md](atomizer-dashboard/README.md) - Dashboard quick start
|
||||
- [atomizer-dashboard/backend/README.md](atomizer-dashboard/backend/README.md) - Backend API docs
|
||||
- [atomizer-dashboard/frontend/README.md](atomizer-dashboard/frontend/README.md) - Frontend setup guide
|
||||
|
||||
### For Users
|
||||
- [README.md](README.md) - Project overview and quick start
|
||||
- [docs/INDEX.md](docs/INDEX.md) - Complete documentation index
|
||||
- [docs/](docs/) - Additional documentation
|
||||
|
||||
---
|
||||
@@ -475,6 +598,22 @@ git push origin main
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: 2025-01-16
|
||||
**Last Updated**: 2025-11-21
|
||||
**Maintained by**: Antoine Polvé (antoine@atomaste.com)
|
||||
**Repository**: [GitHub - Atomizer](https://github.com/yourusername/Atomizer)
|
||||
|
||||
---
|
||||
|
||||
## Recent Updates (November 21, 2025)
|
||||
|
||||
### Dashboard System Implementation ✅
|
||||
- **Backend**: FastAPI + WebSocket with real-time file watching complete
|
||||
- **HTML Dashboard**: Functional dashboard with Chart.js, data export, pruning alerts
|
||||
- **React Setup**: Complete project configuration, types, hooks, components
|
||||
- **Documentation**: 5 comprehensive markdown documents covering architecture, implementation, and usage
|
||||
|
||||
### Next Immediate Steps
|
||||
1. Run `npm install` in `atomizer-dashboard/frontend`
|
||||
2. Create `main.tsx`, `App.tsx`, and `Dashboard.tsx` using provided templates
|
||||
3. Test React dashboard with live optimization
|
||||
4. Build Study Configurator page (next major feature)
|
||||
|
||||
Reference in New Issue
Block a user