Commit Graph

8 Commits

Author SHA1 Message Date
kjh2064 8891978ed5 docs(spec39): GAS_THIN_ADAPTER migration_plan DONE — Phase3 thin_adapter 사용자 검증 완료 2026-06-14 12:18:58 +09:00
kjh2064 a66eab771f docs(spec/39): 문서 다이어트 — result 블록 전부 제거
*_result, note, pending 등 실행 로그성 블록 제거.
spec은 정책(allowed/forbidden), phase 목록/status, exceptions만 유지.
실행 결과는 Temp/*.json(하네스 산출물)이 source of truth.
validate_gas_thin_adapter_v1 gate=PASS 유지 확인.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 11:58:40 +09:00
kjh2064 4841f7d37e fix(entropy): _iter_files에서 .git/node_modules 제외 — total_file_count 2298→1645
audit_repository_entropy_v1._iter_files가 .git(628개) 포함으로
total_file_count=2298 > budget=2200 → FAIL 발생.
.git, node_modules, __pycache__ 등 제외 → gate=PASS (1645/2200).

동시 fix: spec/39 YAML ScannerError — note 필드의 'status: DONE' 따옴표 처리.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 11:55:40 +09:00
kjh2064 8a6a8ac32c docs(gas-thin-adapter): Phase 4 verify — gate=PASS 결과 spec/39에 기록
GAS_THIN_ADAPTER_POLICY_V1 Phase 4 (verify) 완료:
- validate_gas_thin_adapter_v1.py gate=PASS 확인
  (coverage=100%, migration_plan_exists=true, forbidden=23)
- spec/39: verify phase DONE + verify_result 블록 추가
- migration_plan.note: 사용자 GAS 검증 후 전체 DONE 처리 예정

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 11:39:21 +09:00
kjh2064 7786e60daf feat(gas-thin-adapter): Phase 3 thin_adapter — 23개 forbidden 함수에 THIN_ADAPTER 위임 주석 삽입
GAS_THIN_ADAPTER_POLICY_V1 Phase 3 (thin_adapter) 진행:
- tools/gas_thin_adapter_phase3_annotate.py: 23개 GAS forbidden 함수에 THIN_ADAPTER 주석 자동 삽입 스크립트
- src/gas_adapter_parts 7개 파일: 각 forbidden 함수 본문 첫 줄에
  // THIN_ADAPTER: [<responsibility>] delegated to Python — <module>:<function>
  주석 추가 (기능 코드 무변경, additive-only)
- spec/39: thin_adapter phase IN_PROGRESS + thin_adapter_result 블록 추가

⚠ GAS 파일 변경됨 — GAS deploy + 사용자 검증 필요 (runDataFeed 실행)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 11:32:00 +09:00
kjh2064 44a39a2ec1 feat(gas-thin-adapter): Phase 2 Extract — 23개 forbidden 함수 Python 매핑 + 3개 stub
GAS_THIN_ADAPTER_POLICY_V1 Phase 2 완료:
- tools/gas_thin_adapter_phase2_extract.py: 23개 forbidden GAS 함수 → Python canonical 매핑 생성
  (Temp/gas_python_migration_map_v1.json 출력)
- tools/gas_thin_adapter_stubs_v1.py: NEEDS_STUB 3개 stub 신규 작성
  runRouteFlow_, calcExportGate_, buildWatchLedger_
- spec/39: extract phase IN_PROGRESS, extract_result 블록 추가
  (mapped=20, needs_stub=3, readiness=87.0%)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 11:07:02 +09:00
kjh2064 09dea9452d feat: GAS_THIN_ADAPTER_POLICY_V1 Phase-1 Inventory 완료
tools/audit_gas_thin_adapter_v1.py 신규 작성:
- src/gas_adapter_parts/*.gs 9개 파일, 총 273개 함수 스캔
- allowed/forbidden/mixed/unknown 키워드 기반 분류
- Temp/gas_business_logic_audit_v1.json 출력 (gitignored)
- 이전 후보(forbidden) 23개 확인: sizing/stop_loss/take_profit/risk_score/decision

결과 요약:
- compliance_pct: 38.1% (allowed 104 / 273)
- forbidden: 23 (calcPrices_, calcTpQuantityLadder_, buildOrderBlueprint_ 등)
- mixed: 15 (collect + forbidden 겸용)

spec/39_gas_thin_adapter_policy.yaml 업데이트:
- migration_plan.status: PLANNED → IN_PROGRESS
- inventory_result 필드 추가 (수치 기록)
- inventory phase status: DONE

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 10:25:30 +09:00
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