dashboard: banner verde con il conto illeggibile, testi 'esecuzione non attiva', immagine ferma al 23/06 #33

Open
opened 2026-09-27 13:12:14 +00:00 by Adriano · 0 comments
Owner

Revisione 2026-09-27 (goldrake): rilievo Opus 5.5, verifica avversariale fable. Sola lettura, nessun codice toccato.

Rilievo C4 [registro-falso]

FILE: PG:src/live/dashboard.py:76-80, 130-132, 191-192 (shadow.py:183-192)
COSA: (a) se shadow_report() solleva, book_alerts resta vuoto e il banner stampa verde "✓ Book live: nessun alert (… posizione leggibile · equity reale ok)"; (b) un trade_history che fallisce e' ingoiato (except: pass) e la tabella dice "nessun trade reale eseguito". "Non vedo" stampato come "va bene"/"zero".
SCENARIO: gateway giu' -> shadow={"error":…} -> banner verde + "nessun trade reale".
PROVA: VERIFICATO (lettura): ramo if shadow and "error" not in shadow e' l'unico che popola pos/eq; l'errore di shadow non entra in book_alerts.
PROPOSTA: if shadow.get("error"): book_alerts["shadow"] = shadow["error"]; in shadow.py registrare l'eccezione di trade_history in un campo live_trades_error e mostrarlo.

Verifica fable C4 VERDETTO: CONFERMATO

GRAVITA': medio
PERCHE': src/live/dashboard.py:63-66 shadow={"error":...}; 76-80 book_alerts popolato solo if shadow and "error" not in shadow -> banner verde «nessun alert (... posizione leggibile · equity reale ok)» (127-132) con il gateway giu'. src/live/shadow.py:184-192 trade_history in except Exception: pass -> «nessun trade reale». Impatto ridotto dal fatto che la dashboard in esercizio e' un'immagine del 23/06 (C5) e AI-OS la consuma da localhost.
CORREZIONE: ok.

Rilievo C5 [registro-falso] / [pulizia]

FILE: PG:src/live/dashboard.py:320, 331, 300 + docker-compose.yml:5
COSA: la dashboard in esercizio (container pythagoras-dashboard, 127.0.0.1:8787) gira da un'immagine costruita il 2026-06-23 21:10Z (build: ., codice nell'immagine, solo data/ montato): il sorgente rivisto qui non e' quello che gira. E anche il sorgente attuale stampa testi cablati falsi: «esecuzione REALE non attiva (solo micro-test)», «Oggi TP01 e' in target TSMOM risk-off → flat: nessun ordine reale… il cron giornaliero la esegue», «min-order $5 OK a $600».
SCENARIO: chi apre la dashboard legge che il libro non opera mentre e' armato e a mercato (~$1.500 lordi, conto ~$4.570).
PROVA: VERIFICATO: docker images -> pythagorasgoal-dashboard 2026-06-23 21:10:27; docker inspect creato 2026-08-04; CLAUDE.md non cita la dashboard.
PROPOSTA: decidere se la dashboard vive: se si', togliere i tre testi cablati (derivare da config/book_report) e ricostruire l'immagine; se no, fermare il container e dichiararlo.

Verifica fable C5 VERDETTO: CONFERMATO

GRAVITA': medio
PERCHE': docker images -> pythagorasgoal-dashboard 2026-06-23 21:10:27; docker ps -> pythagoras-dashboard Up 6 weeks 127.0.0.1:8787; docker-compose.yml:5-6 build: ., volumi solo ./data e .env.mainnet -> il codice gira dall'immagine. Testi cablati falsi nel sorgente ATTUALE: dashboard.py:320 «esecuzione REALE non attiva (solo micro-test)», :331 «nessun ordine reale... il cron giornaliero», :300,174,190 «min-order $5 OK a $600». grep -i dashboard CLAUDE.md -> nessuna riga: il servizio non e' dichiarato.
CORREZIONE: ok (decidere se vive; se si', rimuovere i tre testi e ricostruire; se no, fermare e dichiararlo in CLAUDE.md).

Revisione 2026-09-27 (goldrake): rilievo Opus 5.5, verifica avversariale fable. Sola lettura, nessun codice toccato. ### Rilievo C4 [registro-falso] FILE: PG:src/live/dashboard.py:76-80, 130-132, 191-192 (shadow.py:183-192) COSA: (a) se `shadow_report()` solleva, `book_alerts` resta vuoto e il banner stampa verde "✓ Book live: nessun alert (… posizione leggibile · equity reale ok)"; (b) un `trade_history` che fallisce e' ingoiato (`except: pass`) e la tabella dice "nessun trade reale eseguito". "Non vedo" stampato come "va bene"/"zero". SCENARIO: gateway giu' -> shadow={"error":…} -> banner verde + "nessun trade reale". PROVA: VERIFICATO (lettura): ramo `if shadow and "error" not in shadow` e' l'unico che popola pos/eq; l'errore di shadow non entra in book_alerts. PROPOSTA: `if shadow.get("error"): book_alerts["shadow"] = shadow["error"]`; in shadow.py registrare l'eccezione di trade_history in un campo `live_trades_error` e mostrarlo. ### Verifica fable C4 VERDETTO: CONFERMATO GRAVITA': medio PERCHE': `src/live/dashboard.py:63-66` `shadow={"error":...}`; 76-80 `book_alerts` popolato solo `if shadow and "error" not in shadow` -> banner verde «nessun alert (... posizione leggibile · equity reale ok)» (127-132) con il gateway giu'. `src/live/shadow.py:184-192` `trade_history` in `except Exception: pass` -> «nessun trade reale». Impatto ridotto dal fatto che la dashboard in esercizio e' un'immagine del 23/06 (C5) e AI-OS la consuma da localhost. CORREZIONE: ok. ### Rilievo C5 [registro-falso] / [pulizia] FILE: PG:src/live/dashboard.py:320, 331, 300 + docker-compose.yml:5 COSA: la dashboard in esercizio (container `pythagoras-dashboard`, 127.0.0.1:8787) gira da un'immagine costruita il 2026-06-23 21:10Z (`build: .`, codice nell'immagine, solo `data/` montato): il sorgente rivisto qui non e' quello che gira. E anche il sorgente attuale stampa testi cablati falsi: «esecuzione REALE non attiva (solo micro-test)», «Oggi TP01 e' in target TSMOM risk-off → flat: nessun ordine reale… il cron giornaliero la esegue», «min-order $5 OK a $600». SCENARIO: chi apre la dashboard legge che il libro non opera mentre e' armato e a mercato (~$1.500 lordi, conto ~$4.570). PROVA: VERIFICATO: `docker images` -> pythagorasgoal-dashboard 2026-06-23 21:10:27; `docker inspect` creato 2026-08-04; CLAUDE.md non cita la dashboard. PROPOSTA: decidere se la dashboard vive: se si', togliere i tre testi cablati (derivare da config/book_report) e ricostruire l'immagine; se no, fermare il container e dichiararlo. ### Verifica fable C5 VERDETTO: CONFERMATO GRAVITA': medio PERCHE': `docker images` -> `pythagorasgoal-dashboard 2026-06-23 21:10:27`; `docker ps` -> `pythagoras-dashboard Up 6 weeks 127.0.0.1:8787`; `docker-compose.yml:5-6 build: .`, volumi solo `./data` e `.env.mainnet` -> il codice gira dall'immagine. Testi cablati falsi nel sorgente ATTUALE: `dashboard.py:320` «esecuzione REALE non attiva (solo micro-test)», `:331` «nessun ordine reale... il cron giornaliero», `:300,174,190` «min-order $5 OK a $600». `grep -i dashboard CLAUDE.md` -> nessuna riga: il servizio non e' dichiarato. CORREZIONE: ok (decidere se vive; se si', rimuovere i tre testi e ricostruire; se no, fermare e dichiararlo in CLAUDE.md).
Adriano added the bug label 2026-09-27 13:12:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Adriano/PythagorasGoal#33