78 lines
1.8 KiB
Markdown
78 lines
1.8 KiB
Markdown
# ✅ Correction Détection de Workflows - TERMINÉ
|
|
|
|
**Date** : 18 novembre 2025
|
|
**Statut** : ✅ Validé en production
|
|
|
|
---
|
|
|
|
## 🐛 Bugs Corrigés
|
|
|
|
1. **VisionAnalysis** : `self.llm_manager` → `self.llm` + gestion d'erreur
|
|
2. **SessionManager** : Intégré dans Orchestrator, événements passés automatiquement
|
|
3. **WorkflowDetector** : Intégré avec méthode `analyze_session()`, groupement par fenêtre
|
|
4. **Persistence** : Workflows sauvegardés en JSON dans `data/user_profiles/workflows/`
|
|
5. **Détection fenêtre** : Installation de `xdotool` pour détection fiable
|
|
|
|
---
|
|
|
|
## 📊 Résultats Tests
|
|
|
|
**Test Calculatrice (10 répétitions)** :
|
|
- ✅ 3 workflows détectés et sauvegardés
|
|
- ✅ 3-11 répétitions par workflow
|
|
- ✅ 95-100% de confiance
|
|
- ✅ Séquences de 3-6 étapes
|
|
|
|
**Fichiers modifiés** :
|
|
- `geniusia2/core/vision_analysis.py`
|
|
- `geniusia2/core/orchestrator.py`
|
|
- `geniusia2/core/event_capture.py`
|
|
- `geniusia2/core/session_manager.py`
|
|
- `geniusia2/core/workflow_detector.py`
|
|
- `geniusia2/core/suggestion_manager.py`
|
|
|
|
---
|
|
|
|
## 🛠️ Outils Créés
|
|
|
|
- `monitor_workflows.sh` : Monitoring temps réel
|
|
- `check_workflows.sh` : Vérification workflows sauvegardés
|
|
- `run_headless.sh` : Lancement avec GUI minimisée
|
|
- `test_workflow_fix.py` : Tests d'intégration
|
|
|
|
---
|
|
|
|
## 🚀 Utilisation
|
|
|
|
```bash
|
|
# Lancer en mode Shadow
|
|
cd geniusia2
|
|
./run.sh --mode shadow
|
|
|
|
# Vérifier les workflows
|
|
./check_workflows.sh
|
|
|
|
# Monitoring temps réel
|
|
./monitor_workflows.sh
|
|
```
|
|
|
|
---
|
|
|
|
## 📝 Configuration
|
|
|
|
```python
|
|
{
|
|
"workflow": {
|
|
"min_repetitions": 3,
|
|
"similarity_threshold": 0.75,
|
|
"min_workflow_length": 3,
|
|
"session_timeout": 300
|
|
}
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
**Validation** : ✅ Système opérationnel
|
|
**Prochaine étape** : Mode Assisté avec suggestions proactives
|