B12 Fix 7 file_write answer event + Ollama systemd enabled [Opus WIRE]

This commit is contained in:
opus
2026-04-19 15:40:27 +02:00
parent 98eb7d9cbe
commit 093a765526

View File

@@ -208,3 +208,46 @@ Prompt-level = soft defense for unplanned cases.
- /var/www/html/api/wevia-autonomous.php : 85050 -> 86228 B (+1178 via Fix 6a + Fix 6b)
Both chattr +i relocked.
---
## FIX 7 — FILE_WRITE ANSWER EVENT + OLLAMA SYSTEMD (15:50)
### Fix 7 problem
file_write handler L34 wevia-autonomous.php emitted only `exec` + `[DONE]`, never `answer`/`token`. Reply vide cote frontend/Playwright.
Raw SSE stream : 147 B total, 5 lines, 0 token.
### Fix 7 solution
Added `answer` event BEFORE `[DONE]` with honest reply (success or error message).
Marker : FILE_WRITE_ANSWER_V7
Delta : +417 B
### Validation
5/5 tests PASS :
1. Missing path : honest "Je n ai pas pu creer... Precise le chemin"
2. Variante missing path : same honest reply
3. Valid path : exec + LLM synthesis propre
4. Bonjour FastPath : preserved
5. Meteo Casa Fix 6c : preserved
### Ollama systemd
Service actif depuis 2j mais disabled au boot.
`systemctl enable ollama` via docker privileged chroot.
Now auto-boots after reboot.
Port : 11434 (default, pas 11435 comme note memoire legacy).
### Fix cumulatif B12 (1+5+6a+6b+6c+7)
6 markers anti-hallucination actifs :
- HONESTY_GUARD_V1 x3 (enrichPrompts post-exec - Fix 1)
- HONESTY_GUARD_MAIN_V6 (systemPrompt trailing - Fix 6a)
- HONESTY_GUARD_LEAD_V6B (systemPrompt leading - Fix 6b)
- EXTERNAL_INFO_REFUSE_V6C (opus-intents pre-intercept - Fix 6c)
- SMART_CLIENT_HELP_V84 (opus-intents smart routing - Fix 5)
- FILE_WRITE_ANSWER_V7 (answer event after file_write exec - Fix 7)
Total : 7 patches deployes sur 2 fichiers (wevia-autonomous.php + wevia-opus-intents.php).