5.3 KiB
Session Opus5 17avr 17h43 — P1 DEEPSEEK LIVRÉS (doctrines 73-74-75)
Contexte
Yanis demande plan P1 DeepSeek : plugin store autodiscover + n8n workflow generator + knowledge graph.
WEVIA chat multi-agents → plante pareil (audit 24 agents au lieu d'implémentation). Même cause racine qu'avant : WEVIA ne sait pas décomposer un plan multi-étapes en tâches.
Opus intervient comme Yacine technique, via chat WEVIA, zéro manuel, zéro écrasement.
Conflits détectés (autres Claude)
- V26/V27 (autre Claude) doctrines 71 (ops-screens-real) + 72 (renum conflict) — commits
736f2a43,ad0917e5,1aac0d62dans les 15 dernières min - Mes doctrines partent de 73 pour éviter collision
- Pas de fichiers écrasés
Livrables P1
1. Plugin Store autodiscovery — Doctrine 73
/api/opus5-plugin-store.php
- Actions:
discover,list,enable,disable,run - Scan
/opt/weval-plugins/→ manifest.json lecture - Registry auto-écrit
/api/wevia-plugin-registry.json - Plugins existants enrichis avec manifest (enrichissement, pas écrasement)
ethica-quick-stats+example-ethica-alertdésormais listés et enabled
2. n8n Workflow Generator — Doctrine 74
/api/opus5-n8n-generator.php
- Actions:
health,generate,list - NER regex patterns → nodes n8n (email/sms/mattermost/twenty/http/wait/postgres)
- Workflow JSON n8n valide généré (nodes + connections + manual trigger)
- Sauvé dans
/var/lib/wevia/n8n-workflows/ - Import hint:
docker exec -i n8n-docker-n8n-1 n8n import:workflow --input=- - n8n endpoint 5678 health confirmed
3. Knowledge Graph souverain — Doctrine 75
/api/opus5-knowledge-graph.php
- Actions:
health,init,add_node,add_edge,query,stats - Stack souverain 0€ : Ollama port 11434 (nomic-embed-text 768-dim) + Qdrant
wevia_graph+ PGadmin.wevia_graph_edges - Pas de Zep externe (non souverain)
- Init auto : collection Qdrant créée + table PG créée
- Query sémantique avec score cosinus + fetch related edges automatique
Validation Playwright 12/12 PASS
| Test | Résultat |
|---|---|
| plugin_discover | ✅ 2 plugins |
| plugin_list | ✅ all have manifest |
| n8n_health | ✅ n8n UP port 5678 |
| n8n_generate | ✅ 3 nodes générés |
| n8n_list | ✅ 2 workflows saved |
| kg_health | ✅ ollama+qdrant+pg all UP |
| kg_stats | ✅ 3 points + 2 edges |
| kg_query_semantic | ✅ "client pharma" → ethica_pharma score 0.642 |
| dispatch_plugin_list | ✅ 21ms |
| dispatch_workflow_n8n | ✅ 20ms |
| dispatch_graph_stats | ✅ 43ms |
| nonreg_stable | ✅ 153/153 |
Test sémantique KG
Query "qui est le client pharma au maghreb" → résultats ordonnés :
ethica_pharmascore 0.6835 ✅ (correct top)kaouther_najarscore 0.6672weval_consultingscore 0.6412
Related edges auto-fetched pour top node :
weval_consulting --provides_services_to--> ethica_pharmakaouther_najar --works_at--> ethica_pharma
Correction userMemory
Ollama port = 11434 (pas 11435 comme la memory indiquait). Corrigé dans KG.
3 intents WEVIA wired via chat
plugin list/plugin store/plugins dispo/plugin discover→ plugin_store_list (21ms)n8n workflow/workflow list/workflow n8n→ n8n_workflow_list (20ms)graph stats/knowledge graph/kg stats→ knowledge_graph_stats (43ms)
Cause racine autonomie WEVIA (documentée)
Problème identifié session 1530 : WEVIA multi-agents route vers audit au lieu d'implémentation. Cause : classification intention manquante pour actions "implémente", "installe", "développe".
Solution v3 proposée (pour session future) : ajouter intent meta implement_plan dans fast-path-v3 qui décompose requête multi-étapes et dispatch vers task-stream async.
Fichiers créés
/api/opus5-plugin-store.php(doctrine 73)/api/opus5-n8n-generator.php(doctrine 74)/api/opus5-knowledge-graph.php(doctrine 75)/api/wevia-plugin-registry.json(auto-écrit)/opt/weval-plugins/ethica-quick-stats/manifest.json(enrichi)/opt/weval-plugins/example-ethica-alert/manifest.json(enrichi)/var/lib/wevia/n8n-workflows/WEVIA_generated_*.json(×2 test)
Tables/Collections créées
- Qdrant collection
wevia_graph(768 dim, Cosine) — 17ème collection - PG table
admin.wevia_graph_edges(id, src_node, rel_type, dst_node, weight, metadata)
NE PAS écraser (autres Claude)
- Les 3 endpoints opus5-plugin-store / opus5-n8n-generator / opus5-knowledge-graph
- Les intents plugin_store_list / n8n_workflow_list / knowledge_graph_stats
- Qdrant collection
wevia_graph - PG table
admin.wevia_graph_edges /opt/weval-plugins/*/manifest.json— enrichissement, pas écrasement
Métriques finales
- NR 153/153 ✅
- L99 304/304 ✅
- Playwright 12/12 PASS (100%)
- 3 doctrines créées (73-74-75)
- 3 intents wired via chat WEVIA
- Zéro régression, zéro écrasement, zéro fake data, zéro hardcode
- UX premium : dispatch 20-43ms
- Zéro nouvelle dépendance (Redis+PG+Qdrant+Ollama tous déjà présents)
Doctrines session totales
73 — plugin store autodiscovery (manifest.json + enable/disable/run) 74 — n8n workflow generator (NER-based de description texte) 75 — knowledge graph souverain (Ollama embed + Qdrant + PG edges)