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>
This commit is contained in:
2026-06-13 13:20:14 +09:00
commit ee3e799de1
1474 changed files with 176087 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
formula_id: ACTIVE_ARTIFACT_MANIFEST_V2
generated_at: '2026-06-07T09:32:23.434604+00:00'
is_active: true
supersedes: ACTIVE_ARTIFACT_MANIFEST_V1
superseded_by: null
input_hash: 296103ac8bf8e1e570838d0a58ec91630cda687b58a59550e80db7b8fb98e28d
source_snapshot_hash: 755d17e5bd5211108f9ac872ca42b622d2e1c1bcb7b97219f335b465f0fc8113
active_count_per_formula: 1
legacy_reference_render_blocked_count: 0
report_active_artifact_match_pct: 100.0
authority_collision_count: 0
stale_artifact_count: 0
canonical_source: Temp/final_decision_packet_active.json
active_aliases:
final_decision_packet_active: Temp/final_decision_packet_active.json
source_precedence:
- final_decision_packet_active
- final_execution_decision_v2
- smart_cash_recovery_v7
- smart_cash_recovery_v6
- smart_cash_recovery_v5
- engine_audit_v1
- sell_engine_audit_v1
report_authority_diff_count: 0
single_truth_conflict_count: 0
manifest_rows:
- formula_id: cash_shortfall_min_krw
active_artifact: Temp/final_decision_packet_active.json
value: 36092555.0
- formula_id: final_execution_gate
active_artifact: Temp/final_execution_decision_v2.json
value: AUDIT_ONLY
- formula_id: prediction_match_rate_pct
active_artifact: Temp/prediction_accuracy_harness_v2.json
value: 54.76
- formula_id: single_truth_ledger
active_artifact: Temp/single_truth_ledger_v2.json
value: Temp/final_decision_packet_active.json
- formula_id: canonical_artifact_resolver
active_artifact: Temp/canonical_artifact_resolver_v1.json
value: Temp/smart_cash_recovery_v7.json
- formula_id: smart_cash_recovery_v7
active_artifact: Temp/smart_cash_recovery_v9.json
value: 57841575