- An error of the database (PostgreSQL restarting) no longer stops the
laboratory until the next start: the queue logs it, waits 30 seconds
on the injectable clock and tries the same trial again.
- Buy and hold, the comparison of every report, buys an instrument
whose history starts later at its first close, with the share kept
free for it; before, it was never bought and the others took its
weight. Its version goes to 2.
- The comparison page reads a and b as text: a malformed id shows
"two finished tests needed" instead of an error page.
- A trial re-checks the hash of its plan before running and refuses a
plan that no longer matches it.
- Parameters that count days take whole numbers only (10.5 would run
as 10 and count twice in the DSR); the capital starts from 1, as the
message says.
ADR 0010 says so, and corrects the estimated minimum of the research
history: 5 does refuse smaller orders, like the exchanges' minimums.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A trial is planned before it runs: strategy and version, grid, data,
initial capital, cost multipliers, validation settings, thresholds and
engine version go into backtest_trials as JSON with the SHA-256 of the
text. The store has no way to change a plan; later writes touch only
status, verdict, results and times, and a test reads the raw row back
to prove it. Every finished trial stays and counts towards the number
of tries the Deflated Sharpe Ratio deflates for.
The trial runner is pure computation: every grid variant on the whole
period, plateau choice, the chosen variant again at double and triple
costs, buy and hold, walk-forward, purged CV, PBO, DSR and the
look-ahead check, then the five thresholds of SPEC 12.2 and the report
of point 6 with the limitations the backtest declares (no correctives
without history, no risk engine before Phase 5).
The laboratory writes the plan, queues the trial and runs one at a time
on a dedicated thread with below-normal priority; only the async side
reads and writes the database. On start, trials left running go back
to planned and run again. Data comes from the daily bars and corporate
actions in the database, or from the Binance research history with
estimated order rules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>