The independent review of Phase 14 found rules the engine applied
differently from the decisions, numbers the report labelled wrongly and
a command that left a trial "running" when interrupted.
Engine:
- The pause after the 9% account stop is read at the decision moment
(the bar's close), like every other gate: on daily bars it no longer
blocks one day past the server date change.
- In a one-pair basket, a level closed by the venue's mandatory stop
closes the other levels at the next execution with their own reason,
closed_with_stop (counted and labelled in the report); the basket's
exit stays mandatory_stop, and a two-leg basket keeps orphan_leg.
- The cap of two entries per currency applies to new baskets only,
never to the averagings of an open basket, and every leg is valued
at the current mid: a Prudente long basket "come dal vivo" now makes
its three averagings and Fedele writes no note on them.
- The surrogate of the control chains on the mid when the source has
an ask, so each mid change keeps its size and the spread stays
around the mid instead of moving the mid by a spread at each change
of sign.
- The financing already charged on positions still open at the end is
part of the run's fees (BacktestRun.AccruedFees, zero for the daily
engine, kept in stored unit outcomes).
Report: the fee row says what it holds (commission and financing, the
spread is in the prices) and the cost-stress text matches what the
multiplier scales; baskets still open at the end are labelled as such
and left out of the share closed at the target; refusal labels say
what the engine checks; the ECB-price and cost limitations are no
longer printed twice; every count has the Italian thousands separator.
Command: Ctrl+C or SIGTERM cancels the run; the trial is recorded as
failed with "Prova interrotta prima della fine: rilancia «anubis
backtest baskets»." and the command exits 1; a trial that cannot start
is failed instead of thrown, and an unexpected error ends with an
Italian line, never a stack trace. The laboratory fails a leftover
basket trial with an accurate message instead of "Strategia non più
disponibile".
The Table 6.5 test comment no longer claims each price is the only one
that fits the row. The real report is regenerated on the same data and
database as the first run, which now counts as a prior trial.
refs #127#129#131
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`anubis backtest baskets` reruns the replica of appendix G on the 28 ECB
crosses up to the research document's end, the G.5 control against
chance, and a trial of the basket engine "come dal vivo" with the eToro
costs on 20,000 USD, from 1999 to the chosen day on a grid fixed in
BasketProtocol (generation A/B x distance 4/10 sigma). The plan is
written to the trial register before the run, read back and run only if
it is still the plan just written (a changed or re-hashed plan fails the
trial), judged with every earlier basket_reversion trial counted, and
recorded. --offline reads only the cached ECB zip and stops in Italian
when it is missing. The report is written whatever the verdict; there is
no outcome file.
The report now labels max_positions and clock_window, reads its codes
from BasketReasons and BasketModes, counts positions closed by the
mandatory stop instead of listing them among refused entries, and no
longer repeats the engine's own limitations. The generated report is
committed: 13 of 13 binding replica rows inside the band, verdict not
passed (net at double costs and DSR).
refs #131
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every quarter the base strategies are tried again on the longer history with
the slippage in force, compared with how they did live, and the report is
published in the laboratory with the base rates measured again and the balance
of the restrictions of 10.5. In observation the outcome replaces the old one and
a strategy that passed goes to simulation after its 90 days; with capital
nothing moves but the demotion condition of 12.3. A restart halfway goes on and
the review concludes once; the outcome of a review survives a restart with an
older build.
refs #74
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Relative momentum among coins and all-time highs on stocks are now in the
code as candidates: they collect signals, have no share, no capital and no
order path, and every way forward refuses them. The crypto one ran the
protocol once and failed it (DSR 0.744, worst fall 35.3%), so it is archived
and decides nothing; the stock one waits for the Alpaca history.
refs #74
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An independent review found these, now fixed and tested:
- Risk limits could be raised through PUT /api/settings without the
phrase and the password. The API now refuses risk keys.
- The reference equity counted results twice after reduced to real and
after a demotion. Each ledger now keeps a baseline, and carried results
stay in the ledger's currency until the reference is computed.
- An instrument could be bought by a second strategy in the same account
(SPEC 8.6), and purchases under way did not hold their cash, so several
purchases sent together could exceed it. Both are refused or shrunk now.
- After an automatic trip of the switch there was no way to restart from
the interface. Rischio now shows the trip of both worlds and the restart.
- The fresh password of SPEC 12.4 could be tried without limit. Five wrong
attempts in 15 minutes now lock it.
- Observation to simulation skipped the 90 days of live signals.
- A new build changed the qualification of a strategy with real money,
"Ferma tutto" counted as a critical incident, raising risk ignored
demotion conditions in progress, and weekends counted as stock sessions.
- The 12.4 confirmation now summarises capital, first purchases and limits,
and live strategies show the gap with their simulated twin.
The backtest converts each bar with the rate fixed before it opens, the
day before, and the report now counts how often correctives and risk
changed a decision. crypto_trend is still not passed: the broad universe
now falls 32.8%. The outcome file also keeps the qualified parameters.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crypto_trend now has a backtest report and an outcome file, computed by
"anubis backtest base" on the Binance daily archives from 2019 to October
2026. Prices are converted from USDT to euro with the ECB rate of the day,
and delisted coins stay in the universe, so survivors do not flatter the
result. The protocol runs the broad universe and BTC, ETH and SOL, with
costs doubled and tripled and buy and hold beside. Both universes must pass.
The outcome is "not passed": the broad universe falls 29.1% (limit 25%) and
the narrow one has a probability of overfitting of 0.84 (limit 0.40). The
strategy therefore stays in observation. The stock strategies wait for the
Alpaca keys and stay in observation too. The bot reads the outcome files at
every start.
Trials now read 450 days of history before their start, only so the
indicators and the 400-day listing age are ready on the first day. Before
this, 2019 was spent warming up and BTC and ETH could not be chosen until
2020. A daily series also stops at a hole longer than a week, so the LUNA
relaunched in 2022 is not mistaken for the coin that collapsed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>