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>
basket_reversion.md has to be written whatever the verdict and must show
what the phase measures: the replica of appendix G against the document's
15 totals with the binding rows counted, the control against chance of
G.5, and the trial of the basket engine with its exit reasons, orphan legs
(counted, also when zero), liquidations, account stops and refusals. The
comparison is zero (no trading), never buy and hold (ADR 0026 point 5),
and the share of baskets closed at the target is shown, never judged.
The report reads only BacktestReport, so it does not depend on the engine
being written in parallel; there is no outcome file for baskets yet.
A test checks the report and this source never contain the name of the
product the research document describes, through a hash of the name.
refs #131
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>