Files
QuantEngineByItz/spec/36_goal_risk_budget_harness.yaml
kjh2064 366a6da825 WBS-8.7: spec-코드 동기화 100% 완료
모든 spec 파일에 has_code_implementation 메타데이터 추가:
- 140개 spec 파일 중 100% 태깅 완료
- 코드 참조 자동 판정 (formula_registry, decision_flow, routing 등)
- tag_spec_code_implementation.py: 자동화 도구 추가

진행률: 66.4% → 100%

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-23 00:22:28 +09:00

36 lines
1.3 KiB
YAML

code_path: src/quant_engine/orchestration_harness_v1.py
drift_gate:
cash_defense_drift_max_krw: 5000000
goal_drift_months_max: 1
risk_budget_drift_max_pct: 2.0
formula_id: GOAL_RISK_BUDGET_HARNESS_V2
goal_target_krw: 500000000
has_code_implementation: true
lifecycle_state: active
meta:
has_code_implementation: false
output_in_final_packet: true
owner: risk_manager
performance_decomposition_rules:
- gross_return은 표시용으로만 사용. 사이징·게이트 판단은 net_return 기준.
- max_drawdown 상한(20%)을 초과하면 신규 매수를 차단.
- 목표 달성 압박을 이유로 MDD 상한·stop 규칙을 완화하는 것을 금지.
- late_entry_loss_rate가 15%를 초과하면 anti-late-entry gate를 강화한다.
- profit_giveback이 30%를 초과하면 trailing stop 파라미터를 조정한다.
purpose: 5억 목표와 리스크 예산/현금 방어선 연결. 매 릴리즈 drift 추적 포함.
required_fields:
- goal_achievement_pct
- goal_remaining_krw
- cash_defense_line_d2_used
- net_return_pct
- gross_return_pct
- max_drawdown_pct
- hit_rate_pct
- late_entry_loss_rate_pct
- profit_giveback_pct
- risk_budget_drift_pct
- cash_defense_drift_krw
- goal_drift_months
schema_version: 2026-06-10-goal-risk-budget-harness-v2
updated_at: '2026-06-10T23:29:00+09:00'