Files
QuantEngineByItz/tools/operational_report_contract.py
T
kjh2064 e2820065d1 fix(report): 레포트 프로 수준 개선 — gate_trace 정형화, HTS표 재설계, 중복섹션 제거
- _fmt_gate_trace(): 게이트 요약 compact 출력 (손절✓ 상대손절✓ 현금바닥⊘)
- _concise_hts_input_sheet: gate_trace 제거, 지정가/매도수량/손절가/TP2가/실행스타일 추가
- _immediate_execution_playbook: 게이트요약 compact, sell_sequence 정형화된 표
- _reference_price_ledger: watch_breakout_gate 중복 fallback 제거, prices_json 기준가 원장
- _sparkline: 데이터 4개 미만 시 데이터부족 표시
- SECTION_TITLES: 내부 formula ID 한국어 명칭으로 통일
- report dict: generated_at/section_errors 추가 (PASS)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 23:05:47 +09:00

51 lines
1.6 KiB
Python

from __future__ import annotations
REPORT_SCHEMA_VERSION = "2026-05-24-operational-report-v1"
REPORT_SOURCE_JSON = "GatherTradingData.json"
REPORT_SECTION_ORDER = [
# [RSO-V2] Actual rendering order (verified 2026-05-30 against 84-section output)
# PHASE-0: execution safety + judgment
"exec_safety_declaration",
"final_judgment_table",
"final_execution_decision",
"concise_hts_input_sheet",
"watch_breakout_gate",
"reference_price_ledger",
# PHASE-1: single conclusion + playbook
"single_conclusion",
"immediate_execution_playbook",
"market_context_learning_note",
"portfolio_performance_summary",
"portfolio_sector_exposure_summary",
"sector_trend_analysis_v1",
"etf_representative_monitor_v1",
"performance_readiness_summary",
"operational_eval_queue_summary",
# PHASE-2: quality + readiness scores
"investment_quality_headline",
"operational_truth_score",
"execution_readiness_matrix",
"pass_100_criteria",
# PHASE-3: decision summary + routing
"today_decision_summary_card",
"routing_serving_trace",
"export_gate_diagnosis",
"QEH_AUDIT_BLOCK",
# APPENDIX order anchors
"backdata_feature_bank_table",
"alpha_lead_table",
"anti_distribution_table",
"profit_preservation_table",
"smart_cash_raise_table",
"execution_quality_table",
"decision_trace_table",
"anti_whipsaw_reentry_gate",
"proposal_reference_sheet",
"satellite_buy_proposal_sheet",
"core_satellite_timing_gate_table",
"engine_feedback_loop_report",
"prediction_evaluation_improvement_report",
"rule_lifecycle_governance_report",
]