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>
The basket engine needs the costs and margin rules of the venue it
simulates, dated and sourced, so a basket trial can copy them into its
plan and its fingerprint changes when any value does.
VenueCosts holds, per pair, the eToro values of the research document
(appendix A and section 6.3, 1-2 December 2026): instrument id, real
account leverage, bid/ask in normal hours and in the daily pause,
commission per side (0.005%, 0.002% on USDJPY) and overnight financing
in USD per 100,000 USD a night. The twelve legs of section 6.3 are
stored as the document's pips x pip value per 1,000 USD x 100 (EURUSD
buy 8.096, the 8.10 USD of section 6.7); the sixteen pairs without a
rate pay the largest known charge on both sides and are marked
estimated. Venue-wide: minimum 1,000 USD, default leverage 5, allowed
leverages, mandatory stop at 50% of the margin, account liquidation
at 50% of the initial margin. VenueCosts.None is the comparison
configuration: no costs, no mandatory stop, no liquidation.
Scaled(m) multiplies spread, pause spread, commission and financing
charges only; credits stay. Margin, stop distance (none for a buy at
leverage 1, as section 6.5 says) and a leverage check that refuses, in
Italian, a leverage the venue or the pair does not allow. The JSON
uses the plan's options and the fingerprint is its SHA-256.
FinancingCalendar counts the rollovers at 17:00 New York (the server
day change) on Monday to Friday, Wednesday triple, in closed form: a
position held from Tuesday to Friday pays five nights.
refs #128
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>