V2-1-3: 시나리오 엔진 (로컬 매칭) #80

Closed
opened 2026-02-08 00:57:02 +09:00 by agentson · 0 comments
Collaborator

요약

  • 실시간 Gemini 호출을 대체하는 로컬 시나리오 매칭 엔진 구현.

변경

  • 신규: src/strategy/scenario_engine.py
  • 신규 테스트: tests/test_scenario_engine.py (~40)

동작

  • 글로벌 규칙 우선, 종목 시나리오 순차 평가(첫 매칭).
  • StockCondition은 non-None 필드 AND 결합.
  • 미매칭 시 기본 HOLD.

수락 기준

  • evaluate()가 ScenarioMatch 반환.
  • 네트워크 호출 없음, <0.1s.

검증

  • pytest tests/test_scenario_engine.py -v
요약 - 실시간 Gemini 호출을 대체하는 로컬 시나리오 매칭 엔진 구현. 변경 - 신규: src/strategy/scenario_engine.py - 신규 테스트: tests/test_scenario_engine.py (~40) 동작 - 글로벌 규칙 우선, 종목 시나리오 순차 평가(첫 매칭). - StockCondition은 non-None 필드 AND 결합. - 미매칭 시 기본 HOLD. 수락 기준 - evaluate()가 ScenarioMatch 반환. - 네트워크 호출 없음, <0.1s. 검증 - pytest tests/test_scenario_engine.py -v
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#80