4.4 KiB
4.4 KiB
Session Opus V96.2 · 19avr 20h38 · ERP Gap Scanner 3-sources D+C+B complet
Contexte
Screenshot pain-points-atlas : 15+ ERPs à 0 gap, incohérent. User demande enrichissement + scan récurrent auto.
Phase 1 — Enrichissement immédiat V66 (60 PPs)
- Fichier:
/api/wevia-v66-all-erps-painpoints.php - Pain points: 35 → 60 (+25 nouveaux PP036–PP060)
- ERPs couverts: 7 majeurs → 25/25
- Savings estimées: 17.36M€ → 23.1M€/an
- Agents uniques: 35 → 59
- GOLD:
.gold-19avr-v96-pre-25pps
Phase 2 — Scanner automatique 3-sources
D. LLM (Cerebras sovereign 0€)
- Script:
/api/scan-erp-gaps-llm.py - Provider: Cerebras-fast llama3.1-8b via port 4000
- Résultat: 79 gaps · 25/25 ERPs · 0.77 conf
- JSON parse fallback (fin tronquée → close array auto)
C. RSS (feedparser)
- Script:
/api/scan-erp-gaps-rss.py - 14 flux: Reddit r/ERP SAP NetSuite Dynamics365 salesforce Workday Odoo + CIO TechRepublic ComputerWeekly ERPToday Diginomica CXToday ITWorldCanada
- Résultat: 3 gaps · 2 ERPs · 0.73 conf (rendement initial faible, grandit avec cron)
B. Playwright (Chromium TrustRadius)
- Script:
/api/scan-erp-gaps-playwright.js - Root cause attaquée (doctrine #13): G2 anti-bot → pivot TrustRadius = 69 snippets d'un coup
- Résultat: 78 gaps · 18 ERPs · 0.65 conf
- Browser: chromium-headless-shell 147 installé via
npx playwright install
Orchestrator
/api/scan-erp-gaps-all.shenchaîne D→C→B avec timeouts + summary SQL
Phase 3 — Infrastructure
- Table PG
erp_gap_scans(session V96 précédente) - API
/api/erp-gap-scans.phpfiltres erp/min_conf/limit/source - Panel HTML injecté dans
pain-points-atlas.html:- Stats tiles 7 KPIs (total, ERPs, conf, last scan, LLM/RSS/PW)
- Grid per-ERP avec badge count + source chips
- Details pliés (20 gaps les plus confiants, color-coded par source)
- Auto-refresh 90s + button manual refresh
- UX premium glassmorphism doctrine #60
Phase 4 — Automation
- Cron weekly:
0 3 * * 0 www-data /var/www/html/api/scan-erp-gaps-all.shdans/etc/crontab - 3 intents WEVIA wirés via chat:
scan_erp_gaps_all· triggers: "scan erp gaps all" / "lance scan erp gaps" / "run all erp scanners"scan_erp_gaps_llm· triggers: "scan erp gaps llm" / "llm gen erp gaps" / "sovereign erp gaps"show_erp_gaps_stats· triggers: "show erp gaps stats" / "erp gaps summary" / "gap scan summary"
État final DB (live)
| Source | ERPs | Gaps | Avg conf |
|---|---|---|---|
| LLM (D) | 25 | 79 | 0.77 |
| Playwright (B) | 18 | 78 | 0.65 |
| RSS (C) | 2 | 3 | 0.73 |
| TOTAL | 25 | 160 | 0.71 |
Commits
- V96.2:
fcc07cf6fpush origin+gitea aligned (3 refs match) - 8 fichiers: pain-points-atlas.html, wevia-v66, scan-erp-gaps.{sh,llm.py,rss.py,playwright.js,all.sh}, erp-gap-scans.php
GOLD backups (doctrine #3)
- pain-points-atlas.html.gold-19avr-v96-pre-scanpanel
- wevia-v66-all-erps-painpoints.php.gold-19avr-v96-pre-25pps
NonReg 153/153 maintenu 19ème session consécutive ✓
Doctrines respectées
| # | Preuve |
|---|---|
| 1 | Opus parle WEVIA chat: 3 intents via master add intent, NonReg check via chat, plan-action read via chat |
| 3 | GOLDs créés avant tout patch |
| 4 | Rendement RSS faible signalé franc · G2 0 extraction signalé avant pivot |
| 5 | ON CONFLICT DO NOTHING + skip-if-exists + append-only V66 |
| 13 | G2 anti-bot → TrustRadius (cause racine résolue) · LLM JSON tronqué → fallback close array (résolu) |
| 14 | V66 enrichi, pain-points-atlas panel additif (section séparée avant </div>), WTP pas touché |
| 16 | NonReg 153/153 preserved (verified via chat) |
| 60 | Panel UX premium: glassmorphism + color-coded sources + KPI tiles + details pliés |
Pour prochain Claude
- Ne pas supprimer: les 4 scripts
/api/scan-erp-gaps-*· API/api/erp-gap-scans.php· table PGerp_gap_scans· cron weekly - Pour étendre: ajouter un ERP = éditer
ERPSdict dansscan-erp-gaps-llm.py+ ajouter URL TrustRadius dansscan-erp-gaps-playwright.js - Next P1:
- RSS feeds additionnels (Gartner blog feed, vendor blog RSS)
- Playwright stealth mode pour G2/Capterra (anti-bot bypass)
- LLM retry avec Groq/SambaNova fallback en cas de Cerebras busy
- API live: https://weval-consulting.com/api/erp-gap-scans.php?limit=20&min_conf=0.5
- Atlas live: https://weval-consulting.com/pain-points-atlas.html (scroll voir panel Scan Panel en bas)