Yatai

🌙 Reflection — 2026-09-09

Mercredi W37  ·  CDN J10 réouverture  ·  Stack 15/15 MCPs OK  ·  22:00 Paris  ·  ← index  ·  KPI →

TL;DR — 3 points clés

Snapshot KPI du jour

CDN W37 (Lun+Mar)
€10 997
115 cmds · Lun €1 439 + Mar €9 558
FSH W37 (Lun seul, J+2)
€1 798
61 cmds · 44.7% livraison · Mar J+2 demain
Groupe W37 (partiel)
€12 796
vs S-1 €23 657 · vs N-1 €40 871
MTD Septembre
€32 991
875 cmds · €69/h groupe · MS/CA 19.1%

⚠ MS/CA S partiel = 34.5% : semaine incomplète (2j CA / 7j labor). CDN Mar 8 = €9 558 @€538/h : probable privatisation déjeuner (90% CA midi, 7.3% livraison). Mercredi W37 = fermé CDN+FSH (zelty 0 orders x47 + api_fail=0). Label S-1 "W19" toujours incorrect (J30+).

Timeline — 2026-09-09

Heure (Paris)Agent / SourceEvénementRésultat
01:11disputes-dailyScan litiges Uber/DeliverooSTALE 1012h J42+ soumissions=0
04:01justifs-sweeperBatch justificatifs nuitexit=0 · fetch_free rc=1 · fetch_edenred timeout
04:49amazon-justifsAmazon → Pennylane backfillexit=0 · factures créées/rapprochées
06:02hermes-resto-briefBrief Asian Smash Bastilleexit=0 · blockers Enedis + permis exploitation
07:04daily-kpiKPI W37 publié : CDN Mar 8 = €9 558 (J+1) · FSH Lun 7 = €1 798 (J+2)exit=0
07:04daily-kpi → WAPDF KPI → DM JamesFAILED Not connected to WhatsApp
07:03hermes-managerMonitoring stackexit=0 0 FAILED · 15/15 MCPs OK
~09h–11hrekki-poll-today7 commandes Rekki + RECAP_2026-09-09.pdfOK WhatsApp Labo 92 · 7 PDFs envoyés
10:00zelty-watchCatchup 630 min (inactif depuis hier soir)0 orders inspected · RAS
10:00–22:00combo-retardSurveillance pointages (x143 cycles)22 shifts Labo · 141+ WA HTTP 500 · 0 alerte
11:33whatsapp-bridgeDÉCONNEXION bridge WhatsAppNot connected impact systémique (rekki, combo, kpi)
11:33+rekki-poll-todayOrder Z15481878 — retry storm164+ WHATSAPP_FAIL aucun backoff · PDF non livré Labo 92
12:20rekki-recap-13hRun cron fallback (event-driven déjà envoyé hier)exit=1 "Idempotent skip" → exit code anormal
19:58hermes-yatai-waMonitoring WhatsAppexit=0 15/15 MCPs OK · bridge probablement reconnecté
22:00yatai-reflectRapport courant

Patterns détectés

1. CDN Mar 08/09 = €9 558 @€538/h — événement exceptionnel (1 data point)
90% CA midi (€8 575 midi vs €1 145 soir), 7.3% livraison = quasi-100% dine-in. CDN normal tourne à €60–100/h. €538/h = 5–9x la normale. Probable privatisation ou groupe déjeuner. 1 seul data point — à surveiller si récurrence mardi.
2. FSH carryover J+2 généralisé — 4ème confirmation (Lun 7/09)
FSH Lun 7 = €1 798 / 61 cmds : absent du KPI 08/09, apparu dans KPI 09/09. Règle confirmée (3 data points août + ce 4ème). Règle stable : ne pas conclure "FSH fermé" si KPI du lendemain affiche 0.
3. Mercredi = fermé CDN+FSH — 4ème data point (W37)
Zelty-watch 0 orders x47 + api_fail=0. Combo-retard 22 shifts (Labo uniquement). Déjà confirmé W21+W23+W28. Règle très stable.
4. WhatsApp bridge déconnexion → retry storm sans backoff (1er cas documenté)
rekki-poll-loop.sh : 164 retries en ~75 min (toutes les 30s) pour order Z15481878. Aucun backoff, aucun circuit breaker. Fix : max retry limit + backoff exponentiel dans send_whatsapp_file(). 1er cas documenté clairement.
5. rekki-recap-13h exit=1 après skip idempotent
Le cron 12:20 trouve le flag → "Idempotent skip" → exit=1 (devrait être exit=0). systemd signale toujours un failure pour comportement normal. Fix : exit 0 dans la branche skip.

Anomalies

🔴
WhatsApp bridge déconnecté (~11h33–~19h30 Paris)
3 agents impactés : daily-kpi PDF non livré · rekki-poll 164 FAIL sur Z15481878 · combo-retard 141 HTTP 500. Bridge OK à 19:58. Action : surveiller la fréquence (1er cas documenté).
🔴
Disputes Uber STALE J42+ (1012h depuis 29/07)
Session uber_storage_state.json expirée. 0 litige soumis depuis J42. Pertes définitives sur litiges 29/07–12/08 (délai Uber 7–14j dépassé). Action IMMDIATE : run headed Playwright + re-save session.
🔴
whatsapp-ocr structurellement arrêté — J59+ (depuis 11/07)
Dernier exit=1 Sat 05/09. Prochain run Ven 11/09 → J62 de downtime si pas de fix. Bug LAST_SEEN=None (1 ligne Python). Backlog estimé ~180 médias.
🟡
rekki-recap-13h exit=1 après skip idempotent
Exit code 1 alors que le comportement est correct (skip attendu). Génère du bruit dans hermes-manager. Fix : exit 0 dans branche skip.
🟡
KPI label S-1 "W19" — J30+ (depuis 2026-08-10)
Label S-1 affiche "W19" (mai) au lieu de la semaine précédente réelle. Valeurs correctes. Fix dans render_kpi.py.
🟡
fetch_free rc=1 chronique — J97+ (depuis 05/06)
Session Sosh lifecycle ~18j. Factures Free Mobile non récupérées depuis 3 mois. Run headed/screenshot requis.
🟢
CDN Mar 8/09 = €9 558 @€538/h (anomalie positive)
Journée exceptionnelle. Probable privatisation déjeuner (90% CA midi, 7.3% livraison). À documenter si récurrence.

Propositions CLAUDE.md

Proposition #1 — Section 4 (Rekki gotchas)

WhatsApp bridge déconnexion → retry storm rekki-poll-loop.sh

### Bug : rekki-poll-loop.sh sans backoff sur WhatsApp failure (documenté 09/09/2026)
- Quand le bridge est déconnecté, rekki-poll-loop.sh effectue des retries toutes les 30s
  sans limite -> 164+ tentatives observées en ~75 min pour order Z15481878
- Fix recommandé : max retry (ex: 5) + backoff exponentiel dans send_whatsapp_file()
- Détection bridge offline : JSON {"success":false,"message":"Not connected to WhatsApp"}
- 1 data point (09/09/2026) - à confirmer si pattern récurrent
Justification : 1ère occurrence clairement documentée (164 retries). Fix trivial, impact opérationnel (commande non livrée Labo).
Proposition #2 — Section 5 (Agents schedules)

rekki-recap-13h : exit=1 après skip idempotent = bug connu

### rekki-recap-13h exit=1 après skip idempotent (bug connu depuis 09/09/2026)
- Si le run event-driven a déjà posé le flag avant le cron 12:20,
  le cron -> "Idempotent skip" -> exit=1 (devrait être exit=0)
- Fix : remplacer `exit 1` par `exit 0` dans la branche skip
Justification : observé aujourd'hui. Fix trivial (1 ligne). Génère du bruit dans hermes-manager inutilement.
Proposition #3 — Section 8 (Open Issues — mise à jour compteurs)

disputes Uber J42+ et whatsapp-ocr J59+ (update)

- [ ] disputes-daily Uber : CRITIQUE J42+ (depuis ~29/07/2026)
  STALE 1012h au 09/09/2026 - soumissions=0
  Action IMMEDITATE : run headed Playwright Uber + re-save uber_storage_state.json

- [ ] whatsapp-ocr : J59+ (depuis 11/07/2026) - dernier exit=1 Sat 05/09
  Prochain run naturel Ven 11/09 -> J62 de downtime si pas de fix
  Bug LAST_SEEN = None (1 ligne Python) - en attente décision James
  Backlog estimé ~180 médias
Mise à jour des compteurs et du backlog estimé pour garder la section 8 à jour.