WBS-7.3/7.4/7.5/7.11: 거버넌스 문서 정합성 정리 + spec-코드 동기화 게이트
2026-06-21 비판적 리뷰에서 spec/governance YAML이 코드 상태와 어긋난 채로 방치되던 3개 구체적 사례를 발견하고 정정했다. 근본 원인(동기화를 보장하는 장치 없음)에 대응하는 신규 CI 게이트도 함께 추가한다. - spec/aliases.yaml: deprecated alias 17건 제거(활성 참조 0건 확인 후, 2026-06-30 데드라인 전). role: deprecated_redirect인 spec/03_risk_policy.yaml, spec/04_strategy_rules.yaml 2개만 실삭제 — spec/06_exit_policy.yaml은 role: compatibility_index(영구유지 설계)였음을 재확인해 보존 - governance/gas_logic_migration_ledger_v1.yaml: 존재하지 않는 파일을 canonical 구현으로 인용하던 오류 2건 발견·정정, parity 테스트 부재로 GAS 코드 삭제 보류(F12/F13/F14) - spec/13_formula_registry.yaml: OVERHANG_PRESSURE_V1의 "-500000" 절대값 폴백을 avg_volume_5d 비례식으로 교체(EXPERT_PRIOR 등록) - tools/validate_specs.py: validate_spec_code_sync() 신규 — has_code_implementation/ code_path 필드가 있는 spec만 검사(점진적 롤아웃, 기존 PASS 상태 비파괴), 12개 파일 1차 태깅
This commit is contained in:
@@ -119,6 +119,11 @@ formula_registry:
|
||||
- CONSECUTIVE_STREAK_V1
|
||||
- BREAKOUT_FAILURE_STOP_V1
|
||||
- TREND_FILTER_GATE_V1
|
||||
- SHORT_INTEREST_RISK_GAUGE_V1
|
||||
- QUALITATIVE_SELL_STRATEGY_V1
|
||||
- MARKET_REGIME_CLASSIFIER_V1
|
||||
- SATELLITE_CANDIDATE_SCORE_V1
|
||||
- MICROSTRUCTURE_PRESSURE_FROM_ORDERBOOK_V1
|
||||
implementation_map:
|
||||
REGIME_CONDITIONAL_MACRO_FACTOR_V1: tools/build_predictive_alpha_dialectic_engine_v2.py:NF1
|
||||
REBOUND_CAPTURE_THESIS_FACTOR_V1: tools/build_predictive_alpha_dialectic_engine_v2.py:NF2
|
||||
@@ -165,6 +170,11 @@ formula_registry:
|
||||
CONSECUTIVE_STREAK_V1: tools/build_consecutive_streak_v1.py
|
||||
BREAKOUT_FAILURE_STOP_V1: tools/build_breakout_failure_stop_v1.py
|
||||
TREND_FILTER_GATE_V1: tools/build_trend_filter_gate_v1.py
|
||||
SHORT_INTEREST_RISK_GAUGE_V1: src/quant_engine/qualitative_sell_strategy_v1.py:compute_short_interest_composite
|
||||
QUALITATIVE_SELL_STRATEGY_V1: src/quant_engine/qualitative_sell_strategy_v1.py:compute_qualitative_sell_strategy
|
||||
MARKET_REGIME_CLASSIFIER_V1: src/quant_engine/qualitative_sell_strategy_v1.py:classify_market_regime
|
||||
SATELLITE_CANDIDATE_SCORE_V1: src/quant_engine/qualitative_sell_strategy_v1.py:compute_satellite_candidate_score
|
||||
MICROSTRUCTURE_PRESSURE_FROM_ORDERBOOK_V1: src/quant_engine/qualitative_sell_strategy_v1.py:compute_microstructure_pressure_from_orderbook
|
||||
formulas:
|
||||
FLOW_CREDIT_V1:
|
||||
owner: engine_owner
|
||||
@@ -1209,8 +1219,11 @@ formula_registry:
|
||||
/ 4) * (-1.5)
|
||||
|
||||
'
|
||||
without_20d_fallback: 'frg_5d_sh < -500000 # 절대값 기준 임시 적용 OR flow_credit
|
||||
< 0.30
|
||||
without_20d_fallback: 'avg_volume_5d IS NOT NULL AND frg_5d_sh < -1.5 * avg_volume_5d
|
||||
OR flow_credit < 0.30 # 2026-06-21 WBS-7.5: 절대값(-500000) 폐기, avg_volume_5d
|
||||
비례식으로 교체. 1.5배수는 with_20d 분기와 동일 계수 재사용(추정 아님).
|
||||
calibration_ref: spec/calibration_registry.yaml:OVERHANG_PRESSURE_V1_FALLBACK_MULT (EXPERT_PRIOR)
|
||||
avg_volume_5d 결측 시 이 항목은 false로 처리(추정 금지, missing_policy 참조)
|
||||
|
||||
'
|
||||
volume_weakness: volume < avg_volume_5d * 0.80
|
||||
@@ -1231,8 +1244,10 @@ formula_registry:
|
||||
status: PASS
|
||||
missing_policy:
|
||||
frg_5d_sh: W2 DATA_MISSING. 레이더 결과 무효.
|
||||
avg_volume_5d: volume_weakness=false 처리 (보수적)
|
||||
frg_20d_sh: DATA_MISSING 시 fallback 기준 적용
|
||||
avg_volume_5d: volume_weakness=false 처리 (보수적). frg_20d_sh도 없는 경우
|
||||
selling_acceleration의 without_20d_fallback 비례식도 계산 불가하므로
|
||||
동일하게 false 처리(추정 금지) — flow_credit < 0.30만 단독 평가.
|
||||
frg_20d_sh: DATA_MISSING 시 fallback(avg_volume_5d 비례식, 2026-06-21 WBS-7.5) 기준 적용
|
||||
cross_alert:
|
||||
rule: W1_DIVERGENCE_ALERT + W2_OVERHANG_ALERT 동시 → CRITICAL_ALERT 상향
|
||||
output_tag: '[W1+W2_CRITICAL_ALERT]'
|
||||
|
||||
Reference in New Issue
Block a user