Skip to content

fix: decouple warmup cache hash and enforce current warmup map on cache hits#564

Open
enarjord wants to merge 2 commits intomasterfrom
pr-562-hlcv-cache-warmup-clean
Open

fix: decouple warmup cache hash and enforce current warmup map on cache hits#564
enarjord wants to merge 2 commits intomasterfrom
pr-562-hlcv-cache-warmup-clean

Conversation

@enarjord
Copy link
Owner

Summary\n- decouple from backtest HLCV cache hash for better reuse\n- add cache warmup sufficiency gate via \n- ensure current config warmup map overrides cached per-coin warmup metadata on load\n- add regression tests for warmup cache reuse and warmup-map override behavior\n\n## Validation\n- pytest -q tests/test_cache_warmup_reuse.py\n- pytest -q tests/test_hlcvs_valid_ranges.py\n- pytest -q tests/test_config_coin_sources.py

enarjord and others added 2 commits February 16, 2026 18:43
Configs that differ only in trading parameters (EMA spans, warmup ratio)
now share the same HLCV cache slot instead of triggering redundant
re-downloads. The cache uses a ratchet-up strategy: warmup sufficiency
is checked at load time via cache_meta.json, and the cache is
overwritten only when a larger warmup is needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant