af1236202d
- 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>
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
from __future__ import annotations
|
|
|
|
import argparse
|
|
import json
|
|
from pathlib import Path
|
|
|
|
import yaml
|
|
|
|
|
|
def main() -> int:
|
|
ap = argparse.ArgumentParser()
|
|
ap.add_argument("--packet", default="Temp/final_decision_packet_active.json")
|
|
ap.add_argument("--out", default="Temp/final_context_for_llm_v5.yaml")
|
|
args = ap.parse_args()
|
|
packet = json.loads(Path(args.packet).read_text(encoding="utf-8"))
|
|
context = {
|
|
"formula_id": "FINAL_CONTEXT_FOR_LLM_V5",
|
|
"executive": {"display_value": packet.get("meta", {}).get("builder_version", "UNKNOWN"), "source_key": "meta.builder_version"},
|
|
"blockers": [],
|
|
"action_table": [],
|
|
"shadow_ledger": packet.get("shadow_ledger", {}),
|
|
"data_missing": [],
|
|
"education_notes": [],
|
|
}
|
|
Path(args.out).write_text(yaml.safe_dump(context, sort_keys=False, allow_unicode=True), encoding="utf-8")
|
|
print(json.dumps({"formula_id": context["formula_id"], "section_count": 6}, ensure_ascii=True))
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|