WBS-7.3: GAS→Python 마이그레이션 5개 항목 완료 (F14, F02-F06)

- F14: late_chase_risk_score 검증
  * GAS가 유일한 생산처 (Python canonical 없음)
  * migration_action: KEEP_IN_GAS로 정정, status: DONE

- F02/F03/F04/F06: priceBasis 로직 포팅
  * formulas/price_basis_v1.py: select_price_basis_tier2/tier1 구현
  * tests/parity/test_price_basis_parity_v1.py: 8 parity 테스트 (모두 PASS)
  * GAS Number.isFinite() 의미론 정확히 재현 (math.isfinite 사용)
  * 모든 테스트 112/112 PASS

남은 작업 (4개):
- F05: decision_logic (action assignment)
- F07: score_logic (threshold addition)
- F10: routing decision
- F15: late_chase_gate

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 22:45:00 +09:00
parent 4266039d1c
commit af1236202d
64 changed files with 13127 additions and 2760 deletions
@@ -63,6 +63,10 @@ def main() -> int:
dup_removed = int(profile.get("duplicate_steps_removed_count") or 0)
steps = profile.get("steps") if isinstance(profile.get("steps"), list) else []
runtime_ctx = profile.get("runtime_context") if isinstance(profile.get("runtime_context"), dict) else {}
skip_validate = bool(runtime_ctx.get("skip_validate") if runtime_ctx.get("skip_validate") is not None else profile.get("skip_validate"))
allowed_use = str(profile.get("allowed_use") or "")
failed: list[str] = []
warnings: list[str] = []
if not mode_cfg:
@@ -84,6 +88,16 @@ def main() -> int:
if len(steps) == 0 and mode != "package-only":
failed.append("PROFILE_STEPS_EMPTY")
if mode == "release" and skip_validate:
failed.append("RELEASE_MODE_SKIP_VALIDATE_NOT_ALLOWED")
expected_allowed_use = "production_investment_decisions" if mode in {"release", "quick"} else "packaging_only"
if mode_cfg and allowed_use != expected_allowed_use:
failed.append("ALLOWED_USE_MISMATCH")
release_mode_skip_validate_count = 1 if (mode == "release" and skip_validate) else 0
package_only_used_for_investment_decision_count = 1 if (mode == "package-only" and allowed_use == "production_investment_decisions") else 0
status = "FAIL" if failed else "OK"
result = {
"formula_id": "PIPELINE_RUNTIME_CONTRACT_VALIDATOR_V1",
@@ -91,6 +105,8 @@ def main() -> int:
"mode": mode,
"elapsed_sec_total": elapsed,
"max_elapsed_sec_target": max_target,
"release_mode_skip_validate_count": release_mode_skip_validate_count,
"package_only_used_for_investment_decision_count": package_only_used_for_investment_decision_count,
"failed": failed,
"warnings": warnings,
}