The championship judge needs statistics the single-trial protocol does not
have: one common number of trials for the whole field and the bar it sets,
a field variance taken on annualised Sharpe ratios so crypto and weekday
markets compare, the common probability of overfitting on one calendar,
the effective number of bets, a block-bootstrap interval and the control
against chance. The control replays a rule on surrogate prices where every
day all instruments change sign together, centred on the mean for
long-only rules, so sizes, tails and correlations stay while any tendency
to revert or to go on is lost. Instruments with corporate actions are
refused for now.
The seeded SplitMix64 generator of the tests moves to Anubis.Core as
SeededRandom, unchanged, so the control and the intervals draw from it;
the tests keep calling it Gen through a global alias.
refs #124
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The strategy contract of SPEC 5.3 (IStrategy, StrategyContext, Intent) is
shared by backtest and live: the context exposes bars only up to the
decision, adjusted and anchored to that day, and reading past it throws.
The engine runs each session as ordered events (corporate actions, open,
session, close), decides on the close and executes at the next open with
the simulator's price lists, slippage tiers, tick and lot rounding,
minimums and no leverage. Corrective and risk hooks are wired in and pass
everything through until Phase 5. One decision cycle can restart from a
recorded book (SPEC 12.3).
A scripted toy strategy reproduces a result computed by hand to the cent
on OKX and Alpaca costs. The Phase 3 class Trading.Strategies becomes
StrategyNames so the Anubis.Strategies namespace can exist.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The independent review found that the policy tests could be bypassed:
Microsoft-named direct packages and GlobalPackageReference slipped past
the dependency check, the live-money scan missed the JSON, Dockerfile
and Unraid template forms, the secret scan missed short project
secrets but would have failed on the user's own ignored .env. The
scans now read only the files git would commit and cover those cases.
Also adds the fixed-seed generator for property tests, the REGISTRY
variables reserved for phase 9 in the CI, a git pre-commit hook in
place of the pre-commit tool (tasks hooks), the missing SPEC 4 facts
in API-NOTES (Fed/ECB/BLS times, USDC depth on OKX) and the full list
of today's indirect packages.
refs #3 refs #5 refs #6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>