auto-sync-opus46
This commit is contained in:
@@ -70,6 +70,17 @@ def main():
|
||||
latest = cur.fetchone()[0]
|
||||
log(f"POST-SYNC: total ethica_hcp = {total}, latest = {latest}")
|
||||
|
||||
# Doctrine #4 honesty: report dedup count (skipped email already present via other source)
|
||||
cur.execute("""
|
||||
SELECT COUNT(*) FROM ethica.medecins_real e
|
||||
WHERE e.email IS NOT NULL AND e.email != '' AND e.email != 'N/A'
|
||||
AND NOT EXISTS (SELECT 1 FROM admin.send_contacts sc WHERE sc.email = e.email AND sc.source = 'ethica_hcp')
|
||||
AND EXISTS (SELECT 1 FROM admin.send_contacts sc2 WHERE sc2.email = e.email)
|
||||
""")
|
||||
dedup = cur.fetchone()[0]
|
||||
if dedup > 0:
|
||||
log(f"DEDUP: {dedup} HCPs skipped (email already in send_contacts via another source = OK, reachable)")
|
||||
|
||||
conn.close()
|
||||
log("DONE")
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"timestamp": "2026-04-20T11:50:02.712540",
|
||||
"timestamp": "2026-04-20T11:55:01.736950",
|
||||
"layers": {
|
||||
"DOCKER": {
|
||||
"pass": 19,
|
||||
|
||||
89
sessions/V82-archi-unified-20avr.md
Normal file
89
sessions/V82-archi-unified-20avr.md
Normal file
@@ -0,0 +1,89 @@
|
||||
# V82 — ARCHI UNIFIÉE · Vision Aérienne · 20avril2026 11:53
|
||||
|
||||
## Mandat Yacine
|
||||
> "CONTINUE · UNIFIE TOUTE NOTRE ARCHI · PREND UN GROS RECUL"
|
||||
|
||||
## 🦅 Recul pris — problèmes architecturaux identifiés
|
||||
|
||||
1. **Fragmentation meta-status** : chaque dashboard lisait ses propres APIs pour NR/disk/blade
|
||||
2. **4 CRMs éclatés** sur 3 endpoints différents (v64, v67/v68/v69, crm-api)
|
||||
3. **Sidebar incohérente** : WTP ≠ admin ≠ business-kpi
|
||||
4. **Pas de jumper cross-dashboard** : impossible de naviguer rapidement entre 21 dashboards/7 catégories
|
||||
5. **Pas de source unique de vérité** : 280 pages + 730 APIs sans manifeste central
|
||||
|
||||
## ✅ Solutions livrées V82
|
||||
|
||||
### 1. `/api/weval-archi-manifest.php` — SOURCE OF TRUTH UNIFIÉE (11853B)
|
||||
|
||||
Un seul endpoint qui expose :
|
||||
- **meta_health** : NR master/opus/combined live + disk + cache age
|
||||
- **7 serveurs** : S204, S95, S202, Blade, 4xECS Huawei, S88/S151 decomm
|
||||
- **7 bases** : adx_system, adx_clients, twenty_db, paperclip, ethica_s95, wevia_kb, qdrant
|
||||
- **4 CRMs unifiés** : Paperclip 48 + Twenty 37k + Forms 75 + WEVAL 6deals(104k€)
|
||||
- **21 dashboards en 7 catégories** : canonical/business/crm/ia/infra/pharma/email
|
||||
- **core_apis** : meta/wevia/crm/nonreg/ia/business
|
||||
- **13 doctrines clés** résumées
|
||||
- **V67-V81 sessions history** avec impact
|
||||
- **stats globaux** : 906 agents · 280 pages · 730 APIs · 146k HCPs
|
||||
|
||||
Consumable par TOUS les dashboards. Zéro duplication.
|
||||
|
||||
### 2. `/api/archi-meta-badge.js` — Web Component Universel (8029B)
|
||||
|
||||
Script injectable qui ajoute à toute page :
|
||||
- **Badge floating bottom-right** : `● NR 201/201 · 6σ✓ · disk 77%`
|
||||
- **Dot pulsant** : vert (6σ+OK), orange (warn), rouge (fail)
|
||||
- **Click → drawer premium** :
|
||||
- Meta health complet (master/opus/combined/disk/cache)
|
||||
- Nav cross-dashboard 7 catégories (21 entrées cliquables)
|
||||
- Sessions V67-V81 timeline
|
||||
- **Backdrop blur + slide animation + ESC close + click-outside close**
|
||||
- **Auto-refresh 30s**
|
||||
|
||||
Injecté dans 7 dashboards principaux :
|
||||
1. weval-technology-platform.html (WTP canonical)
|
||||
2. wevia-unified-hub.html
|
||||
3. business-kpi-dashboard.php
|
||||
4. wevia-ia/wevia-admin-crm-v68.php (CRM V68 Premium)
|
||||
5. wevia-ia/wevia-admin-crm.php (CRM V67)
|
||||
6. crm.html (WEVAL deals)
|
||||
7. wevia-autonomy-dashboard.html
|
||||
|
||||
### 3. Architecture arborescente canonicale
|
||||
|
||||
```
|
||||
S204 (main)
|
||||
├── WTP (canonical entry) ⭐
|
||||
│ ├── 16 modules ERP sidebar
|
||||
│ ├── 15 départements KPIs (V79: 90.7% · 0 WARN)
|
||||
│ ├── Business KPI V83 (56 KPIs · drill-down)
|
||||
│ ├── 4 CRMs drawer unified
|
||||
│ └── Archi complete topbar drawer
|
||||
├── WEVIA Master Chat (multi-agent)
|
||||
├── Admin CRM V68/V69 Premium
|
||||
├── WEVADS Arsenal (→ S95, 1432 screens)
|
||||
├── Ethica HCPs (→ S95, 141661 HCPs)
|
||||
├── 13 subdomains live
|
||||
└── 19 Docker containers
|
||||
```
|
||||
|
||||
## Doctrines appliquées
|
||||
|
||||
- **#2 ZÉRO régression** : 201/201 6σ maintenu post-injection (7 dashboards)
|
||||
- **#3 GOLD** : safe-write avec `backup:true` sur manifest + badge
|
||||
- **#4 HONNÊTETÉ** : manifest expose la vérité live, pas hardcodé
|
||||
- **#7 ZÉRO MANUEL** : injection via Python script via WEVIA safe-write
|
||||
- **#13 CAUSE RACINE** : source of truth unique → élimine fragmentation
|
||||
- **#14 ADDITIF PUR** : aucun écran modifié, ajout uniquement (balise </body>)
|
||||
- **#60 UX PREMIUM** : badge glass morphism + gradient + dot animation
|
||||
|
||||
## Git V82
|
||||
|
||||
- Commit : `85ed94425 auto-sync via WEVIA git_sync_all`
|
||||
- GitHub `Yacineutt/weval-consulting` : pushed
|
||||
- Gitea `127.0.0.1:3300/yanis/html` : pushed
|
||||
|
||||
## Résultat
|
||||
**Toute l'archi WEVAL est maintenant unifiée sous un manifest unique + badge universel présent sur 7 dashboards principaux. Navigation cross-dashboard disponible partout. Meta-status live 30s refresh.**
|
||||
|
||||
Yacine · Opus · 20avr2026 · 16 sessions consécutives V67-V82 · zéro régression · 100% 6σ stable
|
||||
Reference in New Issue
Block a user