LAYER1 양자관계 + 실시간 시장 데이터 → 정량 변수 44개 + cross-rule anomaly + LLM correction 큐
thresholds.json 임계값 — normal | caution | alert 3단계 분류 + momentum_flag (5d 변동률) + direction_flip (금리 방향 전환) + inverted (낮을수록 악화 지표)
변수 간 충돌·동시 발생 패턴 검출. 예시:
oil_tariff_stagflation: WTI alert + tariff escalating + CPI caution → 스태그플레이션 신호@dataclass
class Layer2Output:
asof: str
layer1_context: dict # L1 raw 전달 (해석 X)
slow_variables: list[VariableState]
fast_variables: list[VariableState]
anomalies: list[CrossRuleHit]
llm_correction_queue: list[dict]
news_events: list[dict] # 뉴스 raw 전달
get_layer1_snapshot() 헬퍼: 실 LAYER1 엔진 우선 호출 + mock fallbackLAYER1_USE_REAL_ENGINE=0 시 mock 강제 (디버깅·롤백)