Fase 8 — Apprendimento #109

Merged
Alby96 merged 8 commits from fase-8 into main 2026-12-01 16:58:07 +01:00
8 Commits
Author SHA1 Message Date
Alby96andClaude Opus 5.5 3eabc7713e Let the tests ride out a busy server
ci / test (postgres) (push) Successful in 5m36s
ci / test (sqlite) (push) Successful in 7m14s
ci / test (postgres) (pull_request) Successful in 5m57s
ci / test (sqlite) (pull_request) Successful in 7m11s
ci / image (push) Successful in 1m21s
ci / image (pull_request) Successful in 59s
On a loaded runner a forced DROP DATABASE gave up on an autovacuum slow to
leave, and failed a test that had already passed: the cleanup is tried again, as
the creation already is. The feed test gets time for its slow reader on a
computer at full load.

refs #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:16:39 +01:00
Alby96andClaude Opus 5.5 c7e462b6f4 Fix what a second independent reading of the Phase 8 fixes found
ci / test (postgres) (push) Failing after 6m9s
ci / test (sqlite) (push) Successful in 7m6s
ci / image (push) Skipped
ci / test (postgres) (pull_request) Successful in 5m51s
ci / test (sqlite) (pull_request) Successful in 7m3s
ci / image (pull_request) Successful in 1m51s
One funded signal was enough to start the model for good, because the interval
of a few cases had no width: it now takes a hundred, weighed among themselves.
A computer always off at 03:00 never made the night of the model: a job to make
up for counts from the first start that knows it, and the night waits for the
bars of the absence. Stories are seen as they were when the decision was due, a
report already out does not close a label, an undone promotion starts the trial
again, and the trade card finds the estimate of an example born earlier.

ADR 0018 point 18 has the list; each defect has its test.

refs #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:27:03 +01:00
Alby96andClaude Opus 5.5 0b0f4a5e75 Fix what the independent review of Phase 8 found and close the phase
ci / test (postgres) (push) Successful in 6m37s
ci / test (sqlite) (push) Successful in 7m51s
ci / test (postgres) (pull_request) Successful in 5m40s
ci / test (sqlite) (pull_request) Successful in 7m31s
ci / image (push) Successful in 2m29s
ci / image (pull_request) Successful in 59s
Two reviewers with a clean context read the engine and the screens. The
isotonic calibration took its floor from the first step, even of two cases, so
with few winners it flattened every estimate: the first model is rebuilt with
the fix. Learning failures no longer forget the multiplier an operation was
born with, nor stop a decision or the nightly check; recovered decisions read
the outside world as it was when due; models estimate only the strategies they
studied; a newer history does not repeat what was lived. The screens count
examples instead of verifications, show the next threshold and never round an
alarm to 50%; two forms now check the antiforgery token.

Each defect has its test, on both engines. ADR 0018 point 17 has the list.

refs #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:36:26 +01:00
Alby96andClaude Opus 5.5 f69943f70a Show what the model knows on its own screen and let the user set it aside
The Apprendimento screen says in plain words whether the model counts, how
well its probabilities hold, which clues it weighs, how the challenger is
doing and what it has learned. Thresholds, set-aside and the undo of a
promotion live in Impostazioni; anything that shrinks less with real money
asks for the phrase. The new tests also caught a wrong column name that
broke the Panoramica as soon as the first model existed.

refs #66

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:44:37 +01:00
Alby96andClaude Opus 5.5 14e8a872dc Learn slippage from real executions and say discoveries in plain words
The monthly regression raises an estimate by itself and lowers one only on
real money and with the confirmation of the user in the Laboratorio. The
table of what news does to prices and the fixed list of questions on the
clues are informative only.

refs #65

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:15:20 +01:00
Alby96andClaude Opus 5.5 df21962da3 Let the model shrink entries once it has earned it and watch it every night
The multiplier is the last corrective and is fixed when an operation is
born. Until the criteria of SPEC 11.5 are met the estimates are only noted
beside each operation. Every night the outcomes are labelled and the model
is checked (precision, ADWIN on the error, clues never studied) and set
aside when it is wrong; every Sunday a challenger is trained or judged.

refs #64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:02:55 +01:00
Alby96andClaude Opus 5.5 99ff2d9402 Train the learning model at home and ship the first one with its validation
Logistic regression, boosted trees and random forest, calibration, purged
validation and the choice by mean gain per proposed operation (refs #63).
The first model comes from the crypto history: nothing better than the base
rate, so it starts in observation as the report says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:34:41 +01:00
Alby96andClaude Opus 5.5 9cd1357e9b Archive every entry intent as a learning example with its clues and label
One example for the first entry intent of a strategy, executed or not and also
in observation, saved in the transaction of the decision with the clues known at
that moment. The label is the operation simulated alone at full size, net of
costs, so it does not depend on what the bot did with the signal (ADR 0018).

refs #62

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:07:32 +01:00