ee3e799de1
주요 변경: - 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>
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
schema_version: 2026-06-06-gas-thin-adapter-policy-v1
|
|
policy_id: GAS_THIN_ADAPTER_POLICY_V1
|
|
purpose: >
|
|
GAS에서 collect, normalize, export, display만 남기고 decision, sizing,
|
|
stop_loss, take_profit, risk_score 로직은 Python으로 이전하기 위한 migration plan.
|
|
allowed_responsibilities:
|
|
- collect
|
|
- normalize
|
|
- export
|
|
- display
|
|
forbidden_responsibilities:
|
|
- decision
|
|
- sizing
|
|
- stop_loss
|
|
- take_profit
|
|
- risk_score
|
|
migration_plan:
|
|
status: PLANNED
|
|
phases:
|
|
- phase: inventory
|
|
target: Temp/gas_business_logic_audit_v1.json
|
|
action: 분류된 GAS 함수 목록을 확정한다.
|
|
- phase: extract
|
|
target: tools/
|
|
action: business_logic 함수를 Python compiler/stub layer로 이전한다.
|
|
- phase: thin_adapter
|
|
target: gas_*.gs
|
|
action: collect/normalize/export/display만 남기고 나머지를 호출 위임으로 전환한다.
|
|
- phase: verify
|
|
target: tools/validate_gas_thin_adapter_v1.py
|
|
action: forbidden_count가 줄어드는지 지속 검증한다.
|
|
exceptions:
|
|
- name: runtime_report_rendering
|
|
reason: 표 렌더링을 위한 문자열 포맷은 허용된다.
|
|
- name: data_collection_helpers
|
|
reason: 외부 JSON/시트 수집은 허용된다.
|