Files
Anubis/tests
Alby96andClaude Opus 5.5 8aafa5ad32
ci / test (postgres) (push) Successful in 7m47s
ci / test (sqlite) (push) Successful in 6m27s
ci / image (push) Successful in 1m57s
Plan, run and judge a tournament of contenders in the laboratory
A tournament judges many contenders together so that a rule cannot win by
chance alone. Its plan (contenders with rules version and grid, data, costs,
thresholds with the control share, the finalists rule, control repetitions
and seed, combinations, stress windows, variants counted before) is written
with the trials of its contenders in one transaction, before any result, and
keeps its fingerprint like a trial plan. The contender trials read only the
search window; when the last one finishes the tournament goes to its judge.

The judge picks at most eight finalists, one per group and market, by
walk-forward Sharpe, and writes them as the final tract is opened: the
opening is a compare-and-set, so a resumed judge gets back the same
finalists. Each finalist then runs the control against chance on surrogate
series and its chosen variant on the final tract at plain and doubled costs;
these are units in tournament_units, so a judge stopped halfway redoes only
what it had not finished and reads the final tract only for finalists. The
report counts every variant in a common N (field, combinations of the
finalists, the register at the opening, prior protocols), deflates each
finalist against the field variance, computes the common PBO, the effective
number of bets and a block-bootstrap Sharpe interval, and a finalist passes
only if every check passes. Unit outcomes are dropped when it ends.

The trial engine gains LongOnly and Surrogate with default members, so other
engines keep compiling; the daily engine centres its control. Tests cover the
plan written first and never changed, the final tract read once, a resumed
judge, the finalists rule, and a built field where only the two contenders
with an edge pass with 200 repetitions.

refs #123, refs #125

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 13:48:00 +01:00
..