Merge WBS-7 완료: GAS→Python 마이그레이션 + 보완고도화

## 주요 변경사항

###  완료된 11개 항목

- WBS-7.1: 캘리브레이션 실증 전환 도구
- WBS-7.2: T+5 지표 단일 진실원천 통일
- WBS-7.3: GAS→Python 공식 마이그레이션 재검토 + F05/F10 포팅 
- WBS-7.4: Deprecated 별칭·시트 정리
- WBS-7.5: 임시 하드코딩 폴백 비례화
- WBS-7.6: 슬리피지 실측 보정 스캐폴딩
- WBS-7.7: E2E 통합 테스트 구축
- WBS-7.8: ETF NAV/공매도 자동화 검토 및 운영절차 명문화
- WBS-7.9: snapshot_admin Synology POC 기본 보안 게이트
- WBS-7.10: 어드민 페이지 Tabler 그리드 조회
- WBS-7.11: spec-코드 동기화 게이트

### F05/F10 포팅 (이번 세션)

**F05 (calc_exit_sell_action)**
- 7단계 우선순위 계층 구현
- JavaScript Number.isFinite() 의미론 보장 via safe_float()
- 가격 폴백 체인 (tp2 → tp1 → close)
- 17개 parity 테스트 PASS

**F10 (run_route_flow)**
- 5개 게이트 순차 필터링
- Stop_Breach → Relative_Stop → Intraday_Lock → Heat_Gate → Mean_Reversion
- 17개 parity 테스트 PASS

### 📊 테스트 상태

**Parity 테스트**: 64/64 PASS
- F02/F04/F06 (price_basis): 8개
- F05 (execution_decision): 17개
- F07 (score_thresholds): 9개
- F10 (routing_decision): 17개
- F11 (classify_order_type): 13개

### 🎯 최종 상태

Phase 1~6 모두 완료, Phase 7 보완·고도화 DONE → 엔진 전체 경화 완료.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

# Conflicts:
#	GatherTradingData.json
#	governance/gas_logic_migration_ledger_v1.yaml
This commit is contained in:
2026-06-22 23:22:32 +09:00
74 changed files with 8761 additions and 2463 deletions
+56
View File
@@ -1847,6 +1847,62 @@ thresholds:
이미 사용하는 가속 임계(frg_20d_sh/4 × 1.5)를 그대로 재사용한 것이며, 새로
추정한 값이 아니다. 단, 실거래 표본으로 검증되지 않았으므로 EXPERT_PRIOR로
등록한다 — CALIBRATED 승격은 sample_n≥30 확보 후 검토.
- id: MRS_CIRCUIT_BREAKER_ADJUSTMENT_PTS
value: 2
unit: mrs_score_points
source: EXPERT_PRIOR
sample_n: 0
last_calibrated: null
owner_formula: PORTFOLIO_CIRCUIT_BREAKER_V1
spec_location: spec/risk/circuit_breakers.yaml:sector_crash_intraday_protocol.tier_B
notes: >
WBS-7.5(2026-06-22) — sector_crash_intraday_protocol의 tier_B 조치에서
cash_floor market_risk_score_based_cash를 상향 조정할 때 적용하는 MRS 점수 추가.
극단 시장변동성 발생 시 현금 보수성을 강화하기 위한 일시적 조정 메커니즘.
기존 spec에 "MRS +2점 (임시)"로 하드코딩되어 있던 값을 정규화.
실거래 표본 부재로 EXPERT_PRIOR 등록. CALIBRATED 승격 조건: 10건 이상 tier_B
발동 사례에서 수익률 개선 효과 측정.
sunset_date: '2026-12-31'
live_sample_requirement: 10
- id: CLUSTER_CAP_CLA_REGIME_PER
value: 60
unit: pct
source: EXPERT_PRIOR
sample_n: 0
last_calibrated: null
owner_formula: PORTFOLIO_CLUSTER_EXPOSURE_GATE_V1
spec_location: spec/risk/portfolio_exposure.yaml:regime_based_cluster_cap.cla_regime.cluster_combined_pct_max
notes: >
WBS-7.5(2026-06-22) — CLA(Concentrated Leader Advance) 레짐 발동 시
cluster(O2 반도체 + 관련 업체) 결합 노출 상한을 기본 25%에서 60%로 일시 상향.
극단 기업경기 시나리오에서 반도체 부문 자산 유동성 보호를 위한 조정.
기존 spec에 "O2 상한 임시 해제"로 명시된 값을 정규화.
실거래 표본 부재로 EXPERT_PRIOR 등록. CALIBRATED 승격 조건: CLA 발동 5회 이상
사례에서 cluster 과다노출 시 손실 회피 효과 측정.
sunset_date: '2026-12-31'
live_sample_requirement: 5
- id: EXECUTION_SLIPPAGE_BPS
value: 5
unit: basis_points
source: EXPERT_PRIOR
sample_n: 0
last_calibrated: null
owner_formula: EXECUTION_SIMULATOR_V1
spec_location: spec/55_execution_simulator_contract.yaml:slippage_model.bps
notes: >
WBS-7.6(2026-06-22) — 시장가 주문 기준 평균 슬리피지를 5bps로 하드코딩하던
값을 정규화. 지정가 주문 전략(호가단위 내림, limit_price 설정)과는 별개로,
슬리피지 미예측 시나리오나 시장가 반강제 주문 시 적용되는 일괄 손실률.
실측: 현금화 거래 20건 이상에서 actual_price vs limit_price 차이를
추적해 (Close × 시간대별 호가스프레드 모델) 반영해야 함.
기존 "5bps는 이론치, 실측 보정 예정"이라는 spec 주석이 더 이상 유효하려면
이 threshold로 정규화 필수.
sunset_date: '2026-12-31'
live_sample_requirement: 20
calibration_trigger: >
EXECUTION_QUALITY_SCORE_V1 → actual_slippage(Close 기준) 추적.
20건 이상 거래 누적 시 average_actual_slippage 계산 후
현재 5bps와 비교. 차이 > 1bps이면 실측값으로 갱신.
calibration_policy:
honest_disclosure_required: true