Files
QuantEngineByItz/prompts/review_prompt.md
T
kjh2064 ee3e799de1 feat: 리밸런싱 엔진 V1 + GAS 버그 수정 (2026-06-13)
주요 변경:
- tools/build_rebalance_engine_v1.py: REBALANCE_ENGINE_V1 신규
  * account_snapshot 직접 합산(_build_snap_position_map) → 소수주 분리 행 병합
  * 레짐 소스 macro.REGIME_PRELIM 최우선 (GAS 와 동일)
- src/gas_adapter_parts/gdf_06_rebalance.gs: runRebalanceSheet_() 신규
  * Logger.log / getSpreadsheet_() 로 run_all 연동 수정
- src/gas_adapter_parts/gdc_01_fetch_fundamentals.gs
  * _mergePositionRecord_(): 소수주 중복 행 합산 신규
  * parseInt → parseFloat (qty, availQty)
- src/gas_adapter_parts/gdf_01_price_metrics.gs
  * 미보유 종목 SELL_READY → WATCH_EXIT_SIGNAL
- spec/41_release_dag.yaml: build_rebalance_sheet 노드 추가 (step_count 63)
- spec/51_formula_lifecycle_registry.yaml: REBALANCE_ENGINE_V1 등록

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

2.0 KiB

Review Prompt

Use this prompt when reviewing a proposed recommendation or document change.

Review priority:

  1. Identify violations of spec/risk/risk_control.yaml and spec/risk/portfolio_exposure.yaml.
  2. Identify missing data gates from spec/02_data_contract.yaml.
  3. Check hard filters and rule IDs in spec/08_scoring_rules.yaml.
  4. Verify decision order against spec/09_decision_flow.yaml.
  5. Verify portfolio/account constraints against spec/10_portfolio_rules.yaml.
  6. Verify market regime classification against spec/11_market_regime.yaml.
  7. Validate output against schemas/output_schema.json when JSON output exists.
  8. Verify human report rendering against spec/07_output_schema.yaml:human_report and RetirementAssetPortfolioReportTemplate.yaml:output_format_templates.rendering_contract.
  9. Verify APEX harness sections before any HTS order table: alpha_lead_table, anti_distribution_table, profit_preservation_table, smart_cash_raise_table, execution_quality_table.
  10. Verify routing_serving_trace appears before QEH_AUDIT_BLOCK, and both appear before concise_hts_input_sheet.

Return findings first, ordered by severity. If no findings exist, state that explicitly and list residual risks or missing tests.

Do not approve:

  • BUY before hard filters
  • order quantity before ATR20 and cash validation
  • sell quantity before confirmed holdings
  • A grade from stale or incomplete data
  • any recommendation without rule path citations
  • HTS order table without decision_trace_table
  • BUY/ADD_ON table without alpha_lead_table and anti_distribution_table
  • cash-raise SELL/TRIM table without smart_cash_raise_table
  • PASS order without execution_quality_table
  • WATCH ledger using HTS order columns such as 지정가, 손절가, 익절가, 주문수량, or 주문금액
  • prose headers such as 이번 주 결론, 현재 포트폴리오 핵심 진단, 보유 종목별 운용 지침, 종합 의견 replacing required tables