Files
QuantEngineByItz/spec/39_gas_thin_adapter_policy.yaml
T
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

48 lines
1.5 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: IN_PROGRESS
inventory_result:
tool: tools/audit_gas_thin_adapter_v1.py
output: Temp/gas_business_logic_audit_v1.json
total_functions: 273
forbidden_count: 23
mixed_count: 15
allowed_count: 104
unknown_count: 131
compliance_pct: 38.1
migration_candidate_count: 23
phases:
- phase: inventory
status: DONE
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/시트 수집은 허용된다.