Phase 11: decisions from the numbers only, outside rules measured in the shadow
ci / test (postgres) (push) Successful in 5m56s
ci / test (sqlite) (push) Successful in 5m5s
ci / test (postgres) (pull_request) Successful in 5m36s
ci / test (sqlite) (pull_request) Successful in 4m52s
ci / image (push) Successful in 2m6s
ci / image (pull_request) Successful in 52s

News, the economic calendar and earnings dates no longer change any decision by
default (ADR 0023). A new switch, decisions.external_rules, chooses between
"misurate" (default) and "attive" (the Phase 7 behaviour); ADR 0027 records
every choice.

- Engine: with "misurate" nothing is held, postponed or kept, no diary or note
  is written and equity_meanrev gets no earnings dates. The gate is still asked,
  per rule and with all rows on, to write one shadow case per rule, strategy,
  instrument and day. The switch is read once per decision; the one-step check
  and the release of a planned order read it as it was when the decision ran.
- Shadow: five rules measured with the existing improvement machinery, 99%
  interval, "too early" under six months, the ADR 0023 criterion; the earnings
  exit is measured by relabelling with the report date. Shown in the Laboratorio
  and in the quarterly review beside the historical restriction balance.
- Model: the seven outside clues stay out of training; a champion that uses one
  is set aside at once, without an alarm, and Sunday trains one without them.
- Settings: the switch changes only from the settings form, with the
  protections of the five rows; the API refuses it; each change writes one diary
  line. The first start of this version records "attive" until then on an
  installation that had already decided.
- Screens, demo and manual follow "misurate".

Two independent review rounds; their confirmed findings are fixed and tested.
SQLite, PostgreSQL and the image with the guard drill are green.

refs #116, refs #117

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-12-03 22:59:16 +01:00
1 parent ed22d1c8b5
commit 501c9be70e
47 files changed
+1743 -169

No files matched your search

+11 -9
View File
@@ -20,7 +20,7 @@ aperta la fase. Se questo file e Gitea divergono, vale Gitea e si corregge quest
| 8 | [Apprendimento](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/milestone/35) | Completata |
| 9 | [Rifinitura e consegna in Docker](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/milestone/36) | Completata (pubblicazione e prova su Unraid in attesa dell'utente) |
| 10 | [Nuova rotta: solo Docker](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/milestone/37) | Completata (prova di durata dal container in attesa dell'utente) |
| 11 | [Decisioni solo matematiche](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/milestone/79) | Da fare |
| 11 | [Decisioni solo matematiche](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/milestone/79) | Completata (unione e tag dopo il sì dell'utente; misura sulle azioni in attesa delle chiavi Alpaca e Finnhub) |
| 12 | [Dati e matematica dei panieri](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/milestone/80) | Da fare |
| 13 | [Campionato: unità di lavoro, piano e statistica](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/milestone/81) | Da fare |
| 14 | [Motore a panieri](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/milestone/82) | Da fare |
@@ -332,17 +332,19 @@ Un solo interruttore decide se notizie, calendario e trimestrali agiscono o veng
**Lavori**
- [ ] [#116](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/issues/116) Decisioni solo matematiche
- [ ] [#117](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/issues/117) Chiusura della fase, revisione indipendente e tag `fase-11` (dopo il sì dell'utente)
- [x] [#116](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/issues/116) Decisioni solo matematiche
- [x] [#117](https://gitea.encke-hake.ts.net/BalboSoft/Anubis/issues/117) Chiusura della fase, revisione indipendente e tag `fase-11` (dopo il sì dell'utente)
**Criteri di accettazione**
- [ ] Predefinito: una notizia grave confermata su un titolo in acquisto non cambia niente (ordine rilasciato, nessuna riga di blocco, nessuna nota, nessuna chiamata a Telegram).
- [ ] `equity_meanrev` con la trimestrale domani entra, e non emette mai l'uscita per trimestrale.
- [ ] L'addestramento ignora gli indizi esterni; un modello in carica che ne contiene uno non si applica.
- [ ] Con l'interruttore su «attive», impostato dal supporto di prova, i test di oggi sulle regole (`NewsRulesTests`, `AbsenceTests`, `NewsAnalystTests`, `QuarterlyReviewTests`) passano senza altre modifiche.
- [ ] Un caso in ombra per regola, strategia, strumento e giorno; sotto i sei mesi la riga dice «troppo presto»; la revisione trimestrale mostra il bilancio storico e, accanto, le regole misurate.
- [ ] L'interruttore si cambia solo dalle Impostazioni, con le protezioni che hanno già le cinque righe, e scrive una riga nel diario. Fotografie delle schermate a 1440 px (chiaro e scuro) e a 390 px.
- [x] Predefinito: una notizia grave confermata su un titolo in acquisto non cambia niente (ordine rilasciato, nessuna riga di blocco, nessuna nota, nessuna chiamata a Telegram).
- [x] `equity_meanrev` con la trimestrale domani entra, e non emette mai l'uscita per trimestrale.
- [x] L'addestramento ignora gli indizi esterni; un modello in carica che ne contiene uno non si applica.
- [x] Con l'interruttore su «attive», impostato dal supporto di prova, i test di oggi sulle regole (`NewsRulesTests`, `AbsenceTests`, `NewsAnalystTests`, `QuarterlyReviewTests`) passano senza altre modifiche.
- [x] Un caso in ombra per regola, strategia, strumento e giorno; sotto i sei mesi la riga dice «troppo presto»; la revisione trimestrale mostra il bilancio storico e, accanto, le regole misurate.
- [x] L'interruttore si cambia solo dalle Impostazioni, con le protezioni che hanno già le cinque righe, e scrive una riga nel diario. Fotografie delle schermate a 1440 px (chiaro e scuro) e a 390 px.
Prove: `MeasuredRulesTests` (14 casi: interruttore, notizia grave, trimestrale, sorvegliante, addestramento, modello messo da parte, registro dei modelli, ombra al 99%, impostazioni, aggiornamento da una versione precedente, ordine deciso con le regole misurate); i test della Fase 7 invariati con «attive» impostato dal supporto di prova. Scelte nell'ADR 0027. Con le chiavi di oggi la misura riguarda solo `crypto_trend` e le due regole sulle notizie: le tre regole su trimestrali e calendario delle azioni aspettano le chiavi di Alpaca e di Finnhub.
## Fase 12 — Dati e matematica dei panieri (solo ricerca)