You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
I Luk Kim 27de44c8d8 Fix label_price_unavailable: preserve future entry_dates as pending
Pre-market label_generator runs request future-dated price windows from
Stock Oracle, which correctly returns 404 because the data does not yet
exist. The labeler was swallowing this as label_status='unavailable' with
entry_date=None. Snapshot export then filtered these rows out, so live
PEAD trading silently lost candidates whose entry_dates fell on
later trading days (e.g., post-market 8-K filings late Friday → Monday
open entry). This explains today's missed RKLB/SNDK/AKAM/MNST/AMD/MRNA
even though their 8-Ks parsed correctly.

Changes:
 - libs/labeler/label_generator.py: in 404/empty-bars path, when
   entry_date >= today, preserve entry_date and mark label_status='pending'.
   New log event label_price_pending_future_window distinguishes from real
   data-unavailable failures (past dates still log label_price_unavailable).
 - libs/export/snapshot_export.py: include 'pending' in the
   label_status filter so today's not-yet-labeled events flow into the
   live snapshot.
 - apps/pipeline/label_generator/main.py: regeneration logic also
   retries existing 'unavailable' rows whose entry_date is null or future
   to recover events already mis-labeled in the DB.
 - tests/unit/test_labeler.py: regression test reproducing the
   RKLB/SNDK/AKAM failure mode and asserting label_status='pending' with
   entry_date preserved.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
3 months ago
..
backtest Optimize v7 strategy: v7.356 achieves CW 2159% + SQS 90.7 (Pareto improvement over v7.314) 4 months ago
intraday Clean up superseded configs and commit accumulated R&D infrastructure 4 months ago
orb_trader Investigate compound mode: V23 is absolute champion in all modes 4 months ago
paper_trader Paper trader Phase 1 fixes: multi-session isolation, pipeline halt, snapshot refresh unblock 4 months ago
tools Remove momentum breakout sleeve (overfitting, valid -31%) and revert related code 4 months ago
web Investigate compound mode: V23 is absolute champion in all modes 4 months ago
__init__.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago
test_config.py feat: PEAD mid-cap strategy + pipeline hardening + README cleanup 5 months ago
test_continuation_snapshot.py Update tests for pipeline, backtest engine, paper trader, and new modules 5 months ago
test_db_models.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago
test_enrich_catalyst_persistence_features.py Add ownership/risk-off sleeves, v17-v19 experiments, and web app restructure 4 months ago
test_enrich_earnings_history_features.py Add ownership/risk-off sleeves, v17-v19 experiments, and web app restructure 4 months ago
test_enrich_peer_surprise_features.py Add ownership/risk-off sleeves, v17-v19 experiments, and web app restructure 4 months ago
test_enrich_tier2_features.py Add ownership/risk-off sleeves, v17-v19 experiments, and web app restructure 4 months ago
test_ensemble_overlay_backtest.py Add ownership/risk-off sleeves, v17-v19 experiments, and web app restructure 4 months ago
test_event_features.py feat: PEAD mid-cap strategy + pipeline hardening + README cleanup 5 months ago
test_file_store.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago
test_financial_features.py implement Phase 2 gap items: backfill CLI, retry, financial features 5 months ago
test_fred_service.py test: Phase 1/2 체크리스트 재작성 및 Oracle 실연동 통합 테스트 5 months ago
test_ids.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago
test_labeler.py Fix label_price_unavailable: preserve future entry_dates as pending 3 months ago
test_llm_cache.py feat: implement Phase 3 -- LLM enrichment, labeler, review queue, dataset export 5 months ago
test_llm_client.py fix: disable Qwen3.5 thinking mode and switch OllamaClient to sync httpx 5 months ago
test_llm_parser_stub.py test: Phase 1/2 체크리스트 재작성 및 Oracle 실연동 통합 테스트 5 months ago
test_logging.py test: Phase 1/2 체크리스트 재작성 및 Oracle 실연동 통합 테스트 5 months ago
test_market_features.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago
test_merged_snapshot.py Update tests for pipeline, backtest engine, paper trader, and new modules 5 months ago
test_merger.py feat: implement Phase 3 -- LLM enrichment, labeler, review queue, dataset export 5 months ago
test_oracle_client.py Add paper trader improvements, web GUI updates, and experiment registry cleanup 4 months ago
test_retries.py test: Phase 1/2 체크리스트 재작성 및 Oracle 실연동 통합 테스트 5 months ago
test_review_queue.py feat: implement Phase 3 -- LLM enrichment, labeler, review queue, dataset export 5 months ago
test_rule_parser.py Update tests for pipeline, backtest engine, paper trader, and new modules 5 months ago
test_schema_validator.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago
test_snapshot_export.py Add ownership/risk-off sleeves, v17-v19 experiments, and web app restructure 4 months ago
test_text_normalizer.py Update tests for pipeline, backtest engine, paper trader, and new modules 5 months ago
test_time_utils.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago