Files
gavindiazandClaude Code 3a005ddcc6
Docs / Validate documentation (push) Canceled after 0s
Docs / Deploy GitHub Pages (push) Canceled after 0s
CI Final Summary (AI) / AI Final Summary (push) Canceled after 0s
CI Final Summary (AI) / Push/PR event feed (push) Canceled after 0s
CI / CI Integrity and Change Classification (push) Canceled after 0s
CI / Code Quality & Tests (push) Canceled after 0s
Dependency Lock & Migration Safety / Dependency drift (lock vs pyproject) (push) Canceled after 0s
Dependency Lock & Migration Safety / Migration safety (fail-loud + version postconditions) (push) Canceled after 0s
JS Tests / Frontend JS Unit Tests (push) Canceled after 0s
Security / CodeQL Analysis (push) Canceled after 0s
Security / Trivy Vulnerability Scan (push) Canceled after 0s
Tests (OS Matrix) / Py Tests (macos-latest) (push) Canceled after 0s
Tests (OS Matrix) / Py Tests (windows-latest) (push) Canceled after 0s
CI / Extended Validation (Tier 2) (push) Canceled after 0s
CI / Heavy CI (database-provider) (push) Canceled after 0s
CI / Heavy CI (e2e) (push) Canceled after 0s
CI / Heavy CI (integration) (push) Canceled after 0s
CI / Heavy CI (model-validation) (push) Canceled after 0s
CI / Heavy CI (research-backtest) (push) Canceled after 0s
CI / Aggregate CI Results (push) Canceled after 0s
chore(repo): initial import of Nexus Trading Forex Bot into self-hosted hosting
Full project import for the self-hosted code hosting
(https://code.aifunny.ltd/gavindiaz/my-NexusTradingForexBot.git).

Includes the live-freshness + scaler-hash fixes for the permanent
STALE dashboard (tick_pipeline now_utc stamps; infer_probabilities
computes model_input_hash on the actual scaled 70D tensor), the
data-fetch default-path fix, the g29 web-auth test fixes, and a
Chinese user manual (使用手册.md) for the web dashboard.

Scratch diagnostic scripts (check*.py, contain a live web-auth token)
and the .kilo/ agent-worktree directory are gitignored, not committed.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-23 23:24:54 +08:00

1.5 KiB

title, description, lang
title description lang
Replay Replay and streaming replay — bit-exact parity with the dataset, the anti-leakage guarantee, and how it differs from backtesting. en

Replay

What replay is

Replay re-runs the engine's decision logic over historical data and proves it produces the same decisions the live/training pipeline produced on that data. It is the execution-fidelity check between research and runtime.

Two engines

Engine Module Character
Dataset replay model_generation/replay.py + replay_70d_vector bit-exact: replay vector must equal the dataset's stored vector (anti-leakage tests)
Streaming replay research/streaming_replay.py (CHG-0035) shared LiveEngine over a logical clock (zero sleeps): incremental bar aggregation, causal 50D + news + liquidity at time T, frozen policy + RiskEngine, direction-aware simulated fills on historical bid/ask, tick SL/TP first-touch, ledger MFE/MAE — NO order_send (test-enforced)

Anti-leakage

Features at time T may consume only information available at T: liquidity confirmation bars, completed HTF buckets, REPLACE+ALIGN history handling. The parity tests fail loudly if a replay vector diverges from its dataset twin.

Replay vs backtest

A backtest scores a strategy on history. A replay proves the same code path that would run live behaves identically on history. Backtest answers "how well?"; replay answers "is this actually the same system?".