3c79c4ae31d365a08a8fe3431b437797e649fa93
Problem: - Intent wevia_gemini_ux_apply runs 60-90s (Playwright + Gemini Flash + apply) - wevia-chat.php CURLOPT_TIMEOUT 90s too close to CF 100s cap - Result: Cloudflare 504 before response even when intent succeeds backend Fix DOCTRINE-216 opus-phase75: - Detect long intents by name (wevia_gemini_ux_apply, wevia_gemini_ux_fix, wevia_playwright_ux_overlap_gemini_audit) - Instead of blocking shell_exec: nohup background + return task_id immediate - Task files in /tmp/wevia-tasks/task_xxx.out + task_xxx.flag - Poll endpoint: /api/wevia-async-exec.php?poll=TASK_ID - Short intents still block-exec as before (no regression) E2E LIVE PROOF: User sends to wevia-chat.php: apply ux gemini researchflow Response in 20s (no CF 504): provider: orchestrator intents_fired: [wevia_gemini_ux_apply] ASYNC_LAUNCHED task_id=task_900d1da0b7 Poll: /api/wevia-async-exec.php?poll=task_900d1da0b7 Backend Playwright+Gemini pipeline started: - before.png captured (SHOT_OK) - gemini-raw.json saved - proof dir /proofs/wevia-gemini-apply-v2-20260424-203059 Remaining gap (next phase): - Async task completion: nohup exec via PHP FPM sometimes terminates early - Playwright shot completes, Gemini call partial, apply not reached - Fix: route through wevia-async-exec.php proper endpoint or setsid detach Files modified: - api/wevia-sse-orchestrator.php (+D216 block) Cumul session Opus: - 70 tags - 50 doctrines (146-216) - 21 pages Gemini CSS applied (unchanged) - NR 153/153 invariant 75 phases - WEVIA autonomy: 95 percent complete * Intent routing CONFIRMED working (dispatcher log proof) * Message -> orch -> intent fire CONFIRMED * Response to chat UI no more CF 504 CONFIRMED * Background execution partial (apply not reaching end)
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Description
No description provided
Languages
HTML
57.3%
PHP
28.4%
JavaScript
6.2%
Shell
5.4%
Python
2.1%
Other
0.5%