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 fb4fec7dac Unify BacktestRunner and PaperTradingEngine trade decision logic
Phase 1-4 of engine unification to eliminate research/live divergence.

Phase 1 — Scoring (event_detector.py):
  EventDetector now uses config's scoring_model (v5/v9 etc.) when
  event_v1 features are present (parse_confidence_overall not null).
  Falls back to compute_entry_score only for incomplete events.

Phase 2 — Execution config (execution.py):
  Extracted build_effective_execution_config() as shared function.
  BacktestRunner delegates to it. PaperTradingEngine can now use
  identical per-engine overrides, adaptive exit, tiered targets.

Phase 3 — Attention filtering (attention.py):
  New AttentionFilterService class extracted from BacktestRunner.
  Provides: engine_requires_attention, apply_filters, rescoring.
  BacktestRunner now delegates to this service.
  PaperTradingEngine can import and use the same service.

Phase 4 — Gap cap (execution.py):
  check_next_open_gap_cap() shared function for next-open gap rejection.

All 450 unit tests pass. Paper backtest verified working.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 months ago
..
__init__.py feat: implement Phase 4 -- event-driven backtester 5 months ago
allocator.py Add reaction-based position sizing to reduce mean-reversion loss risk 5 months ago
artifacts.py Implement multi-engine PEAD strategy research workflow 5 months ago
attention.py Unify BacktestRunner and PaperTradingEngine trade decision logic 5 months ago
calendar.py feat: implement Phase 4 -- event-driven backtester 5 months ago
domain.py Add reaction-based position sizing to reduce mean-reversion loss risk 5 months ago
execution.py Unify BacktestRunner and PaperTradingEngine trade decision logic 5 months ago
manifests.py Implement multi-engine PEAD strategy research workflow 5 months ago
metrics.py Recalibrate public SQS and exposure-aware tracking 5 months ago
scoring.py Add v10 macro regime scoring (VIX+HY) and FRED macro features — SQS 59.1 (rejected) 5 months ago
selector.py Add attention-aware PEAD caps and promote step75 5 months ago
snapshot_store.py Implement multi-engine PEAD strategy research workflow 5 months ago
splits.py feat: implement Phase 4 -- event-driven backtester 5 months ago
tracker.py Add attention client and continue PEAD research 5 months ago