"anubis soak" reads the bot's records over a time window and says whether the run kept control. It changes nothing, so it can run beside the working bot with docker exec. It exits with 4 when something needs a look. It checks: - the hours covered and silences longer than 15 minutes; - orders or decisions made twice; - unexplained reconciliation differences and each account's last outcome; - absences and guard interventions; - one crypto decision per daily close. ADR 0012 records what the specification leaves open in this phase: the live engine shares the backtest's decision call, run keys, recovery after an absence, the guard and its drill seams, the diary templates, the "senza bot" comparison, Telegram and the heartbeat, the screens and the endurance run. ROADMAP ticks the Phase 6 items and criteria with the tests that prove them, STATE moves on to Phase 7, and SVILUPPO explains the guard and the report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9ae107000b
commit
3d174931e9
8 files changed
+549
-19
No files matched your search
@@ -90,6 +90,17 @@ Apri la radice del repository in VS Code con l'estensione C# (`ms-dotnettools.cs
|
||||
|
||||
Le attività `check`, `test` e `dev` sono anche in Terminale → Esegui attività. L'estensione è dell'editor, non del progetto: non entra nell'elenco dell'ADR 0004.
|
||||
|
||||
## Guardia e prova di durata
|
||||
|
||||
- In Docker il processo principale è la guardia (`Anubis.Guard.dll`), che avvia il server come processo figlio (ADR 0012). Fuori da Docker, con `tasks dev` o da VS Code, il server gira da solo, senza guardia.
|
||||
- La prova della guardia blocca davvero il motore con una vendita a metà e controlla che tutto torni a posto:
|
||||
- `dotnet run --project src/Anubis.Guard -- drill` sul computer;
|
||||
- `docker run --rm <immagine> drill` dentro l'immagine.
|
||||
|
||||
La fanno anche `tasks ci` e la CI.
|
||||
- Il rapporto di una prova di durata si legge mentre il bot lavora: `docker exec -u 99:100 -e HOME=/tmp <container> dotnet /app/Anubis.Server.dll soak --hours 48 --platform docker`, con l'utente del bot (`PUID:PGID`) perché i file del database restino suoi. Esce con 0 se tutto è regolare e con 4 se qualcosa va guardato.
|
||||
- Gli appigli per le prove (`ANUBIS_FAULT`, `ANUBIS_DRILL_OKX_URL`) non si usano mai su un'installazione vera.
|
||||
|
||||
## Pacchetti e consegne
|
||||
|
||||
- **Docker**: immagine `gitea.encke-hake.ts.net/balbosoft/anubis`, pubblicata dalla CI sui tag `v*` nella sezione Packages del repository (ADR 0002). I tag `fase-N` non pubblicano nulla.
|
||||
|
||||
Reference in new issue
Block a user