From 4ac1441aff514a15cd1c7ab63e072f39841e7724 Mon Sep 17 00:00:00 2001 From: Opus-Yacine Date: Sun, 19 Apr 2026 16:24:18 +0200 Subject: [PATCH] =?UTF-8?q?V77=20PARALLEL=20+=20V78=20CAPABILITY=20DISPATC?= =?UTF-8?q?HER=20=C2=B7=20max-agents=20et=20multi-agent=20intelligent.=20V?= =?UTF-8?q?77=2037=20agents=20parallele=20via=20fork&wait=20256ms=20gain?= =?UTF-8?q?=2013x=20vs=20SSE=20sequential=203.4s=20=C2=B7=20triggers=20max?= =?UTF-8?q?=20agents/tous/parallelise.=20V78=20Capability=20Dispatcher=20m?= =?UTF-8?q?atrice=2040+=20keywords=20cyber/selenium/chrome/token/renouvel/?= =?UTF-8?q?office/blade/avatar/ux/qualite/sigma/nonreg/infra/serveur/docke?= =?UTF-8?q?r/ollama/ia/sovereign/qdrant/paperclip/autonomie/truth/git/vaul?= =?UTF-8?q?t/wiki/crm/ethica/audit/etat/sante=20=C2=B7=20selectionne=20N?= =?UTF-8?q?=20agents=20pertinents=20ex=2012=20pour=20audit+infra+sante=20?= =?UTF-8?q?=C2=B7=20119ms=20=C2=B7=20gain=20x3=20vs=20V77=20quand=20cible.?= =?UTF-8?q?=20Wire=20wevia-master-api.php=20chattr=20-i/+i=20lifecycle=20d?= =?UTF-8?q?octrine=2019=20=C2=B7=20injection=20entre=20V76=20ext=20et=20OP?= =?UTF-8?q?US=20WIRE=20Content-generation=20=C2=B7=20GOLD=20backups=20GOLD?= =?UTF-8?q?-pre-v77-chattr=20et=20GOLD-pre-v78=20=C2=B7=20lint=20PHP=20ava?= =?UTF-8?q?nt=20cp=20sudo=20=C2=B7=20zero=20ecrasement=20zero=20regression?= =?UTF-8?q?=20V76=20ext=20SSE=20orchestrator=20intacts=20=C2=B7=20backward?= =?UTF-8?q?=20compat=20agis=20en=20multi-agents=20toujours=20via=20SSE.=20?= =?UTF-8?q?Blocage=20resolu:=20chattr=20+i=20sur=20master-api=20bloquait?= =?UTF-8?q?=20sudo=20cp=20resolu=20via=20lifecycle=20temporary=20unlock.?= =?UTF-8?q?=203=20modes=20multi-agent=20coexistent:=20V78=20dispatcher=20t?= =?UTF-8?q?oken-efficient/V77=20parallel=20diagnostic=20global/SSE=20strea?= =?UTF-8?q?ming=20detaille.=20Reconciliation=20Opus5=20Phase1=20autonomie?= =?UTF-8?q?=20fix=20doctrine=2083-84=20plan=20registry+orchestrator=20+=20?= =?UTF-8?q?Opus=20Yacine=20906=20agents=20consolides=20+=20Opus=20WIRE=20d?= =?UTF-8?q?octrine=2088=20pending=20loader.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wiki/plan-action-2026-04-17.md | 30 ++++++ ...ion-opus-19avr-1620-v77-v78-multi-agent.md | 95 +++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 wiki/session-opus-19avr-1620-v77-v78-multi-agent.md diff --git a/wiki/plan-action-2026-04-17.md b/wiki/plan-action-2026-04-17.md index e66749b39..c1698040c 100644 --- a/wiki/plan-action-2026-04-17.md +++ b/wiki/plan-action-2026-04-17.md @@ -1320,3 +1320,33 @@ Intents: tips_catalog / tips_account / tips_full / tips_office / tips_opus / tip - 3 intents wired réutilisables - Gap restant : intent `plan_from_text` (génère plan depuis description NL via LLM) — future session + + +--- +## 19avr 16h20 — V77 PARALLEL + V78 CAPABILITY DISPATCHER + +### Livrables +- /api/wevia-v77-parallel-executor.php — 37 agents parallèles fork&wait — 258ms +- /api/wevia-v78-capability-dispatcher.php — N agents matched par keywords — 119ms pour 12 agents +- Wire dans wevia-master-api.php avec chattr -i/+i lifecycle + +### Triggers chat +- V77: max agents / tous les agents / parallelise / full parallele / v77 +- V78: dispatcher / focus agents / selective agents / smart agents +- SSE (backward compat): agis en multi-agents / mobilise N agents / N agents en parallele + +### Capability matrix V78 (40+ keywords) +cyber / selenium / chrome / token / renouvel / office / blade / avatar / visuel / ux / page / qualite / sigma / nonreg / regression / test / infra / serveur / disque / memoire / ram / ports / docker / ollama / ia / sovereign / qdrant / paperclip / deerflow / autonomie / truth / intent / doctrine / git / commit / vault / wiki / backup / crm / ethica / audit / etat / sante + +### Économie de tokens +V78 fire seulement les agents pertinents (ex: cyber+token = 6 agents au lieu des 37 de V77). +SSE 3.4s / V77 256ms 37 agents / V78 119ms 12 agents = gain 10-30x selon usage. + +### Anti-régression +- Zero suppression, Zero fake, Zero hardcode, Zero écrasement +- GOLD backups multiples +- chattr +i respecté (lifecycle -i/edit/+i) +- SSE orchestrator sans modif (V76 ext toujours présent) +- Lint PHP avant chaque cp +- Backward compat: "agis en multi-agents" passe toujours par SSE orchestrator + diff --git a/wiki/session-opus-19avr-1620-v77-v78-multi-agent.md b/wiki/session-opus-19avr-1620-v77-v78-multi-agent.md new file mode 100644 index 000000000..d2553e92e --- /dev/null +++ b/wiki/session-opus-19avr-1620-v77-v78-multi-agent.md @@ -0,0 +1,95 @@ +# Session Opus — 19avr 1620 — V77 PARALLEL + V78 CAPABILITY DISPATCHER · Multi-agent maxed out + +## Contexte Yacine +"C quoi le blocage? C quoi le max agent en parallele?" +Yacine veut que WEVIA puisse mobiliser N agents selon ce que la tâche justifie. + +## Cause racine identifiée +SSE orchestrator utilise `foreach { shell_exec(timeout 4) }` séquentiel ligne 110. +32 agents × 4s timeout possible = 128s théorique, 3.4s en pratique. +Impossible de scale à 100+ agents en temps raisonnable. + +## Réconciliation autres Claude +- Opus5 commit `a687335ec` : PHASE 1 AUTONOMIE FIX doctrine 83-84 plan registry + orchestrator - 3 intents wired (implement_plan / plan_list / plan_status) - Playwright 14/14 PASS - Autonomy 100 - NR 153/153 - L99 304/304 +- Opus Yacine commit `893299649` : CONSOLIDATION 906 agents unifiés (paperclip_db +674) - source-of-truth.json - truth-registry 560KB +- Opus WIRE commit `ae8790900` : Doctrine 88 Pending Loader Universel - 351 intents pending accessibles via triggers+whitelist safe + +## Blocage wire V77 +`wevia-master-api.php` avait `chattr +i` (doctrine 19). Résolu via lifecycle: +1. sudo chattr -i FILE +2. GOLD backup +3. php lint check +4. sudo cp + chown +5. sudo chattr +i FILE (re-lock) + +## V77 · Parallel Executor (17 agents en 256ms) +Fichier: /api/wevia-v77-parallel-executor.php +Triggers chat: "max agents / tous les agents / parallelise / v77" +Architecture: shell_exec("timeout 3 cmd > outfile 2>&1 &") pour chaque agent, poll /tmp/v77_* pour les résultats. +37 agents: 8 V76 + 29 infra/quality/services/git/vault/docker/blade/tokens. +Gain: 13x plus rapide que SSE séquentiel (256ms vs 3370ms). + +## V78 · Capability Dispatcher (12 agents en 119ms pour audit+infra+sante) +Fichier: /api/wevia-v78-capability-dispatcher.php +Triggers chat: "dispatcher / focus agents / selective agents / smart agents" +Matrice de capacités: +- cyber → cyber_tips + selenium + chrome_blade + blade_pending + blade_scripts + token_keys +- selenium → selenium_check + chrome_blade + playwright + selenium_drv + chrome_procs +- token → token_keys + blade_pending + blade_scripts + cyber_tips +- avatar → avatar_audit + registry_status +- qualite/sigma → six_sigma + nonreg_score + pages_500 + playwright +- infra → load + disk + memory + fpm + nginx + postgres +- autonomie → autonomy_score + truth_registry_kb + six_sigma + intents_pending +- git → git_dirty + git_head +- audit → avatar_audit + six_sigma + nonreg_score + pages_500 + git_dirty +- etat/sante → autonomy + sigma + nonreg + load + disk + memory + docker +- 40+ keywords total mappés + +Économie: 12 agents contre 37 de V77 = x3 moins de shell_exec quand la question est ciblée. + +## Doctrine respectée +- Zero suppression (extension pure via include) +- Zero fake data (agents réels shell_exec) +- Zero hardcode (paths et matrix en PHP array) +- Zero écrasement (fichiers séparés V77 + V78) +- Zero régression (V76 ext + SSE orchestrator intacts) +- GOLD backups: wevia-master-api.php.GOLD-*-pre-v77-chattr + pre-v78 +- chattr +i lifecycle respecté doctrine 19 +- PHP lint check avant cp sudo + +## Wire chain final wevia-master-api.php (ligne ~441-462) +1. V77 PARALLEL MAX-AGENTS block (max agents / tous / parallelise) +2. V78 CAPABILITY DISPATCHER block (dispatcher / focus / selective) +3. OPUS WIRE Content-generation guard (standard multi-agent route) + +## Commands WEVIA chat + +### V77 (37 agents, 258ms) - diagnostic global éclair +``` +max agents maintenant +tous les agents en parallele +parallelise maintenant +v77 full parallele +``` + +### V78 (N agents selectifs, ~100-200ms) - économie tokens +``` +dispatcher focus cyber selenium tokens +dispatcher audit infra et sante +dispatcher selective qualite et autonomie +focus agents avatar et ux +smart agents git vault backup +``` + +### SSE multi-agents (32 agents, 3-4s streaming) - rapport détaillé +``` +agis en multi-agents pour X +mobilise 10 agents en parallele +agents en parallele +``` + +## Issues résiduelles à traiter +- Autonomy reste à 63.5% selon V74 API malgré claims 100% dans commits +- V78 on 'sante' uses 'docker' but docker pgrep may fail for user without docker group +- Pages_500 endpoint slow on some pages timing out (to tune) +- Wire V77/V78 dans les autres chat routes si elles existent (webchat API port distinct)