from fxhnt.registry import STRATEGY_REGISTRY


def test_positioning_and_book_bumped_to_v3_backdated():
    for sid in ("positioning", "bybit_4edge", "bybit_4edge_levered"):
        d = STRATEGY_REGISTRY[sid]["definition"]
        assert d["version"] == 3, f"{sid} version not bumped to 3"
        ov = d.get("inception_t0")
        assert ov and ov["version"] == 3, f"{sid} inception_t0 not re-pinned to v3"
        # backdated to the existing OOS start, NOT reset to today -> the forward window is recomputed, not lost
        assert ov["date"] == "2026-07-06"
