Files
html/api
Opus 36fc9445e0 phase73-74 doctrine 211-215 WEVIA autonomy E2E chain fix (CONFIRMED LIVE)
Root cause chain definitively identified and fixed:

1. DOCTRINE-211 (wevia-chat.php): Route 2 was always routing to public orchestrator
   - Fix: detect admin triggers apply/gemini/ux in message
   - Route to internal orchestrator when admin trigger matches
   - Preserves public-only behavior for widget

2. DOCTRINE-212 (wevia-chat.php): Parser missed type=exec events from internal
   - Public orch emits type=exec_result (old format)
   - Internal orch emits type=exec with intent field (new format)
   - Fix: parse both; treat type=exec with text as intent execution result

3. DOCTRINE-213 (wevia-chat.php): has_business_keyword regex missed admin verbs
   - Added apply/gemini/ux/audit/review/refais/applique to whitelist
   - Now orchestrator response triggers business response path

4. DOCTRINE-214 (wevia-chat.php): 12s timeout too short for long intents
   - Gemini apply takes 60-90s (Playwright shot + Gemini vision + apply)
   - Fix: 90s timeout for internal orch, keeps 12s for public

5. DOCTRINE-215 (wevia-sse-orchestrator.php): shell_exec did not inject MSG env
   - Intent cmd references  to extract page name from message
   - Without env var: extraction fails, defaults to weval-technology-platform
   - Fix: inject MSG=escapeshellarg before shell_exec; wrap cmd in bash -c
   - Also bump timeout 15s -> 90s per intent exec

LIVE PROOF (dispatcher log):
18:08:25 MATCH intent=wevia_gemini_ux_apply trg=gemini ux apply msg=apply ux gemini projectflow
18:09:28 MATCH intent=wevia_gemini_ux_apply trg=gemini ux apply msg=apply ux gemini datainsight

Intent fires correctly when routed to internal orchestrator.
Chat chain: user msg -> wevia-chat.php Route 2 -> internal orch -> dispatcher -> intent exec

REMAINING GAP:
- Cloudflare 504 at 100s timeout sync response
- Gemini apply takes 60-90s in backend
- Solution phase 76: async mode (return 202 + SSE poll + background exec)

Files modified:
- api/wevia-chat.php (4 patches D211-214)
- api/wevia-sse-orchestrator.php (2 patches D215 + previous D207/D208)
- api/wevia-stub-priority-sort.php (helper created phase 72)

GOLD backups preserved in vault-gold/opus/

Cumul session Opus:
- 69 tags (phase 75 included)
- 49 doctrines (146-215)
- 428 pages UX doctrine 60
- 21 pages Gemini premium CSS APPLIED
- NR 153/153 invariant 75 phases
- WEVIA autonomy gap: CLOSED except async response
2026-04-24 20:29:44 +02:00
..
2026-04-24 01:35:02 +02:00
2026-04-23 04:20:03 +02:00
2026-04-23 21:45:04 +02:00
2026-04-24 09:00:13 +02:00
2026-04-24 03:05:04 +02:00
2026-04-22 05:05:02 +02:00
2026-04-22 05:05:02 +02:00
2026-04-22 04:40:03 +02:00
2026-04-22 17:25:03 +02:00
2026-04-22 11:00:03 +02:00
2026-04-22 10:50:03 +02:00
2026-04-22 10:40:02 +02:00
2026-04-22 17:05:02 +02:00
2026-04-22 04:15:03 +02:00
2026-04-22 04:35:03 +02:00
2026-04-22 05:30:05 +02:00
2026-04-22 10:45:02 +02:00
2026-04-22 11:00:03 +02:00
2026-04-22 11:00:03 +02:00
2026-04-22 11:00:03 +02:00
2026-04-22 05:05:02 +02:00
2026-04-22 10:40:02 +02:00
2026-04-22 10:40:02 +02:00
2026-04-22 05:05:02 +02:00
2026-04-22 05:05:02 +02:00
2026-04-22 11:05:01 +02:00
2026-04-22 04:40:03 +02:00
2026-04-22 04:10:03 +02:00
2026-04-22 04:10:03 +02:00
2026-04-22 04:15:03 +02:00
2026-04-22 04:25:04 +02:00
2026-04-22 04:25:04 +02:00
2026-04-22 04:40:03 +02:00
2026-04-22 04:55:03 +02:00
2026-04-22 05:15:03 +02:00
2026-04-22 05:25:03 +02:00
2026-04-22 10:40:02 +02:00
2026-04-22 10:45:02 +02:00
2026-04-22 10:50:03 +02:00
2026-04-22 10:50:03 +02:00
2026-04-22 10:55:02 +02:00
2026-04-22 11:10:03 +02:00
2026-04-22 11:10:03 +02:00
2026-04-22 11:00:03 +02:00
2026-04-22 05:05:02 +02:00
V162 V162.1 V162.2 Opus NL anti-hallucination multi-agent broadened patterns - Yacine demande WEVIA Master tous chats langage naturel sans hallucination + multi-agent MAX parallel + pattern Plan-Execute - cause racine doctrine 4 honnete test comment va le systeme aujourd hui matched wrong intent wevia_time_date because V103 master-api pattern required le ou les between va et systeme - aujourd hui trigger from time_date stub captured before multi-agent fired - orchestrator V162.1 had unicode escape u2019 INVALID in PHP regex preg_match returned false silently is_multi false LLM single mode instead multi-agent - V162 master-api 3 new NL patterns comment va systeme wevia infra avec ou sans le sante status state etat global quest-ce qui se passe how is it going quoi de neuf - V162.1 orchestrator same triggers but had unicode bug - V162.2 regex-safe removed u2019 replaced ASCII apostrophe optional plus added comment va vont le la les optionnel syst infra wevia flexible - resultat avant 1 sur 8 maintenant 5 sur 8 = 400 percent improvement - GOLD vault v162 v162-1 - chattr discipline - php lint clean - NR 153 sur 153 preserved L99 153 sur 153 preserved - claude pattern Plan-Execute deja en place via ambre-claude-pattern-sse 7 phases thinking plan rag execute test critique result + claude-pattern-api JSON 5 chatbots - autres claudes V164 V165 thinking panel toggle 7 sur 7 PW convergence sans collision - doctrines 1 scan exhaustif autres claudes 3 GOLD 4 honnete vraies sources 13 CAUSE RACINE PHP regex unicode escape bug 14 zero ecrasement additif uniquement 16 zero regression - wiki /opt/weval-ops/wiki/v162-nl-anti-hallucination
2026-04-22 04:36:12 +02:00
2026-04-22 11:00:03 +02:00
2026-04-22 04:55:03 +02:00
2026-04-22 11:05:01 +02:00
2026-04-22 11:05:01 +02:00
2026-04-22 11:05:01 +02:00
2026-04-22 17:05:02 +02:00
2026-04-22 10:40:02 +02:00
2026-04-22 04:45:03 +02:00
2026-04-22 04:30:07 +02:00
2026-04-22 04:25:04 +02:00
2026-04-22 04:55:03 +02:00
2026-04-22 10:50:03 +02:00
2026-04-22 10:50:03 +02:00
2026-04-22 04:40:03 +02:00
2026-04-22 05:00:04 +02:00
2026-04-23 03:40:06 +02:00
2026-04-24 01:50:03 +02:00
2026-04-23 22:10:02 +02:00
2026-04-23 22:00:05 +02:00
2026-04-23 22:00:05 +02:00
2026-04-24 02:50:03 +02:00
2026-04-24 03:20:06 +02:00
2026-04-23 21:12:35 +02:00
2026-04-24 00:05:03 +02:00
2026-04-24 00:05:03 +02:00
2026-04-24 00:05:03 +02:00
2026-04-23 21:35:02 +02:00
2026-04-22 13:25:01 +02:00
2026-04-23 20:45:03 +02:00
2026-04-23 05:15:01 +02:00
2026-04-23 04:20:03 +02:00
2026-04-24 03:20:06 +02:00
2026-04-23 22:40:03 +02:00
2026-04-23 04:15:02 +02:00
2026-04-22 04:30:07 +02:00
2026-04-23 01:25:02 +02:00
2026-04-23 22:40:03 +02:00
2026-04-23 04:15:02 +02:00
2026-04-22 21:00:07 +02:00
2026-04-23 21:35:02 +02:00
2026-04-23 21:55:04 +02:00
2026-04-23 22:10:02 +02:00
2026-04-23 22:25:02 +02:00
2026-04-23 21:45:04 +02:00
2026-04-24 04:20:06 +02:00
2026-04-22 04:35:03 +02:00
2026-04-22 04:35:03 +02:00
V162 V162.1 V162.2 Opus NL anti-hallucination multi-agent broadened patterns - Yacine demande WEVIA Master tous chats langage naturel sans hallucination + multi-agent MAX parallel + pattern Plan-Execute - cause racine doctrine 4 honnete test comment va le systeme aujourd hui matched wrong intent wevia_time_date because V103 master-api pattern required le ou les between va et systeme - aujourd hui trigger from time_date stub captured before multi-agent fired - orchestrator V162.1 had unicode escape u2019 INVALID in PHP regex preg_match returned false silently is_multi false LLM single mode instead multi-agent - V162 master-api 3 new NL patterns comment va systeme wevia infra avec ou sans le sante status state etat global quest-ce qui se passe how is it going quoi de neuf - V162.1 orchestrator same triggers but had unicode bug - V162.2 regex-safe removed u2019 replaced ASCII apostrophe optional plus added comment va vont le la les optionnel syst infra wevia flexible - resultat avant 1 sur 8 maintenant 5 sur 8 = 400 percent improvement - GOLD vault v162 v162-1 - chattr discipline - php lint clean - NR 153 sur 153 preserved L99 153 sur 153 preserved - claude pattern Plan-Execute deja en place via ambre-claude-pattern-sse 7 phases thinking plan rag execute test critique result + claude-pattern-api JSON 5 chatbots - autres claudes V164 V165 thinking panel toggle 7 sur 7 PW convergence sans collision - doctrines 1 scan exhaustif autres claudes 3 GOLD 4 honnete vraies sources 13 CAUSE RACINE PHP regex unicode escape bug 14 zero ecrasement additif uniquement 16 zero regression - wiki /opt/weval-ops/wiki/v162-nl-anti-hallucination
2026-04-22 04:36:12 +02:00
2026-04-22 05:02:17 +02:00
2026-04-22 05:15:03 +02:00
2026-04-24 03:00:11 +02:00
2026-04-24 03:00:11 +02:00
2026-04-24 03:20:06 +02:00
2026-04-23 22:10:02 +02:00
2026-04-24 03:20:06 +02:00
2026-04-24 01:35:02 +02:00
2026-04-22 21:35:02 +02:00
2026-04-23 21:55:04 +02:00
2026-04-23 23:45:03 +02:00
2026-04-23 21:45:04 +02:00
2026-04-23 22:55:02 +02:00
2026-04-23 21:35:02 +02:00
2026-04-24 03:00:11 +02:00
2026-04-24 01:35:02 +02:00
2026-04-24 03:20:06 +02:00
2026-04-23 23:25:04 +02:00