From 5d9693b98d973fa182f1b97d86058938782be0cf Mon Sep 17 00:00:00 2001 From: jhogyu Date: Thu, 5 Nov 2026 15:53:21 +0900 Subject: [PATCH] feat(stage1): add Part 3 L1 JEV recommender with glossary, 4-key relation and live apply - Part 3 YAML: Gemini glossary task, planner state with definitions and BO context, JEV 4-key relation criteria (unrelated added), apply receipt v2, SHADOW_RUN off, SOFT target-unrelated review item; backups per revision - p3l1 harness (src, splice, tests) and Nov_04/Nov_05 run reports and glossary - Part 1/2 YAML revisions, strategy docs, MEMORY/SKILL updates, research sources Co-Authored-By: Claude Opus 5.5 --- Case_02_Comparison_Research/SKILL.md | 107 +- .../Default_Agent/runtime_manifest.json | 8 +- .../stage1_runtime/domain_slice_compiler.py | 13 +- .../stage1_runtime/domain_slice_compiler.txt | 13 +- .../stage1_runtime/stage_a_context_builder.py | 10 + .../stage_a_context_builder.txt | 10 + ...용 시 thinking_level 설정 관련 질의응답.md | 63 + .../v.8/LLM_추론수준_개정된_stage_1.md | 50 + .../v.8/Testrun/Nov_03/결과보고서_part_1.md | 112 + .../Testrun/Nov_03/결과보고서_v2_part_1.md | 103 + .../Testrun/Nov_03/추가개정전략_for_part_1.md | 299 + .../Nov_03/추가수정_for_결과보고서_part_1.md | 85 + .../v.8/Testrun/Nov_04/BO_11_04_2pm.json | 11294 +++++++++++++++ .../v.8/Testrun/Nov_04/BO_11_04_4_30pm.json | 7217 ++++++++++ .../결과보고_R0_통계치_with_high_part_2.md | 130 + .../v.8/Testrun/Nov_04/결과보고서_1_part_2.md | 95 + .../v.8/Testrun/Nov_04/결과보고서_2_part_1.md | 90 + .../v.8/Testrun/Nov_04/결과보고서_2_part_2.md | 73 + .../v.8/Testrun/Nov_04/결과보고서_part_1.md | 91 + .../Testrun/Nov_04/실패결과보고서_1_part_2.md | 97 + .../Testrun/Nov_04/실패결과보고서_2_part_2.md | 88 + .../Testrun/Nov_05/실행결과보고서_1_part_3.md | 91 + .../Testrun/Nov_05/실행결과보고서_2_part_3.md | 126 + .../Testrun/Nov_05/실행결과보고서_3_part_3.md | 112 + .../Testrun/Nov_05/실행결과보고서_4_part_3.md | 124 + .../v.8/Testrun/Nov_05/정의표_실행3_part_3.md | 68 + .../1. Stage_1/v.8/scratchpad/p3l1/.py | 1 + .../1. Stage_1/v.8/scratchpad/p3l1/check.py | 35 + .../v.8/scratchpad/p3l1/fake/httpx.py | 31 + .../v.8/scratchpad/p3l1/glossary_block.txt | 60 + .../scratchpad/p3l1/glossary_block_330pm.txt | 59 + .../1. Stage_1/v.8/scratchpad/p3l1/harness.py | 15 + .../v.8/scratchpad/p3l1/patch_c1.py | 26 + .../v.8/scratchpad/p3l1/patch_c2.py | 25 + .../v.8/scratchpad/p3l1/patch_c3.py | 17 + .../v.8/scratchpad/p3l1/patch_d1.py | 85 + .../v.8/scratchpad/p3l1/patch_d2.py | 46 + .../v.8/scratchpad/p3l1/patch_d3.py | 22 + .../v.8/scratchpad/p3l1/patch_r1.py | 147 + .../v.8/scratchpad/p3l1/patch_r2.py | 99 + .../v.8/scratchpad/p3l1/patch_splice.py | 60 + .../v.8/scratchpad/p3l1/patch_u1.py | 70 + .../v.8/scratchpad/p3l1/patch_u2.py | 43 + .../v.8/scratchpad/p3l1/patch_u3.py | 36 + .../v.8/scratchpad/p3l1/patch_u4.py | 41 + .../1. Stage_1/v.8/scratchpad/p3l1/splice.py | 222 + .../v.8/scratchpad/p3l1/splice_1030.py | 149 + .../v.8/scratchpad/p3l1/splice_239pm.py | 200 + .../v.8/scratchpad/p3l1/splice_2pm.py | 184 + .../v.8/scratchpad/p3l1/splice_330pm.py | 214 + .../v.8/scratchpad/p3l1/src/_boiler.py | 108 + .../v.8/scratchpad/p3l1/src/apply_body.py | 348 + .../v.8/scratchpad/p3l1/src/apply_head.py | 66 + .../v.8/scratchpad/p3l1/src/capture_body.py | 65 + .../v.8/scratchpad/p3l1/src/capture_head.py | 16 + .../v.8/scratchpad/p3l1/src/planner_body.py | 346 + .../v.8/scratchpad/p3l1/src/planner_head.py | 51 + .../v.8/scratchpad/p3l1/src_239pm/_boiler.py | 108 + .../scratchpad/p3l1/src_239pm/apply_body.py | 327 + .../scratchpad/p3l1/src_239pm/apply_head.py | 50 + .../scratchpad/p3l1/src_239pm/capture_body.py | 65 + .../scratchpad/p3l1/src_239pm/capture_head.py | 16 + .../scratchpad/p3l1/src_239pm/planner_body.py | 346 + .../scratchpad/p3l1/src_239pm/planner_head.py | 51 + .../v.8/scratchpad/p3l1/src_330pm/_boiler.py | 108 + .../scratchpad/p3l1/src_330pm/apply_body.py | 333 + .../scratchpad/p3l1/src_330pm/apply_head.py | 61 + .../scratchpad/p3l1/src_330pm/capture_body.py | 65 + .../scratchpad/p3l1/src_330pm/capture_head.py | 16 + .../scratchpad/p3l1/src_330pm/planner_body.py | 346 + .../scratchpad/p3l1/src_330pm/planner_head.py | 51 + .../v.8/scratchpad/p3l1/t_glossary.py | 107 + .../v.8/scratchpad/p3l1/t_pipeline.py | 203 + .../v.8/scratchpad/p3l1/t_pipeline_lib.py | 74 + .../1. Stage_1/v.8/scratchpad/p3l1/t_real.py | 32 + .../v.8/scratchpad/p3l1/t_replay.py | 21 + .../1. Stage_1/v.8/stage_1_part_1_v.8.yml | 208 +- .../v.8/stage_1_part_1_v.8_11_03_4Pm.yml | 11413 +++++++++++++++ .../v.8/stage_1_part_1_v.8_11_03_7_25pm.yml | 11538 +++++++++++++++ .../v.8/stage_1_part_1_v.8_11_04_10_30am.yml | 11551 ++++++++++++++++ .../v.8/stage_1_part_1_v.8_11_04_9am.yml | 11544 +++++++++++++++ .../1. Stage_1/v.8/stage_1_part_2_v.8.yml | 187 +- .../v.8/stage_1_part_2_v.8_11_04_1_15pm.yml | 5636 ++++++++ .../v.8/stage_1_part_2_v.8_11_04_2_25pm.yml | 5677 ++++++++ .../v.8/stage_1_part_2_v.8_11_04_4_10pm.yml | 5749 ++++++++ .../v.8/stage_1_part_2_v.8_high.yml | 5693 ++++++++ .../v.8/stage_1_part_2_v.8_medium.yml | 5693 ++++++++ ...stage_1_part_2_v.8_medium_11_04_3_20pm.yml | 5693 ++++++++ .../1. Stage_1/v.8/stage_1_part_3_v.8.yml | 1457 +- .../v.8/stage_1_part_3_v.8_11_05_10_30am.yml | 1142 ++ .../v.8/stage_1_part_3_v.8_11_05_1_30pm.yml | 2155 +++ .../v.8/stage_1_part_3_v.8_11_05_2_25pm.yml | 2513 ++++ .../v.8/stage_1_part_3_v.8_11_05_2_39pm.yml | 2529 ++++ .../v.8/stage_1_part_3_v.8_11_05_2pm.yml | 2513 ++++ .../v.8/stage_1_part_3_v.8_11_05_3_30pm.yml | 2560 ++++ .../v.8/개정전략서_part_2_11_04_4pm.md | 151 + .../v.8/개정전략서_part_3_v2_with_part_1_2.md | 280 + .../v.8/개정전략서_part_3_with_part_1_2.md | 200 + .../v.8/개정전략서_일치성기반_part_2.md | 155 + .../v.8/모델_조건변경_A0_A1_평가서.md | 122 + .../모델_추론_파라미터값_변형_질의응답.txt | 199 + .../v.8/작업간일치성보고서_stage_1_2_to_3.md | 155 + .../v.8/작업간일치성보고서_stage_1_to_2.md | 178 + .../추론모델_업데이트_후보_stage_1_part_1.md | 112 + .../소작업묶음_S2_20_16개_G1~G4.md | 18 + .../agent_scripts/작업_히스토리_11_03.txt | 524 + .../agent_scripts/작업_히스토리_11_04.txt | 1533 ++ .../agent_scripts/작업_히스토리_11_04_밤.txt | 1227 ++ .../YAML_Prompts/2. Stage_2/MEMORY.md | 545 + .../YAML_Prompts/2. Stage_2/SKILL.md | 107 +- .../YAML_Prompts/SKILL.md | 331 +- ...준약관 호프만 전환 경과규정'은 무엇인가.md | 79 + ...가격 고시(행정안전부고시 제2025-83호).html | 24 + .../sources_for_opus/AMA표_신경계장애.html | 36 + ...반기_적용_건설업_임금실태조사_보고서.html | 196 + ... 제10호서식] 급여액증명서(근로소득용).pdf | Bin 0 -> 36461 bytes ...제11호서식] 소득금액증명서(사업소득용).pdf | Bin 0 -> 36968 bytes ...상법 시행규칙_[별지 제12호서식] 진술서.pdf | Bin 0 -> 25295 bytes ... 제13호서식] 사실조사 (보고서, 회보서).pdf | Bin 0 -> 33947 bytes ...규칙_[별지 제14호서식] 조사결과보고서.pdf | Bin 0 -> 26024 bytes ...칙_[별지 제14호의2서식] 조사결과보고서.pdf | Bin 0 -> 28129 bytes ...요양비, 장례비, 수리비) 사전지급신청서.pdf | Bin 0 -> 45026 bytes ... 제15호의2서식] 사전지급조사결과보고서.pdf | Bin 0 -> 31497 bytes ...칙_[별지 제15호의3서식] 사전지급결정서.pdf | Bin 0 -> 34270 bytes ...칙_[별지 제15호의4서식] 사전지급결정서.pdf | Bin 0 -> 38076 bytes ...양비, 장례비, 수리비) 사전지급결정통보.pdf | Bin 0 -> 45041 bytes ..._[별지 제16호의2서식] 사전지급결정통보.pdf | Bin 0 -> 31522 bytes ...비, 장례비, 수리비) 사전지급결정통지서.pdf | Bin 0 -> 42039 bytes ...별지 제17호의2서식] 사전지급결정통지서.pdf | Bin 0 -> 31005 bytes ...비) 사전지급청구서, 사전지급청구위임장.pdf | Bin 0 -> 54538 bytes ...규칙_[별지 제19호서식] 심의결과보고서.pdf | Bin 0 -> 38715 bytes ...행규칙_[별지 제1호서식] 관할지정청구서.pdf | Bin 0 -> 29398 bytes ... 시행규칙_[별지 제20호서식] 배상결정서.pdf | Bin 0 -> 37950 bytes ...행규칙_[별지 제20호의2서식] 배상결정서.pdf | Bin 0 -> 38510 bytes ...규칙_[별지 제21호서식] 배상결정통지서.pdf | Bin 0 -> 43182 bytes ...칙_[별지 제21호의2서식] 배상결정통지서.pdf | Bin 0 -> 34389 bytes ...행규칙_[별지 제22호서식] 배상결정통보.pdf | Bin 0 -> 43392 bytes ...규칙_[별지 제22호의2서식] 배상결정통보.pdf | Bin 0 -> 30513 bytes ...] 동의 및 청구서, 배상금지급청구위임장.pdf | Bin 0 -> 52901 bytes ... 제24호서식] 배상결정에 대한 부동의서.pdf | Bin 0 -> 36249 bytes ... 시행규칙_[별지 제25호서식] 재심신청서.pdf | Bin 0 -> 43128 bytes ...행규칙_[별지 제25호의2서식] 환송결정서.pdf | Bin 0 -> 30208 bytes ...칙_[별지 제25호의3서식] 환송결정통지서.pdf | Bin 0 -> 32929 bytes ... 제26호서식] 배상결정서등본송부촉탁서.pdf | Bin 0 -> 32452 bytes ...칙_[별지 제27호서식] 집행문부여통지서.pdf | Bin 0 -> 31438 bytes ...[별지 제28호서식] 배상신청사건처리대장.pdf | Bin 0 -> 33159 bytes ...칙_[별지 제29호서식] 배상심의회회의록.pdf | Bin 0 -> 27372 bytes ..._[별지 제29호의2서식] 배상심의회회의록.pdf | Bin 0 -> 27646 bytes ... 시행규칙_[별지 제2호서식] 이송결정서.pdf | Bin 0 -> 31106 bytes ...규칙_[별지 제30호서식] 배상결정사건부.pdf | Bin 0 -> 28094 bytes ...[별지 제31호서식] 재심신청사건처리대장.pdf | Bin 0 -> 28631 bytes ...행규칙_[별지 제3호서식] 이송결정통지서.pdf | Bin 0 -> 32886 bytes ... 제4호서식] 국가배상금지급 월례보고서.pdf | Bin 0 -> 32359 bytes ...행규칙_[별지 제5호서식] 피해자색인카드.pdf | Bin 0 -> 31415 bytes ...행규칙_[별지 제6호서식] 삭제(88.11.29).pdf | Bin 0 -> 13158 bytes ... 제7호서식] 배상금 (지급, 미지급) 통보.pdf | Bin 0 -> 37220 bytes ... 시행규칙_[별지 제8호서식] 배상신청서.pdf | Bin 0 -> 58939 bytes ...규칙_[별지 제8호의2서식] 신청인표시표.pdf | Bin 0 -> 30357 bytes ... 시행규칙_[별지 제8호의3서식] 보정요구.pdf | Bin 0 -> 29093 bytes ...행규칙_[별지 제9호서식] 재산피해내역서.pdf | Bin 0 -> 30381 bytes .../국가배상법 시행규칙_현행.html | 3345 +++++ .../국가배상법 시행규칙_현행.json | 3511 +++++ .../국가배상법 시행규칙_현행.md | 2533 ++++ .../국가배상법 시행령_현행.md | 782 ++ .../sources_for_opus/국가배상법_현행.json | 744 + .../sources_for_opus/국가배상법_현행.md | 182 + .../농업노동임금_2005.1~2023.12..html | 23 + ...라이프니츠계수표_법정취업가능기간대응.html | 26 + ...프니츠수치표_월단위_복리연금현가율표.html | 28 + .../맥브라이드손상부위직업별장해등급표.html | 32 + .../맥브라이드후유장애종합평가표.html | 535 + ... 본인의 생활비 비율(제74조제1항 관련).pdf | Bin 0 -> 52765 bytes ...라이프니츠 계수(제73조 및 제74조 관련).pdf | Bin 0 -> 58950 bytes ...요양대상 인정기준(제83조의2제1항 관련).pdf | Bin 0 -> 130926 bytes ...진폐장해등급 기준(제83조의2제2항 관련).pdf | Bin 0 -> 48870 bytes ...손상자녀 관련 유해인자(제83조의4 관련).pdf | Bin 0 -> 146253 bytes ...표 12] 과태료의 부과기준(제128조 관련).pdf | Bin 0 -> 125689 bytes ...는 공단 업무의 범위(제18조제1항 관련).pdf | Bin 0 -> 127935 bytes ...ㆍ단체 및 자료의 범위(제19조의2 관련).pdf | Bin 0 -> 185082 bytes ... 구체적인 인정 기준(제34조제3항 관련).pdf | Bin 0 -> 172694 bytes ...표 4는 별표 11의2로 이동 _2010.11.15_.pdf | Bin 0 -> 23549 bytes ...5] 과징금의 부과기준(제39조제5항 관련).pdf | Bin 0 -> 80906 bytes ... 6] 장해등급의 기준(제53조제1항 관련).pdf | Bin 0 -> 177361 bytes ...간병급여의 지급 대상(제59조제1항 관련).pdf | Bin 0 -> 62717 bytes ...요양상태등급의 기준(제65조제1항 관련).pdf | Bin 0 -> 87394 bytes ...등급별 노동력 상실률(제73조제2항 관련).pdf | Bin 0 -> 33608 bytes .../산업재해보상보험법 시행령_현행.json | 8129 +++++++++++ .../산업재해보상보험법 시행령_현행.md | 3219 +++++ .../소송비용실무_제6절_소송비용액계산.html | 193 + ...용실무_제7절_공동소송의소송비용액계산.html | 440 + ...8절_실무상자주문제되는소송비용액계산.html | 1021 ++ ...해배상실무_장종운_제1장_손해배상개요.html | 437 + ...종운_제2장_손해배상청구소송의기본지식.html | 1814 +++ .../의학회_장애평가기준과활용_본문.html | 4303 ++++++ .../호프만계수표_월단위_단리연금현가율표.html | 33 + 195 files changed, 158679 insertions(+), 110 deletions(-) create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Gemini LLM 사용 시 thinking_level 설정 관련 질의응답.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/LLM_추론수준_개정된_stage_1.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/결과보고서_part_1.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/결과보고서_v2_part_1.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/추가개정전략_for_part_1.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/추가수정_for_결과보고서_part_1.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/BO_11_04_2pm.json create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/BO_11_04_4_30pm.json create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고_R0_통계치_with_high_part_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_1_part_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_2_part_1.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_2_part_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_part_1.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/실패결과보고서_1_part_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/실패결과보고서_2_part_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_1_part_3.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_2_part_3.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_3_part_3.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_4_part_3.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/정의표_실행3_part_3.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/check.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/fake/httpx.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/glossary_block.txt create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/glossary_block_330pm.txt create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/harness.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c1.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c2.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c3.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d1.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d2.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d3.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_r1.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_r2.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_splice.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u1.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u2.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u3.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u4.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_1030.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_239pm.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_2pm.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_330pm.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/_boiler.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/apply_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/apply_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/capture_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/capture_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/planner_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/planner_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/_boiler.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/apply_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/apply_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/capture_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/capture_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/planner_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/planner_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/_boiler.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/apply_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/apply_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/capture_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/capture_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/planner_body.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/planner_head.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_glossary.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_pipeline.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_pipeline_lib.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_real.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_replay.py create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8_11_03_4Pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8_11_03_7_25pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8_11_04_10_30am.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8_11_04_9am.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_2_v.8_11_04_1_15pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_2_v.8_11_04_2_25pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_2_v.8_11_04_4_10pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_2_v.8_high.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_2_v.8_medium.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_2_v.8_medium_11_04_3_20pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_3_v.8_11_05_10_30am.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_3_v.8_11_05_1_30pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_3_v.8_11_05_2_25pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_3_v.8_11_05_2_39pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_3_v.8_11_05_2pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_3_v.8_11_05_3_30pm.yml create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/개정전략서_part_2_11_04_4pm.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/개정전략서_part_3_v2_with_part_1_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/개정전략서_part_3_with_part_1_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/개정전략서_일치성기반_part_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/모델_조건변경_A0_A1_평가서.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/모델_추론_파라미터값_변형_질의응답.txt create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/작업간일치성보고서_stage_1_2_to_3.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/작업간일치성보고서_stage_1_to_2.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/추론모델_업데이트_후보_stage_1_part_1.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/2. Stage_2/Default_Agent/Stage_2_Clean/agent_scripts/소작업묶음_S2_20_16개_G1~G4.md create mode 100644 Case_02_Comparison_Research/YAML_Prompts/2. Stage_2/Default_Agent/Stage_2_Clean/agent_scripts/작업_히스토리_11_04.txt create mode 100644 Case_02_Comparison_Research/YAML_Prompts/2. Stage_2/Default_Agent/Stage_2_Clean/agent_scripts/작업_히스토리_11_04_밤.txt create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/'표준약관 호프만 전환 경과규정'은 무엇인가.md create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/(고시) 2026년 지방세 시가표준액 산정을 위한 기준가격 고시(행정안전부고시 제2025-83호).html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/AMA표_신경계장애.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/[붙임]_2026년_하반기_적용_건설업_임금실태조사_보고서.html create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제10호서식] 급여액증명서(근로소득용).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제11호서식] 소득금액증명서(사업소득용).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제12호서식] 진술서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제13호서식] 사실조사 (보고서, 회보서).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제14호서식] 조사결과보고서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제14호의2서식] 조사결과보고서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제15호서식] (요양비, 장례비, 수리비) 사전지급신청서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제15호의2서식] 사전지급조사결과보고서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제15호의3서식] 사전지급결정서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제15호의4서식] 사전지급결정서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제16호서식] (요양비, 장례비, 수리비) 사전지급결정통보.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제16호의2서식] 사전지급결정통보.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제17호서식] (요양비, 장례비, 수리비) 사전지급결정통지서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제17호의2서식] 사전지급결정통지서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제18호서식] (요양비, 장례비, 수리비) 사전지급청구서, 사전지급청구위임장.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제19호서식] 심의결과보고서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제1호서식] 관할지정청구서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제20호서식] 배상결정서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제20호의2서식] 배상결정서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제21호서식] 배상결정통지서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제21호의2서식] 배상결정통지서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제22호서식] 배상결정통보.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제22호의2서식] 배상결정통보.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제23호서식] 동의 및 청구서, 배상금지급청구위임장.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제24호서식] 배상결정에 대한 부동의서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제25호서식] 재심신청서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제25호의2서식] 환송결정서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제25호의3서식] 환송결정통지서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제26호서식] 배상결정서등본송부촉탁서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제27호서식] 집행문부여통지서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제28호서식] 배상신청사건처리대장.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제29호서식] 배상심의회회의록.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제29호의2서식] 배상심의회회의록.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제2호서식] 이송결정서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제30호서식] 배상결정사건부.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제31호서식] 재심신청사건처리대장.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제3호서식] 이송결정통지서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제4호서식] 국가배상금지급 월례보고서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제5호서식] 피해자색인카드.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제6호서식] 삭제(88.11.29).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제7호서식] 배상금 (지급, 미지급) 통보.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제8호서식] 배상신청서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제8호의2서식] 신청인표시표.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제8호의3서식] 보정요구.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_[별지 제9호서식] 재산피해내역서.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_현행.html create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_현행.json create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행규칙_현행.md create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법 시행령_현행.md create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법_현행.json create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/국가배상법_현행.md create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/농업노동임금_2005.1~2023.12..html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/라이프니츠계수표_법정취업가능기간대응.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/라이프니츠수치표_월단위_복리연금현가율표.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/맥브라이드손상부위직업별장해등급표.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/맥브라이드후유장애종합평가표.html create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 10] 사망자 본인의 생활비 비율(제74조제1항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 11] 취업가능개월수에 대응하는 라이프니츠 계수(제73조 및 제74조 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 11의2] 진폐병형과 심폐기능의 정도의 판정기준, 진폐장해등급 기준 및 요양대상 인정기준(제83조의2제1항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 11의3] 심폐기능정도 판정이 곤란한 진폐근로자의 진폐장해등급 기준(제83조의2제2항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 11의4] 건강손상자녀 관련 유해인자(제83조의4 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 12] 과태료의 부과기준(제128조 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 1] 공단 이사장의 대표 권한 중 소속기관의 장에게 대표 권한이 위임되는 공단 업무의 범위(제18조제1항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 1의2] 자료 요청 대상 기관ㆍ단체 및 자료의 범위(제19조의2 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 3] 업무상 질병에 대한 구체적인 인정 기준(제34조제3항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 4] 종전 별표 4는 별표 11의2로 이동 _2010.11.15_.pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 5] 과징금의 부과기준(제39조제5항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 6] 장해등급의 기준(제53조제1항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 7] 간병급여의 지급 대상(제59조제1항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 8] 중증요양상태등급의 기준(제65조제1항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_[별표 9] 장해등급 및 진폐장해등급별 노동력 상실률(제73조제2항 관련).pdf create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_현행.json create mode 100644 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/산업재해보상보험법 시행령_현행.md create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/소송비용실무_제6절_소송비용액계산.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/소송비용실무_제7절_공동소송의소송비용액계산.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/소송비용실무_제8절_실무상자주문제되는소송비용액계산.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/손해배상실무_장종운_제1장_손해배상개요.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/손해배상실무_장종운_제2장_손해배상청구소송의기본지식.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/의학회_장애평가기준과활용_본문.html create mode 100755 research_reports/2026-10-30_배상보상_계수와장해율/sources_for_opus/호프만계수표_월단위_단리연금현가율표.html diff --git a/Case_02_Comparison_Research/SKILL.md b/Case_02_Comparison_Research/SKILL.md index fb74dcd4..8b878b96 100644 --- a/Case_02_Comparison_Research/SKILL.md +++ b/Case_02_Comparison_Research/SKILL.md @@ -69,6 +69,8 @@ MCP 서버 (localdocs) → _resolve_user(ctx) → 해시된 경로에서 파일 | `JEV_API_KEY` | (선택) | TypeSafe JEV(System One 결정 모델) API 키 — task 유형 `jev:` 전용 (§3.4) | | `JEV_API_URL` | `https://api.typesafe.ai/v1/systemone` | JEV 엔드포인트 (프록시 사용 시 변경) | | `JEV_DEFAULT_MODEL` | `jev-latest` | `jev.model` 미지정 시 모델 | +| `OPENAI_DECISIONS_URL` | `https://api.openai.com/v1/decisions` | `jev.provider: openai` 엔드포인트 | +| `OPENAI_DECISIONS_MODEL` | `gpt-6-luna` | `jev.provider: openai` 기본 모델 | ### 0.5 API 키 설정 @@ -468,6 +470,7 @@ print(json.dumps({ - wildcard task 의 `task_name` 은 반드시 `_*` 로 끝나야 함 (`_is_wildcard_name`) - cross-fan-out 참조 시 `{same_ordinal}` 은 같은 ordinal 끼리만 연결. 다른 ordinal 의 동일 task type 은 독립. - aggregate token `all Task_X_*` 은 모든 instance 완료를 한 번에 대기. quality gate 패턴의 표준 형태. +- `all Task_X_*` 로 대기하는 집계자는 **완료된 인스턴스의 결과를 `{{prev.Task_X_0}}`, `{{prev.Task_X_1}}` … 로 받는다** (`{{prev.Task_X_1.answers.route.choice}}` 같은 중첩 접근 포함). 실패·스킵된 인스턴스는 `prev` 에 없으므로 참조하면 문자열이 그대로 남는다 — 인스턴스 수가 가변이면 파일 집계(localdocs) 나 `{{prev}}` 전체를 받는 code task 로 처리한다. code task 의 `{{prev}}` 전체 덤프에도 인스턴스 결과가 함께 들어가므로 크기에 주의. - 자세한 동작 흐름: `agent.py::TaskProcedureExecutor._maybe_expand_wildcards` --- @@ -480,16 +483,16 @@ print(json.dumps({ - task_name: analyze llm_provider: google # google | anthropic | openai | "https://" (OpenAI-compatible) llm_model: gemini-3.1-pro-preview - llm_reasoning: high # low | medium | high (provider 별 매핑은 아래 주의 참조) + llm_reasoning: high # low | medium | high, 또는 숫자(사고 토큰 예산). provider 별 매핑은 아래 주의 참조 llm_verbosity: medium # low | medium | high (OpenAI 전용) llm_endpoint: completions # "completions" (default) | "responses" (OpenAI; GPT-5.6+ 캐시·체이닝은 responses 권장) - llm_token_limit: 16000 # 선택. 출력 토큰 상한 (provider 별 파라미터로 매핑) + llm_token_limit: 16000 # 선택. 출력 토큰 상한 (provider 별 파라미터로 매핑). 미지정 시 Anthropic 만 16000, 나머지는 모델 기본 상한 llm_prompt_cache_key: S2:analyze # 선택 (OpenAI). 미지정 시 ":" 자동 파생 — §6.5.2 llm_result_envelope: true # 선택. 다음 task 의 {{prev.}} 를 본문 대신 결과 봉투로 (아래 주의 참조) use_tools: ["localdocs"] # LLM이 사용할 MCP 서버 cache_control: # 선택. Gemini/Anthropic 은 네이티브 캐시, OpenAI 는 §6.5.2 의 prompt cache 로 번역 mode: auto # "auto" | "explicit" - ttl: 1h # Gemini/Anthropic: 5m / 10m / 1h / 2h ... (Pro 모델 long-running 은 1h+ 권장). OpenAI GPT-5.6+: "30m" 만 + ttl: 1h # Gemini/Anthropic: 5m / 10m / 1h / 2h ... (Pro 모델 long-running 은 1h+ 권장). OpenAI GPT-5.6+: "30m" (기본) 또는 "12h" (responses 엔드포인트 전용, 쓰기 단가 2.5x) preflight: true # default true. 프롬프트의 파일명을 미리 read_docs (LLM-based task 만 적용) preflight_files: # 선택. 명시 시 regex 스캔 대신 이 화이트리스트만 preflight - evidence_shard_plan.json # glob (*, ?) 지원 @@ -507,7 +510,19 @@ print(json.dumps({ **주의:** - `use_tools` 를 주면 LLM 이 도구 호출 가능 → 프롬프트에서 **허용 범위를 명시**해야 함 -- `llm_reasoning` 은 세 provider 모두 적용된다. OpenAI: `reasoning_effort`(completions) / `reasoning.effort`(responses), Anthropic: `output_config.effort`, Google: `thinkingConfig.thinkingLevel` (native SDK 경로 포함) +- `llm_reasoning` 은 **사고 수준을 정하는 단일 키**다. `thinking_level`, `reasoning_effort`, `budget_tokens` 같은 provider 전용 키는 YAML 에 없고, 브리지가 provider 와 모델을 보고 이름을 바꿔 보낸다. 값은 `low | medium | high` 한 세트를 공통으로 쓰며(Gemini 가 추가로 받는 `minimal` 도 같은 키에 적는다), 모델을 바꿔도 YAML 을 고칠 필요가 없게 하기 위한 설계다. + + | YAML `llm_reasoning` | 실제로 가는 파라미터 | + |---|---| + | OpenAI | `reasoning_effort` (chat) / `reasoning.effort` (responses) | + | Anthropic 4.6+ | `output_config.effort` (+ adaptive thinking) | + | Anthropic 4.5 이하 | `thinking.budget_tokens` (low 2048 / medium 8192 / high 16384) | + | Gemini 3.x | `thinking_config.thinking_level` | + | Gemini 2.5 이하 | `thinking_config.thinking_budget` (low 1024 / medium 8192 / high 32768) | + +- `llm_reasoning` 에 **숫자**를 적으면 사고 토큰 예산으로 해석된다. 정확한 예산 제어가 되는 곳은 Gemini 2.5 이하(`thinking_budget=숫자`)와 Anthropic 4.5 이하(`budget_tokens=숫자`)뿐이다. **Gemini 3.x 이상은 `thinking_budget` 이 deprecated 라(간헐적 400, Gemini 4 는 항상 400) 숫자를 티어로 바꿔 `thinking_level` 로 보낸다.** OpenAI·Anthropic 4.6+ 도 같은 변환이다: ≤1024 low / ≤8192 medium / 그 이상 high. 즉 3.x 에서 사고량 조절 수단은 level 4단계뿐이며, 숫자는 2.5 와 YAML 을 공유할 때만 의미가 있다. +- `llm_token_limit` 은 **출력 토큰 상한**이다. provider 별로 OpenAI responses `max_output_tokens`, OpenAI chat 은 gpt-5/6·o 시리즈·reasoning 있음이면 `max_completion_tokens` 그 외 `max_tokens`, Anthropic `max_tokens`, Gemini native `max_output_tokens` 로 보낸다. **적지 않으면 OpenAI·Gemini 는 파라미터를 보내지 않아 모델 기본 상한까지 출력**하고, Anthropic 만 필수 인자라 기본 16,000 을 넣는다(4.5 이하에서 thinking budget 이 더 크면 budget+1,024 로 자동 상향). **OpenAI 와 Anthropic 은 이 한도에 사고(reasoning) 토큰이 포함**되므로 `llm_reasoning: high` 인 task 에 작은 한도를 주면 본문이 잘리거나 `length`/`incomplete` 로 끝난다 — 넉넉히 잡거나 비워 둔다. Gemini 는 사고가 별도 집계라 본문 길이에만 적용된다. +- Google 상세: Gemini 3.x 이상은 `thinking_level` 로 전송되고(`thinking_budget` 과 동시 전송 불가), 2.5 이하는 `thinking_budget`(low 1024 / medium 8192 / high 32768). 허용값은 모델마다 다르다 — gemini-3.8-flash·3.1-pro: `low|medium|high`, 3.6-flash·3.5-flash-lite: `minimal|low|medium|high`, 3-pro: `low|high`. 미지원 값은 가장 가까운 허용값으로 내려 보내고 경고를 남긴다(pro 에 `minimal` → `low`). 기본값은 flash 계열 medium, pro 계열 high 이므로, 사고량을 줄이려면 `low` 를 명시한다. 사고 토큰은 `thoughts_token_count` 로 따로 집계되며(`[USAGE]` 로그 `thoughts=`), 출력 단가로 과금된다. `llm_token_limit`(`max_output_tokens`)은 본문 길이 상한이지 사고량을 정하지 않는다. 사고 수준과 출력 한도는 API 파라미터라 프롬프트 본문에 적어도 효과가 없다. - `llm_verbosity` 는 OpenAI 에서만 전송된다 - `llm_result_envelope: true` 이면 하류 task 가 받는 `{{prev.}}` 가 답변 본문이 아니라 다음 봉투가 된다. provider 의 종료 상태·usage 를 검증 task 가 직접 봐야 할 때 쓴다 (기본 false, 기존 YAML 영향 없음). ```json @@ -577,24 +592,26 @@ print(json.dumps({ ### 3.4 JEV Task (TypeSafe System One — 결정 모델) JEV 는 텍스트를 생성하지 않는다. `state`(판단 대상 자료)에 대해 **choice / score / noul** 세 종류의 질문에 -선택·점수·확률만 돌려주는 결정 모델이다(TypeSafe `POST /v1/systemone`). 그래서 `llm_provider` 가 아니라 +선택·점수·확률만 돌려주는 결정 모델이다(TypeSafe `POST /v1/systemone`). Jev 1.14(2026-10-14)부터 이미지 입력과 **box**(이미지 안 위치 찾기) 질문, 262K long-context 가 추가됐다(아래 "1.14 추가 기능"). 그래서 `llm_provider` 가 아니라 Direct MCP 처럼 **별도 task 유형 `jev:`** 로 쓴다. 프롬프트·도구·preflight 는 없고, 백엔드가 요청을 검증해 -직접 호출하며 429/529 는 지수 백오프로 최대 4회 재시도, 401/422 는 즉시 실패한다. +직접 호출하며 429/503/529 는 지수 백오프로 최대 4회 재시도, 400/401/422 는 즉시 실패한다. ```yaml - task_name: Task_gate_decision jev: - model: jev-latest # 선택. jev-latest | jev-preview | jev-1.13.0 + provider: jev # 선택. jev(기본, TypeSafe) | openai (OpenAI Decisions API, 아래 참조) + model: jev-latest # 선택. jev-latest(=jev-1.14.0) | jev-preview(지금은 latest 와 동일) | jev-1.14.0 | jev-1.13.0 + long_context: false # 선택. true 면 한도 64K/32K → 262K (opt-in 헤더 전송) state: "{{prev.Task_assess_bundle.summary}}" # 문자열·객체·배열. JSON 문자열이면 객체로 전달됨 questions: complete: # noul: 예/아니오 확률 (0~1) type: noul instructions: "요건사실 검토가 모두 끝났는가?" - severity: # score: 순서 있는 2~10단계 + severity: # score: 순서 있는 1~10단계 (위치가 점수, 0부터) type: score instructions: "누락의 심각도를 평가하라" criteria: ["none", "minor", "major"] - route: # choice: 선택지 매핑 (2~255개) + route: # choice: 선택지 매핑 (1~255개, 설명 null 이면 이름만으로 해석) type: choice instructions: "다음 단계를 고르라" criteria: @@ -608,7 +625,7 @@ Direct MCP 처럼 **별도 task 유형 `jev:`** 로 쓴다. 프롬프트·도구 출력(task 결과 = 응답 JSON 전체): ```json -{"model": "jev-1.13.0", +{"model": "jev-1.14.0", "answers": { "complete": {"type": "noul", "noul": 0.91}, "severity": {"type": "score", "score": 1.0, "legend": {"0": "none", "1": "minor", "2": "major"}, @@ -622,11 +639,68 @@ Direct MCP 처럼 **별도 task 유형 `jev:`** 로 쓴다. 프롬프트·도구 처럼 참조하고, `when:` 조건에도 쓸 수 있다. 제약과 주의: -- 요청당 64K 토큰, `state` + 가장 긴 질문 ≤ 32K 토큰. 넘기면 422. +- 요청당 64K 토큰, `state` + 가장 긴 질문 ≤ 32K 토큰. 넘기면 422. `long_context: true` 면 둘 다 262K (1.13·1.14 모두 지원). +- `jev-latest` 는 새 버전이 나오면 따라 움직여 답이 바뀔 수 있다. 임계값을 튜닝한 task 는 `jev-1.14.0` 처럼 고정한다. +- `instructions` 와 `criteria` 값은 문자열뿐 아니라 객체·배열도 된다(구조화된 기준을 그대로 전달). - 한국어는 지원되지만 영어보다 정확도가 낮다(공식 문서). 질문문은 짧고 명확하게, 선택지 설명(`criteria` 값)은 구체적으로. - noul 은 `confidence` 가 없다. score 는 `criteria` 목록 순서가 0,1,2… 로 매핑된다. - 과금은 입력 토큰만(2026-10 기준 $0.042/M, 출력 무료). usage 는 `token_usage_logs` 에 provider `jev` 로 기록된다. - `expose_tools`, `preflight*`, `max_iterations`, `use_tools` 는 JEV task 에 적용되지 않는다. +- 2026-11-05 dev 에서 실호출 확인: `jev-latest`(=1.14.0), `jev-1.14.0`+`long_context`, `provider: openai`(gpt-6-luna) 세 구성 모두 choice·score·noul 정상. + +**작성 규칙 (JEV·OpenAI Decisions 공통)** + +1. **쓸 자리.** 자유 텍스트가 필요 없는 판정에만 쓴다 — 분류(어느 유형인가), 게이트(다음 단계로 가도 되는가), 채점(품질 몇 단계인가), 예/아니오. 근거 문장·요약·재작성이 필요하면 LLM task 다. 결정 모델은 입력 토큰만 과금되므로 "LLM 으로 판정 + 설명" 보다 "결정 모델로 판정 → 필요할 때만 LLM 으로 설명" 순서가 싸다. +2. **`state` 는 판정에 필요한 자료만.** 앞 task 의 출력 전체(`{{prev.X}}`)를 통째로 넣지 말고 판정에 쓰이는 필드만 고른다(`{{prev.X.summary}}`, 객체면 필요한 키만 담은 매핑). 긴 원문은 요약본이나 발췌를 넣는다. 한도는 요청 64K·질문 32K 토큰(`long_context` 시 262K)이지만, 길수록 정확도가 떨어지고 비용이 는다. 여러 인스턴스가 같은 자료를 판정하면 `state` 를 완전히 같게 두고 질문만 달리한다 — OpenAI 는 prefix 캐시가, JEV 는 비용이 그대로이므로 **한 요청에 질문을 묶는 편**이 낫다(질문 수 제한: JEV 명시 없음, OpenAI 400개). +3. **질문 하나에 판단 하나.** `instructions` 는 한 문장의 질문·명제로 쓴다("다음 단계로 발행해도 되는가" / "요건사실 검토가 끝났다"). "A 이고 B 이면 C" 같은 복합 조건은 질문을 쪼개 `when:` 이나 code task 에서 합친다. 지시문에 "JSON 으로 답하라", "이유를 써라" 같은 출력 지시를 넣지 않는다 — 결정 모델은 형식이 고정이고 텍스트를 내지 않는다. +4. **choice 는 상호 배타적 선택지 + 구체적 설명.** `criteria` 값(설명)에 "언제 이 선택지인가"를 적는다. 모호한 경계는 "그 외/해당 없음" 선택지를 하나 두어 억지 분류를 막는다. 선택지 이름(키)은 후속 task 가 그대로 쓰는 식별자이므로 영문 snake_case 로 고정하고, 사람이 읽을 말은 설명에 둔다. OpenAI 는 설명이 없으면 이름만으로 해석하므로 설명을 비우지 않는다. +5. **score 는 순서가 곧 점수.** `criteria` 를 낮음→높음 순으로 쓰고 각 단계의 기준을 설명에 적는다. 3~5단계가 적당하다(10단계 상한). 답 `score` 는 확률 가중 평균이라 소수가 나오므로 `when:` 에서는 `>= 1.5` 처럼 구간으로 비교하고, 단계 라벨이 필요하면 `legend` 로 되찾는다. OpenAI 는 2단계 이상이어야 한다. +6. **noul 은 명제문으로.** 지시문을 "…인가?" 보다 "…이다" 형태의 명제로 쓰면 `noul`(참일 확률)의 의미가 분명하다. JEV 는 `criteria: {true: "...", false: "..."}` 로 양쪽 기준을 줄 수 있고(OpenAI 는 지시문에 합쳐져 전달됨), 임계값은 0.5 고정이 아니라 용도별로 정한다 — 게이트는 보수적으로(통과 0.8 이상), 스크리닝은 느슨하게(0.3 이상 검토). +7. **confidence 를 분기에 쓴다.** choice·score 의 `confidence` 가 낮으면(예: 0.6 미만) 자동 확정하지 말고 LLM 재검토나 사람 검토 경로로 보낸다. `when:` 예: `prev.Task_gate.answers.route.choice == 'publish' and prev.Task_gate.answers.route.confidence >= 0.7`. +8. **provider 선택.** 기본은 JEV(입력 $0.042/M). 다음이면 `provider: openai`(입력 $0.10/M, 캐시 읽기 $0.01/M): 같은 긴 `state` 에 판정을 여러 번·여러 task 에서 반복해 prefix 캐시 이득이 큰 경우, 질문이 수백 개로 한 요청에 묶이는 경우, JEV 키가 없는 환경. 이미지·box 판정은 JEV 만 된다. 두 provider 의 확률 분포는 다르므로 **임계값을 튜닝한 task 는 provider 와 모델 버전을 함께 고정**한다(`jev-1.14.0`, `gpt-6-luna`). +9. **fan-out 과 집계.** 항목별 판정은 `Task_decide_*` 로 펼치고 `state: "{{item.state}}"` 로 받는다. 집계자는 `wait_until: ["all Task_decide_*"]` 로 기다리며 `{{prev.Task_decide_0.answers.…}}` 를 쓸 수 있지만 인스턴스 수가 가변이면 code task 에서 `{{prev}}` 전체를 받아 처리한다. 실패한 인스턴스(빈 `state` 등 400/422)는 재시도 후 failed 로 남고 하류는 진행되므로, 집계에서 빠진 인스턴스를 세어 `partial` 을 처리한다. +10. **검증 순서.** 새 결정 task 는 ① 대표 사례 5~10개로 답과 확률을 눈으로 확인 → ② 임계값 결정 → ③ `when:` 에 연결. 확률이 전부 0.5 근처면 `state` 가 부족하거나 질문이 모호한 것이므로 자료와 지시문을 먼저 고친다. + +**`provider: openai` — OpenAI Decisions API** (`POST /v1/decisions`, 2026-10-22 정식, 모델 `gpt-6-luna`) + +같은 `jev:` 블록에 `provider: openai` 만 추가하면 백엔드가 요청을 변환해 보내고 응답을 JEV 형태로 되돌려 주므로, +후속 task 의 `{{prev.X.answers..choice|noul|score}}` 참조는 그대로 동작한다. 키는 `OPENAI_API_KEY` 를 쓴다. + +```yaml + jev: + provider: openai + model: gpt-6-luna # 선택. 생략 또는 jev-* 이면 gpt-6-luna + prompt_cache_key: "{{stage}}:gate" # 선택. 같은 state 를 여러 task 가 반복 판정할 때 캐시 공유 (≥1,024 토큰 prefix) + state: "{{prev.Task_assess_bundle.summary}}" + questions: { ... 동일 ... } +``` + +| 변환 | JEV | OpenAI | +|---|---|---| +| 입력 | `state` | `input` (객체·배열은 JSON 문자열로) | +| 예/아니오 | `noul` (criteria 는 지시문에 합쳐짐) | `predicate` → 답은 `noul` 과 `probability` 둘 다 채움 | +| 선택 | `criteria {값: 설명}` | `choices [{value, description}]` | +| 점수 | `criteria [라벨…]` 1~10단계 | `levels [{label, description}]` **2~10단계** (1단계는 거부) | +| 답 | `answers` 매핑 | 매핑으로 되돌림. score 에는 `legend` 추가, 거부는 `{type: refusal}` | +| 미지원 | — | `assets`/`box`(이미지), `long_context` 헤더 | + +usage 는 provider `openai`, 모델 `gpt-6-luna` 로 기록되고 캐시 읽기/쓰기 토큰도 반영된다. 가격은 입력 $0.10/M(캐시 읽기 $0.01/M), 출력 무료. +JEV($0.042/M)보다 비싸지만 요청당 질문 400개, 프롬프트 캐시가 되므로 같은 자료에 판정을 많이 묶는 task 에 유리하다. 원본 응답은 `raw` 에 그대로 남는다. + +**1.14 추가 기능 — 이미지와 box 질문** (텍스트 판정에는 불필요. 도면·캡처 판정에만): + +```yaml + jev: + model: jev-1.14.0 + state: "아래 서류 이미지를 보고 판단하라: {{doc_img}}" # placeholder 가 이미지로 치환된다 + assets: + "{{doc_img}}": {type: image, format: png, data_base64: ""} # png|jpg|jpeg, base64 인라인 + questions: + has_seal: {type: noul, instructions: "직인이 찍혀 있는가"} + seal_pos: {type: box, instructions: "직인의 위치"} # box 는 Jev 1.14 이상, 답은 {top,bottom,left,right} 0~1 비율 + confidence +``` + +assets 나 box 가 있으면 백엔드가 `TypeSafe-Danger-Zone-Images: true` 헤더를 자동으로 붙인다. placeholder 는 `state`·`instructions`·`criteria` 어디에나 쓸 수 있고, 이미지도 입력 토큰으로 과금된다. base64 는 YAML 에 직접 넣지 말고 앞 task(code)가 만들어 `{{prev.*}}` 로 넘긴다. ### 3.5 조건부 Task (map 전용) @@ -656,6 +730,7 @@ Direct MCP 처럼 **별도 task 유형 `jev:`** 로 쓴다. 프롬프트·도구 | `{{prev.task_name}}` | 모든 task | 이전 task 의 전체 출력 (stdout JSON 자동 파싱) | | `{{prev.task_name.field}}` | 모든 task | 이전 task 출력의 특정 필드 | | `{{prev.task_name.nested.field}}` | 모든 task | 중첩 필드 접근 (dot-notation) | +| `{{prev.Task_X_0}}`, `{{prev.Task_X_1}}` … | `wait_until: ["all Task_X_*"]` 집계자 | 완료된 fan-out 인스턴스 결과 (실패·스킵 인스턴스는 없음) | | `{{stages.}}` | stage 간 | 이전 stage 의 output 전체 (`apply_stage_context`) | | `{{stages..field}}` | stage 간 | 이전 stage output 의 특정 필드 | | `{{map_results}}` | reduce task | map 전체 결과 (JSON 문자열) | @@ -1010,7 +1085,7 @@ OpenAI 는 요청 prefix 가 같으면 서버가 자동으로 캐시하지만( | `llm_prompt_cache_key` (없으면 자동) | `prompt_cache_key` | 라우팅 키. fan-out 샤드(`Task_X_1`, `Task_X_2`…)는 자동 키 `:` 를 공유해 같은 캐시를 탄다. 명시값은 그대로 전송. GPT-5.6+ 에선 집계용(선택)이고 캐시 적중 자체는 prefix 일치로 결정 | | `cache_control.mode: auto` (기본) | `prompt_cache_options: {mode: implicit}` + 명시 breakpoint 최대 3개 | implicit 가 breakpoint 1개를 쓰므로 명시 breakpoint 는 3개까지 | | `cache_control.mode: explicit` | `prompt_cache_options: {mode: explicit}` + 명시 breakpoint | 서버 자동 breakpoint 없음. breakpoint 위치가 곧 캐시 경계 — 적중률은 올라가지만 위치를 잘못 잡으면 전혀 안 맞는다 | -| `cache_control.ttl: 30m` | `prompt_cache_options.ttl: "30m"` | GPT-5.6+ 는 `30m` 만 허용(최소 보존). 다른 값은 경고 후 `30m` 으로 보냄 | +| `cache_control.ttl: 30m` | `prompt_cache_options.ttl: "30m"` | GPT-5.6+ 는 `30m`(기본, 쓰기 1.25x) 또는 `12h`(responses 전용, 쓰기 2.5x, 읽기 단가 동일). 다른 값은 경고 후 `30m` 으로 보냄 | | `cache_control.prewarm: true` | `prompt_cache_options.prewarm: true` | 첫 호출에서 캐시를 미리 만들 때 | | `cache_control.breakpoints` | 메시지 블록의 `prompt_cache_breakpoint: {mode: explicit}` | 기본 `["system", "prefix"]`. 값: `system` = 마지막 system 메시지 끝, `prefix` = **공통 부분 끝**(아래 설명), `user` = 마지막 user 메시지 끝. assistant/tool 메시지에는 찍지 않는다 | | `cache_control.retention: in_memory \| 24h` | `prompt_cache_retention` | GPT-5.6 **이전** 모델(gpt-5.4, o-series 등) 전용. 5.6+ 에선 무시 | @@ -1258,6 +1333,7 @@ section0.xml의 각 `` 태그는 `paraPrIDRef`로 header.xml의 `:" 자동 — fan-out 샤드가 같은 키를 공유 cache_control: # Gemini: 네이티브 캐시. Anthropic: Messages API 마커(§6.5.3). OpenAI: prompt_cache_options + breakpoint(§6.5.2) mode: auto # auto | explicit - ttl: 30m # OpenAI GPT-5.6+: "30m" 만. Anthropic: 5m | 1h. Gemini: 5m / 10m / 1h / 2h + ttl: 30m # OpenAI GPT-5.6+: "30m" | "12h"(responses 전용). Anthropic: 5m | 1h. Gemini: 5m / 10m / 1h / 2h breakpoints: [system, prefix] # OpenAI: system | prefix | user (최대 3개). Anthropic: system | prefix | user | tools (최대 4개, auto 면 3개) ``` | YAML | provider 별로 백엔드가 보내는 것 | |---|---| -| `llm_reasoning` | OpenAI `reasoning_effort`(completions) / `reasoning.effort`(responses), Anthropic `output_config.effort`, Google `thinkingConfig.thinkingLevel` | +| `llm_reasoning` | `low\|medium\|high` 또는 숫자(예산). OpenAI `reasoning_effort`(completions) / `reasoning.effort`(responses), Anthropic `output_config.effort`(4.5 이하는 `budget_tokens`), Google 3.x `thinking_level`(모델별 허용값, §3.1 주의. 숫자는 티어로 변환) / 2.5 이하 `thinking_budget`(숫자 그대로) | +| `llm_token_limit` | OpenAI responses `max_output_tokens` / chat `max_completion_tokens`(gpt-5/6·o·reasoning) 또는 `max_tokens`, Anthropic `max_tokens`(미지정 시 16000), Gemini `max_output_tokens`. OpenAI·Anthropic 은 사고 토큰 포함 상한, Gemini 는 본문만. OpenAI·Gemini 는 미지정 시 전송 안 함 | | `llm_prompt_cache_key` | OpenAI `prompt_cache_key`. `Task_X_1`, `Task_X_2`… 샤드는 자동으로 `:` 를 공유하므로 다른 묶음이 필요할 때만 지정 | | `cache_control.mode: auto` | OpenAI GPT-5.6+(gpt-6.x, gpt-6.1-sol): `prompt_cache_options {mode: implicit}` + 메시지 최대 3개에 명시 `prompt_cache_breakpoint` | | `cache_control.mode: explicit` | `prompt_cache_options {mode: explicit}`. 서버 자동 breakpoint 없음 → breakpoint 위치가 적중 여부를 전부 결정 | -| `cache_control.ttl` | GPT-5.6+: `30m` 만 (다른 값은 `30m` 으로 강제). Gemini/Anthropic: 지정값 그대로 | +| `cache_control.ttl` | GPT-5.6+: `30m` 또는 `12h`(responses 전용, 쓰기 2.5x; 다른 값은 `30m` 으로 강제). Gemini/Anthropic: 지정값 그대로 | | `cache_control.breakpoints` | `system` = 마지막 system 메시지 끝, `prefix` = 첫 호출 대화(시스템+프롬프트+preflight 파일) 끝, `user` = 마지막 user 메시지 끝, `tools`(Anthropic 만) = 마지막 tool 정의. OpenAI 는 assistant/tool 메시지에 찍지 않음 | | `cache_control.retention` | OpenAI **5.6 이전**(gpt-5.4, o-series): `prompt_cache_retention in_memory \| 24h`. 5.6+ 에선 무시 | | Anthropic `cache_control` | 네이티브 Messages API 의 `ephemeral` 마커. `auto` = system 마커 + top-level 자동 캐시, `explicit` = breakpoints 만. `llm_reasoning` 은 4.6+ adaptive thinking + effort, 4.5 이하 budget_tokens. 모델별 최소 캐시 길이(Haiku 4.5 는 4,096 토큰) 주의 — §6.5.3 | diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/runtime_manifest.json b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/runtime_manifest.json index f65fdf87..71f3d99c 100644 --- a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/runtime_manifest.json +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/runtime_manifest.json @@ -1750,11 +1750,11 @@ }, { "path": "stage1_runtime/domain_slice_compiler.py", - "sha256": "c865eb281e201c5400d7b0d922b8d70f1df1d7de2001e66e3274fc5550a72526" + "sha256": "68451f7ded3e597ca4da592d68595b58ed06919f9f48ffe20249328ad5402610" }, { "path": "stage1_runtime/domain_slice_compiler.txt", - "sha256": "c865eb281e201c5400d7b0d922b8d70f1df1d7de2001e66e3274fc5550a72526" + "sha256": "68451f7ded3e597ca4da592d68595b58ed06919f9f48ffe20249328ad5402610" }, { "path": "stage1_runtime/fact_ledger_compiler.py", @@ -1818,11 +1818,11 @@ }, { "path": "stage1_runtime/stage_a_context_builder.py", - "sha256": "68d984f9d565034c73721dc97c5aab0f9cdb8a8b46e1bf13eabd8c136ec4bcc0" + "sha256": "1943493e09d674fc8b8168967087ef831c578607cfb1d6aa77e33771a0bc9f4c" }, { "path": "stage1_runtime/stage_a_context_builder.txt", - "sha256": "68d984f9d565034c73721dc97c5aab0f9cdb8a8b46e1bf13eabd8c136ec4bcc0" + "sha256": "1943493e09d674fc8b8168967087ef831c578607cfb1d6aa77e33771a0bc9f4c" }, { "path": "stage1_runtime/structure_index_compiler.py", diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/domain_slice_compiler.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/domain_slice_compiler.py index 076eb97a..2f31edfc 100644 --- a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/domain_slice_compiler.py +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/domain_slice_compiler.py @@ -142,6 +142,17 @@ def _term_hits(record: dict[str, Any], terms: list[str]) -> list[str]: return [term for term in terms if term.casefold() in blob] +def _adapt_entry(item: dict[str, Any]) -> dict[str, Any]: + # C-01: D0 (activation_gate) writes primary_positive_refs / screening_confidence. + # meeting_positive_refs (MTG.*) is deliberately not merged. + row = dict(item) + if "positive_refs" not in row: + row["positive_refs"] = stable_unique(as_list(item.get("primary_positive_refs"))) + conf = row.get("confidence") or item.get("screening_confidence") + row["confidence"] = conf if conf in ("high", "medium", "low") else "low" + return row + + def _manifest_domains(manifest: dict[str, Any]) -> tuple[dict[str, Any], dict[str, dict[str, Any]], list[str]]: root = unwrap(manifest, ("domain_activation_manifest", "SG-01")) if not isinstance(root, dict): @@ -149,7 +160,7 @@ def _manifest_domains(manifest: dict[str, Any]) -> tuple[dict[str, Any], dict[st # Canonical SG-01: execution_eligible entries and expected set must agree exactly. if isinstance(root.get("domain_entries"), list) and isinstance(root.get("expected_runnable_domain_ids"), list): selected = { - str(item["domain_id"]): dict(item) + str(item["domain_id"]): _adapt_entry(item) for item in root["domain_entries"] if isinstance(item, dict) and item.get("domain_id") and item.get("execution_eligible") is True } diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/domain_slice_compiler.txt b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/domain_slice_compiler.txt index 076eb97a..2f31edfc 100644 --- a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/domain_slice_compiler.txt +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/domain_slice_compiler.txt @@ -142,6 +142,17 @@ def _term_hits(record: dict[str, Any], terms: list[str]) -> list[str]: return [term for term in terms if term.casefold() in blob] +def _adapt_entry(item: dict[str, Any]) -> dict[str, Any]: + # C-01: D0 (activation_gate) writes primary_positive_refs / screening_confidence. + # meeting_positive_refs (MTG.*) is deliberately not merged. + row = dict(item) + if "positive_refs" not in row: + row["positive_refs"] = stable_unique(as_list(item.get("primary_positive_refs"))) + conf = row.get("confidence") or item.get("screening_confidence") + row["confidence"] = conf if conf in ("high", "medium", "low") else "low" + return row + + def _manifest_domains(manifest: dict[str, Any]) -> tuple[dict[str, Any], dict[str, dict[str, Any]], list[str]]: root = unwrap(manifest, ("domain_activation_manifest", "SG-01")) if not isinstance(root, dict): @@ -149,7 +160,7 @@ def _manifest_domains(manifest: dict[str, Any]) -> tuple[dict[str, Any], dict[st # Canonical SG-01: execution_eligible entries and expected set must agree exactly. if isinstance(root.get("domain_entries"), list) and isinstance(root.get("expected_runnable_domain_ids"), list): selected = { - str(item["domain_id"]): dict(item) + str(item["domain_id"]): _adapt_entry(item) for item in root["domain_entries"] if isinstance(item, dict) and item.get("domain_id") and item.get("execution_eligible") is True } diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/stage_a_context_builder.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/stage_a_context_builder.py index 82a515fc..bee8f93e 100644 --- a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/stage_a_context_builder.py +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/stage_a_context_builder.py @@ -294,6 +294,16 @@ def _build_event_candidate_map(event_obj: Any) -> dict[str, Any]: "fraction_ref": cand.get("fraction_ref"), "confidence": cand.get("confidence"), } + # C-03: creditor/debtor direction and support directness only. The shared source universe + # is near its 260,000-char preflight limit; full support_locators/legal_keywords/location + # pushed it over on the 2026-11-04 run (100 events). Keys are omitted when empty. + direction = cand.get("obligation_direction") + if isinstance(direction, dict) and any(direction.values()): + record["obligation_direction"] = direction + directness = [{"directness": loc.get("directness")} + for loc in cand.get("support_locators") or [] if isinstance(loc, dict)] + if directness: + record["support_locators"] = directness by_candidate_id[cid] = record by_evidence_index.setdefault(evidence_index, []).append(cid) for ref in refs: diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/stage_a_context_builder.txt b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/stage_a_context_builder.txt index 82a515fc..bee8f93e 100644 --- a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/stage_a_context_builder.txt +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.7/extension_research/Default_Agent/stage1_runtime/stage_a_context_builder.txt @@ -294,6 +294,16 @@ def _build_event_candidate_map(event_obj: Any) -> dict[str, Any]: "fraction_ref": cand.get("fraction_ref"), "confidence": cand.get("confidence"), } + # C-03: creditor/debtor direction and support directness only. The shared source universe + # is near its 260,000-char preflight limit; full support_locators/legal_keywords/location + # pushed it over on the 2026-11-04 run (100 events). Keys are omitted when empty. + direction = cand.get("obligation_direction") + if isinstance(direction, dict) and any(direction.values()): + record["obligation_direction"] = direction + directness = [{"directness": loc.get("directness")} + for loc in cand.get("support_locators") or [] if isinstance(loc, dict)] + if directness: + record["support_locators"] = directness by_candidate_id[cid] = record by_evidence_index.setdefault(evidence_index, []).append(cid) for ref in refs: diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Gemini LLM 사용 시 thinking_level 설정 관련 질의응답.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Gemini LLM 사용 시 thinking_level 설정 관련 질의응답.md new file mode 100644 index 00000000..9cb57d50 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Gemini LLM 사용 시 thinking_level 설정 관련 질의응답.md @@ -0,0 +1,63 @@ +# Gemini LLM 사용 시 `thinking_level` 설정 관련 질의응답 + +## 요구사항 + +stage_1_part_1_v.8.yml`의 LLM 작업 sub-task들 중 Gemini 모델을 사용하는 작업들은 아래와 같다. +`Task_A0_domain_screener_01` +`Task_B1_map_doc_*` +`Task_B2_map_events_*` +`Task_B1r_map_doc_*` +`Task_B2r_map_events_*` +`Task_B12_gate_llm_adjudicator` +`Task_V1_value_facts_*` + +각 sub-task별 Gemini 모델은 그대로 유지하고, token budget은 항상 high로 잡고, `thinking_level`은 모델별로 다음과 같이 설정하고자 한다. + +`Task_A0_domain_screener_01` -> medium +`Task_B1_map_doc_*` -> medium +`Task_B2_map_events_*` -> medium +`Task_B1r_map_doc_*` -> high +`Task_B2r_map_events_*` -> high +`Task_B12_gate_llm_adjudicator` -> low +`Task_V1_value_facts_*` -> low + +Gemini 모델을 사용하는 sub-task의 prompt의 어떤 위치에 어떤 방식으로 위 요구사항을 반영할 수 있는가? 두 문단 이내로 설명하라. + +## 답변 + +**이 요구사항은 프롬프트에 넣을 수 있는 내용이 아닙니다**. `thinking_level`과 출력 토큰 한도는 모델 호출의 API 파라미터(`GenerateContentConfig`)라서, 프롬프트에 글로 써 두어도 모델은 그 값을 지키지 않습니다. 또 "사고 과정 작성" 같은 문구가 본문에 섞이면 V1에서처럼 응답에 사고 과정이 노출될 위험만 커집니다. 반영할 곳은 각 task의 YAML 키입니다. 사고 수준은 `llm_reasoning`에 medium, high, low를 적고, 출력 한도는 `llm_token_limit`에 적습니다. 브리지는 이미 `llm_token_limit`을 Gemini `max_output_tokens`로 보내고 있으므로(773행), "token budget을 항상 high"로 두려면 7개 task 모두에 `llm_token_limit: 65536`(Gemini 3.x 상한)을 넣으면 됩니다. 지금 이 키는 V1에만 32,000으로 있고, 나머지 task에는 없습니다. `thinking_level` 값은 지정하신 대로 넣으면 됩니다. A0_01·B1·B2는 medium, B1r·B2r은 high, B12·V1은 low입니다. 지금 YAML과 비교하면 V1만 medium에서 low로 바뀌고, 나머지는 이미 같은 값입니다. + +다만 YAML만 바꿔서는 `thinking_level`이 실제로 전송되지 않습니다. 배포 브리지의 770행은 `llm_reasoning`을 여전히 `ThinkingConfig(thinking_budget=숫자)`로 바꿔 보냅니다. 그래서 YAML에 medium이라고 적어도 모델에는 숫자 예산 8,192가 가고, 지난번 사고 토큰 초과의 원인으로 추정한 경로가 그대로 남습니다. 백엔드에서 두 가지를 고쳐야 합니다. 첫째, Gemini 3.x 모델에서는 `llm_reasoning` 값을 `ThinkingConfig(thinking_level=값)`으로 보내야 하고, 둘을 함께 보내면 오류가 나므로 `thinking_budget`은 빼야 합니다. 둘째, `usage_metadata.thoughts_token_count`를 로그에 남겨 실제 사고량을 확인할 수 있게 해야 합니다. 이 수정은 백엔드 코드 변경과 배포가 필요하므로 승인이 있어야 합니다. 프롬프트에서는 한 가지만 하면 됩니다. 앞서 제안한 출력 규칙("출력은 JSON 하나, 첫 글자는 `{`, 사고 과정·설명 금지")을 각 프롬프트의 `` 안쪽 고정 지시부 끝에 넣는 것입니다. 이것은 사고량을 정하는 장치가 아니라, 사고가 길어져도 본문에 섞이지 않게 막는 보조 장치입니다. + +--- + +## 요구사항 + +위 답변에 근거하여 질문한다. `llm_reasoning`에 medium, high, low를 적는 것이 `thinking_level` 값을 지정하는 것과 정확히 동일(equivalent)한가? 예, 아니오로 답하라. 만일 답이 '아니오'라면, `thinking_level` 값을 파라미터값으로 yaml에 작성하는 방법을 한 문단 내로 설명하라. 답이 '예'라면 설명은 생략한다. + +## 답변 + +**아니오.** 같지 않습니다. + +`llm_reasoning: medium`을 적어도 배포 브리지(770행)가 이 값을 숫자 예산 `thinking_budget=8192`로 바꿔 보냅니다. low는 1,024, high는 32,768이 됩니다. Gemini API 쪽에서도 하위 호환용 숫자 예산과 `thinking_level`은 서로 다른 파라미터입니다. + +`thinking_level`을 YAML에 적을 방법도 지금은 없습니다. 배포 백엔드(`agent.py`)가 task 설정에서 읽는 모델 관련 키는 아홉 개뿐입니다. + +- `llm_provider` +- `llm_model` +- `llm_reasoning` +- `llm_endpoint` +- `llm_verbosity` +- `llm_token_limit` +- `llm_prompt_cache_key` +- `llm_history_continuous` +- `llm_result_envelope` + +여기에 `thinking_level`이나 임의의 생성 설정을 그대로 넘겨주는 키는 없습니다. YAML에 `thinking_level: medium`을 새로 적어도 무시됩니다. + +YAML에서 값으로 지정하려면 백엔드를 먼저 고쳐야 합니다(승인이 필요한 코드 변경과 배포입니다). 방법은 둘 중 하나입니다. + +- **(가) 새 키 추가:** `agent.py`가 `config.get("llm_thinking_level")`을 읽어 Bridge에 넘기게 하고, `bridge.py`의 Gemini 경로가 이 값이 있을 때 `types.ThinkingConfig(thinking_level=값)`만 보내게 합니다. 이 경우 `thinking_budget`은 빼야 합니다. 둘을 함께 보내면 오류가 나기 때문입니다. +- **(나) 기존 키 재해석:** 브리지가 Gemini 3.x 모델에서는 `llm_reasoning` 값을 숫자로 바꾸지 않고 `thinking_level`로 그대로 보내게 합니다. + +(가)로 고치면 YAML에는 각 Gemini task에 `llm_thinking_level: medium`처럼 적습니다. (나)로 고치면 지금처럼 `llm_reasoning: medium`이라고 적은 값이 그대로 `thinking_level`이 됩니다. 이 경우 YAML은 바꿀 필요가 없고, 그때부터 두 방식이 같아집니다. \ No newline at end of file diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/LLM_추론수준_개정된_stage_1.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/LLM_추론수준_개정된_stage_1.md new file mode 100644 index 00000000..81729684 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/LLM_추론수준_개정된_stage_1.md @@ -0,0 +1,50 @@ +# Stage 1 Part 1 LLM sub-task 추론 수준(reasoning level) 현황과 제안 + +- **대상:** `1. Stage_1/v.8/stage_1_part_1_v.8.yml`(sha256 `41663b8f…`). YAML은 수정하지 않았다. +- **실측 근거:** 2026-11-03 세션 `2ef6f8fc`의 성공 실행(`Testrun/Nov_03/결과보고서_v2_part_1.md`). 총 12분 50초, $1.61. +- **백엔드 근거:** 배포 브리지 `llm_bridge/bridge.py`를 읽기 전용으로 확인했다. + - Gemini(native): `llm_reasoning`을 `thinking_budget`으로 바꾼다. low 1,024 · medium 8,192 · high 32,768토큰이다(768행). `llm_token_limit`은 `max_output_tokens`가 된다. + - OpenAI chat.completions: `reasoning_effort=<값>`으로 보낸다(194~195행). +- **"최적"의 정의:** sub-task의 목적을 달성하는 가장 낮은 추론 수준이다. 다만 전체 시간은 임계 경로(A0_01 → Task_A)만 줄인다. + +## 1. 현행 설정과 실측 + +| sub-task | 목적 | 모델 | reasoning (thinking 예산) | 기타 | 호출 | 평균 / 최대 시간 | 호출당 출력(추론 포함) | 임계 경로 | +|---|---|---|---|---|---:|---|---:|---| +| Task_A0_domain_screener_01 | 상담록과 단서 사전으로 26개 법리 도메인의 활성 후보·근거·검토 항목 초안(JSON) | gemini-3.8-flash | **medium** (8,192) | verbosity low | 1 | 276s | 7,437 | **예** | +| Task_A_client_goal | 의뢰인 목표, 당사자, 피고 자격, 쟁점, 원고 적격, 점유·지배 지도(client_goal.json, 11.7만 자) | gpt-6.1-sol | **high** | verbosity 기본(medium) | 1 | 472s | 40,677 | **예** | +| Task_B1_map_doc_* | 증거문서 1건의 색인(문서 성격, 권위, 증거 구성요소 슬롯) | gemini-3.8-flash | **high** (32,768) | verbosity medium, 동시 12 | 30 | 108s / 179s | 2,066 | 아니오(약 2분 여유) | +| Task_B2_map_events_* | 증거문서 1건의 사건·행위 후보, 채권 방향(obligee·obligor) | gemini-3.8-flash | **high** (32,768) | verbosity medium, 동시 12 | 30 | 166s / 323s | 4,287 | 아니오 | +| Task_B1r_map_doc_* | B1 고장 part만 1회 재생성 | gemini-3.8-flash | **high** | 동시 12 | 0(미발동) | — | — | 발동 시 B 경로 | +| Task_B2r_map_events_* | B2 고장 part만 1회 재생성 | gemini-3.8-flash | **high** | 동시 12 | 0(미발동) | — | — | 발동 시 B 경로 | +| Task_B12_gate_llm_adjudicator | B2 게이트 예외 14건에 SOFT·HARD·DISMISS·ESCALATE 판정 | gemini-3.5-flash-lite | **low** (1,024) | verbosity low | 1 | 16s | 3,226 | 아니오 | +| Task_V1_value_facts_* | 증거문서 1건의 금액·면적 등 값 사실 추출(원문 인용) | gemini-3.8-flash | **medium** (8,192) | token_limit 32,000, 동시 8 | 30 | 79s / 237s | 835 | 아니오 | + +- 임계 경로 = A0_01 276s + 코드 약 10s + Task_A 472s + 코드 약 9s ≈ 769s(전체 시간). +- B 사슬은 08:15:50에, V 사슬은 08:11:14에 끝나 T9를 기다렸다. 그래서 B·V를 빠르게 해도 지금은 전체 시간이 줄지 않는다. + +## 2. 제안 + +| sub-task | 현행 | **제안** | 근거 | 기대 효과 | 위험 · 확인 방법 | +|---|---|---|---|---|---| +| A0_01 | medium | **low** | 하는 일은 단서 사전과 상담록을 맞대는 라우팅이다. 근거 인용·보존 등식·도메인 집합은 A0_02 코드가 검증하고 실패하면 BLOCKED가 된다. 11-03 2차 실행에서 207초를 생각하고 9토큰을 냈듯이 사고 시간이 대부분이다 | 임계 경로 276s의 상당 부분. 크기는 UNVERIFIED | 후보 누락·과선언. A0_01은 재시도가 없어 헛 실패 한 번이 전체 BLOCKED다. 같은 입력으로 low·medium을 각 3회 돌려 후보 집합·검토 항목이 같은지 비교한 뒤 확정한다 | +| Task_A | high | **medium** | 최대 비용·시간 task다. 출력 40,677토큰 중 결과 본문(11.7만 자)이 대부분이라 시간은 생성량이 정한다. 추론 토큰 몫만 줄어든다 | 472s 중 추론 몫(크기 UNVERIFIED). This is an inference without much evidence: 대략 10~25% | 피고 자격·당사자 판단은 Part 2~4와 S2_00 피고 게이트의 입력이다(10-11 오칠성·나일오 과선언 사례). 같은 입력으로 high·medium의 `defendant_qualification`·`parties`·`claim_type_candidates`를 비교한다. 차이가 나면 high를 유지한다 | +| B1 | high | **medium** | 문서 1건 단위의 구조화 추출이다. 게이트(B1 결정적 게이트·B12)와 복구 사슬이 뒤를 받친다. 호출당 출력이 2천 토큰이라 32K 예산은 과하다 | B 사슬 시간·비용 감소. 지금은 임계 경로가 아니라 전체 시간에는 영향 없음 | suspect·REVIEW 증가 여부를 B1 게이트 `suspect_count`(현 6)와 복구 발동 수로 본다 | +| B2 | high | **medium** | 사건 후보와 채권 방향은 B1보다 판단이 많지만 규칙형이다(event_kind 매핑 양성 조건). 최대 323s로 B 사슬의 병목이다 | B 사슬 단축. A 사슬을 줄이면 B가 새 임계 경로가 될 수 있어 함께 줄여야 효과가 난다 | `exception_count`(현 14)·HARD_WARNING·dedup 변화 비교. 나빠지면 high로 되돌린다 | +| B1r·B2r | high | **high 유지** | 1차 시도가 실패한 문서만 1회 다시 만든다. 드물게 돌고(이번 0회), 다시 실패하면 그대로 남는다 | — | — | +| B12 | low | **low 유지** | 16초, 예외 14건 분류다. 이미 최저 수준이다 | — | — | +| V1 | medium | **low** + 응답 형식 점검 | 원문에 적힌 값을 인용해 옮기는 추출이다. gate가 원문 대조로 검증한다. 이번 실행에서 4건이 `max_tokens`로 잘렸고, 그중 2건은 응답 본문에 사고 과정("Wait! …")이 그대로 들어갔다. 더 생각해서 더 좋아진 사례가 아니다 | V 사슬 시간 감소(현 최대 237s). 전체 시간에는 영향 없음 | low에서 실패 4건(E-007·E-011·E-013·E-024)이 줄어드는지 본다. 잘림 원인이 사고 토큰인지는 UNVERIFIED다(아래 §3) | + +**적용 순서 권고** +1. **V1 low, B1·B2 medium.** 임계 경로 밖이라 전체 시간 위험이 없다. 비용이 줄고 품질 변화를 게이트 수치로 바로 볼 수 있다. +2. **A0_01 low.** 3회 비교에서 후보 집합이 같으면 확정한다. +3. **Task_A medium.** 피고 자격·당사자 비교에서 차이가 없을 때만 확정한다. + +2와 3을 함께 적용하면, B2 최대 323s가 포함된 B 사슬(약 10분 38초)이 새 임계 경로가 될 수 있다. 그래서 1의 B2 medium이 전체 시간 단축의 전제다. + +## 3. 확인하지 못한 것 + +- **Gemini 3.x가 `thinking_budget`을 어떻게 처리하는가.** 브리지는 2.x식 `thinking_budget`만 보낸다. 3.x의 `thinking_level`과 실제로 대응하는지, 예산이 상한으로 지켜지는지는 확인하지 못했다(UNVERIFIED). + - V1은 사고 예산 8,192에 출력 상한 32,000인데도 약 3,000자에서 `max_tokens`로 끝났다. 예산이 지켜지지 않았거나, 사고가 본문으로 새어 나온 것으로 보인다. This is an inference without much evidence. +- **추론 수준별 실제 시간·품질 차이.** 이 문서의 기대 효과는 모두 추정이다. 위 비교 실행으로만 확정할 수 있다. +- **GPT-6.1 Sol의 `reasoning_effort` 허용값.** chat.completions에서 low·medium·high 외의 값(minimal 등)을 받는지 확인하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/결과보고서_part_1.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/결과보고서_part_1.md new file mode 100644 index 00000000..0c72ce64 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/결과보고서_part_1.md @@ -0,0 +1,112 @@ +# Stage 1 Part 1 결과보고서 (2026-11-03 2차 실행) + +- 대상: `1. Stage_1/v.8/stage_1_part_1_v.8.yml`(sha256 `9c425a21…`, task 29). 실행 코드에서 이번 개정분(`PART_PENDING`·`UPSTREAM_NO_OUTPUT`)을 확인했다. +- 실행: workspace `11월_1일_구성`, 세션 `e278fe64`, 2026-11-03 04:45:39~04:58:01 UTC(12분 22초) +- 근거: `agent-backend` 로그(`docker logs`), localdocs MCP `read_docs`로 읽은 작업공간 파일. 모두 읽기 전용으로 확인했다. + +## 1. 결론 + +**백엔드 기준으로는 성공, 업무 기준으로는 실패(BLOCKED)다.** +- 백엔드는 199개 task를 모두 `completed successfully`로 기록했다. 오류 코드, 재시도, 취소는 0건이다. +- 그러나 Part 1의 최종 판정 `quality_gates/stage1_part1_soft_gate_handoff.json`은 `handoff_status: BLOCKED`, `stage2_auto_progression_allowed: false`다. A0 게이트(`SCREENING_DRAFT_UNREADABLE`) 하나 때문이다. + +**원인은 A0_01 프롬프트와 배포 자산의 불일치다.** +- A0_01(Gemini 3.8 flash)은 207초 동안 생각한 뒤 9토큰만 답했다. 답은 `FAILED: activation_cue_digest`였다. +- 프롬프트 FAILURE_POLICY(297행)는 "단어 사전 머리말에 `registry_version`이 없으면 중단"하라고 한다. 그런데 배포된 `activation_cue_digest.md`(11-01 13:26 배포)에는 이 머리말이 없다. 도메인 절 26개는 맞다. +- 반대로 A0_02 코드(1132~1150행)는 머리말이 없어도 경고만 남긴다. 정본은 `_registry_index.json`이라는 이유다. 모델은 프롬프트를 글자 그대로 따랐다. +- 같은 사전으로 돈 지난 실행들은 통과했다. 이 판정은 모델이 실행마다 다르게 내리는 지점이다. + +**11-03 오후 수정 3건은 의도대로 동작했다.** Task_A 성공, part 표식 잔존 0, capture 오류 구분 정상(§4). + +## 2. 실행 구조와 결과 (DAG · IO) + +``` +IN ─┬─► A0_01 (LLM, Gemini) ─► A0c ──► A0_02 ──────► A0_03 ──────► Task_A (LLM, GPT-6.1 Sol) ─► Ac + │ 207s · 응답 9토큰 │ ✗CAPTURE ✗FAILED ✓READY* ✓486s · 108,987자 ✓CAPTURED + │ ▼ (screening 미작성) (지난 screening 사용) │ + │ domain_screening_draft.json = 표식 candidate_profile_vocabulary.md client_goal.json + │ │ + └─► Evidence planner ✓ (READY · shard 30 · PART_PENDING 60개 기록) │ + ├─► B1 ×30 ─► B1c ×30 ─┬─► B2 ×30 ─► B2c ×30 ─┐ │ + │ ✓ 30/30 │ ✓ 30/30 │ │ + │ ▼ ▼ │ + │ B1r (repair 0, 빈 fan-out) B2r (repair 0, 빈 fan-out) │ + │ ▼ ▼ │ + │ B1 게이트 ✓PASS ─────────────► B2 게이트 ✓PASS · exception 14 │ + │ evidence_indexed.json evidence_event_candidates.json │ + │ │ ▼ when exception_count>0 │ + │ │ B12 (LLM, flash-lite) ✓ ─► B12c ✓ ─► finalizer ✓ │ + │ │ ▼ │ + │ │ D0 ✓READY_WITH_REVIEW* ◄── (A0_02 대기) │ + │ │ domain_activation_manifest.json │ + │ │ ▼ │ + │ │ handoff writer ◄─────────────────────────────────────┘ + │ │ ✗ BLOCKED (A0 게이트) → stage1_part1_soft_gate_handoff.json + └─► V0 ✓ ─► V1 ×30 ✓ ─► V1c ×30 ✓ ─► V2 ✓READY_WITH_REVIEW ─► V3 ✗BLOCKED ─► OUT + value_facts.json (GATE_NOT_CLEARED) +``` + +`*`는 이번 실행이 아니라 지난 실행(02:40 UTC)의 `routing/domain_screening.json`을 입력으로 쓴 산출물이다. + +| 구간 | task 수 | 결과 | 주요 수치 | +|---|---:|---|---| +| A0 사슬 | 4 | **실패**. 03만 READY | 01 응답 39자. 02 `DRAFT_UNREADABLE` | +| Task_A·Ac | 2 | 성공 | `client_goal.json` 123,207자, JSON 정상, 최상위 키 14개 | +| B1 사슬 | 63 | 성공 | final 30, suspect 6, repair 0 | +| B2 사슬 | 63 | 성공 | 후보 131, dedup 0, exception 14, repair 0 | +| B12 사슬 | 3 | 성공 | 판정 14건(SOFT_WARNING_REVIEW 12 · ESCALATE 1 · DISMISS 1). B1 SOFT · B2 HARD_WARNING, hard 0 | +| D0 | 1 | 성공* | 도메인 26, runnable 15, active 13, review 7, unrouted 1 | +| V 사슬 | 63 | V2 성공, V3 BLOCKED | 문서 30(ok 28 · review 2), records 99. V3는 `party_aliases.json`의 `GATE_NOT_CLEARED` 때문에 막혔다 | +| handoff | 1 | **BLOCKED** | hard gate 1(`A0-GATE-SCREENING_DRAFT_UNREADABLE`) | + +## 3. 결과물이 YAML 의도대로 생성되었는가 + +| 결과물 | 생성 | 판정 | +|---|---|---| +| `evidence_shard_plan.json`, `evidence_shards/` 30, `value_facts_input_plan.json`, `value_facts_inputs/` 30 | ✓ | 의도대로 | +| `evidence_indexed_parts/` 30 → `evidence_indexed.json` | ✓ | 의도대로. 60개 part 모두 JSON이고 `PART_PENDING`은 0개 남았다 | +| `evidence_event_candidate_parts/` 30 → `evidence_event_candidates.json` | ✓ | 의도대로 | +| `quality_gates/B1_*`·`B2_*`·`value_facts_gate.json`, `stage1_tmp/quality_gate/` 9개 | ✓ | 의도대로. 복구 계획은 DONE·빈 fan-out이다 | +| `value_facts.json`·`value_facts_parts/` 30 | ✓ | 의도대로 | +| `routing/domain_screening_draft.json` | 표식 | **의도와 다르다.** 96바이트 `CAPTURE_FAILED MODEL_NOT_JSON_OBJECT: FAILED: activation_cue_digest`. 실패 시 표식을 쓰는 동작 자체는 설계대로다 | +| `routing/domain_screening.json` | 미갱신 | **의도와 다르다.** 02:40의 지난 파일이 남았다 | +| `candidate_profile_vocabulary.md`, `client_goal.json`, `domain_activation_manifest.json` | ✓* | 형식은 정상이다. 다만 지난 screening 위에서 만들어졌다. 입력(`client_meeting.md`·`evidence_all.json` 11-02, 사전 11-01)이 같아 내용은 쓸 만할 수 있다. 그러나 이번 실행이 봉인한 결과는 아니다 | +| `party_aliases.json`, `value_facts_party_links.json` | 오류본 | 게이트 미통과로 빈 값과 오류 코드가 기록됐다. 설계대로 막힌 것이다 | +| `stage1_part1_soft_gate_handoff.json` | BLOCKED | 게이트가 의도대로 오류를 잡았다 | + +## 4. 11-03 오후 수정분 검증 + +| 수정 | 실측 | 판정 | +|---|---|---| +| ① Task_A `llm_verbosity` 삭제 | chat.completions 1회 호출, 486초. prompt 35,999 · completion 44,192 · cache_write 35,996. 비용 $0.532. `text` 인자 오류 0건 | 해결 | +| ② capture `UPSTREAM_NO_OUTPUT` | upstream 실패가 없어 발동하지 않았다. A0c는 응답이 있었으므로 `MODEL_NOT_JSON_OBJECT`로 올바르게 구분했다 | 정상. 발동 경로는 아직 실측되지 않았다 | +| ③ planner `PART_PENDING` | 표식 60개를 기록한 뒤 capture가 모두 덮었다. 남은 표식 0 | 해결 | +| §3.5 미검증 경로 | B2r 빈 fan-out, B2 게이트 `exception_count`, B12 조건부 실행(1회 호출), B12c→finalizer→D0, handoff BLOCKED 기록, V3 | 모두 실행으로 확인 | + +## 5. 비용·캐시 + +| task | 호출 | 입력 | 적중률 | 출력 | 평균 / 최대 시간 | +|---|---:|---:|---:|---:|---| +| B1 | 30 | 692,498 | 94.4% | 60,190 | 106s / 166s | +| B2 | 30 | 646,860 | 84.7% | 127,207 | 163s / 358s | +| V1 | 30 | 461,973 | 94.9% | 25,408 | 64s / 228s | +| A0_01 | 1 | 24,906 | 8.2% | 9 | 207s | +| Task_A | 1 | 35,999 | 0%(첫 호출, write 35,996) | 44,192 | 486s | +| B12 | 1 | 약 1만 | 0% | — | 15s | + +- **전체:** 93회 호출, `[USAGE]` 비용 합계 $1.60. 그중 Task_A가 $0.53, B2가 약 $0.59다. +- **B12 캐시:** prefix가 866토큰으로 Gemini 최소 1,024토큰보다 작아 캐시 생성이 실패했다(400). 비캐시 호출로 정상 진행됐다. 해가 없으므로 조치가 필요 없다. +- **임계 경로:** A 사슬(A0_01 207초 + Task_A 486초)이 B 사슬(B2 끝 04:57:19)과 거의 같은 시각에 끝났다. 실행 시간은 두 LLM 호출이 정한다. +- **집계 방법:** task별 수치는 동시에 실행된 `[BRIDGE]` 줄을 완료 순서대로 짝지은 근사치다. 다만 B1과 V1은 오전 실행과 입력량이 같다. + +## 6. 조치 권고 + +1. **[치명] A0_01 FAILURE_POLICY(297행) 수정.** `registry_version` 머리말 요구를 지우고 "도메인 절 26개" 검사만 남긴다. A0_02 코드는 이미 머리말이 없어도 경고만 남기며, 정본은 `_registry_index.json`이다. 사전에 머리말을 추가해 재봉인하는 방안은 자산 sha 연쇄 갱신이 필요해 권하지 않는다. +2. **[주요] A0_02 실패 시 지난 screening을 무효화한다.** `FAILED`이면 `routing/domain_screening.json`에 비JSON 표식을 쓰게 한다. 그러면 A0_03·Task_A·D0가 지난 파일로 진행하지 않는다. 이번에는 handoff 게이트가 막았지만, 중간 산출물 3개가 지난 입력으로 생성됐다. ③ `PART_PENDING`과 같은 방식이다. +3. 위 두 가지를 반영한 뒤 Part 1을 재실행해 handoff `READY` 계열을 확인한다. 그다음 Part 2를 실행한다. Part 2 전에 runtime_manifest 정본 업로드가 필요하다. + +## 7. 확인하지 못한 것 + +- A0_01이 지난 실행들에서는 같은 규칙을 왜 통과했는가. 지난 응답 원문이 로그에 남아 있지 않다(컨테이너 04:43 재시작). This is an inference without much evidence: 모델의 규칙 적용이 실행마다 달라지는 것으로 추정한다. +- Task_A 출력 123,207자가 의도한 분량인가. 실제 verbosity 기본값은 UNVERIFIED이며, 지난 정상 실행의 `client_goal.json` 크기와 비교하지 않았다. +- `client_goal.json`·D0 manifest 내용의 법률적 정확성. 이번 보고서는 형식과 흐름만 검증했다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/결과보고서_v2_part_1.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/결과보고서_v2_part_1.md new file mode 100644 index 00000000..8467b6d1 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/결과보고서_v2_part_1.md @@ -0,0 +1,103 @@ +# Stage 1 Part 1 결과보고서 v2 (2026-11-03 3차 실행) + +- 대상: `1. Stage_1/v.8/stage_1_part_1_v.8.yml`(sha256 `41663b8f…`, task 29, 4pm 추가개정 반영본) + - 실행 코드에서 이번 개정분을 확인했다: `*_PENDING` 표식, A0_03 `upstream_screening`. +- 실행: workspace `11월_1일_구성`, 세션 `2ef6f8fc`, 2026-11-03 08:05:12 ~ 08:18:01 UTC + - 업로드는 08:04:31이다. + - 그 앞 07:55 세션 `71795340`은 옛 YAML(V 사슬 없음)로 돈 별개 실행이라 제외했다. +- 근거 + - `agent-backend` 로그: `docker logs`, 28,148행. `[USAGE]`·`[PROCESS_MESSAGES]`·코드 task stdout을 썼다. + - localdocs `read_docs`로 읽은 작업공간 파일 + - 모두 읽기 전용으로 확인했다. + +## 1. 최종 성공 여부 — **성공** + +| 판정 기준 | 결과 | +|---|---| +| 백엔드 | task 199개 전부 `task_complete`, `execution_complete`. 코드 task 106건 모두 `error_code=0`, 재시도·실패 0 | +| Part 1 판정 (`quality_gates/stage1_part1_soft_gate_handoff.json`) | **`READY_WITH_REVIEW`**, `stage2_auto_progression_allowed: true`, hard gate 0, digest_guard 7키 유효 | +| 검토 항목 | 26건(D0 활성화 검토 17 포함). 최종 작성 차단 항목 1건 | +| 지난 실행 파일 차단(4pm 개정) | 표식 4종(`HANDOFF/SCREENING/VOCABULARY/MANIFEST_PENDING`)이 모두 정본으로 덮였다. 잔존 0 | + +`READY_WITH_REVIEW`는 Stage 2로 넘어가도 되지만 변호사 검토 항목이 남아 있다는 뜻이다. 실패가 아니다. + +**4pm 개정의 온라인 확인 항목(전략서 M7-3)도 해결됐다.** +- (a) A0_03에 렌더링된 `{{prev}}`는 `{"Task_A0_domain_screener_02": {…stdout…, "json_output": {…}}}` 형태였다. 코드가 `written: true`를 정상으로 읽었다. +- (b) A0_02가 쓴 `screening_sha256`과 A0_03이 읽은 값이 `e75d3f33…`로 같았다. `SCREENING_SHA_UNCONFIRMED` 경고는 없었다. 따라서 이 검사를 경고에서 `fail`로 올려도 된다. + +## 2. 총 런타임 — **12분 49.8초** (769.8초) + +- `session_started` 08:05:12.006 → `execution_complete` 08:18:01.846 +- 코드 task 106건은 건당 약 3.1~3.9초, 합계 약 6분이다. 대부분 병렬로 돌아 실제 경과 시간 기여는 작다. + +## 3. LLM API 비용 — **$1.61** (93회 호출) + +| task | 모델 | 호출 | 입력 | 캐시 적중 | 적중률 | 출력(추론 포함) | 캐시 쓰기 | 비용 | +|---|---|---:|---:|---:|---:|---:|---:|---:| +| B1 | gemini-3.8-flash | 30 | 692,498 | 653,850 | 94.4% | 61,987 | — | $0.311 | +| B2 | gemini-3.8-flash | 30 | 648,647 | 548,160 | 84.5% | 128,600 | — | $0.599 | +| V1 | gemini-3.8-flash | 30 | 461,973 | 438,540 | 94.9% | 25,046 | — | $0.144 | +| A0_01 | gemini-3.8-flash | 1 | 24,922 | 2,049 | 8.2% | 7,437 | — | $0.045 | +| B12 | gemini-3.5-flash-lite | 1 | 11,013 | 0 | 0% | 3,226 | — | $0.011 | +| Task_A | gpt-6.1-sol | 1 | 36,937 | 0 | 0% | 40,677 | 36,934 | $0.499 | +| **합계** | | **93** | **1,875,990** | **1,642,599** | **87.6%** | **266,973** | **36,934** | **$1.609** | + +- **토큰 총량:** 입력 187.6만 + 출력 26.7만 = **214.3만**. 입력 중 164.3만(87.6%)이 캐시 적중이다. + - 적중분은 입력 합계에서 빠지지 않고 할인 단가만 적용된다. +- **모델별 비용:** gemini-3.8-flash $1.099(91회), gpt-6.1-sol $0.499(1회), gemini-3.5-flash-lite $0.011(1회). +- **비용 산출 근거:** 백엔드 `[USAGE] Saved` 기록의 합이다. 위 값은 백엔드 단가표 기준이며, 공급자 청구서와는 대조하지 않았다. +- **집계 방법:** task별 값은 동시에 실행된 호출을 완료 순서대로 짝지은 값이다. 모델별 합계는 정확하다. +- **11-03 2차 실행($1.60)과 거의 같다.** B1과 V1은 입력량까지 같다. +- **캐시 생성:** 44회. 만료 캐시 재생성 11회는 직전 실행 캐시가 만료된 뒤의 정상 재시도다. B12 prefix는 1,024토큰 미만이라 캐시를 만들지 못했고(1회 실패), 영향은 없다. + +## 4. 세부 작업 결과물의 형식 + +| 구간 | 결과물 | 판정 | +|---|---|---| +| A0 사슬 | `domain_screening_draft.json`(A0c CAPTURED, 16,724자) → `domain_screening.json`(READY_WITH_REVIEW, 후보 15, 검토 5) → `candidate_profile_vocabulary.md`(READY, 절 15) | **정상.** A0_02 경고는 사전 머리말 부재 `DIGEST_HEADER_ABSENT`뿐이고, 의도된 경고다. vocabulary 머리말의 sha가 screening과 일치한다 | +| Task_A·Ac | `client_goal.json` 116,582자, 정상 JSON, 최상위 키 14개. parties: 원고 2·피고 7·제3자 13 | **정상** | +| B1 사슬 | `evidence_indexed_parts/` 30 → `evidence_indexed.json`. 게이트 PASS, final 30, suspect 6, 복구 0 | **정상** | +| B2 사슬 | `evidence_event_candidate_parts/` 30 → `evidence_event_candidates.json`. 게이트 PASS, 후보 126, exception 14, 복구 0 | **정상** | +| B12 사슬 | 판정 14건(SOFT_WARNING_REVIEW 6 · DISMISS 5 · HARD_WARNING_REVIEW 2 · ESCALATE 1). finalizer: B1 SOFT · B2 HARD_WARNING, hard 0, review 9 | **정상.** 조건부 실행(exception > 0)이 의도대로 돌았다 | +| D0 | `domain_activation_manifest.json` READY_WITH_REVIEW. 도메인 26, active 10, supporting 1, 검토 17, unrouted 1, 자기검증 PASS | **정상** | +| handoff·alias | 판정 READY_WITH_REVIEW, `party_aliases.json`(canonical 22, alias 1, 후보 3, 승계 2, error 없음) | **정상** | +| V 사슬 | `value_facts.json` records 90, gate READY_WITH_REVIEW(문서 30: ok 26 · review 3 · failed 1). V3 links 76(resolved 67) | **부분 미흡**(아래) | +| 형식 공통 | 지정 경로의 JSON 산출물과 part 60개가 모두 파싱된다. 표식 잔존 0 | 정상 | + +**V1 미흡 4건** +- E-007·E-011·E-013은 `finish_reason: max_tokens`로 잘렸다. + - E-007과 E-011은 응답 본문에 모델의 영어 사고 과정("Wait! …")이 그대로 들어가, JSON 없이 끝났다. E-011은 `MODEL_PARSE_FAILED`, E-007은 REVIEW다. + - E-013은 ```` ```json ```` 코드펜스로 시작한 뒤 중간에 잘려 REVIEW다. +- E-024는 `stop`으로 끝났지만 배열·객체가 닫히지 않아 REVIEW다. +- 게이트가 네 건을 모두 걸러 `value_facts.json`에는 들어가지 않았다. 설계대로 처리됐다. +- 다만 금액 기록이 빠진 문서가 4개다. `llm_token_limit: 32000`인데도 약 3,000자에서 `max_tokens`가 난 것은, 추론 토큰이 출력 한도를 먼저 쓴 것으로 보인다. This is an inference without much evidence. + +## 5. 런타임이 12분 50초인 이유 + +**결론: 실행 시간은 순차로 이어진 LLM 호출 두 개가 정한다. A0_01(276초)과 Task_A(472초)이며, 둘이 합해 748초로 전체의 97%다.** + +``` +08:05:12 ─ A0_01 (Gemini, 276s) ─ 08:09:48 ─ A0c·A0_02·A0_03 (10s) ─ 08:09:58 ─ Task_A (GPT-6.1 Sol, 472s) ─ 08:17:52 ─ Ac·T9·V3 (9s) ─ 08:18:01 +08:05:12 ─ planner ─ B1×30 ─ B1c ─ B2×30 (스트리밍) ─ 08:15:18 ─ B2r·게이트·B12·finalizer·D0 ─ 08:15:50 ─ (T9 대기 2분 2초) +08:05:16 ─ V0 ─ V1×30 ─ V1c ─ 08:11:11 ─ V2 08:11:14 ─ (V3 대기 6분 47초) +``` + +| 원인 | 근거 | +|---|---| +| **① A 사슬이 직렬이다** | Task_A는 A0_03의 screening과 vocabulary를 preflight로 받으므로 A0이 끝나야 시작한다. 최종 판정 task(T9)는 Ac와 D0를 모두 기다린다. B 사슬은 08:15:50에 끝났지만 T9는 Ac(08:17:55)를 2분 넘게 기다렸다 | +| **② Task_A는 출력이 많아 오래 걸린다** | 입력 36,937에 출력(추론 포함) 40,677토큰을 1회 호출로 냈다. 결과 JSON이 116,582자다. 초당 약 86토큰이므로 생성량이 시간을 정한다. `llm_reasoning: high`이고, verbosity는 YAML로 낮출 수 없다(SDK 기본 medium) | +| **③ A0_01은 출력보다 사고 시간이 길다** | 입력 2.5만, 출력 7,437토큰에 276초가 걸렸다(초당 약 27토큰). `llm_reasoning: medium`이다. 11-03 2차 실행에서도 9토큰을 내는 데 207초가 걸려, 사고 시간이 대부분이다 | +| **④ B 사슬은 임계 경로가 아니다** | B1 평균 108초·최대 179초, B2 평균 166초·최대 323초. 동시 실행 12개 제한과 B1c→B2의 ordinal 스트리밍 때문에 10분 38초가 걸렸지만, A 사슬보다 약 2분 일찍 끝났다 | +| 코드 task | 건당 3~4초. 임계 경로에는 A0c·A0_02·A0_03·Ac·T9·V3 6개, 약 20초뿐이다 | + +**단축 방안(참고, 미적용)** +- Task_A가 가장 큰 몫이다. 출력량(client_goal 11.7만 자)을 줄이거나 `llm_reasoning`을 medium으로 낮추는 방안이 있다. 다만 출력 품질에 영향이 있으므로 품질 비교가 먼저다. +- A0_01은 `llm_reasoning` low를 시험할 수 있다. +- 두 호출이 직렬인 것은 데이터 의존(screening → Task_A) 때문이라 구조로는 줄일 수 없다. +- 임계 경로가 A 사슬이므로, B·V 사슬을 빠르게 해도 전체 시간은 줄지 않는다. + +## 6. 확인하지 못한 것 + +- 공급자 청구 기준 실비용. `[USAGE]`는 백엔드 단가표 기준이다. +- `client_goal.json`·D0 manifest·value_facts의 법률적 정확성. 이번 보고서는 형식과 흐름만 검증했다. +- V1 `max_tokens` 조기 종료의 원인(추론 토큰이 한도를 쓴 것인지). Gemini 응답의 `thoughts_token_count`가 로그에 없다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/추가개정전략_for_part_1.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/추가개정전략_for_part_1.md new file mode 100644 index 00000000..5e0046c8 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/추가개정전략_for_part_1.md @@ -0,0 +1,299 @@ +# Stage 1 Part 1 추가 개정 전략서 (A0 사슬 · 지난 실행 파일 차단) + +- **적용 대상:** `1. Stage_1/v.8/stage_1_part_1_v.8.yml`(sha256 `9c425a21…`, 11,413행, task 29). 행 번호는 모두 이 파일 기준이다. +- **근거 문서:** + - `Testrun/Nov_03/결과보고서_part_1.md`: 세션 `e278fe64` 분석 + - `Testrun/Nov_03/추가수정_for_결과보고서_part_1.md` §2: 재작성 권고, 독립검증 1회 + - 그 뒤 사용자 질의응답 4건에서 정한 추가 항목. 아래 §0.2에 적는다. +- **백엔드 근거:** 배포본 `/app/src/agent.py`를 읽기 전용으로 확인했다. + - 2525~2556행: 의존 task가 끝난 뒤 prev로 다시 렌더링하는 규칙 + - 646행~: `_render_template`의 `| json`·`| py`·`| raw` 수식어 + - 854행~: `_build_prev_value` +- **지침:** YAML은 `2. Stage_2/SKILL.md`를, Python은 `2. Stage_2/test_code_executor.ipynb`를 따른다. 코드 task는 기존 보일러플레이트(`_init`·`_call`·`read_raw`·`write_doc`)를 그대로 쓴다. + +## 0. 이 문서가 합친 것 + +### 0.1 `추가수정_for_결과보고서_part_1.md` §2 (1~6번) + +| 원 항목 | 이 문서 | +|---|---| +| 1. A0_01 프롬프트: 구조 검사를 코드로 이관 | M1 | +| 2. A0_02: 시작할 때 screening 무효화 | M3 | +| 3. A0_03: vocabulary 무효화와 A0_02 연동 검사 | M4. (A)-3의 `status == "FAILED"` 조건은 의도적으로 뺐다. 근거는 M4(b)-3 | +| 4. D0: 시작할 때 manifest 무효화 | M5 | +| 5. handoff writer: 산출물 3종을 게이트로 검사 | M6 | +| 6. 오프라인 하네스 2경우 → 온라인 | M7(시나리오 5개로 확장) | + +### 0.2 추가 항목 (질의응답 4건에서 확정) + +- **추가 1:** 실행 초반에 판정 파일(`quality_gates/stage1_part1_soft_gate_handoff.json`)을 비JSON 표식으로 미리 덮는다. 판정이 기록되지 않는 경우(Task_A 건너뜀, 중간 취소, 대기 멈춤)에도 지난 실행의 READY 판정이 남지 않게 하기 위해서다. → **M2** +- **추가 2:** Task_A 2014행의 vocabulary 도메인 절 수 검사(LLM이 개수를 셈)를 A0_03 코드로 옮기고, 2014행은 존재·표식 검사로 줄인다. → **M4(c)·(d) + M6 `VOCABULARY_STALE`** (개수 자체는 이미 코드가 보장한다) +- **추가 3:** "A0_01 재시도" 보류 항목은 따로 조치하지 않는다. M1의 근거로 흡수한다. + - A0_01은 prev가 없어 `max_iterations`가 적용되지 않는다(로그 "1/8"). + - `FAILED` 응답은 백엔드가 성공으로 처리하므로 재시도가 없다. + - A0c에서 raise해도 백엔드가 다시 실행하는 것은 A0c다. + - YAML로 재시도를 살릴 수단이 없으므로, 헛 FAILED가 나올 조건을 없애는 것이 유일한 대책이다. → **M1** +- **추가 4:** M1~M6은 지난 실행 파일이 흘러가는 것을 막을 뿐, 쓸모없는 Task_A 호출(약 $0.53·486초)은 막지 못한다. 입력 약 3만 6천 토큰은 매번 과금된다. 호출을 없애는 `when` 건너뛰기는 M2를 전제로 probe로 확인한 뒤에만 도입한다. → **§4 단계 2** + +## 1. 해결할 문제 + +| # | 경로 | 이번 실행 | 결과 | +|---|---|---|---| +| F1 | A0_01이 충족 불가능한 프롬프트 규칙(297행)으로 헛 FAILED를 낸다. 재시도는 없다 | 발생 | 실행 전체 BLOCKED | +| F2 | A0_02·A0_03·D0는 실패하면 파일을 쓰지 않아 지난 실행 파일이 남는다(1399·1824·9356행). 하류가 그 파일로 진행한다 | 발생 | 산출물 3종이 지난 입력 기반 | +| F3 | 초안 JSON은 정상인데 A0_02 코드 검증이 실패하는 경우 | 미발생 | **READY인데 내용은 지난 실행 것**이 된다. handoff A0 게이트(9986~9995행)는 초안만 보고, 봉인 대조는 같은 낡은 파일의 해시끼리 비교해 통과한다 | +| F4 | handoff writer가 돌지 못한다(취소·멈춤·Ac 미실행) | 이전 실행(11-03 오전 취소)에서 발생 | 지난 판정 파일이 남는다 | +| F5 | 스크리닝이 실패해도 Task_A가 호출된다 | 발생 | $0.53·486초 낭비 | + +**raise로는 해결되지 않는다.** +- 백엔드는 부모가 실패해도 자식을 "dependencies satisfied"로 실행한다. 다만 prev가 비면 task를 다시 렌더링하지 않는다(agent.py 2533~2541행). +- A0_03은 prev를 쓰지 않으므로, A0_02가 raise해도 지난 파일로 READY가 된다. +- 그래서 대책은 **표식(무효화) + 연동 검사 + 최종 게이트**의 조합이다. + +## 2. 설계 원칙 + +- **P1 — LLM은 입력이 있는지만 판단한다.** 구조와 개수 검사는 결정적 코드가 맡는다. LLM의 개수 세기와 머리말 해석은 실행마다 결과가 달라진다. +- **P2 — 산출물은 시작할 때 무효화한다.** 쓰는 task가 맨 앞에서 자기 산출물에 비JSON 표식을 쓰고, 성공했을 때만 정본으로 덮는다. 실패, 시간 초과, 강제 종료, 미실행 어느 경우에도 지난 파일이 남지 않는다. Part 1 11-03 개정의 `PART_PENDING`과 같은 방식이다. +- **P3 — 표식 쓰기의 실패는 숨기지 않는다.** + - 표식 쓰기는 기존 `try: RESULT = main()` 블록 **밖**에서 한다. + - localdocs의 `Error` 응답이면 raise해서 백엔드 재시도를 받는다. + - 이 블록 안에서 쓰면 예외가 `UNHANDLED_EXCEPTION`으로 삼켜져 재시도가 없다. +- **P4 — 연동 검사.** 하류는 상류가 이번 실행에 성공했는지를 prev와 해시로 확인한다. 지금 A0_03이 확인하는 registry의 version과 sha(1693~1703행)는 실행이 바뀌어도 같아서 지난 파일을 가려내지 못한다. +- **P5 — 최종 게이트는 raise 없이 BLOCKED로 끝난다.** handoff writer는 핵심 산출물을 직접 검사하고, 문제가 있으면 `write_blocked_sidecar`로 끝낸다. +- **P6 — 실측되지 않은 백엔드 동작에는 기대지 않는다.** `when` 건너뛰기, SKIPPED 뒤의 대기, 코드 task prev 값의 정확한 형태가 여기에 해당한다. 하네스나 probe로 확인한 뒤에만 쓴다. + +## 3. 표식 일람 + +| 산출물 | 표식(첫 줄) | 쓰는 task | 덮는 곳(성공) | 판별 | +|---|---|---|---|---| +| `quality_gates/stage1_part1_soft_gate_handoff.json` | `HANDOFF_PENDING ` | Evidence planner(M2) | handoff writer 10113행(main)·10013행(`write_blocked_sidecar`) | 비JSON | +| `routing/domain_screening.json` | `SCREENING_PENDING ` | A0_02(M3) | A0_02 1372행 | 비JSON | +| `routing/candidate_profile_vocabulary.md` | `VOCABULARY_PENDING ` | A0_03(M4) | A0_03 1792행 | 첫 줄 접두사, `## DOMAINS` 부재 | +| `routing/domain_activation_manifest.json` | `MANIFEST_PENDING ` | D0(M5) | D0 정본 쓰기 | 비JSON | + +- 모든 표식은 `_PENDING`으로 시작하는 한 줄이다. 판별은 `raw.lstrip().startswith("_PENDING")` 또는 JSON 파싱 실패로 한다. +- 시각은 `datetime.now(timezone.utc).isoformat()`이다. +- **import 주의:** `datetime`이 import된 곳은 planner(2791행)뿐이다. A0_02(721~727행)·A0_03(1427~1433행)·D0(9014~9024행)의 import 구역에는 `from datetime import datetime, timezone`을 반드시 추가한다. 표식 코드는 try 밖에 있으므로, 빠뜨리면 모듈 단계 NameError로 모든 실행(S5 포함)이 막힌다. `ast.parse`로는 잡히지 않는다. + +## 4. 수정 항목 + +### 단계 1 — 지금 적용 (M1~M7) + +#### M1. A0_01 프롬프트: 구조 검사를 코드로 넘긴다 (F1) + +- **297행** + - 변경 전: "단어 사전의 머리말에 `registry_version`이 없거나 `## DOMAINS` 아래 도메인 절이 26개가 아니면 중단하고 `FAILED: activation_cue_digest`만 보고한다." + - 변경 후: "단어 사전(`Default_Agent/routing/activation_cue_digest.md`)의 내용이 대화에 없거나 비어 있으면 중단하고 `FAILED: activation_cue_digest`만 보고한다. 사전의 형식과 도메인 수는 후속 코드가 검사하므로 판단하지 않는다." +- **311행** + - 변경 전: "사전은 머리말, `## LEGEND`, `## GLOBAL_DEFAULTS`, `## USAGE`, `## DOMAINS` 다섯 부분이다." + - 변경 후: "사전은 `## LEGEND`, `## GLOBAL_DEFAULTS`, `## USAGE`, `## DOMAINS` 네 부분이다." +- **242행(권장):** "registry의 26개 법리 렌즈"를 "사전 `## DOMAINS`에 실린 법리 렌즈"로 바꿔 숫자 하드코딩을 없앤다. 271행의 "원본 26개"는 읽기 금지 대상을 설명하는 문구라 그대로 둔다. +- **바꾸지 않는 것:** 245·278행의 비판단 6종 금지, ``(503~510행)의 `FAILED: <사유>` 출구. 정당한 입력 부재를 보고하는 데 필요하다. +- **근거:** + - 배포본과 로컬 원본 digest 모두 머리말이 처음부터 없다. 297행은 원래 충족할 수 없는 규칙이었다. + - 구조 검사는 A0_02가 이미 코드로 한다: `DIGEST_MALFORMED`(1122~1123행), `DIGEST_DOMAIN_SET_MISMATCH`(1128~1129행), 머리말 부재 경고 `DIGEST_HEADER_ABSENT`(1133~1151행). + - A0_01은 재시도가 없어 헛 FAILED 한 번이 곧 실행 전체 BLOCKED가 된다(§0.2 추가 3). +- **검증:** 수정 후 A0_01 프롬프트 구간(153~511행)을 grep해 `26개`·`머리말`·`registry_version`이 다음 행에만 남았는지 확인한다. + - 245·278행: 비판단 6종 금지 목록 + - 271행: 원본 26개 읽기 금지 + - 403행: 출력 형식 문구 + - 242행: 권장 수정을 적용하지 않았을 때 + +#### M2. Evidence planner: 판정 파일 선무효화 (F4, §0.2 추가 1) + +- **위치:** `Task_Evidence_shard_planner` `main()` 첫 줄 `_init()`(2946행) 직후. planner의 `write_doc`(2839~2844행)은 이미 `Error` 응답이면 raise한다. +- **변경:** + ```python + # 판정 파일을 실행 초반에 무효화한다. handoff writer 가 돌지 못하면(취소·멈춤·하류 미실행) + # 표식이 남아 Part 2 가 지난 실행의 판정을 읽지 않는다. + HANDOFF_PATH = "quality_gates/stage1_part1_soft_gate_handoff.json" + write_doc(HANDOFF_PATH, "HANDOFF_PENDING %s\n" % datetime.now(timezone.utc).isoformat()) + ``` +- **위치를 planner로 정한 이유:** + - planner는 `IN`에서 곧바로 시작해 실행 첫 4초 안에 끝난다(이번 실행 04:45:39~43). + - A0_02에 두면 A0_01이 끝나는 약 200초 뒤에야 써지므로, 그 전에 취소된 실행은 덮지 못한다. + - P3 확인: 이 줄은 planner `main()` 안에 있다. planner는 바깥에서 예외를 삼키지 않으므로(raise 시 other 2/2 재시도) 조건을 충족한다. 적용 전에 `main()` 호출부를 다시 확인한다. +- **Part 2 쪽 영향:** + - Part 2 guard는 `read_json(HANDOFF)`(`stage_1_part_2_v.8.yml` 658행, `read_json` 정의 250~265행)에서 파싱 오류로 멈춘다. 진행은 막히지만 이유가 `PART1_HANDOFF_BLOCKED`로 나오지 않는다. + - 메시지를 맞추는 Part 2 수정은 §6 연동 항목으로 둔다. + +#### M3. A0_02: screening 선무효화 (F2·F3) + +- **위치:** 모듈 끝의 `try: RESULT = main()`(1393행) 바로 앞. +- **변경:** + 1. `write_doc`(830~832행)에 planner와 같은 `Error` 응답 검사를 넣는다. 응답 text가 `Error`로 시작하면 `RuntimeError("WRITE_FAILED:...")`. + 2. try 블록 밖에서 `_init()`을 부르고 표식을 쓴다(P3). + ```python + # 지난 실행의 screening 이 하류로 흐르지 않게 먼저 무효화한다. 성공하면 main() 이 정본으로 덮는다. + _init() + write_doc(OUTPUT_PATH, "SCREENING_PENDING %s\n" % datetime.now(timezone.utc).isoformat()) + ``` + 3. `main()` 첫 줄의 `_init()`(1072행)은 지운다. 세션은 위에서 연다. +- **선택:** FAILED 출력에 초안 첫 줄 120자를 `draft_head`로 싣는다. `DRAFT_UNREADABLE`일 때 A0c 표식 내용이 바로 보인다. +- **효과:** A0_02가 실패하면 screening은 표식으로 남는다. A0_03, Task_A, D0, handoff writer는 각자의 검사에서 실패를 드러낸다(§5). + +#### M4. A0_03: vocabulary 선무효화, A0_02 연동 검사 + Task_A 2014행 이관·단순화 (F2·F3, §0.2 추가 2) + +- **(a) 선무효화.** M3과 같이 `write_doc`(1536행)에 `Error` 검사를 넣는다. 그다음 `try: RESULT = main()`(1818행) 앞에서 `_init()`과 `VOCABULARY_PENDING` 표식 쓰기를 하고, `main()` 첫 줄의 `_init()`(1662행)은 지운다. +- **(b) A0_02 연동 검사.** run_code 부모를 `{{prev}}`로 받는 기존 관용인 `stage_1_part_2_v.8.yml` `previous_state()`(1471~1485행)를 그대로 따른다. + - 그 주석은 "백엔드는 run_code 부모의 stdout JSON을 dict로 넣는다(문자열 폴백 유지)"라고 적는다. SKILL.md 556·656행도 같은 뜻이다. + - Part 1 안의 `{{prev}}` 8곳은 모두 LLM 부모라 이 형태의 근거가 되지 않는다. + - 모듈 상단 상수 구역(1544행 부근)에 넣는다. + ```python + # A0_02 의 이번 실행 결과. 실패하면 백엔드가 prev 를 채우지 않아 표기가 그대로 남는다. + # 백엔드가 치환하지 않도록 비교용 prev 표기는 나눠 쓴다. + PREV_PLACEHOLDER = "{" * 2 + "prev" + "}" * 2 + A0_02_TASK = "Task_A0_domain_screener_02" + A0_02_PREV_TEXT = r"""{{prev}}""" + ``` + `main()` 첫머리, 1664행 `# ---- 입력 ----` 앞(= **screening을 읽기 전**)에서 1~3을 검사한다. screening이 표식이면 1669~1670행이 `SCREENING_UNREADABLE`로 바로 끝내기 때문이다. 4는 screening을 읽은 뒤에 검사한다. 어긋나면 `fail(...)`를 부르고 `return None`으로 끝낸다. 표식이 남는다. + 1. `A0_02_PREV_TEXT.strip() in ("", PREV_PLACEHOLDER)`이면 `UPSTREAM_NO_OUTPUT`(A0_02 실패 또는 미실행)이다. + 2. Part 2 `previous_state`와 같은 순서로 푼다. + - `prev = json.loads(A0_02_PREV_TEXT)`. 예외가 나면 명시적으로 잡아 `UPSTREAM_UNPARSEABLE`로 처리한다. 잡지 않으면 바깥 try의 `UNHANDLED_EXCEPTION`이 된다. + - `row = prev.get(A0_02_TASK)`. str이면 `json.loads`한다. + - dict에 `status`가 없고 `json_output`이 dict이면 `row = row["json_output"]`. + - 끝내 dict가 아니면 `UPSTREAM_UNPARSEABLE`이다. + 3. `row.get("written") is not True`이면 `UPSTREAM_NOT_WRITTEN`이다. `status`로는 판단하지 않는다. A0_02는 screening `status="FAILED"`를 정상 기록할 수 있고(`STATUS_RANK` 863행, 1405~1407행 `written: True`), 지금은 그런 경우에도 A0_03이 진행한다. 이 동작을 바꾸지 않는다. + 4. `row["screening_sha256"]`이 방금 읽은 `screening_raw`의 sha256과 다르면 `SCREENING_NOT_FROM_THIS_RUN`이다. + - A0_02는 기록한 `body`의 sha를 출력하고(1371→1380행), A0_03은 `read_raw` 결과의 sha를 낸다(1666·1690행). + - **쓴 바이트와 읽은 바이트가 같은지는 실측되지 않았다.** 이 YAML의 다른 봉인 대조는 모두 읽은 값끼리 비교한다. + - 그래서 처음에는 이 검사를 `warn("SCREENING_SHA_UNCONFIRMED", ...)`로 둔다. M7-3에서 같음이 확인되면 `fail`로 올린다. 그 전에도 1~3만으로 S1~S3은 막힌다. +- **(c) Task_A 2014행 이관: 새 코드는 넣지 않는다.** 이관할 개수 검사는 이미 코드가 보장한다. + - **같은 실행 안에서는 개수가 늘 맞는다.** + - A0_02는 중복 후보를 `DOMAIN_ID_DUPLICATE`(1213~1215행)로 실패시키고, `if ERRORS: return None`(1347행)으로 screening을 쓰지 않는다. + - A0_03은 후보 하나라도 처리하지 못하면 `if ERRORS: return None`(1756~1757행)으로 vocabulary를 쓰지 않는다. + - `render()`(1636~1642행)는 rows 하나마다 `### ` 머리를 정확히 하나 낸다. + - 따라서 같은 실행의 screening과 vocabulary 사이에서 "절 수 = 후보 수"는 항상 참이다. 이것을 다시 검사하는 코드는 실행되지 않는 코드가 된다. + - **2014행이 실제로 막던 위험은 다른 실행의 파일이 섞이는 것이다.** 그 위험은 다음 두 곳이 맡는다. + - (a) 선무효화 + - M6의 `VOCABULARY_STALE` 검사: vocabulary 머리말의 `screening_sha256:`(1603행이 기록)와 현재 screening 원문 해시를 비교한다. + - 이로써 (B)② "2014행 검사의 A0_03 코드 이관"은 "이미 코드가 보장함을 확인 + 섞임 검사는 M6에 둠"으로 반영된다. +- **(d) Task_A 프롬프트 2014행 단순화.** + - 변경 후: "`routing/candidate_profile_vocabulary.md`의 내용이 없거나 비어 있거나 `VOCABULARY_PENDING`으로 시작하면 중단하고 `FAILED: candidate_profile_vocabulary`만 보고한다. 도메인 절 수는 앞선 코드가 보장하므로 세지 않는다." + - 2013행(screening 최상위 키·`candidates` 검사)은 그대로 둔다. 표식이 들어오면 이 규칙이 Task_A를 `FAILED: domain_screening`으로 끝낸다. + - (권장) 2013행에 "또는 `SCREENING_PENDING`으로 시작하면"을 덧붙인다. 그러면 "최상위 키" 해석에 기대지 않고도 표식을 실패로 처리한다. +- **주의:** + - run_code 부모의 prev 형태(stdout JSON이 dict로 들어옴, 문자열 폴백)는 Part 2 `previous_state` 주석, S2_10 load_fanout 관용, SKILL.md 556·656행으로 뒷받침된다. 다만 Part 1에서는 실측된 적이 없다. M7-3(a)로 확인한다. + - `_init()`을 try 밖으로 옮기면 동작이 바뀐다. + - 지금: localdocs 초기화가 실패하면 `UNHANDLED_EXCEPTION`이 되고 FAILED를 출력할 뿐 raise하지 않는다. + - 바뀐 뒤: raise → 재시도 → 그래도 실패하면 출력 없음 → 자식은 S3 경로(`UPSTREAM_NO_OUTPUT`)로 간다. P3 취지에 맞는 변화다. + - 세 task 모두 `_init` 호출은 main 첫 줄 1곳뿐이다(1072·1662·9300행). `MCP_HEADERS`는 모듈 수준에서 정의되므로 다른 코드 경로에는 영향이 없다. + - `{{prev.X | py}}`는 쓰지 않는다. 미치환이면 모듈 적재 단계에서 문법·이름 오류를 내, 표식을 쓰기도 전에 죽는다. + +#### M5. D0: manifest 선무효화 (F2) + +- **위치:** `try: RESULT = main()`(9349행) 앞. `write_doc`(9129행)에 `Error` 검사를 넣고, try 밖에서 `_init()`과 `MANIFEST_PENDING` 표식을 쓴다. `main()` 첫 줄의 `_init()`(9300행)은 지운다. +- **효과:** + - D0가 실패하면(screening 표식 포함) 지난 manifest가 남지 않는다. + - D0는 A0_02만 기다리므로(`wait_until`) A0_02와 같은 연동 검사를 넣을 수도 있다. 그러나 screening 표식만으로 D0 모듈이 입력 파싱에서 실패하므로 필수는 아니다. + +#### M6. handoff writer: 산출물 3종 게이트 (F2·F3, P5) + +- **위치:** `read_gate_failures()`(9965행~)의 A0 초안 검사(9985~9995행) 뒤, `return out` 앞. +- **변경:** 세 파일을 읽어 다음 조건이면 `out`에 추가한다. + + | 파일 | 실패 조건 | gate / status | + |---|---|---| + | `routing/domain_screening.json` | JSON이 아니다(표식 포함), 또는 `domain_screening` dict가 없다 | `A0` / `SCREENING_UNREADABLE` | + | `routing/candidate_profile_vocabulary.md` | `VOCABULARY_PENDING`으로 시작한다, 또는 `## DOMAINS`가 없다 | `A0` / `VOCABULARY_UNREADABLE` | + | `routing/domain_activation_manifest.json` | JSON이 아니다(표식 포함) | `D0` / `MANIFEST_UNREADABLE` | + | vocabulary ↔ screening | vocabulary 머리말 `screening_sha256: \`…\``(1603행 형식)이 현재 screening 원문의 `digest()`와 다르다. 두 값 모두 읽은 원문 기준이라 쓰기·읽기 동일성에 기대지 않는다 | `A0` / `VOCABULARY_STALE` | + + `VOCABULARY_STALE`은 Task_A 2014행이 막던 "다른 실행 파일의 섞임"을 코드로 대신하는 검사다(M4(c)). + + 읽기 자체가 예외이면 기존 패턴처럼 `detail=str(exc)[:300]`으로 담는다. +- **효과:** 지금은 screening이나 manifest가 깨지면 `main()`의 `parse_json`(10024행 부근)에서 예외가 나고, T9 EXCEPTION으로 BLOCKED를 쓴 뒤 raise한다(10128~10136행). 바뀐 뒤에는 원인이 이름 붙은 게이트로 기록되고 raise 없이 끝난다. +- **바꾸지 않는 것:** 기존 A 게이트(`CLIENT_GOAL_UNREADABLE`)와 A0 초안 게이트, 봉인 대조, `write_blocked_sidecar`. + +#### M7. 검증: 오프라인 하네스 → 온라인 + +1. **정적 검사** + - ruby YAML 적재와 task 29개 확인 + - 코드 task 전부 `ast.parse` 통과 + - 표식을 쓰는 4개 task(planner·A0_02·A0_03·D0)에 `datetime`·`timezone` import가 있는지 확인. `ast.parse`로는 NameError를 잡지 못하므로 2단계 하네스에서 실제 실행으로도 확인한다. + - `{{` 치환 대상 점검: A0_03에 새로 생긴 `{{prev}}`는 `A0_02_PREV_TEXT` 1곳뿐이어야 한다. 나머지는 나눠 쓴 비교 문자열이어야 한다. +2. **하네스(localdocs 모의)** + - 시나리오 S1~S5(§5)를 코드 task 단위로 재현한다. + - 각 시나리오에서 handoff 판정, 산출물 4종의 표식·정본 상태, raise 여부가 §5와 같은지 확인한다. + - 이전 세션의 `chk_pm.py` 구조(httpx 스텁, 템플릿 렌더링)를 재사용한다. +3. **prev 형태와 sha 동일성 확인(온라인 1회 로그로)** + - (a) A0_03의 `A0_02_PREV_TEXT`가 실제로 어떻게 렌더링되었는지 확인한다(stdout JSON인지 봉투인지). `[EXECUTOR] re-created with rendered prev context` 직후의 코드 원문을 로그에서 대조한다. + - (b) 같은 실행의 A0_02 stdout `screening_sha256`(쓴 본문 기준)과 A0_03 stdout `screening_sha256`(읽은 원문 기준)이 같은지 대조한다. 두 값은 이미 둘 다 출력되고 있다. 같으면 M4(b)-4를 `warn`에서 `fail`로 올린다. + - 지난 정상 실행의 로그는 컨테이너 재시작으로 남아 있지 않다. 그래서 다음 온라인 실행에서 확인한다. +4. **온라인:** Part 1을 중간 취소 없이 한 번 실행한다. 판정이 `READY` 계열인지, 산출물 4종이 정본인지, 표식이 남지 않았는지 확인한다. +5. **선택:** 온라인 1회는 의도적으로 S2를 만들어(초안의 근거 하나를 범위 밖 값으로) BLOCKED 경로를 실측한다. 비용은 Task_A 1회분이다. + +### 단계 2 — probe 확인 뒤 도입 (F5, §0.2 추가 4) + +#### M8. A0_03 → Task_A 건너뛰기 (`when`) — 보류 + +- **안:** `task_procedure`의 `Task_A0_domain_screener_03.nexts`를 `- task: Task_A_client_goal` + `when: output.status == 'READY'`로 바꾼다. +- **전제:** M2가 적용되어 있어야 한다. 그래야 건너뛴 뒤 판정이 기록되지 않아도 지난 READY 판정이 남지 않는다. +- **먼저 확인할 것(단독 probe YAML):** + - (i) SKIPPED 뒤 Ac가 실행되는가, 실행된다면 prev가 비어 `UPSTREAM_NO_OUTPUT` 표식을 쓰는가. + - (ii) handoff writer와 OUT이 도달하는가, 아니면 대기에서 멈추는가. S2_10에서 조건으로 건너뛴 fan-out 부모 뒤의 `all X_*` 대기가 멈춘 사례가 있다. + - (iii) 백엔드의 `task_skip` 이벤트(agent.py 2525행 부근) 뒤 `execution_complete`가 나오는가. +- **YAML 안의 선례:** 11350~11356행. B2 게이트가 B12를 `when`으로 건너뛰고, 주석은 "B12c와 finalizer는 그대로 돈다"고 적는다. 팬아웃이 아닌 LLM → capture 형태다. 이 선례는 (i)·(iii)의 부분 근거가 되지만 실측 여부는 UNVERIFIED다. (ii)에 해당하는 선례는 없으므로 probe가 여전히 필요하다. +- **판단 기준:** + - (i)·(ii)·(iii)이 모두 정상이면 도입한다. + - (ii)가 멈추면 도입하지 않는다. 멈춘 실행은 M2 표식 덕분에 안전하지만 사용자에게는 끝나지 않는 실행이 된다. +- **도입하지 않을 때의 비용:** S1·S2에서 Task_A 1회. 입력 약 3만 6천 토큰과, 짧은 `FAILED` 응답 전까지의 추론 시간이다. 이번 A0_01처럼 오래 생각할 수 있어 시간은 UNVERIFIED다. + +## 5. 시나리오별 기대 결과 (M1~M6 적용 뒤) + +| # | 상황 | A0_02 | A0_03 | Task_A → Ac | D0 | handoff | +|---|---|---|---|---|---|---| +| S1 | A0_01이 비JSON(이번 사례) | 초안 파싱 실패 → `SCREENING_PENDING` 남음 | `UPSTREAM_NOT_WRITTEN`(prev 검사, screening 읽기 전) → `VOCABULARY_PENDING` 남음 | 호출됨 → `FAILED: domain_screening` → `client_goal.json` 표식 | screening 파싱 실패 → `MANIFEST_PENDING` 남음 | BLOCKED: A0 초안, A0 screening, A0 vocabulary, D0, A 게이트. raise 없음 | +| S2 | 초안 정상, A0_02 검증 실패 | `SCREENING_PENDING` 남음 | S1과 같음 | S1과 같음 | S1과 같음 | BLOCKED: A0 screening, A0 vocabulary, D0, A 게이트. **지금은 READY로 봉인되는 경로** | +| S3 | A0_02 표식 쓰기 실패(localdocs Error) | raise → 재시도 2/2 → FAILED, screening은 지난 것 | 재렌더링 없음 → `UPSTREAM_NO_OUTPUT` → `VOCABULARY_PENDING` | 지난 screening + vocabulary 표식 → 2014행 규칙으로 FAILED → 표식 | 지난 screening으로 정본 생성 가능 | BLOCKED: A0 vocabulary, A 게이트 | +| S4 | handoff writer 이전에 취소·멈춤 | — | — | — | — | `HANDOFF_PENDING` 남음 → Part 2 진행 불가 | +| S5 | 정상 | 정본 | prev 검사 통과(sha는 확인 전 warn) → 정본 | 정상 | 정상 | READY 계열 | + +- S3에서 D0가 지난 screening으로 만든 manifest는 봉인 대조를 통과할 수 있다. 그래도 vocabulary와 A 게이트가 BLOCKED를 보장한다. +- D0에 A0_02 연동 검사(M5 선택)를 넣으면 S3에서도 manifest가 표식으로 남는다. + +## 6. 적용 순서와 범위 + +1. 보존본 `stage_1_part_1_v.8_11_03_<시각>.yml`을 만든다. +2. 패치 스크립트(앵커 1회 일치 검사)로 M1 → M2 → M3 → M4 → M5 → M6을 적용한다. 머리말 "개정 요지"에 한 항목을 추가하고 구성표의 [개정] 표기를 갱신한다. 대상은 A0_01·A0_02·A0_03·Task_A·planner·D0·handoff writer 7개다. +3. M7 1~3(정적 검사, 하네스, prev 형태 확인) +4. 커밋과 업로드: 사용자 승인 필요 +5. M7 4(온라인) +6. 단계 2(M8)는 별도 probe 결과를 본 뒤 결정한다. + +**범위 밖 · 연동 권고** +- **Part 2 guard 메시지(선택):** `stage_1_part_2_v.8.yml`의 handoff 읽기(658행)에서 원문이 `HANDOFF_PENDING`으로 시작하면 `PART1_HANDOFF_BLOCKED`(remedy: Part 1 재실행)를 내게 한다. 지금도 진행은 막히지만, 원인이 JSON 파싱 오류로 보이지 않게 하려는 것이다. +- **handoff writer `write_doc`(9535행)의 `Error` 검사(선택):** 지금은 판정 쓰기가 실패해도 stdout에 `SOFT_GATE_HANDOFF_WRITTEN`이라고 거짓 보고한다. M2 표식 덕분에 안전한 쪽으로 실패하지만, 보고는 정확해야 한다. planner와 같은 검사를 넣는 것을 권한다. +- **planner 실패 시 지난 `evidence_shard_plan.json`(11-03 보류 지적):** 이번 범위가 아니다. +- **백엔드 `_apply_verbosity` 수정:** 이번 범위가 아니다. + +## 7. 확인하지 못한 것 + +- 코드 task를 prev로 받은 값의 정확한 형태. `_build_prev_value`가 run_code 응답 봉투를 주는지 stdout JSON을 바로 주는지 확인하지 못했다. M4(b)-2의 다형 파싱과 M7-3(a)로 대응한다. +- localdocs의 쓰기·읽기 바이트 동일성. M4(b)-4는 확인 전까지 warn으로 둔다(M7-3(b)). +- `when` SKIPPED 뒤의 대기 동작. M8 probe가 필요하다. +- M1 이후에도 Gemini가 다른 이유로 FAILED를 낼 가능성. 정당한 입력 부재 외의 FAILED는 S1 경로로 BLOCKED가 된다. + +## 8. 개정 이력 + +- **v1:** 최초 작성. `추가수정_for_결과보고서_part_1.md` §2와 추가 항목 4건을 통합했다. +- **v2 (독립검증 1차 반영)** + - A0_02·A0_03·D0에 `datetime` import 추가를 명시했다(치명). + - M4(b)를 실측된 `{{prev}}` 형태로 바꾸고 str·봉투를 모두 처리하게 했다. + - prev 검사를 screening 읽기 전으로 옮겼다. + - `status` 대신 `written`으로 판정하게 했다. + - sha 검사는 쓰기·읽기 동일성을 확인할 때까지 warn으로 둔다. + - M4(c)를 "항상 통과하는 절 수 검사"에서 "screening 중복 후보 검사"로 바꿨다. + - M1 grep 제외 행을 명시했다. + - 행 번호를 정정했다(1792·10013·10113·658·1122·1128). + - S1·S5 표를 정정했다. + - handoff writer `write_doc`의 Error 검사를 연동 권고에 추가했다. +- **v3 (독립검증 2차 반영)** + - M4(c)의 중복 후보 검사를 지웠다. A0_02 1213행과 A0_03 1756행이 이미 보장하므로 실행되지 않는 코드였다. 섞임 위험은 M6 `VOCABULARY_STALE`로 옮겼다. + - M4(b) prev 파싱을 Part 2 `previous_state`(1471~1485행) 관용으로 바꿨다. `json_output` 폴백을 넣고, `output` 분기는 지우고, 파싱 예외를 명시적으로 잡는다. + - 검사 위치를 "1664행 앞"으로 고쳐 (a)와의 모순을 없앴다. + - §0.1에 (A)-3의 status 조건을 제외한 사실을 적었다. + - 행 번호를 정정했다(658·721~727). + - M1 grep에 242행 조건을 더했다. + - `_init` 이동에 따른 동작 변화를 적었다. + - M8에 11350~11356행 선례를 적었다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/추가수정_for_결과보고서_part_1.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/추가수정_for_결과보고서_part_1.md new file mode 100644 index 00000000..80286e94 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_03/추가수정_for_결과보고서_part_1.md @@ -0,0 +1,85 @@ +# 추가 수정안: 결과보고서_part_1.md §6 권고 조치 재작성 + +- 대상: `1. Stage_1/v.8/stage_1_part_1_v.8.yml`(`9c425a21…`). 행 번호는 이 파일 기준이다. YAML은 아직 고치지 않았다. +- 근거: + - 세션 `e278fe64` 로그(`run_e278.log`) + - 독립 검증 1회(sub-agent, 읽기 전용 코드 추적) + - 주 세션의 인용 행 대조(242·245·311·1399·1824·2013·2014·9356·9986행) + +## 1. 검증 결과 요약 + +| 원래 권고 | 판정 | 이유 | +|---|---|---| +| ① A0_01 297행에서 `registry_version` 머리말 요구를 지우고 26개 검사만 남긴다 | **부분 정확** | 방향은 맞다. 그러나 26개 검사도 LLM에 남기면 같은 종류의 헛 FAILED가 다시 날 수 있다. A0_02 코드가 이미 같은 검사를 한다 | +| ② A0_02가 FAILED이면 `domain_screening.json`에 비JSON 표식을 쓴다 | **정확하지만 불충분** | 실패하면 파일을 덮어쓰지 않는 결함이 A0_03과 D0에도 있다. 또 실패 분기에서만 쓰면 시간 초과나 강제 종료는 덮지 못한다 | + +**① 확인 사항** +- 프롬프트는 초안에 머리말 값을 쓰라고 요구하지 않는다. 오히려 비판단 6종(`registry_version` 등)은 A0_02가 붙인다며 금지한다(245행). +- A0_02는 그 값을 registry 원문에서 직접 계산한다(1110·1117행). digest에 머리말이 없으면 경고 `DIGEST_HEADER_ABSENT`만 남긴다(1133~1151행). +- 따라서 머리말 요구를 지워도 모델이 채우지 못할 값은 생기지 않는다. +- 배포본과 로컬 원본 digest 모두 머리말이 처음부터 없다. 297행 규칙은 원래 충족할 수 없는 규칙이었다. +- 이번에 처음 터진 것은 11-03에 추가한 ``(503~510행)가 `FAILED: <사유>` 한 줄 출구를 명시한 탓으로 보인다. This is an inference without much evidence. + +**②에서 새로 드러난 더 위험한 경로** +- 초안 JSON은 정상인데 A0_02의 코드 검증에서 실패하는 경우다(`CONSERVATION_FAILED`·`DIGEST_MALFORMED` 등). +- handoff의 A0 게이트(9986~9995행)는 **초안** 파싱 실패만 본다. 이 경우는 잡지 못한다. +- 그러면 D0가 지난 screening으로 manifest를 만든다. handoff의 봉인 대조도 같은 낡은 파일의 해시끼리 비교하므로 통과한다. +- 결과는 **READY인데 내용은 지난 실행 것**이 된다. + +**raise는 대안이 아니다.** 백엔드는 부모가 실패해도 자식을 실행한다. A0_03은 `{{prev}}`를 쓰지 않으므로 raise해도 지난 파일로 READY가 된다. + +## 2. 재작성한 권고 조치 (적용 순서) + +1. **A0_01 프롬프트: 구조 검사를 LLM에서 빼고 코드로 넘긴다.** + - 297행을 "단어 사전 내용이 대화에 없거나 비어 있으면 `FAILED: activation_cue_digest`만 보고한다"로 바꾼다. 머리말 검사와 26개 검사를 모두 지운다. + - 구조 검사는 A0_02가 이미 맡고 있다(`DIGEST_MALFORMED` 1121행, `DIGEST_DOMAIN_SET_MISMATCH` 1127행). + - 311행의 "머리말, … 다섯 부분"은 "`## LEGEND`·`## GLOBAL_DEFAULTS`·`## USAGE`·`## DOMAINS`"로 바꾼다. + - (선택) 242행 "registry의 26개 법리 렌즈"는 "사전 `## DOMAINS`의 도메인 절 전체"로 바꿔 숫자 하드코딩을 없앤다. + +2. **A0_02: 시작할 때 screening을 무효화한다.** + - `_init()` 직후 `routing/domain_screening.json`에 비JSON 표식을 쓴다. 예: `SCREENING_PENDING Task_A0_domain_screener_02 `. + - 성공하면 정본 쓰기(1372행)가 표식을 덮는다. 실패 분기(1399행), 시간 초과, 강제 종료에서는 표식이 남는다. + - 표식 쓰기가 실패하면(localdocs "Error" 응답) raise해서 백엔드 재시도를 받는다. planner `write_doc`과 같은 방식이다. + - (선택) FAILED 출력에 A0c의 `detail`(초안 첫 줄)을 실어 원인을 드러낸다. + +3. **A0_03: 시작할 때 vocabulary를 무효화하고, A0_02 결과와 연동 검사를 한다.** + - `_init()` 직후 `routing/candidate_profile_vocabulary.md`에 표식을 쓴다. + - `r"""{{prev}}"""`로 A0_02의 출력을 받는다. A0_03은 A0_02 하나만 기다리므로 prev가 렌더링된다. 다음 중 하나라도 해당하면 FAILED로 끝낸다. + - prev가 비었거나 치환되지 않은 표기다(비교 문자열은 `"{"*2+"prev"+"}"*2`로 나눠 쓴다). + - `status == "FAILED"`이거나 `written != true`다. + - prev의 `screening_sha256`이 방금 읽은 screening 원문의 sha와 다르다. + - 지금 A0_03은 registry의 version과 sha(1693~1703행)만 확인한다. 이 값은 실행이 바뀌어도 같아서 지난 screening을 걸러내지 못한다. + +4. **D0: 시작할 때 `routing/domain_activation_manifest.json`을 무효화한다.** 실패하면 출력만 하고 미기록하는 동작(9356행)이 지난 manifest를 남기기 때문이다. + +5. **handoff writer `read_gate_failures`(9965행~): 산출물 자체를 게이트로 검사한다.** + - 다음 파일이 파싱되지 않거나 표식이면 게이트 실패로 추가한다. + - `domain_screening.json` → `A0`/`SCREENING_UNREADABLE` + - `candidate_profile_vocabulary.md` → `A0`/`VOCABULARY_UNREADABLE` + - `domain_activation_manifest.json` → `D0`/`MANIFEST_UNREADABLE` + - 이렇게 하면 지금처럼 `parse_json` 예외로 raise하지 않고, BLOCKED를 기록한 뒤 정상 종료한다. + +6. **오프라인 하네스로 재현한 뒤 온라인 재실행한다.** 다음 두 경우를 하네스로 재현해, 둘 다 handoff가 `BLOCKED`로 끝나고 하류 산출물 3종이 표식인지 확인한다. + - (a) 초안이 표식인 경우(이번 사례) + - (b) 초안은 정상인데 A0_02 검증이 실패하는 경우 + + 그다음 Part 1을 다시 돌려 handoff READY 계열을 확인한다. + +**보류 (근거 부족 · 실측 필요)** +- **A0_03→Task_A에 `when: output.status == 'READY'`를 걸어 Task_A 호출(약 $0.53·486초)을 건너뛰는 방안.** + - SKIPPED 뒤에 Ac와 handoff가 실행되는지는 실측된 적이 없다. + - Ac가 실행되지 않으면 handoff가 기록되지 않아 지난 handoff가 남을 위험이 있다. + - 단독 probe로 확인하기 전에는 도입하지 않는다. 1~5만 적용해도 Task_A는 `FAILED: domain_screening`을 내고, Ac 표식을 거쳐 A 게이트에서 BLOCKED가 된다. +- **Task_A 2014행의 vocabulary 도메인 절 수 검사(LLM 개수 세기)를 A0_03 코드로 넘기는 방안.** ①과 같은 위험이지만 이번 실행에서는 터지지 않았다. 3번을 작업할 때 같이 검토한다. +- **A0_01 재시도.** `max_iterations: 1`은 prev가 없어 적용되지 않고(로그 "1/8"), FAILED 응답은 성공으로 처리된다. 1번으로 FAILED가 나올 조건을 없애는 것이 실질적인 대책이다. + +## 3. 원래 권고와의 차이 + +| 항목 | 원래 | 재작성 | +|---|---|---| +| A0_01 검사 | 머리말만 삭제 | 머리말·26개 모두 코드로 이관, 311행 문구 수정 | +| 무효화 시점 | A0_02 실패 시 | A0_02·A0_03·D0 시작 시(시간 초과·강제 종료 포함) | +| 무효화 범위 | screening 1개 | screening·vocabulary·manifest 3개 | +| 연동 검사 | 없음 | A0_03이 A0_02의 `status`·`written`·`screening_sha256` 대조 | +| 최종 게이트 | 초안만 검사 | 산출물 3종도 검사해 raise 없이 BLOCKED | +| 검증 | 온라인 재실행 | 오프라인 하네스 2경우 → 온라인 | diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/BO_11_04_2pm.json b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/BO_11_04_2pm.json new file mode 100644 index 00000000..aeb04575 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/BO_11_04_2pm.json @@ -0,0 +1,11294 @@ +[ + { + "BO_ID": "bh1", + "id": "bh1", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매" + }, + "Action": "성수동 대지에 박재경 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지에 박재경 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "1997-03-15", + "TimeText": "1997-03-15", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지에 박재경 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-01", + "section": "갑구", + "rank_no": "1", + "receipt_no": "제1453호", + "receipt_date": "1997-04-16", + "cause": "매매", + "cause_date": "1997-03-15", + "right_holder": "박재경", + "target_scope": "토지 전체", + "is_deleted": false + } + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh2", + "id": "bh2", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": { + "label": "소유권보존등기" + }, + "Action": "신림동 상가에 이경주 명의의 소유권보존등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "소유권보존등기" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 이경주 명의의 소유권보존등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2006-05-08", + "TimeText": "2006-05-08", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 이경주 명의의 소유권보존등기가 기록되어 있다.", + "action_type": "사실행위(factual acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-01", + "section": "갑구", + "rank_no": "1", + "receipt_no": "제24759호", + "receipt_date": "2006-05-08", + "registration_purpose": "소유권보존", + "right_holder": "이경주", + "cause": null, + "cause_date": null, + "is_cancelled": false + } + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh3", + "id": "bh3", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "명의신탁약정 확인 의사표시" + }, + "Action": "오국한의 명의신탁 확인 각서와 오민한의 소유권 주장을 법률행위의 성립·해석·효력 검토 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "juristic_act_validity", + "명의신탁약정 확인 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오국한의 명의신탁 확인 각서와 오민한의 소유권 주장을 법률행위의 성립·해석·효력 검토 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2015-09-17", + "TimeText": "2015-09-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "4,000만 원", + "numeric_value": "40000000", + "currency": "KRW", + "value_id": "E-003-VF-001" + }, + "value_refs": [ + "E-003-VF-001" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서", + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003", + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-01" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오국한의 명의신탁 확인 각서와 오민한의 소유권 주장을 법률행위의 성립·해석·효력 검토 후보로 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh4", + "id": "bh4", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매" + }, + "Action": "신림동 상가에 오국환 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 오국환 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2015-09-17", + "TimeText": "2015-09-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 40,000,000원", + "numeric_value": "40000000", + "currency": "KRW", + "value_id": "E-014-VF-002" + }, + "value_refs": [ + "E-014-VF-002" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 오국환 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-02", + "section": "갑구", + "rank_no": "2", + "receipt_no": "제56457호", + "receipt_date": "2015-09-17", + "cause": "매매", + "cause_date": "2015-09-17", + "right_holder": "오국환", + "is_cancelled": false + } + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh5", + "id": "bh5", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "오민한이 신림동 상가는 오국한에게 명의신탁한 자신의 소유라고 주장한 답신을 발송하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "title_trust_ownership_assertion" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 신림동 상가는 오국한에게 명의신탁한 자신의 소유라고 주장한 답신을 발송하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2015-09-17", + "TimeText": "2015-09-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-12" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 신림동 상가는 오국한에게 명의신탁한 자신의 소유라고 주장한 답신을 발송하였다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh6", + "id": "bh6", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "신림동 상가의 표시와 소유·담보 등기계보 및 명의·당사자 연결의 충돌을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 표시와 소유·담보 등기계보 및 명의·당사자 연결의 충돌을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2015-09-17", + "TimeText": "2015-09-17", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 40,000,000원", + "numeric_value": "40000000", + "currency": "KRW", + "value_id": "E-014-VF-002" + }, + "value_refs": [ + "E-014-VF-002", + "E-014-VF-003", + "E-014-VF-004", + "E-014-VF-005" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서", + "내용증명", + "내용증명에 대한 답신", + "등기사항전부증명서 (말소사항 포함) -건물", + "별지 목록", + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-008", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003", + "E-008", + "E-010", + "E-014", + "E-016", + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_alternatives": [ + { + "value_id": "E-014-VF-002", + "value_kind": "TRANSACTION_PRICE", + "item_label": "거래가액", + "amount_text": "금 40,000,000원", + "amount_value": "40000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2015년9월17일", + "date_value": "2015-09-17", + "role": "CONTRACT" + }, + { + "date_text": "2015년9월17일", + "date_value": "2015-09-17", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + }, + { + "value_id": "E-014-VF-003", + "value_kind": "TRANSACTION_PRICE", + "item_label": "거래가액", + "amount_text": "금 150,000,000원", + "amount_value": "150000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2023년3월17일", + "date_value": "2023-03-17", + "role": "CONTRACT" + }, + { + "date_text": "2023년3월17일", + "date_value": "2023-03-17", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + }, + { + "value_id": "E-014-VF-004", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "50,000,000원", + "amount_value": "50000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2021년8월1일", + "date_value": "2021-08-01", + "role": "CONTRACT" + }, + { + "date_text": "2021년8월1일", + "date_value": "2021-08-01", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + }, + { + "value_id": "E-014-VF-005", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "150,000,000원", + "amount_value": "150000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2022년4월18일", + "date_value": "2022-04-18", + "role": "CONTRACT" + }, + { + "date_text": "2022년4월18일", + "date_value": "2022-04-18", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월17일", + "date_value": "2024-10-17", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED" + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 표시와 소유·담보 등기계보 및 명의·당사자 연결의 충돌을 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_asset_projection": { + "canonical_identifier_candidate": "1436-2018-250456", + "asset_alias": "신림동 상가", + "lot_address": "서울특별시 관악구 신림동 779", + "road_address": "서울특별시 관악구 신림로 115", + "structure": "철근콘크리트조 콘크리트지붕 단층 근린상가", + "area": "100㎡", + "schedule_locator": "SCH-016-03", + "evidence_refs": [ + "E-014", + "E-016" + ] + }, + "legacy_lineage_projection": { + "evidence_refs": [ + "E-014" + ], + "entries": [ + { + "locator": "REG-014-01", + "purpose": "소유권보존", + "receipt_date": "2006-05-08", + "receipt_no": "제24759호", + "holder": "이경주" + }, + { + "locator": "REG-014-02", + "purpose": "소유권이전", + "cause": "매매", + "cause_date": "2015-09-17", + "receipt_date": "2015-09-17", + "receipt_no": "제56457호", + "holder": "오국환", + "amount_role": "historical_registered_transaction_price" + }, + { + "locator": "REG-014-03", + "purpose": "소유권이전", + "cause": "매매", + "cause_date": "2023-03-17", + "receipt_date": "2023-03-17", + "receipt_no": "제11593호", + "holder": "오민한", + "amount_role": "registered_transfer_price" + }, + { + "locator": "REG-014-04", + "purpose": "근저당권설정", + "receipt_date": "2021-08-01", + "receipt_no": "제50099호", + "rank": "1순위", + "holder": "나임오", + "debtor": "오국환", + "amount_role": "senior_mortgage_maximum", + "released": false + }, + { + "locator": "REG-014-05", + "purpose": "근저당권설정", + "receipt_date": "2022-04-18", + "receipt_no": "제26597호", + "rank": "2순위", + "holder": "강용일", + "debtor": "오국환", + "amount_role": "released_junior_mortgage_maximum", + "released": true + }, + { + "locator": "REG-014-06", + "purpose": "2번 근저당권설정등기 말소", + "cause": "해지", + "receipt_date": "2024-10-17", + "receipt_no": "제74586호", + "target_locator": "REG-014-05" + } + ] + }, + "legacy_state_projection": { + "ownership": { + "registered_holder_candidates": [ + "오민한" + ], + "asserted_substantive_holder_candidates": [ + "오민한" + ], + "basis_conflict": "등기취득과 당초 명의신탁 소유 주장은 별도 근거", + "validity": "미판단", + "evidence_refs": [ + "E-014", + "E-003", + "E-010" + ] + }, + "possession": { + "party_candidates": [], + "status": "미확인", + "evidence_refs": [] + }, + "use": { + "party_candidates": [], + "status": "미확인", + "evidence_refs": [] + }, + "benefit": { + "party_candidates": [], + "status": "미확인", + "evidence_refs": [] + } + }, + "conflict_groups": [ + { + "issue": "처분자 성명", + "labels": [ + "오국환", + "오국한" + ], + "resolved": false, + "evidence_refs": [ + "E-014", + "E-003", + "E-024" + ] + }, + { + "issue": "후순위 담보권자와 대여채권자 연결", + "labels": [ + "강용일", + "강용원" + ], + "resolved": false, + "evidence_refs": [ + "E-014", + "E-024" + ] + }, + { + "issue": "선순위 담보권자 성명", + "labels": [ + "나임오", + "나일오" + ], + "resolved": false, + "evidence_refs": [ + "E-014", + "E-008" + ] + } + ] + } + } + } + }, + { + "BO_ID": "bh7", + "id": "bh7", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매" + }, + "Action": "성수동 대지에 강석우 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지에 강석우 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2017-06-30", + "TimeText": "2017-06-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지에 강석우 명의의 매매 원인 소유권이전등기가 기록되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-02", + "section": "갑구", + "rank_no": "2", + "receipt_no": "제7026호", + "receipt_date": "2017-07-02", + "cause": "매매", + "cause_date": "2017-06-30", + "right_holder": "강석우", + "target_scope": "토지 전체", + "is_deleted": false + } + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh8", + "id": "bh8", + "BOType": "state", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "물품공급계약" + }, + "Action": "후행 각서와 최고서가 지칭하는 강용원의 김선웅에 대한 인테리어 자재대금 채권 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "물품공급계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "후행 각서와 최고서가 지칭하는 강용원의 김선웅에 대한 인테리어 자재대금 채권 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-06-05", + "TimeText": "2021-06-05", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-027-VF-001" + }, + "value_refs": [ + "E-027-VF-001" + ], + "EvidenceTitles": [ + "이 행 각 서", + "최고 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-027", + "source_title": "최고 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021", + "E-027" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "후행 각서와 최고서가 지칭하는 강용원의 김선웅에 대한 인테리어 자재대금 채권 후보를 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "value_id": "E-027-VF-001", + "origin_support": "후행 채무승인 및 채권자 최고", + "origin_classification_status": "review_required", + "amount_basis": "claimed", + "payment_history_status": "review_required", + "agreed_interest_rate": null, + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [], + "lifecycle_hint": "최고·채무승인·후행 지급기한은 별도 후보로 보존" + } + } + } + }, + { + "BO_ID": "bh9", + "id": "bh9", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "신림동 상가에 나임오 명의의 선순위 근저당권설정등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 나임오 명의의 선순위 근저당권설정등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-08-01", + "TimeText": "2021-08-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "50,000,000원", + "numeric_value": "50000000", + "currency": "KRW", + "value_id": "E-014-VF-004" + }, + "value_refs": [ + "E-014-VF-004" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 나임오 명의의 선순위 근저당권설정등기가 기록되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-04", + "section": "을구", + "rank_no": "1", + "receipt_no": "제50099호", + "receipt_date": "2021-08-01", + "cause": "설정계약", + "cause_date": "2021-08-01", + "right_holder": "나임오", + "debtor": "오국환", + "is_cancelled": false + } + ], + "secured_debt_chain": [ + "E-014-SD-01" + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh10", + "id": "bh10", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "신림동 상가에 나임오를 근저당권자로 하는 선순위 근저당권설정등기가 존재한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 나임오를 근저당권자로 하는 선순위 근저당권설정등기가 존재한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-08-01", + "TimeText": "2021-08-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "50,000,000원", + "numeric_value": "50000000", + "currency": "KRW", + "value_id": "E-014-VF-004" + }, + "value_refs": [ + "E-014-VF-004" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 나임오를 근저당권자로 하는 선순위 근저당권설정등기가 존재한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-04", + "section": "을구", + "rank_no": "1", + "receipt_date": "2021-08-01", + "receipt_no": "제50099호", + "cause": "설정계약", + "right_holder": "나임오", + "debtor": "오국환", + "is_cancelled": false + } + ], + "registry_display": { + "location_lot": "서울특별시 관악구 신림동 779", + "road_address": "서울특별시 관악구 신림로 115", + "area": "100㎡", + "pin": "1436-2018-250456", + "structure_and_roof": "철근콘크리트조 콘크리트지붕 단층 근린상가" + }, + "secured_balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh11", + "id": "bh11", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "김일동이 지급한 공사중도금을 박광윤이 영수한 사실을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "partial_payment" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김일동이 지급한 공사중도금을 박광윤이 영수한 사실을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-08-30", + "TimeText": "2021-08-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 4억 원정", + "numeric_value": "400000000", + "currency": "KRW", + "value_id": "E-007-VF-010" + }, + "value_refs": [ + "E-007-VF-010" + ], + "EvidenceTitles": [ + "공사도급 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-007", + "source_title": "공사도급 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-007" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김일동이 지급한 공사중도금을 박광윤이 영수한 사실을 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "value_id": "E-007-VF-010", + "payment_history_hint": "공사중도금 영수", + "appropriation_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh12", + "id": "bh12", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "공사도급" + }, + "Action": "김일동과 박광윤 사이의 신축공사 도급 및 공사대금 지급약정을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "공사도급" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김일동과 박광윤 사이의 신축공사 도급 및 공사대금 지급약정을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-11-10", + "TimeText": "2021-11-10", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10억 원", + "numeric_value": "1000000000", + "currency": "KRW", + "value_id": "E-007-VF-004" + }, + "value_refs": [ + "E-007-VF-004", + "E-007-VF-006", + "E-007-VF-009", + "E-007-VF-010" + ], + "EvidenceTitles": [ + "공사도급 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-007", + "source_title": "공사도급 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-007" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김일동과 박광윤 사이의 신축공사 도급 및 공사대금 지급약정을 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "performance_deadline_linkage": "완공일에 잔금 지급", + "payment_history_hint": "계약금 및 중도금 영수 기재가 있으며 각 지급행위는 별도 후보로 보존", + "current_balance_status": "review_required", + "agreed_interest_rate": null, + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [] + } + } + } + }, + { + "BO_ID": "bh13", + "id": "bh13", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "공사도급계약" + }, + "Action": "김일동과 박광윤이 평택시 신축공사의 도급 및 대금 지급조건을 약정하고 계약금·중도금 영수와 잔금 지급시기를 정한 계약 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "construction_payment_claim", + "공사도급계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김일동과 박광윤이 평택시 신축공사의 도급 및 대금 지급조건을 약정하고 계약금·중도금 영수와 잔금 지급시기를 정한 계약 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-11-10", + "TimeText": "2021-11-10", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10억 원", + "numeric_value": "1000000000", + "currency": "KRW", + "value_id": "E-007-VF-004" + }, + "value_refs": [ + "E-007-VF-004", + "E-007-VF-006", + "E-007-VF-009", + "E-007-VF-010" + ], + "EvidenceTitles": [ + "공사도급 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-007", + "source_title": "공사도급 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-007" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-07" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김일동과 박광윤이 평택시 신축공사의 도급 및 대금 지급조건을 약정하고 계약금·중도금 영수와 잔금 지급시기를 정한 계약 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh14", + "id": "bh14", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": { + "label": "소유권보존등기" + }, + "Action": "서정빌라 제101호에 김일동 명의 소유권보존등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "소유권보존등기" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라 제101호에 김일동 명의 소유권보존등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-12-10", + "TimeText": "2021-12-10", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라 제101호에 김일동 명의 소유권보존등기가 기록되어 있다.", + "action_type": "사실행위(factual acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-015-01", + "section": "갑구", + "rank_no": "1", + "receipt_no": "제7233호", + "receipt_date": "2021-12-10", + "purpose": "소유권보존", + "right_holder": "김일동", + "cause": null, + "cause_date": null, + "is_cancelled": false + } + ], + "registry_display": { + "exclusive_part": "제1층 제101호 철근콘크리트조 54.85㎡", + "land_right_type": "소유권대지권", + "land_right_ratio": "312분의 47" + }, + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh15", + "id": "bh15", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매" + }, + "Action": "서정빌라 제101호가 매매를 원인으로 정남이에게 소유권이전등기되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라 제101호가 매매를 원인으로 정남이에게 소유권이전등기되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-12-30", + "TimeText": "2021-12-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라 제101호가 매매를 원인으로 정남이에게 소유권이전등기되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-015-02", + "section": "갑구", + "rank_no": "2", + "receipt_no": "제7871호", + "receipt_date": "2021-12-30", + "cause": "2021년12월30일 매매", + "cause_date": "2021-12-30", + "right_holder": "정남이", + "is_cancelled": false + } + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh16", + "id": "bh16", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "서정빌라 제101호의 전유부분·대지권 표시와 불완전한 소유계보 및 거주·임대 상태 자료를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라 제101호의 전유부분·대지권 표시와 불완전한 소유계보 및 거주·임대 상태 자료를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-02-01~2022-07-31", + "TimeText": "2022-02-01~2022-07-31", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-011-VF-002" + ], + "EvidenceTitles": [ + "서울가정법원 심판", + "가족관계증명서 [폐쇄]", + "답 변 서", + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록", + "소멸청구 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-001", + "source_title": "서울가정법원 심판", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-002", + "source_title": "가족관계증명서 [폐쇄]", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-001", + "E-002", + "E-011", + "E-015", + "E-016", + "E-019" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_related_values": [ + { + "value_id": "E-011-VF-002", + "value_kind": "RENT", + "item_label": "월", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "AGREED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라 제101호의 전유부분·대지권 표시와 불완전한 소유계보 및 거주·임대 상태 자료를 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_asset_projection": { + "canonical_identifier_candidate": "1145-5548-165651", + "asset_alias": "평택시 빌라", + "lot_address": "경기도 평택시 서정동 550", + "road_address": "경기도 평택시 서정3길 123", + "exclusive_part": "제1층 제101호 철근콘크리트조 54.85㎡", + "land_right_ratio": "312분의 47", + "schedule_locator": "SCH-016-04", + "evidence_refs": [ + "E-015", + "E-016" + ] + }, + "legacy_lineage_projection": { + "evidence_refs": [ + "E-015" + ], + "entries": [ + { + "locator": "REG-015-01", + "purpose": "소유권보존", + "receipt_date": "2021-12-10", + "receipt_no": "제7233호", + "holder": "김일동" + }, + { + "locator": "REG-015-02", + "purpose": "소유권이전", + "cause": "매매", + "cause_date": "2021-12-30", + "receipt_date": "2021-12-30", + "receipt_no": "제7871호", + "holder": "정남이" + }, + { + "locator": "REG-015-03", + "purpose": "가압류", + "receipt_date": "2022-09-01", + "receipt_no": "제11593호", + "holder": "김동국", + "cancelled": true, + "cancellation_date": null + }, + { + "locator": "REG-015-04", + "purpose": "소유권이전", + "receipt_date": "2022-10-01", + "receipt_no": "제12321호", + "holder": null, + "cause": null + } + ] + }, + "legacy_state_projection": { + "ownership": { + "party_candidates": [], + "status": "최근 등기 권리자 공란", + "evidence_refs": [ + "E-015" + ] + }, + "possession": { + "party_candidates": [ + "박광윤", + "박광윤의 가족" + ], + "status": "거주 자인", + "as_of": "2024-10-31", + "source_scope": "review_only", + "evidence_refs": [ + "E-011", + "E-019" + ] + }, + "use": { + "party_candidates": [ + "박광윤", + "박광윤의 가족" + ], + "use_kind": "주거", + "source_scope": "review_only", + "evidence_refs": [ + "E-011" + ] + }, + "benefit": { + "party_candidates": [ + "박광윤" + ], + "historical_rent_period": "2022-02-01~2022-07-31", + "current_use_benefit": "거주 사용이익 주장", + "allocation_validity": "미판단", + "evidence_refs": [ + "E-011" + ] + } + } + } + } + } + }, + { + "BO_ID": "bh17", + "id": "bh17", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "신림동 상가에 강용일 명의의 후순위 근저당권설정등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 강용일 명의의 후순위 근저당권설정등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-04-18", + "TimeText": "2022-04-18", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "150,000,000원", + "numeric_value": "150000000", + "currency": "KRW", + "value_id": "E-014-VF-005" + }, + "value_refs": [ + "E-014-VF-005" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 강용일 명의의 후순위 근저당권설정등기가 기록되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-05", + "section": "을구", + "rank_no": "2", + "receipt_no": "제26597호", + "receipt_date": "2022-04-18", + "cause": "설정계약", + "cause_date": "2022-04-18", + "right_holder": "강용일", + "debtor": "오국환", + "is_cancelled": true + } + ], + "secured_debt_chain": [ + "E-014-SD-02" + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh18", + "id": "bh18", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "신림동 상가에 강용일 명의의 후순위 근저당권설정등기가 이루어졌다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 강용일 명의의 후순위 근저당권설정등기가 이루어졌다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-04-18", + "TimeText": "2022-04-18", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "150,000,000원", + "numeric_value": "150000000", + "currency": "KRW", + "value_id": "E-014-VF-005" + }, + "value_refs": [ + "E-014-VF-005" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 강용일 명의의 후순위 근저당권설정등기가 이루어졌다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-05", + "section": "을구", + "rank_no": "2", + "receipt_date": "2022-04-18", + "receipt_no": "제26597호", + "cause": "설정계약", + "right_holder": "강용일", + "debtor": "오국환", + "is_cancelled": true + } + ], + "secured_balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh19", + "id": "bh19", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차계약" + }, + "Action": "오민한과 오국한 사이의 차용·변제 의사표시 및 변제기 약정의 성립과 해석을 보존하는 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "condition_term_effect", + "juristic_act_validity", + "금전소비대차계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한과 오국한 사이의 차용·변제 의사표시 및 변제기 약정의 성립과 해석을 보존하는 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-07-18", + "TimeText": "2022-07-18", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10,000,000원", + "numeric_value": "10000000", + "currency": "KRW", + "value_id": "E-003-VF-003" + }, + "value_refs": [ + "E-003-VF-003" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-01" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한과 오국한 사이의 차용·변제 의사표시 및 변제기 약정의 성립과 해석을 보존하는 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh20", + "id": "bh20", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "제3자에 대한 임대차" + }, + "Action": "박광윤은 서정빌라를 일정 기간 인근 공장 직원숙소로 임대한 사실을 인정하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "제3자에 대한 임대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤은 서정빌라를 일정 기간 인근 공장 직원숙소로 임대한 사실을 인정하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-07-31", + "TimeText": "2022-07-31", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-011-VF-002" + ], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10", + "amount_related_values": [ + { + "value_id": "E-011-VF-002", + "value_kind": "RENT", + "item_label": "월", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "AGREED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤은 서정빌라를 일정 기간 인근 공장 직원숙소로 임대한 사실을 인정하였다.", + "action_type": "법률행위(legal acts)", + "payload": { + "lease_purpose_as_admitted": "인근 공장 직원숙소", + "owner_consent_status": "review_required", + "legal_theory_required": [ + "lien_holder_duty_violation", + "preservation_use_exception" + ], + "review_required": [ + "lessee_identity", + "owner_consent" + ] + } + } + } + }, + { + "BO_ID": "bh21", + "id": "bh21", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "서정빌라 제101호에 김동국을 채권자로 하는 가압류등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라 제101호에 김동국을 채권자로 하는 가압류등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-09-01", + "TimeText": "2022-09-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금14,000,000원", + "numeric_value": "14000000", + "currency": "KRW", + "value_id": "E-015-VF-007" + }, + "value_refs": [ + "E-015-VF-007" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라 제101호에 김동국을 채권자로 하는 가압류등기가 기록되어 있다.", + "action_type": null, + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-015-03", + "section": "갑구", + "rank_no": "3", + "receipt_no": "제11593호", + "receipt_date": "2022-09-01", + "cause_date": "2022-09-01", + "purpose": "가압류", + "right_holder": "김동국", + "obligor": null, + "is_cancelled": true + } + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh22", + "id": "bh22", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지에 정유심과 강용원의 상속 원인 공유등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지에 정유심과 강용원의 상속 원인 공유등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-11-08", + "TimeText": "2022-11-08", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지에 정유심과 강용원의 상속 원인 공유등기가 기록되어 있다.", + "action_type": "사실행위(factual acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-03", + "section": "갑구", + "rank_no": "3", + "receipt_no": "제11202호", + "receipt_date": "2022-12-08", + "cause": "상속", + "cause_date": "2022-11-08", + "right_holder": "정유심, 강용원", + "target_scope": "정유심 지분 5분의 3, 강용원 지분 5분의 2", + "fraction_ref": "FR-013-03", + "is_deleted": false + } + ], + "fractional_effect_events": [ + "EVT-013-03" + ] + } + } + } + }, + { + "BO_ID": "bh23", + "id": "bh23", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원과 오국한 사이의 선행 대여 및 약정이율과 변제기를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원과 오국한 사이의 선행 대여 및 약정이율과 변제기를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-12-17", + "TimeText": "2022-12-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "100,000,000원", + "numeric_value": "100000000", + "currency": "KRW", + "value_id": "E-024-VF-001" + }, + "value_refs": [ + "E-024-VF-001" + ], + "EvidenceTitles": [ + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원과 오국한 사이의 선행 대여 및 약정이율과 변제기를 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "value_id": "E-024-VF-001", + "loan_component_ref": "E-024-LC-01", + "agreed_interest_rate": "월 1%", + "agreed_delay_damage_rate": null, + "interest_accrual_start_hint": "2022-04-18", + "interest_rate_source_evidence_refs": [ + "E-024" + ], + "payment_history_status": "review_required", + "current_balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh24", + "id": "bh24", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원과 오국한 사이의 선행 대여금채권을 피보전채권 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "preserved_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원과 오국한 사이의 선행 대여금채권을 피보전채권 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-12-17", + "TimeText": "2022-12-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "100,000,000원", + "numeric_value": "100000000", + "currency": "KRW", + "value_id": "E-024-VF-001" + }, + "value_refs": [ + "E-024-VF-001" + ], + "EvidenceTitles": [ + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-13" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원과 오국한 사이의 선행 대여금채권을 피보전채권 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "preserved_claim_bundle": [ + { + "creditor": "강용원", + "debtor": "오국한", + "loan_date": "2022-04-18", + "due_date": "2022-12-17", + "value_id": "E-024-VF-001", + "source_evidence_refs": [ + "E-024" + ] + } + ], + "agreed_interest_rate": "월 1%", + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [ + "E-024" + ], + "payment_history": [], + "outstanding_balance": null, + "related_disposition_seed_ref": "e13-003", + "debtor_identity_link_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh25", + "id": "bh25", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "강용원의 성수동 대지 일부 지분에 오민환 명의 근저당권설정등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원의 성수동 대지 일부 지분에 오민환 명의 근저당권설정등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-01-06", + "TimeText": "2023-01-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 260,000,000원", + "numeric_value": "260000000", + "currency": "KRW", + "value_id": "E-013-VF-006" + }, + "value_refs": [ + "E-013-VF-006" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원의 성수동 대지 일부 지분에 오민환 명의 근저당권설정등기가 기록되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-08", + "section": "을구", + "rank_no": "1", + "receipt_no": "제1088호", + "receipt_date": "2023-01-06", + "cause": "설정계약", + "cause_date": "2023-01-06", + "right_holder": "오민환", + "debtor": "강용원", + "target_scope": "갑구 3번 강용원 지분 5분의 2", + "fraction_ref": "FR-013-08", + "is_deleted": true + } + ], + "secured_debt_chain": [ + "SEC-013-01" + ], + "fractional_effect_events": [ + "EVT-013-04" + ] + } + } + } + }, + { + "BO_ID": "bh26", + "id": "bh26", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "성수동 대지 중 강용원의 해당 지분에 오민환 명의 근저당권설정등기가 이루어졌으며 차용증의 담보약정과 연결 검토가 필요하다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 중 강용원의 해당 지분에 오민환 명의 근저당권설정등기가 이루어졌으며 차용증의 담보약정과 연결 검토가 필요하다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-01-06", + "TimeText": "2023-01-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 260,000,000원", + "numeric_value": "260000000", + "currency": "KRW", + "value_id": "E-013-VF-006" + }, + "value_refs": [ + "E-013-VF-006" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지", + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-025", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013", + "E-025" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 중 강용원의 해당 지분에 오민환 명의 근저당권설정등기가 이루어졌으며 차용증의 담보약정과 연결 검토가 필요하다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-08", + "section": "을구", + "rank_no": "1", + "receipt_date": "2023-01-06", + "receipt_no": "제1088호", + "cause": "설정계약", + "right_holder": "오민환", + "debtor": "강용원", + "target_scope": "갑구 3번 강용원 지분 5분의 2", + "fraction_ref": "FR-013-08", + "is_deleted": true + } + ], + "fraction_ref": "FR-013-08", + "fractional_effect_events": [], + "registry_display": { + "location": "서울특별시 성동구 성수동 256", + "area": "330㎡", + "unique_number": "3103-1325-341248", + "competent_registry_office": "서울동부지방법원 등기국" + }, + "right_holder_linkage": "review_required" + } + } + } + }, + { + "BO_ID": "bh27", + "id": "bh27", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원이 오민한으로부터 영업자금을 차용하면서 성수동 대지 지분을 담보로 제공하기로 약정하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 오민한으로부터 영업자금을 차용하면서 성수동 대지 지분을 담보로 제공하기로 약정하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-01-06", + "TimeText": "2023-01-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "200,000,000원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-025-VF-001" + }, + "value_refs": [ + "E-025-VF-001" + ], + "EvidenceTitles": [ + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-025", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-025" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 오민한으로부터 영업자금을 차용하면서 성수동 대지 지분을 담보로 제공하기로 약정하였다.", + "action_type": "법률행위(legal acts)", + "payload": { + "secured_debt_chain": [ + { + "secured_debt_id": "E-025-SD-01", + "creditor": "오민한", + "debtor": "강용원", + "collateral_target": "서울 성동구 성수동 256 대 330㎡의 5분의 2 지분" + } + ], + "agreed_interest_rate": "연 10%", + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [ + "E-025" + ], + "payment_history": [], + "balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh28", + "id": "bh28", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원과 오국한 사이의 추가 대여를 선행 대여와 구분하여 약정이율 및 변제기와 함께 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원과 오국한 사이의 추가 대여를 선행 대여와 구분하여 약정이율 및 변제기와 함께 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-03-17", + "TimeText": "2023-03-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "100,000,000원", + "numeric_value": "100000000", + "currency": "KRW", + "value_id": "E-024-VF-002" + }, + "value_refs": [ + "E-024-VF-002" + ], + "EvidenceTitles": [ + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원과 오국한 사이의 추가 대여를 선행 대여와 구분하여 약정이율 및 변제기와 함께 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "value_id": "E-024-VF-002", + "loan_component_ref": "E-024-LC-02", + "agreed_interest_rate": "월 1%", + "agreed_delay_damage_rate": null, + "interest_accrual_start_hint": "2022-05-18", + "interest_rate_source_evidence_refs": [ + "E-024" + ], + "payment_history_status": "review_required", + "current_balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh29", + "id": "bh29", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매" + }, + "Action": "신림동 상가가 매매를 원인으로 오민한에게 소유권이전등기되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가가 매매를 원인으로 오민한에게 소유권이전등기되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-03-17", + "TimeText": "2023-03-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 150,000,000원", + "numeric_value": "150000000", + "currency": "KRW", + "value_id": "E-014-VF-003" + }, + "value_refs": [ + "E-014-VF-003" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가가 매매를 원인으로 오민한에게 소유권이전등기되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-03", + "section": "갑구", + "rank_no": "3", + "receipt_no": "제11593호", + "receipt_date": "2023-03-17", + "cause": "매매", + "cause_date": "2023-03-17", + "right_holder": "오민한", + "is_cancelled": false + } + ], + "prior_encumbrance_refs": [ + "REG-014-04", + "REG-014-05" + ], + "subsequent_registry_refs": [ + "REG-014-06" + ], + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh30", + "id": "bh30", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "추가 소비대차에 따른 대여금채권을 앞선 대여금과 구분하여 피보전채권 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "preserved_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "추가 소비대차에 따른 대여금채권을 앞선 대여금과 구분하여 피보전채권 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-03-17", + "TimeText": "2023-03-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "100,000,000원", + "numeric_value": "100000000", + "currency": "KRW", + "value_id": "E-024-VF-002" + }, + "value_refs": [ + "E-024-VF-002" + ], + "EvidenceTitles": [ + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-13" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "추가 소비대차에 따른 대여금채권을 앞선 대여금과 구분하여 피보전채권 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "preserved_claim_bundle": [ + { + "creditor": "강용원", + "debtor": "오국한", + "loan_date": "2022-05-18", + "due_date": "2023-03-17", + "value_id": "E-024-VF-002", + "source_evidence_refs": [ + "E-024" + ] + } + ], + "agreed_interest_rate": "월 1%", + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [ + "E-024" + ], + "payment_history": [], + "outstanding_balance": null, + "related_disposition_seed_ref": "e13-003", + "debtor_identity_link_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh31", + "id": "bh31", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "증여" + }, + "Action": "정유심의 성수동 대지 지분이 증여를 원인으로 강용원에게 이전등기되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "증여" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "정유심의 성수동 대지 지분이 증여를 원인으로 강용원에게 이전등기되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-04-06", + "TimeText": "2023-04-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "정유심의 성수동 대지 지분이 증여를 원인으로 강용원에게 이전등기되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-04", + "section": "갑구", + "rank_no": "4", + "receipt_no": "제7202호", + "receipt_date": "2023-04-08", + "cause": "증여", + "cause_date": "2023-04-06", + "right_holder": "강용원", + "target_scope": "지분 5분의 3", + "fraction_ref": "FR-013-04", + "is_deleted": false + } + ], + "fractional_effect_events": [ + "EVT-013-05" + ] + } + } + } + }, + { + "BO_ID": "bh32", + "id": "bh32", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "증여로 이전등기된 성수동 대지 지분에 오민환 명의 근저당권설정등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "증여로 이전등기된 성수동 대지 지분에 오민환 명의 근저당권설정등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-07-06", + "TimeText": "2023-07-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 390,000,000원", + "numeric_value": "390000000", + "currency": "KRW", + "value_id": "E-013-VF-008" + }, + "value_refs": [ + "E-013-VF-008" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "증여로 이전등기된 성수동 대지 지분에 오민환 명의 근저당권설정등기가 기록되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-09", + "section": "을구", + "rank_no": "2", + "receipt_no": "제8293호", + "receipt_date": "2023-07-06", + "cause": "설정계약", + "cause_date": "2023-07-06", + "right_holder": "오민환", + "debtor": "강용원", + "target_scope": "갑구 4번 강용원 지분 5분의 3", + "fraction_ref": "FR-013-09", + "is_deleted": true + } + ], + "secured_debt_chain": [ + "SEC-013-02" + ], + "fractional_effect_events": [ + "EVT-013-06" + ] + } + } + } + }, + { + "BO_ID": "bh33", + "id": "bh33", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "성수동 대지 중 강용원이 취득한 해당 지분에 오민환 명의의 별도 근저당권설정등기가 이루어졌다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 중 강용원이 취득한 해당 지분에 오민환 명의의 별도 근저당권설정등기가 이루어졌다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-07-06", + "TimeText": "2023-07-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 390,000,000원", + "numeric_value": "390000000", + "currency": "KRW", + "value_id": "E-013-VF-008" + }, + "value_refs": [ + "E-013-VF-008" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 중 강용원이 취득한 해당 지분에 오민환 명의의 별도 근저당권설정등기가 이루어졌다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-09", + "section": "을구", + "rank_no": "2", + "receipt_date": "2023-07-06", + "receipt_no": "제8293호", + "cause": "설정계약", + "right_holder": "오민환", + "debtor": "강용원", + "target_scope": "갑구 4번 강용원 지분 5분의 3", + "fraction_ref": "FR-013-09", + "is_deleted": true + } + ], + "fraction_ref": "FR-013-09", + "fractional_effect_events": [], + "secured_balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh34", + "id": "bh34", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "오민한과 오국한 사이의 차용 및 변제기 약정을 금전채권 발생 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한과 오국한 사이의 차용 및 변제기 약정을 금전채권 발생 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-07-17", + "TimeText": "2023-07-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10,000,000원", + "numeric_value": "10000000", + "currency": "KRW", + "value_id": "E-003-VF-003" + }, + "value_refs": [ + "E-003-VF-003" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한과 오국한 사이의 차용 및 변제기 약정을 금전채권 발생 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "loan_component_ref": "E-003-LC-01", + "value_id": "E-003-VF-003", + "agreed_interest_rate": null, + "agreed_delay_damage_rate": null, + "interest_accrual_start_hint": null, + "interest_rate_source_evidence_refs": [], + "payment_history_status": "review_required", + "role_in_claim_hint": "별도 가액배상 감액 주장에 사용된 대여금 자료" + } + } + } + }, + { + "BO_ID": "bh35", + "id": "bh35", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원이 오민한으로부터 영업자금을 차용하면서 정한 이율과 변제기를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 오민한으로부터 영업자금을 차용하면서 정한 이율과 변제기를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-01-05", + "TimeText": "2024-01-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "200,000,000원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-025-VF-001" + }, + "value_refs": [ + "E-025-VF-001" + ], + "EvidenceTitles": [ + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-025", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-025" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 오민한으로부터 영업자금을 차용하면서 정한 이율과 변제기를 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "value_id": "E-025-VF-001", + "loan_component_ref": "E-025-LC-01", + "secured_debt_component_ref": "E-025-SD-01", + "agreed_interest_rate": "연 10%", + "agreed_delay_damage_rate": null, + "interest_accrual_start_hint": "2023-01-06", + "interest_rate_source_evidence_refs": [ + "E-025" + ], + "collateral_object_hint": "서울 성동구 성수동 256 대 330㎡의 5분의 2 지분", + "collateral_effect_status": "legal_theory_required", + "payment_history_status": "review_required", + "current_balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh36", + "id": "bh36", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "상가 임대차계약" + }, + "Action": "이수인과 양정숙의 흑석동 상가 임대차 체결, 보증금 지급·인도 확인 및 사업자등록 자료를 후행 해지 주장과 구별하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "lease_contract_formation", + "lease_delivery_concurrent_performance", + "lease_rent_payment", + "상가 임대차계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이수인과 양정숙의 흑석동 상가 임대차 체결, 보증금 지급·인도 확인 및 사업자등록 자료를 후행 해지 주장과 구별하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-02-01", + "TimeText": "2024-02-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-022-VF-003" + }, + "value_refs": [ + "E-022-VF-003", + "E-022-VF-004" + ], + "EvidenceTitles": [ + "내용증명", + "사 업 자 등 록 증", + "임대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-009", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-018", + "source_title": "사 업 자 등 록 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-022", + "source_title": "임대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-009", + "E-018", + "E-022" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-08", + "amount_related_values": [ + { + "value_id": "E-022-VF-004", + "value_kind": "RENT", + "item_label": "월 차임", + "amount_text": "500만 원", + "amount_value": "5000000", + "currency": "KRW", + "evidence_index": "E-022", + "value_basis": "AGREED", + "object_label_text": [ + "서울 동작구 흑석로 80 지상 철근콘크리트조 슬래브지붕 3층 건물 201호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이수인과 양정숙의 흑석동 상가 임대차 체결, 보증금 지급·인도 확인 및 사업자등록 자료를 후행 해지 주장과 구별하여 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh37", + "id": "bh37", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "흑석동 상가 제201호의 전유부분·대지권 표시와 임차인 인도·사용 상태 및 권원 종료 다툼을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "흑석동 상가 제201호의 전유부분·대지권 표시와 임차인 인도·사용 상태 및 권원 종료 다툼을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-02-01~2029-01-31", + "TimeText": "2024-02-01~2029-01-31", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-022-VF-003" + }, + "value_refs": [ + "E-022-VF-003", + "E-022-VF-004" + ], + "EvidenceTitles": [ + "내용증명", + "별지 목록", + "부동산 매매계약서", + "사 업 자 등 록 증", + "임대차계약서", + "해제 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-009", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-017", + "source_title": "부동산 매매계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-018", + "source_title": "사 업 자 등 록 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-022", + "source_title": "임대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-030", + "source_title": "해제 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-009", + "E-016", + "E-017", + "E-018", + "E-022", + "E-030" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_related_values": [ + { + "value_id": "E-022-VF-004", + "value_kind": "RENT", + "item_label": "월 차임", + "amount_text": "500만 원", + "amount_value": "5000000", + "currency": "KRW", + "evidence_index": "E-022", + "value_basis": "AGREED", + "object_label_text": [ + "서울 동작구 흑석로 80 지상 철근콘크리트조 슬래브지붕 3층 건물 201호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "흑석동 상가 제201호의 전유부분·대지권 표시와 임차인 인도·사용 상태 및 권원 종료 다툼을 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_asset_projection": { + "asset_alias": "흑석동 상가", + "road_address": "서울 동작구 흑석로 80", + "exclusive_part": "제2층 제201호 철근콘크리트조 150.32㎡", + "land_right_ratio": "380분의 54", + "schedule_locator": "SCH-016-05", + "canonical_identifier_candidate": null, + "evidence_refs": [ + "E-016", + "E-017", + "E-022" + ] + }, + "legacy_lineage_projection": { + "entries": [ + { + "date": "2023-10-01", + "kind": "매매계약", + "seller": "윤건우", + "buyer": "이수인", + "ownership_registration_confirmed": false, + "evidence_refs": [ + "E-017" + ] + }, + { + "date": "2024-02-01", + "kind": "임대차 및 임차인 인도 확인", + "lessor": "이수인", + "tenant": "양정숙", + "evidence_refs": [ + "E-022" + ] + }, + { + "date": "2024-05-16", + "kind": "매매 해제 통지 도달", + "effect": "미판단", + "source_scope": "review_only", + "evidence_refs": [ + "E-030" + ] + }, + { + "date": "2024-11-30", + "kind": "임대차 종료·인도 요구 통지 도달", + "effect": "미판단", + "source_scope": "review_only", + "evidence_refs": [ + "E-009" + ] + } + ] + }, + "legacy_state_projection": { + "ownership": { + "party_candidates": [], + "status": "등기자료 미제공", + "evidence_refs": [ + "E-017" + ] + }, + "possession": { + "party_candidates": [ + "양정숙" + ], + "start_date": "2024-02-01", + "basis": "계약상 인도 완료 확인", + "later_continuation": "별도 확인 필요", + "evidence_refs": [ + "E-022" + ] + }, + "use": { + "party_candidates": [ + "양정숙" + ], + "use_kind": "맛나식당 운영", + "opening_date": "2024-02-01", + "source_scope": "review_only", + "later_continuation": "별도 확인 필요", + "evidence_refs": [ + "E-018" + ] + }, + "benefit": { + "contractual_use_beneficiary_candidates": [ + "양정숙" + ], + "contractual_rent_recipient_candidates": [ + "이수인" + ], + "actual_rent_collection_confirmed": false, + "evidence_refs": [ + "E-022" + ] + } + }, + "conflict_groups": [ + { + "issue": "임차 점유권원의 존속", + "resolved": false, + "evidence_refs": [ + "E-022", + "E-009", + "E-030" + ] + } + ] + } + } + } + }, + { + "BO_ID": "bh38", + "id": "bh38", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매계약 해제 의사표시" + }, + "Action": "흑석동 상가 매매계약 해제 통지와 이에 따른 급부 원상회복 가능성을 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "contractual_restitution", + "매매계약 해제 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "흑석동 상가 매매계약 해제 통지와 이에 따른 급부 원상회복 가능성을 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-05-01", + "TimeText": "2024-05-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-017-VF-003" + }, + "value_refs": [ + "E-017-VF-003", + "E-017-VF-004", + "E-017-VF-005" + ], + "EvidenceTitles": [ + "부동산 매매계약서", + "통 지 서", + "해제 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-017", + "source_title": "부동산 매매계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-029", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-030", + "source_title": "해제 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-017", + "E-029", + "E-030" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-017-02" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_alternatives": [ + { + "value_id": "E-017-VF-003", + "value_kind": "PRICE_INSTALLMENT", + "item_label": "계 약 금", + "amount_text": "2억 원", + "amount_value": "200000000", + "currency": "KRW", + "evidence_index": "E-017", + "dates": [ + { + "date_text": "계약 당일", + "role": "DUE" + } + ], + "value_basis": "AGREED", + "object_label_text": [ + "서울 동작구 흑석로 80 지상 철근콘크리트조 슬래브지붕 3층 건물 201호" + ] + }, + { + "value_id": "E-017-VF-004", + "value_kind": "PRICE_INSTALLMENT", + "item_label": "중 도 금", + "amount_text": "5억 원", + "amount_value": "500000000", + "currency": "KRW", + "evidence_index": "E-017", + "dates": [ + { + "date_text": "2024. 1. 1.", + "date_value": "2024-01-01", + "role": "DUE" + } + ], + "value_basis": "AGREED", + "object_label_text": [ + "서울 동작구 흑석로 80 지상 철근콘크리트조 슬래브지붕 3층 건물 201호" + ] + }, + { + "value_id": "E-017-VF-005", + "value_kind": "PRICE_INSTALLMENT", + "item_label": "잔 금", + "amount_text": "3억 원", + "amount_value": "300000000", + "currency": "KRW", + "evidence_index": "E-017", + "dates": [ + { + "date_text": "2024. 5. 1.", + "date_value": "2024-05-01", + "role": "DUE" + } + ], + "value_basis": "AGREED", + "object_label_text": [ + "서울 동작구 흑석로 80 지상 철근콘크리트조 슬래브지붕 3층 건물 201호" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "흑석동 상가 매매계약 해제 통지와 이에 따른 급부 원상회복 가능성을 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "restoration_basis": "rescission_candidate", + "rescission_validity_unresolved": true, + "actual_payment_unverified": true, + "evidence_indices": [ + "E-017", + "E-030", + "E-029" + ] + } + } + } + }, + { + "BO_ID": "bh39", + "id": "bh39", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "이행최고" + }, + "Action": "강용원이 김선웅에게 자재대금 변제를 최고하고 그 통지가 본인에게 도달한 경위를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "payment_demand", + "이행최고" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 김선웅에게 자재대금 변제를 최고하고 그 통지가 본인에게 도달한 경위를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-05-06", + "TimeText": "2024-05-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-027-VF-001" + }, + "value_refs": [ + "E-027-VF-001" + ], + "EvidenceTitles": [ + "최고 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-027", + "source_title": "최고 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-027" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 김선웅에게 자재대금 변제를 최고하고 그 통지가 본인에게 도달한 경위를 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "value_id": "E-027-VF-001", + "legal_character_candidate": "준법률행위", + "notice_type": "최고", + "dispatch_method": "내용증명우편", + "receipt_hint": "배달증명상 김선웅 본인 수령", + "limitation_effect_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh40", + "id": "bh40", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": { + "label": "이행최고(준법률행위)" + }, + "Action": "강용원이 김선웅에게 인테리어 자재대금 변제를 최고하고 본인 수령이 기재된 통지 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "demand_notice_lifecycle", + "이행최고(준법률행위)" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 김선웅에게 인테리어 자재대금 변제를 최고하고 본인 수령이 기재된 통지 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-05-06", + "TimeText": "2024-05-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-027-VF-001" + }, + "value_refs": [ + "E-027-VF-001" + ], + "EvidenceTitles": [ + "최고 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-027", + "source_title": "최고 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-027" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 김선웅에게 인테리어 자재대금 변제를 최고하고 본인 수령이 기재된 통지 lifecycle 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh41", + "id": "bh41", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매계약 해제 의사표시" + }, + "Action": "윤건우가 이수인에게 흑석동 상가 매매계약 해제를 통지하고 본인 수령이 기재된 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "sale_rescission_notice_lifecycle", + "매매계약 해제 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "윤건우가 이수인에게 흑석동 상가 매매계약 해제를 통지하고 본인 수령이 기재된 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-05-16", + "TimeText": "2024-05-16", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "해제 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-030", + "source_title": "해제 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-030" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "윤건우가 이수인에게 흑석동 상가 매매계약 해제를 통지하고 본인 수령이 기재된 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh42", + "id": "bh42", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원과 오민한 사이의 후행 영업자금 대여를 별도의 이율 및 변제기 약정과 함께 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원과 오민한 사이의 후행 영업자금 대여를 별도의 이율 및 변제기 약정과 함께 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-05", + "TimeText": "2024-07-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "300,000,000원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-026-VF-001" + }, + "value_refs": [ + "E-026-VF-001" + ], + "EvidenceTitles": [ + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-026", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-026" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원과 오민한 사이의 후행 영업자금 대여를 별도의 이율 및 변제기 약정과 함께 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "value_id": "E-026-VF-001", + "loan_component_ref": "E-026-LC-01", + "agreed_interest_rate": "연 15%", + "agreed_delay_damage_rate": null, + "interest_accrual_start_hint": null, + "interest_rate_source_evidence_refs": [ + "E-026" + ], + "collateral_object_hint": "서울 성동구 성수동 256 대 330㎡의 5분의 3 지분", + "collateral_effect_status": "legal_theory_required", + "payment_history_status": "review_required", + "current_balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh43", + "id": "bh43", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "영업양도계약" + }, + "Action": "김선웅과 오민한이 해드림의 영업자산과 고객·고용관계를 양도하고 상호의 계속 사용을 허용하는 계약을 체결하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "commercial_successor", + "영업양도계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅과 오민한이 해드림의 영업자산과 고객·고용관계를 양도하고 상호의 계속 사용을 허용하는 계약을 체결하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-05", + "TimeText": "2024-07-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-020-VF-002" + }, + "value_refs": [ + "E-020-VF-002" + ], + "EvidenceTitles": [ + "영업양도 계약서", + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-020", + "source_title": "영업양도 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-028", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-020", + "E-028" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-03" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅과 오민한이 해드림의 영업자산과 고객·고용관계를 양도하고 상호의 계속 사용을 허용하는 계약을 체결하였다.", + "action_type": "법률행위(legal acts)", + "payload": { + "business_name": "해드림(SUN-DREAM)", + "payment_history": [], + "admission_hints": [ + "양수인이 후속 통지서에서 상호·간판의 계속 사용을 자인하였다." + ], + "successor_liability_hints": [ + "영업자산 및 고객·고용관계 승계 약정", + "상호 계속 사용 허용", + "영업양도 전 채무 책임배제 특약" + ], + "successor_link_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh44", + "id": "bh44", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "채무불승계 약정" + }, + "Action": "영업양도 전 채무의 책임배제 약정과 이를 원용한 오민한의 책임 부인 및 소멸시효 항변을 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "commercial_successor", + "채무불승계 약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "영업양도 전 채무의 책임배제 약정과 이를 원용한 오민한의 책임 부인 및 소멸시효 항변을 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-05", + "TimeText": "2024-07-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "영업양도 계약서", + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-020", + "source_title": "영업양도 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-028", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-020", + "E-028" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-03" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "영업양도 전 채무의 책임배제 약정과 이를 원용한 오민한의 책임 부인 및 소멸시효 항변을 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "pre_transfer_debt_exclusion_clause": "을은 본 계약일 전에 갑의 영업으로 인해 발생한 채무에 대하여 책임을 지지 아니한다.", + "liability_exclusion_registration_status": "review_required", + "external_exclusion_notice_status": "review_required", + "notice_arrival_status": "review_required", + "limitation_defense_status": "legal_theory_required", + "debt_acknowledgement_by_transferee": false + } + } + } + }, + { + "BO_ID": "bh45", + "id": "bh45", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지에 담보권실행을 위한 일괄 경매개시결정이 등기되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지에 담보권실행을 위한 일괄 경매개시결정이 등기되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-21", + "TimeText": "2024-07-21", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지에 담보권실행을 위한 일괄 경매개시결정이 등기되어 있다.", + "action_type": null, + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-05", + "section": "갑구", + "rank_no": "5", + "receipt_no": "제12402호", + "receipt_date": "2024-07-22", + "cause_date": "2024-07-21", + "purpose": "담보권실행을위한경매개시결정(일괄)", + "right_holder": "오민환", + "target_scope": "토지 전체", + "is_deleted": true + } + ], + "auction_step": "commencement_registration", + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh46", + "id": "bh46", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지 전체에 관하여 오민환을 채권자로 하는 담보권실행 경매개시결정과 그 등기 기록이 존재한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "auction_commencement" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 전체에 관하여 오민환을 채권자로 하는 담보권실행 경매개시결정과 그 등기 기록이 존재한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-21", + "TimeText": "2024-07-21", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 전체에 관하여 오민환을 채권자로 하는 담보권실행 경매개시결정과 그 등기 기록이 존재한다.", + "action_type": null, + "payload": { + "auction_step": "commencement", + "registry_rows": [ + { + "registry_ref": "REG-013-05", + "section": "갑구", + "rank_no": "5", + "receipt_date": "2024-07-22", + "receipt_no": "제12402호", + "cause_date": "2024-07-21", + "right_holder": "오민환", + "target_scope": "토지 전체", + "is_deleted": true + } + ], + "auction_records_status": "review_required", + "dividend_distribution_hints": [] + } + } + } + }, + { + "BO_ID": "bh47", + "id": "bh47", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지의 표시와 지분·담보 등기계보 및 계약상 점유·사용·수익 귀속 후보를 분리하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지의 표시와 지분·담보 등기계보 및 계약상 점유·사용·수익 귀속 후보를 분리하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-21", + "TimeText": "2024-07-21", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-006-VF-003" + }, + "value_refs": [ + "E-006-VF-003", + "E-006-VF-004", + "E-013-VF-006", + "E-013-VF-008", + "E-013-VF-009" + ], + "EvidenceTitles": [ + "계 약 서", + "등기말소 신청에 대한 답신", + "등기사항전부증명서(말소사항 포함)-토지", + "별지 목록", + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-012", + "source_title": "등기말소 신청에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-025", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-026", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006", + "E-012", + "E-013", + "E-016", + "E-025", + "E-026" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_alternatives": [ + { + "value_id": "E-006-VF-003", + "value_kind": "DEPOSIT", + "item_label": "보증금", + "amount_text": "3억 원", + "amount_value": "300000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ] + }, + { + "value_id": "E-013-VF-006", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "금 260,000,000원", + "amount_value": "260000000", + "currency": "KRW", + "evidence_index": "E-013", + "dates": [ + { + "date_text": "2023년1월6일", + "date_value": "2023-01-06", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월5일", + "date_value": "2024-10-05", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED", + "object_label_text": [ + "서울특별시 성동구 성수동 256" + ] + }, + { + "value_id": "E-013-VF-008", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "금 390,000,000원", + "amount_value": "390000000", + "currency": "KRW", + "evidence_index": "E-013", + "dates": [ + { + "date_text": "2023년7월6일", + "date_value": "2023-07-06", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월5일", + "date_value": "2024-10-05", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED", + "object_label_text": [ + "서울특별시 성동구 성수동 256" + ] + }, + { + "value_id": "E-013-VF-009", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "금 520,000,000원", + "amount_value": "520000000", + "currency": "KRW", + "evidence_index": "E-013", + "dates": [ + { + "date_text": "2024년10월5일", + "date_value": "2024-10-05", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED", + "object_label_text": [ + "서울특별시 성동구 성수동 256" + ] + } + ], + "amount_related_values": [ + { + "value_id": "E-006-VF-004", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 300만 원", + "amount_value": "3000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지의 표시와 지분·담보 등기계보 및 계약상 점유·사용·수익 귀속 후보를 분리하여 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_asset_projection": { + "canonical_identifier_candidate": "3103-1325-341248", + "asset_alias": "성수동 대지", + "lot_address": "서울특별시 성동구 성수동 256", + "road_address": "서울특별시 성동구 성수로 30", + "area": "330㎡", + "schedule_locator": "SCH-016-01", + "evidence_refs": [ + "E-013", + "E-016", + "E-006" + ], + "separate_object": "동일 지번의 지상 건물과 별도 자산" + }, + "legacy_lineage_projection": { + "evidence_refs": [ + "E-013" + ], + "entries": [ + { + "locator": "REG-013-01", + "purpose": "소유권이전", + "cause": "매매", + "cause_date": "1997-03-15", + "receipt_date": "1997-04-16", + "receipt_no": "제1453호", + "holder": "박재경", + "scope": "토지 전체" + }, + { + "locator": "REG-013-02", + "purpose": "소유권이전", + "cause": "매매", + "cause_date": "2017-06-30", + "receipt_date": "2017-07-02", + "receipt_no": "제7026호", + "holder": "강석우", + "scope": "토지 전체" + }, + { + "locator": "REG-013-03", + "purpose": "소유권이전", + "cause": "상속", + "cause_date": "2022-11-08", + "receipt_date": "2022-12-08", + "receipt_no": "제11202호", + "holders": [ + { + "party": "정유심", + "share": "3/5" + }, + { + "party": "강용원", + "share": "2/5" + } + ] + }, + { + "locator": "REG-013-04", + "purpose": "정유심 지분 전부 이전", + "cause": "증여", + "cause_date": "2023-04-06", + "receipt_date": "2023-04-08", + "receipt_no": "제7202호", + "holder": "강용원", + "scope": "3/5 지분" + }, + { + "locator": "REG-013-05", + "purpose": "담보권실행 경매개시결정", + "cause_date": "2024-07-21", + "receipt_date": "2024-07-22", + "receipt_no": "제12402호", + "creditor": "오민환", + "scope": "토지 전체", + "deleted": true + }, + { + "locator": "REG-013-06", + "purpose": "경매매각에 따른 소유권이전", + "cause_date": "2024-10-05", + "receipt_date": "2024-10-05", + "receipt_no": "제25797호", + "holder": "이문호", + "scope": "토지 전체" + }, + { + "locator": "REG-013-07", + "purpose": "경매개시결정등기 말소", + "receipt_date": "2024-10-05", + "receipt_no": "제25800호", + "target_locator": "REG-013-05" + }, + { + "locator": "REG-013-08", + "purpose": "근저당권설정", + "receipt_date": "2023-01-06", + "receipt_no": "제1088호", + "holder": "오민환", + "debtor": "강용원", + "scope": "2/5 지분", + "amount_role": "historical_mortgage_maximum_initial_share", + "deleted": true + }, + { + "locator": "REG-013-09", + "purpose": "근저당권설정", + "receipt_date": "2023-07-06", + "receipt_no": "제8293호", + "holder": "오민환", + "debtor": "강용원", + "scope": "3/5 지분", + "amount_role": "historical_mortgage_maximum_gifted_share", + "deleted": true + }, + { + "locator": "REG-013-10", + "purpose": "기존 근저당권설정등기 말소", + "receipt_date": "2024-10-05", + "receipt_no": "제25798호", + "target_locators": [ + "REG-013-08", + "REG-013-09" + ] + }, + { + "locator": "REG-013-11", + "purpose": "근저당권설정", + "receipt_date": "2024-10-05", + "receipt_no": "제25799호", + "holder": "주식회사 대한은행", + "debtor": "이문호", + "scope": "토지 전체", + "amount_role": "post_auction_mortgage_maximum", + "deleted": false + } + ] + }, + "legacy_state_projection": { + "ownership": { + "party_candidates": [ + "이문호" + ], + "basis": "등기 기재", + "as_of": "2024-10-05", + "validity_disputed": true, + "evidence_refs": [ + "E-013", + "E-012" + ] + }, + "possession": { + "party_candidates": [ + "박성희" + ], + "basis": "조건부 계약상 인도 약정", + "actual_transfer_confirmed": false, + "evidence_refs": [ + "E-006" + ] + }, + "use": { + "party_candidates": [ + "박성희" + ], + "basis": "대금 지급 후 관리·사용 약정", + "actual_use_confirmed": false, + "evidence_refs": [ + "E-006" + ] + }, + "benefit": { + "contractual_rent_recipient_candidates": [ + "이문호" + ], + "contractual_use_beneficiary_candidates": [ + "박성희" + ], + "actual_receipt_confirmed": false, + "evidence_refs": [ + "E-006" + ] + } + }, + "conflict_groups": [ + { + "issue": "담보권자 성명 연결", + "labels": [ + "오민환", + "오민한" + ], + "resolved": false, + "evidence_refs": [ + "E-013", + "E-025", + "E-026" + ] + }, + { + "issue": "登記기재와 실체적 유효성의 구별", + "resolved": false, + "evidence_refs": [ + "E-013", + "E-012" + ] + } + ] + } + } + } + }, + { + "BO_ID": "bh48", + "id": "bh48", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "채무변제 및 기한 설정 의사표시" + }, + "Action": "김선웅이 강용원에게 기존 물품대금 채무를 확인하고 변제기한을 제시한 이행각서의 해석과 기한 관련 효과 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "condition_term_effect", + "debt_acknowledgement", + "채무변제 및 기한 설정 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 강용원에게 기존 물품대금 채무를 확인하고 변제기한을 제시한 이행각서의 해석과 기한 관련 효과 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-01" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 강용원에게 기존 물품대금 채무를 확인하고 변제기한을 제시한 이행각서의 해석과 기한 관련 효과 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh49", + "id": "bh49", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "변제기 유예·변경 약정 후보" + }, + "Action": "김선웅이 이행각서에 기재한 후행 지급기한과 그 약정 범위에 관한 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "due_date_modification", + "변제기 유예·변경 약정 후보" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 이행각서에 기재한 후행 지급기한과 그 약정 범위에 관한 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 이행각서에 기재한 후행 지급기한과 그 약정 범위에 관한 후보를 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "new_due_date_hint": "2024-08-31", + "original_due_date": null, + "creditor_acceptance_status": "review_required", + "default_start_status": "legal_theory_required", + "payment_history_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh50", + "id": "bh50", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "조건부 보증인 입보 약정" + }, + "Action": "김선웅이 기한 내 미변제 시 보증인을 세우겠다고 한 조건부 약속을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "guarantor_procurement_promise", + "조건부 보증인 입보 약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 기한 내 미변제 시 보증인을 세우겠다고 한 조건부 약속을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 기한 내 미변제 시 보증인을 세우겠다고 한 조건부 약속을 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "payment_promise_hint": "미변제 시 보증인 입보", + "condition_fulfillment_status": "review_required", + "guarantor_candidates": [], + "successor_or_guarantee_link_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh51", + "id": "bh51", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "채무승인" + }, + "Action": "김선웅이 이행각서로 강용원에 대한 기존 자재대금 채무를 승인한 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "debt_acknowledgement", + "채무승인" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 이행각서로 강용원에 대한 기존 자재대금 채무를 승인한 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 이행각서로 강용원에 대한 기존 자재대금 채무를 승인한 후보를 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "legal_character_candidate": "준법률행위", + "admission_hint": "기존 자재대금 채무의 존재를 인정하는 지급 약속", + "amount_scope_status": "review_required", + "limitation_effect_status": "legal_theory_required", + "successor_effect_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh52", + "id": "bh52", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "채무승인·변제약정" + }, + "Action": "김선웅의 자재대금 채무승인과 변제약정을 별도의 채권보전 관련 자료 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "preserved_claim", + "채무승인·변제약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅의 자재대금 채무승인과 변제약정을 별도의 채권보전 관련 자료 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-13" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅의 자재대금 채무승인과 변제약정을 별도의 채권보전 관련 자료 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "preserved_claim_bundle": [ + { + "creditor": "강용원", + "debtor": "김선웅", + "underlying_obligation": "인테리어 자재 물품대금", + "underlying_reference_date": "2021-06-05", + "acknowledgement_date": "2024-08-05", + "promised_due_date": "2024-08-31", + "source_evidence_refs": [ + "E-021" + ] + } + ], + "acknowledgement_hint": true, + "limitation_effect": "legal_theory_required", + "payment_history": [], + "outstanding_balance": null, + "linked_disposition": null, + "guarantor_placement_promise": { + "condition": "約定기일까지 미변제", + "identified_guarantor": null, + "separate_guarantee_instrument": null, + "source_evidence_refs": [ + "E-021" + ] + } + } + } + } + }, + { + "BO_ID": "bh53", + "id": "bh53", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "강호연의 사망과 가족관계 자료에 기초한 상속개시 및 상속인 구성 검토 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강호연의 사망과 가족관계 자료에 기초한 상속개시 및 상속인 구성 검토 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-10", + "TimeText": "2024-08-10", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "서울가정법원 심판", + "가족관계증명서 [폐쇄]" + ], + "Evidence": [ + { + "evidence_index": "E-001", + "source_title": "서울가정법원 심판", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-002", + "source_title": "가족관계증명서 [폐쇄]", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-001", + "E-002" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-15" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강호연의 사망과 가족관계 자료에 기초한 상속개시 및 상속인 구성 검토 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh54", + "id": "bh54", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤은 강용원·양정숙이 보낸 유치권 소멸청구 통지서를 수령하였다고 자인하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤은 강용원·양정숙이 보낸 유치권 소멸청구 통지서를 수령하였다고 자인하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-01", + "TimeText": "2024-09-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤은 강용원·양정숙이 보낸 유치권 소멸청구 통지서를 수령하였다고 자인하였다.", + "action_type": "사실행위(factual acts)", + "payload": { + "notice_lifecycle": { + "referenced_notice_date": "2024-08-29", + "dispatch_date": null, + "admitted_receipt_date": "2024-09-01", + "reply_document_date": "2024-10-31", + "reply_arrival_date": null + }, + "legal_theory_required": [ + "extinction_demand_standing", + "lien_extinction_effect" + ] + } + } + } + }, + { + "BO_ID": "bh55", + "id": "bh55", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "유치권 소멸청구 및 인도 요구" + }, + "Action": "강용원·양정숙의 유치권 소멸청구와 인도 요구 및 박광윤의 수령 자인을 실체적 효력 판단 없이 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "possession_vindication", + "succession_notice_lien_asset_defense", + "유치권 소멸청구 및 인도 요구" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원·양정숙의 유치권 소멸청구와 인도 요구 및 박광윤의 수령 자인을 실체적 효력 판단 없이 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-01", + "TimeText": "2024-09-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "답 변 서", + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록", + "소멸청구 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-015", + "E-016", + "E-019" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-11" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원·양정숙의 유치권 소멸청구와 인도 요구 및 박광윤의 수령 자인을 실체적 효력 판단 없이 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh56", + "id": "bh56", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "유치권 소멸청구 의사표시" + }, + "Action": "강용원·양정숙이 박광윤에게 서정빌라 유치권 소멸 등을 요구하고 박광윤이 수령을 인정한 통지 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "유치권 소멸청구 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원·양정숙이 박광윤에게 서정빌라 유치권 소멸 등을 요구하고 박광윤이 수령을 인정한 통지 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-01", + "TimeText": "2024-09-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "답 변 서", + "소멸청구 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-019" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원·양정숙이 박광윤에게 서정빌라 유치권 소멸 등을 요구하고 박광윤이 수령을 인정한 통지 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh57", + "id": "bh57", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "신림동 상가와 포천시 임야의 기간별 감정가를 가치평가 입력 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가와 포천시 임야의 기간별 감정가를 가치평가 입력 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-13", + "TimeText": "2024-09-13", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 3,000만 원", + "numeric_value": "230000000", + "currency": "KRW", + "value_id": "E-004-VF-002" + }, + "value_refs": [ + "E-004-VF-002", + "E-004-VF-003", + "E-004-VF-004", + "E-004-VF-006", + "E-004-VF-007" + ], + "EvidenceTitles": [ + "감정평가서" + ], + "Evidence": [ + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-004" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_alternatives": [ + { + "value_id": "E-004-VF-002", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 3,000만 원", + "amount_value": "230000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-003", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 4,000만 원", + "amount_value": "240000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-004", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 5,000만 원", + "amount_value": "250000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-006", + "value_kind": "MARKET_PRICE", + "item_label": "임야 시가", + "amount_text": "3,000만 원", + "amount_value": "30000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "경기 포천시 일동면 218 임야" + ] + }, + { + "value_id": "E-004-VF-007", + "value_kind": "MARKET_PRICE", + "item_label": "임야 시가", + "amount_text": "3,500만 원", + "amount_value": "35000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "경기 포천시 일동면 218 임야" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가와 포천시 임야의 기간별 감정가를 가치평가 입력 후보로 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "valuation_only": true, + "independent_enrichment_basis_unproven": true, + "evidence_indices": [ + "E-004" + ] + } + } + } + }, + { + "BO_ID": "bh58", + "id": "bh58", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매" + }, + "Action": "신림동 상가의 매매원인 소유권이전등기를 채권자취소 검토 대상 처분행위 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "fraudulent_transfer", + "매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 매매원인 소유권이전등기를 채권자취소 검토 대상 처분행위 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-13", + "TimeText": "2024-09-13", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "4,000만 원", + "numeric_value": "40000000", + "currency": "KRW", + "value_id": "E-003-VF-001" + }, + "value_refs": [ + "E-003-VF-001", + "E-004-VF-002", + "E-004-VF-003", + "E-004-VF-004", + "E-004-VF-006", + "E-004-VF-007", + "E-014-VF-003", + "E-014-VF-004" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서", + "감정평가서", + "내용증명에 대한 답신", + "등기사항전부증명서 (말소사항 포함) -건물", + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003", + "E-004", + "E-010", + "E-014", + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-13", + "amount_alternatives": [ + { + "value_id": "E-003-VF-001", + "value_kind": "AMOUNT_DISBURSED", + "item_label": "매수자금", + "amount_text": "4,000만 원", + "amount_value": "40000000", + "currency": "KRW", + "evidence_index": "E-003", + "dates": [ + { + "date_text": "2015년 9월 17일", + "date_value": "2015-09-17", + "role": "ISSUED" + } + ], + "value_basis": "AGREED", + "object_label_text": [ + "서울 관악구 신림동 779 지상 단층 근린상가" + ] + }, + { + "value_id": "E-014-VF-003", + "value_kind": "TRANSACTION_PRICE", + "item_label": "거래가액", + "amount_text": "금 150,000,000원", + "amount_value": "150000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2023년3월17일", + "date_value": "2023-03-17", + "role": "CONTRACT" + }, + { + "date_text": "2023년3월17일", + "date_value": "2023-03-17", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + }, + { + "value_id": "E-014-VF-004", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "50,000,000원", + "amount_value": "50000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2021년8월1일", + "date_value": "2021-08-01", + "role": "CONTRACT" + }, + { + "date_text": "2021년8월1일", + "date_value": "2021-08-01", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 매매원인 소유권이전등기를 채권자취소 검토 대상 처분행위 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "theory_tracks": { + "creditor_revocation": { + "status": "candidate", + "source_evidence_refs": [ + "E-014", + "E-024", + "E-004", + "E-003", + "E-010" + ] + }, + "creditor_subrogation": { + "status": "unsupported", + "subrogated_right": null, + "debtor_nonexercise": null, + "source_evidence_refs": [] + } + }, + "preserved_claim_bundle": [ + { + "seed_ref": "e13-001", + "identity_link_status": "review_required", + "source_evidence_refs": [ + "E-024" + ] + }, + { + "seed_ref": "e13-002", + "identity_link_status": "review_required", + "source_evidence_refs": [ + "E-024" + ] + } + ], + "fraudulent_transfer_facts": { + "registered_transferor": "오국환", + "registered_transferee": "오민한", + "registered_cause": "매매", + "transaction_date": "2023-03-17", + "registration_date": "2023-03-17", + "registry_receipt_no": "제11593호", + "consideration": { + "value_id": "E-014-VF-003" + }, + "source_evidence_refs": [ + "E-014" + ], + "fraudulent_character": "legal_theory_required" + }, + "debtor_act_hints": { + "recorded_act": "신림동 상가 소유권이전등기", + "debtor_identity_link": "review_required", + "responsible_asset_character": "legal_theory_required", + "source_evidence_refs": [ + "E-014", + "E-024", + "E-003", + "E-010" + ] + }, + "balance_sheet": { + "before_disposition": { + "complete_asset_inventory": null, + "complete_liability_inventory": null + }, + "after_disposition": { + "complete_asset_inventory": null, + "complete_liability_inventory": null + }, + "forest_ownership": null, + "forest_security_scope": null, + "actual_senior_secured_balance": null, + "source_evidence_refs": [ + "E-004", + "E-014", + "E-010", + "E-024" + ] + }, + "encumbrance_timeline": [ + { + "event_type": "mortgage_setting", + "date": "2021-08-01", + "mortgagee_as_recorded": "나임오", + "registry_receipt_no": "제50099호", + "maximum": { + "value_id": "E-014-VF-004" + }, + "actual_balance": null, + "source_evidence_refs": [ + "E-014" + ] + }, + { + "event_type": "mortgage_setting", + "date": "2022-04-18", + "mortgagee_as_recorded": "강용일", + "registry_receipt_no": "제26597호", + "maximum": { + "value_id": "E-014-VF-005" + }, + "source_evidence_refs": [ + "E-014" + ] + }, + { + "event_type": "mortgage_release", + "date": "2024-10-17", + "registry_receipt_no": "제74586호", + "related_seed_ref": "e13-004", + "source_evidence_refs": [ + "E-014" + ] + } + ], + "valuation_matrix": [ + { + "object": "신림동 상가", + "period": "2022. 1. 1. ~ 2022. 12. 31.", + "value_id": "E-004-VF-002", + "source_evidence_refs": [ + "E-004" + ] + }, + { + "object": "신림동 상가", + "period": "2023. 1. 1. ~ 2023. 12. 31.", + "value_id": "E-004-VF-003", + "source_evidence_refs": [ + "E-004" + ] + }, + { + "object": "신림동 상가", + "period": "2024. 1. 1. ~ 현재", + "value_id": "E-004-VF-004", + "source_evidence_refs": [ + "E-004" + ] + }, + { + "object": "포천시 임야", + "periods": [ + "2022. 1. 1. ~ 2022. 12. 31.", + "2023. 1. 1. ~ 2023. 12. 31." + ], + "value_id": "E-004-VF-006", + "source_evidence_refs": [ + "E-004" + ] + }, + { + "object": "포천시 임야", + "period": "2024. 1. 1. ~ 현재", + "value_id": "E-004-VF-007", + "source_evidence_refs": [ + "E-004" + ] + } + ], + "remedy_mode_hints": { + "related_seed_ref": "e13-004", + "original_return": "legal_theory_required", + "value_compensation": "legal_theory_required", + "source_evidence_refs": [ + "E-014", + "E-004" + ] + }, + "value_compensation_cap_hints": { + "preserved_claim_outstanding_balance": null, + "actual_prior_secured_balance": null, + "valuation_at_hearing_close": null, + "source_evidence_refs": [ + "E-024", + "E-014", + "E-004" + ] + }, + "beneficiary_transferee_hints": { + "direct_transferee": "오민한", + "subsequent_transferees": [], + "source_evidence_refs": [ + "E-014" + ] + }, + "bad_faith_good_faith_hints": { + "beneficiary_assertion": "당초부터 명의신탁한 본인 소유라는 주장", + "knowledge_at_disposition": null, + "good_faith_determination": "legal_theory_required", + "source_evidence_refs": [ + "E-003", + "E-010" + ] + }, + "defense_rebuttal": [ + { + "issue": "명의신탁 주장과 등기상 소유관계", + "status": "legal_theory_required", + "source_evidence_refs": [ + "E-003", + "E-010", + "E-014" + ] + }, + { + "issue": "충분담보 주장과 평가·담보범위", + "status": "legal_theory_required", + "source_evidence_refs": [ + "E-010", + "E-004", + "E-014" + ] + }, + { + "issue": "가액배상에 대한 예비적 상계 주장", + "related_seed_ref": "e13-004", + "status": "legal_theory_required", + "source_evidence_refs": [ + "E-010", + "E-003" + ] + } + ] + } + } + } + }, + { + "BO_ID": "bh59", + "id": "bh59", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "신림동 상가의 연도별 시가 평가를 동일 자산의 각 평가기간에 결합하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 연도별 시가 평가를 동일 자산의 각 평가기간에 결합하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-13", + "TimeText": "2024-09-13", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 3,000만 원", + "numeric_value": "230000000", + "currency": "KRW", + "value_id": "E-004-VF-002" + }, + "value_refs": [ + "E-004-VF-002", + "E-004-VF-003", + "E-004-VF-004" + ], + "EvidenceTitles": [ + "감정평가서", + "등기사항전부증명서 (말소사항 포함) -건물", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-004", + "E-014", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_alternatives": [ + { + "value_id": "E-004-VF-002", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 3,000만 원", + "amount_value": "230000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-003", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 4,000만 원", + "amount_value": "240000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-004", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 5,000만 원", + "amount_value": "250000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 연도별 시가 평가를 동일 자산의 각 평가기간에 결합하여 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_valuation_projection": { + "target": "신림동 상가", + "scope": "단층 근린상가 100㎡", + "registry_identifier_candidate": "1436-2018-250456", + "schedule_locator": "SCH-016-03", + "document_date": "2024-09-13", + "rows": [ + { + "period": "2022. 1. 1. ~ 2022. 12. 31.", + "amount_role": "market_value_2022" + }, + { + "period": "2023. 1. 1. ~ 2023. 12. 31.", + "amount_role": "market_value_2023" + }, + { + "period": "2024. 1. 1. ~ 현재", + "amount_role": "market_value_2024_document_current" + } + ], + "evidence_refs": [ + "E-004", + "E-014", + "E-016" + ], + "valuation_is_final_remedy_amount": false + } + } + } + } + }, + { + "BO_ID": "bh60", + "id": "bh60", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "포천시 임야의 평가기간별 시가를 보존하고 담보가치 계산에 필요한 자산·권리범위 결합의 공백을 표시한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "포천시 임야의 평가기간별 시가를 보존하고 담보가치 계산에 필요한 자산·권리범위 결합의 공백을 표시한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-13", + "TimeText": "2024-09-13", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3,000만 원", + "numeric_value": "30000000", + "currency": "KRW", + "value_id": "E-004-VF-006" + }, + "value_refs": [ + "E-004-VF-006", + "E-004-VF-007" + ], + "EvidenceTitles": [ + "감정평가서" + ], + "Evidence": [ + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-004" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_alternatives": [ + { + "value_id": "E-004-VF-006", + "value_kind": "MARKET_PRICE", + "item_label": "임야 시가", + "amount_text": "3,000만 원", + "amount_value": "30000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "경기 포천시 일동면 218 임야" + ] + }, + { + "value_id": "E-004-VF-007", + "value_kind": "MARKET_PRICE", + "item_label": "임야 시가", + "amount_text": "3,500만 원", + "amount_value": "35000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "경기 포천시 일동면 218 임야" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "포천시 임야의 평가기간별 시가를 보존하고 담보가치 계산에 필요한 자산·권리범위 결합의 공백을 표시한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_valuation_projection": { + "target": "경기 포천시 일동면 218 임야 978㎡", + "document_date": "2024-09-13", + "rows": [ + { + "period": "2022. 1. 1. ~ 2022. 12. 31.", + "amount_role": "market_value_2022_and_2023" + }, + { + "period": "2023. 1. 1. ~ 2023. 12. 31.", + "amount_role": "market_value_2022_and_2023" + }, + { + "period": "2024. 1. 1. ~ 현재", + "amount_role": "market_value_2024_document_current" + } + ], + "registry_binding": "미확인", + "net_collateral_value_confirmed": false, + "evidence_refs": [ + "E-004" + ] + } + } + } + } + }, + { + "BO_ID": "bh61", + "id": "bh61", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "감정평가서에 표시된 포천시 임야를 독립 자산 후보로 보존하고 권리·점유 상태의 공백을 표시한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "감정평가서에 표시된 포천시 임야를 독립 자산 후보로 보존하고 권리·점유 상태의 공백을 표시한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-13", + "TimeText": "2024-09-13", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "감정평가서" + ], + "Evidence": [ + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-004" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "감정평가서에 표시된 포천시 임야를 독립 자산 후보로 보존하고 권리·점유 상태의 공백을 표시한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_asset_projection": { + "asset_alias": "포천시 임야", + "description": "경기 포천시 일동면 218 임야 978㎡", + "canonical_identifier_candidate": null, + "evidence_refs": [ + "E-004" + ] + }, + "legacy_lineage_projection": { + "entries": [], + "status": "미확인", + "evidence_refs": [] + }, + "legacy_state_projection": { + "ownership": { + "party_candidates": [], + "status": "미확인", + "evidence_refs": [] + }, + "possession": { + "party_candidates": [], + "status": "미확인", + "evidence_refs": [] + }, + "use": { + "party_candidates": [], + "status": "미확인", + "evidence_refs": [] + }, + "benefit": { + "party_candidates": [], + "status": "미확인", + "evidence_refs": [] + } + } + } + } + } + }, + { + "BO_ID": "bh62", + "id": "bh62", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "상속포기" + }, + "Action": "강형수와 강지수의 강호연에 대한 상속포기 신고 및 법원 수리 경과를 보존하는 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "상속포기" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강형수와 강지수의 강호연에 대한 상속포기 신고 및 법원 수리 경과를 보존하는 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-20", + "TimeText": "2024-09-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "서울가정법원 심판" + ], + "Evidence": [ + { + "evidence_index": "E-001", + "source_title": "서울가정법원 심판", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-001" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-15" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강형수와 강지수의 강호연에 대한 상속포기 신고 및 법원 수리 경과를 보존하는 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh63", + "id": "bh63", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": { + "label": "이행최고(준법률행위)" + }, + "Action": "강용원이 오민한에게 신림동 상가 관련 취소·원상회복 또는 배상을 요구한 최고와 그 수령 인정의 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "demand_notice_lifecycle", + "이행최고(준법률행위)" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 오민한에게 신림동 상가 관련 취소·원상회복 또는 배상을 요구한 최고와 그 수령 인정의 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-20", + "TimeText": "2024-09-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명", + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-008", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-008", + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 오민한에게 신림동 상가 관련 취소·원상회복 또는 배상을 요구한 최고와 그 수령 인정의 lifecycle 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh64", + "id": "bh64", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "예비적 상계 의사표시" + }, + "Action": "오민한이 강용원에게 보낸 답신에 포함된 예비적 상계 의사표시의 내용·도달·당사자 관계를 검토하는 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "condition_term_effect", + "juristic_act_validity", + "예비적 상계 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 강용원에게 보낸 답신에 포함된 예비적 상계 의사표시의 내용·도달·당사자 관계를 검토하는 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-30", + "TimeText": "2024-09-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "5,000만 원", + "numeric_value": "50000000", + "currency": "KRW", + "value_id": "E-010-VF-002" + }, + "value_refs": [ + "E-003-VF-003", + "E-010-VF-002", + "E-010-VF-003", + "E-010-VF-004" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서", + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003", + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-01" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 강용원에게 보낸 답신에 포함된 예비적 상계 의사표시의 내용·도달·당사자 관계를 검토하는 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh65", + "id": "bh65", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "경매매각" + }, + "Action": "성수동 대지 전체가 경매매각을 원인으로 이문호에게 소유권이전등기되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "경매매각" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 전체가 경매매각을 원인으로 이문호에게 소유권이전등기되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 전체가 경매매각을 원인으로 이문호에게 소유권이전등기되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-06", + "section": "갑구", + "rank_no": "6", + "receipt_no": "제25797호", + "receipt_date": "2024-10-05", + "cause_date": "2024-10-05", + "cause": "담보권실행을위한 경매로 인한 매각", + "right_holder": "이문호", + "target_scope": "토지 전체", + "is_deleted": false + } + ], + "auction_step": "sale_transfer_registration", + "antecedent_registry_refs": [ + "REG-013-08", + "REG-013-09" + ], + "subsequent_registry_refs": [ + "REG-013-11" + ], + "derivative_invalidity_status": "legal_theory_required", + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh66", + "id": "bh66", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "경매이전등기 후 성수동 대지 전체에 대한은행 명의의 신규 근저당권설정등기가 기록되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "경매이전등기 후 성수동 대지 전체에 대한은행 명의의 신규 근저당권설정등기가 기록되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 520,000,000원", + "numeric_value": "520000000", + "currency": "KRW", + "value_id": "E-013-VF-009" + }, + "value_refs": [ + "E-013-VF-009" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "경매이전등기 후 성수동 대지 전체에 대한은행 명의의 신규 근저당권설정등기가 기록되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-11", + "section": "을구", + "rank_no": "4", + "receipt_no": "제25799호", + "receipt_date": "2024-10-05", + "cause": "설정계약", + "cause_date": "2024-10-05", + "right_holder": "주식회사 대한은행", + "debtor": "이문호", + "target_scope": "토지 전체", + "is_deleted": false + } + ], + "secured_debt_chain": [ + "SEC-013-03" + ], + "antecedent_registry_refs": [ + "REG-013-06" + ], + "derivative_invalidity_status": "legal_theory_required", + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh67", + "id": "bh67", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지의 경매개시결정등기가 경매매각을 원인으로 말소되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지의 경매개시결정등기가 경매매각을 원인으로 말소되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지의 경매개시결정등기가 경매매각을 원인으로 말소되어 있다.", + "action_type": "사실행위(factual acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-07", + "section": "갑구", + "rank_no": "7", + "receipt_no": "제25800호", + "receipt_date": "2024-10-05", + "cause_date": "2024-10-05", + "purpose": "5번담보권실행을위한경매개시결정등기말소", + "target_scope": "5번 경매개시결정등기", + "is_deleted": false + } + ], + "auction_step": "commencement_registration_cancellation", + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh68", + "id": "bh68", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지의 서로 다른 지분에 설정된 종전 근저당권들이 경매매각을 원인으로 함께 말소등기되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지의 서로 다른 지분에 설정된 종전 근저당권들이 경매매각을 원인으로 함께 말소등기되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 260,000,000원", + "numeric_value": "260000000", + "currency": "KRW", + "value_id": "E-013-VF-006" + }, + "value_refs": [ + "E-013-VF-006", + "E-013-VF-008" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09", + "amount_alternatives": [ + { + "value_id": "E-013-VF-006", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "금 260,000,000원", + "amount_value": "260000000", + "currency": "KRW", + "evidence_index": "E-013", + "dates": [ + { + "date_text": "2023년1월6일", + "date_value": "2023-01-06", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월5일", + "date_value": "2024-10-05", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED", + "object_label_text": [ + "서울특별시 성동구 성수동 256" + ] + }, + { + "value_id": "E-013-VF-008", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "금 390,000,000원", + "amount_value": "390000000", + "currency": "KRW", + "evidence_index": "E-013", + "dates": [ + { + "date_text": "2023년7월6일", + "date_value": "2023-07-06", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월5일", + "date_value": "2024-10-05", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED", + "object_label_text": [ + "서울특별시 성동구 성수동 256" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지의 서로 다른 지분에 설정된 종전 근저당권들이 경매매각을 원인으로 함께 말소등기되어 있다.", + "action_type": "사실행위(factual acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-10", + "section": "을구", + "rank_no": "3", + "receipt_no": "제25798호", + "receipt_date": "2024-10-05", + "cause": "담보권실행을위한 경매로 인한 매각", + "cause_date": "2024-10-05", + "purpose": "1,2번근저당권설정등기말소", + "target_scope": "1번, 2번 근저당권", + "is_deleted": false + } + ], + "target_registry_refs": [ + "REG-013-08", + "REG-013-09" + ], + "target_fraction_refs": [ + "FR-013-08", + "FR-013-09" + ], + "payment_allocation": null, + "distribution": null, + "fractional_effect_events": [ + "EVT-013-09" + ] + } + } + } + }, + { + "BO_ID": "bh69", + "id": "bh69", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "경매매각" + }, + "Action": "담보권실행 경매매각을 원인으로 성수동 대지 전체에 이문호 명의 소유권이전등기가 이루어졌다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "auction_sale", + "경매매각" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "담보권실행 경매매각을 원인으로 성수동 대지 전체에 이문호 명의 소유권이전등기가 이루어졌다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "담보권실행 경매매각을 원인으로 성수동 대지 전체에 이문호 명의 소유권이전등기가 이루어졌다.", + "action_type": "법률행위(legal acts)", + "payload": { + "auction_step": "sale_and_transfer_registration", + "registry_rows": [ + { + "registry_ref": "REG-013-06", + "section": "갑구", + "rank_no": "6", + "receipt_date": "2024-10-05", + "receipt_no": "제25797호", + "cause": "담보권실행을위한 경매로 인한 매각", + "right_holder": "이문호", + "target_scope": "토지 전체", + "is_deleted": false + }, + { + "registry_ref": "REG-013-07", + "section": "갑구", + "rank_no": "7", + "receipt_date": "2024-10-05", + "receipt_no": "제25800호", + "target_scope": "5번 경매개시결정등기", + "is_deleted": false + } + ], + "dividend_distribution_hints": [], + "derivative_invalidity_hints": [], + "legal_theory_required": [ + "auction_validity", + "acquisition_effect" + ] + } + } + } + }, + { + "BO_ID": "bh70", + "id": "bh70", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "경매매각에 따른 이전등기 후 성수동 대지 전체에 대한은행 명의의 새로운 근저당권설정등기가 이루어졌다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "경매매각에 따른 이전등기 후 성수동 대지 전체에 대한은행 명의의 새로운 근저당권설정등기가 이루어졌다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 520,000,000원", + "numeric_value": "520000000", + "currency": "KRW", + "value_id": "E-013-VF-009" + }, + "value_refs": [ + "E-013-VF-009" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "경매매각에 따른 이전등기 후 성수동 대지 전체에 대한은행 명의의 새로운 근저당권설정등기가 이루어졌다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-11", + "section": "을구", + "rank_no": "4", + "receipt_date": "2024-10-05", + "receipt_no": "제25799호", + "cause": "설정계약", + "right_holder": "주식회사 대한은행", + "debtor": "이문호", + "target_scope": "토지 전체", + "is_deleted": false + } + ], + "preceding_acquisition_registry_ref": "REG-013-06", + "derivative_invalidity_hints": [], + "legal_theory_required": [ + "preceding_acquisition_validity", + "derivative_security_effect" + ] + } + } + } + }, + { + "BO_ID": "bh71", + "id": "bh71", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지의 기존 지분별 근저당권설정등기들이 경매매각을 원인으로 말소되었다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지의 기존 지분별 근저당권설정등기들이 경매매각을 원인으로 말소되었다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지의 기존 지분별 근저당권설정등기들이 경매매각을 원인으로 말소되었다.", + "action_type": "사실행위(factual acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-10", + "section": "을구", + "rank_no": "3", + "receipt_date": "2024-10-05", + "receipt_no": "제25798호", + "cause": "담보권실행을위한 경매로 인한 매각", + "target_scope": "1번, 2번 근저당권" + } + ], + "fractional_effect_events": [], + "payment_allocation": [], + "dividend_distribution_hints": [], + "secured_obligation_extinguishment_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh72", + "id": "bh72", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권 해지" + }, + "Action": "신림동 상가의 강용일 명의 근저당권설정등기가 해지를 원인으로 말소되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "근저당권 해지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 강용일 명의 근저당권설정등기가 해지를 원인으로 말소되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-17", + "TimeText": "2024-10-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "150,000,000원", + "numeric_value": "150000000", + "currency": "KRW", + "value_id": "E-014-VF-005" + }, + "value_refs": [ + "E-014-VF-005" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 강용일 명의 근저당권설정등기가 해지를 원인으로 말소되어 있다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-06", + "section": "을구", + "rank_no": "3", + "receipt_no": "제74586호", + "receipt_date": "2024-10-17", + "cause": "해지", + "cause_date": "2024-10-17", + "registration_purpose": "2번근저당권설정등기말소", + "right_holder": null, + "is_cancelled": false + } + ], + "target_registry_refs": [ + "REG-014-05" + ], + "secured_debt_chain": [ + "E-014-SD-02" + ], + "payment_allocation": null, + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh73", + "id": "bh73", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권 해지" + }, + "Action": "신림동 상가의 강용일 명의 근저당권설정등기가 해지를 원인으로 말소되었다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권 해지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 강용일 명의 근저당권설정등기가 해지를 원인으로 말소되었다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-17", + "TimeText": "2024-10-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 강용일 명의 근저당권설정등기가 해지를 원인으로 말소되었다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-06", + "section": "을구", + "rank_no": "3", + "receipt_date": "2024-10-17", + "receipt_no": "제74586호", + "cause": "해지", + "cause_date": "2024-10-17", + "target_scope": "2번 근저당권" + } + ], + "prior_ownership_transfer_registry_ref": "REG-014-03", + "payment_allocation": [], + "underlying_debt_extinguishment_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh74", + "id": "bh74", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "제삼자 임대차" + }, + "Action": "박광윤의 서정빌라 제삼자 임대와 차임 수취 자인 및 충당 주장을 별도 사건 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "unjust_enrichment", + "제삼자 임대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤의 서정빌라 제삼자 임대와 차임 수취 자인 및 충당 주장을 별도 사건 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-31", + "TimeText": "2024-10-31", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-011-VF-002" + ], + "EvidenceTitles": [ + "답 변 서", + "등기사항전부증명서(말소사항 포함)-집합건물", + "소멸청구 통지서", + "임 료 시 세 확 인 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-023", + "source_title": "임 료 시 세 확 인 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-015", + "E-019", + "E-023" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-011-VF-002", + "value_kind": "RENT", + "item_label": "월", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "AGREED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤의 서정빌라 제삼자 임대와 차임 수취 자인 및 충당 주장을 별도 사건 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "benefit_kind": "third_party_rent_receipts", + "separate_from_residential_use": true, + "owner_consent_disputed": true, + "historical_entitlement_unresolved": true, + "evidence_indices": [ + "E-011", + "E-019", + "E-015" + ] + } + } + } + }, + { + "BO_ID": "bh75", + "id": "bh75", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤과 가족의 서정빌라 거주 사용이익 및 유치권·충당 항변이 충돌하는 상태를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "unjust_enrichment" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤과 가족의 서정빌라 거주 사용이익 및 유치권·충당 항변이 충돌하는 상태를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-31", + "TimeText": "2024-10-31", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-011-VF-001" + }, + "value_refs": [ + "E-011-VF-001", + "E-023-VF-002" + ], + "EvidenceTitles": [ + "서울가정법원 심판", + "가족관계증명서 [폐쇄]", + "답 변 서", + "등기사항전부증명서(말소사항 포함)-집합건물", + "소멸청구 통지서", + "임 료 시 세 확 인 서" + ], + "Evidence": [ + { + "evidence_index": "E-001", + "source_title": "서울가정법원 심판", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-002", + "source_title": "가족관계증명서 [폐쇄]", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-023", + "source_title": "임 료 시 세 확 인 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-001", + "E-002", + "E-011", + "E-015", + "E-019", + "E-023" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-023-VF-002", + "value_kind": "RENT", + "item_label": "월세", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-023", + "dates": [ + { + "date_text": "2022. 10.경", + "role": "AS_OF" + } + ], + "value_basis": "APPRAISED", + "object_label_text": [ + "경기도 평택시 서정3길 123(서정동, 서정빌라)" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤과 가족의 서정빌라 거주 사용이익 및 유치권·충당 항변이 충돌하는 상태를 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "benefit_kind": "residential_use", + "secured_claim_appropriation_asserted": true, + "appropriation_legality_unresolved": true, + "entitlement_and_period_unresolved": true, + "evidence_indices": [ + "E-011", + "E-019", + "E-023", + "E-015", + "E-001", + "E-002" + ] + } + } + } + }, + { + "BO_ID": "bh76", + "id": "bh76", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤은 가족과 서정빌라에 거주하면서 미지급 공사잔금을 이유로 유치권을 계속 행사하고 있다고 주장한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤은 가족과 서정빌라에 거주하면서 미지급 공사잔금을 이유로 유치권을 계속 행사하고 있다고 주장한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-31", + "TimeText": "2024-10-31", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-011-VF-001" + }, + "value_refs": [ + "E-011-VF-001" + ], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤은 가족과 서정빌라에 거주하면서 미지급 공사잔금을 이유로 유치권을 계속 행사하고 있다고 주장한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "current_possession": { + "object": "서정빌라 101호", + "possessor": "박광윤", + "state_as_of": "2024-10-31", + "is_ongoing_as_asserted": true, + "start_date": null + }, + "secured_debt_chain": [ + { + "creditor_as_asserted": "박광윤", + "debtor_as_asserted": "김일동", + "claim_cause": "공사잔금" + } + ], + "legal_theory_required": [ + "lien_formation", + "claim_object_connection", + "preservation_use_exception", + "extinction_demand_standing", + "possession_cause_resolution" + ] + } + } + } + }, + { + "BO_ID": "bh77", + "id": "bh77", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "임대차" + }, + "Action": "박광윤의 서정빌라 제3자 임대 자인과 승낙 없는 임대라는 상대방 주장을 병렬 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "임대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤의 서정빌라 제3자 임대 자인과 승낙 없는 임대라는 상대방 주장을 병렬 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-31", + "TimeText": "2024-10-31", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-011-VF-002" + ], + "EvidenceTitles": [ + "답 변 서", + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록", + "소멸청구 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-015", + "E-016", + "E-019" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-11", + "amount_related_values": [ + { + "value_id": "E-011-VF-002", + "value_kind": "RENT", + "item_label": "월", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "AGREED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤의 서정빌라 제3자 임대 자인과 승낙 없는 임대라는 상대방 주장을 병렬 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh78", + "id": "bh78", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤과 가족의 서정빌라 거주 점유를 인도 요구 및 유치권·충당 주장과 구별하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "possession_vindication", + "succession_notice_lien_asset_defense" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤과 가족의 서정빌라 거주 점유를 인도 요구 및 유치권·충당 주장과 구별하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-31", + "TimeText": "2024-10-31", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-011-VF-004" + }, + "value_refs": [ + "E-011-VF-004" + ], + "EvidenceTitles": [ + "답 변 서", + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록", + "소멸청구 통지서", + "임 료 시 세 확 인 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-023", + "source_title": "임 료 시 세 확 인 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-015", + "E-016", + "E-019", + "E-023" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-011-03" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-11" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤과 가족의 서정빌라 거주 점유를 인도 요구 및 유치권·충당 주장과 구별하여 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh79", + "id": "bh79", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "大地 임대차 및 상가 매매의 급부 약정" + }, + "Action": "성수동 대지 임대차보증금과 상가 매매대금의 약정 수수 구조를 구별하여 반환 관련 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "unjust_enrichment", + "大地 임대차 및 상가 매매의 급부 약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 임대차보증금과 상가 매매대금의 약정 수수 구조를 구별하여 반환 관련 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-006-VF-003" + }, + "value_refs": [ + "E-006-VF-003", + "E-006-VF-006" + ], + "EvidenceTitles": [ + "계 약 서", + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006", + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-03" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_alternatives": [ + { + "value_id": "E-006-VF-003", + "value_kind": "DEPOSIT", + "item_label": "보증금", + "amount_text": "3억 원", + "amount_value": "300000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ] + }, + { + "value_id": "E-006-VF-006", + "value_kind": "PRICE_TOTAL", + "item_label": "대금", + "amount_text": "2억 원", + "amount_value": "200000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "매매목적물인 상가" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 임대차보증금과 상가 매매대금의 약정 수수 구조를 구별하여 반환 관련 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "deposit_and_sale_price_separated": true, + "deposit_excluded_from_direct_unjust_enrichment_principal": true, + "actual_payment_unverified": true, + "evidence_indices": [ + "E-006" + ] + } + } + } + }, + { + "BO_ID": "bh80", + "id": "bh80", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박성희의 성수동 대지·상가 관리 및 사용이익 상태 후보와 계약상 사용원인을 병렬 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "land_use_gain" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박성희의 성수동 대지·상가 관리 및 사용이익 상태 후보와 계약상 사용원인을 병렬 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-006-VF-004" + ], + "EvidenceTitles": [ + "감정평가 의견서", + "계 약 서", + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-005", + "source_title": "감정평가 의견서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-005", + "E-006", + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-05" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-006-VF-004", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 300만 원", + "amount_value": "3000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박성희의 성수동 대지·상가 관리 및 사용이익 상태 후보와 계약상 사용원인을 병렬 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "benefit_kind": "land_and_building_use", + "actual_state_unverified": true, + "legal_basis_unresolved": true, + "evidence_indices": [ + "E-006", + "E-005", + "E-013" + ] + } + } + } + }, + { + "BO_ID": "bh81", + "id": "bh81", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "건물매매" + }, + "Action": "이문호와 박성희가 성수동 지상 상가를 매매하면서 허가명의 변경서류 교부와 박성희 명의 보존등기 협력을 약정하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "건물매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호와 박성희가 성수동 지상 상가를 매매하면서 허가명의 변경서류 교부와 박성희 명의 보존등기 협력을 약정하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-006-VF-006" + }, + "value_refs": [ + "E-006-VF-006" + ], + "EvidenceTitles": [ + "계 약 서" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호와 박성희가 성수동 지상 상가를 매매하면서 허가명의 변경서류 교부와 박성희 명의 보존등기 협력을 약정하였다.", + "action_type": "법률행위(legal acts)", + "payload": { + "contract_component_refs": [ + "E-006-CC-02", + "E-006-CC-03" + ], + "registry_rows": [], + "permit_name_change": { + "document_provider": "이문호", + "intended_permit_holder": "박성희", + "completion_status": "review_required" + }, + "preservation_registration": { + "intended_holder": "박성희", + "condition_text": "상가의 건축허가조건 충족", + "completion_status": "review_required" + }, + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh82", + "id": "bh82", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박성희의 성수동 대지·상가 점유·사용 후보를 임대차·매매에 기한 점유원인과 구별하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "possession_vindication" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박성희의 성수동 대지·상가 점유·사용 후보를 임대차·매매에 기한 점유원인과 구별하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "감정평가 의견서", + "계 약 서", + "등기사항전부증명서(말소사항 포함)-토지", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-005", + "source_title": "감정평가 의견서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-005", + "E-006", + "E-013", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-05" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-11" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박성희의 성수동 대지·상가 점유·사용 후보를 임대차·매매에 기한 점유원인과 구별하여 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh83", + "id": "bh83", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": { + "label": "등기말소 이행요구" + }, + "Action": "은행 답신에 언급된 강용원의 선행 근저당권 말소 신청을 답신 자체와 구별하여 보존하는 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "registry_cancellation_demand_lifecycle", + "등기말소 이행요구" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "은행 답신에 언급된 강용원의 선행 근저당권 말소 신청을 답신 자체와 구별하여 보존하는 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기말소 신청에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-012", + "source_title": "등기말소 신청에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-012" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "은행 답신에 언급된 강용원의 선행 근저당권 말소 신청을 답신 자체와 구별하여 보존하는 lifecycle 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh84", + "id": "bh84", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "임대차 해지 의사표시" + }, + "Action": "윤건우의 흑석동 상가 임대차 해지·인도 요구 통지와 양정숙의 수령 사실을 종료 효력 판단 없이 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "lease_termination", + "임대차 해지 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "윤건우의 흑석동 상가 임대차 해지·인도 요구 통지와 양정숙의 수령 사실을 종료 효력 판단 없이 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-30", + "TimeText": "2024-11-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명", + "임대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-009", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-022", + "source_title": "임대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-009", + "E-022" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-08" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "윤건우의 흑석동 상가 임대차 해지·인도 요구 통지와 양정숙의 수령 사실을 종료 효력 판단 없이 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh85", + "id": "bh85", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "임대차 해지 의사표시" + }, + "Action": "윤건우가 양정숙에게 흑석동 상가 임대차 해지와 인도를 통고하고 본인 수령이 기재된 통지 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "lease_termination_notice_lifecycle", + "임대차 해지 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "윤건우가 양정숙에게 흑석동 상가 임대차 해지와 인도를 통고하고 본인 수령이 기재된 통지 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-30", + "TimeText": "2024-11-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명" + ], + "Evidence": [ + { + "evidence_index": "E-009", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-009" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "윤건우가 양정숙에게 흑석동 상가 임대차 해지와 인도를 통고하고 본인 수령이 기재된 통지 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh86", + "id": "bh86", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "서정빌라의 보증금 없는 임료 평가를 사용이익 산정의 검토 입력으로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라의 보증금 없는 임료 평가를 사용이익 산정의 검토 입력으로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-12-23", + "TimeText": "2024-12-23", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-023-VF-002" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물", + "임 료 시 세 확 인 서" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-023", + "source_title": "임 료 시 세 확 인 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015", + "E-023" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-023-VF-002", + "value_kind": "RENT", + "item_label": "월세", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-023", + "dates": [ + { + "date_text": "2022. 10.경", + "role": "AS_OF" + } + ], + "value_basis": "APPRAISED", + "object_label_text": [ + "경기도 평택시 서정3길 123(서정동, 서정빌라)" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라의 보증금 없는 임료 평가를 사용이익 산정의 검토 입력으로 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "valuation_only": true, + "unit_binding_unresolved": true, + "evidence_indices": [ + "E-023", + "E-015" + ] + } + } + } + }, + { + "BO_ID": "bh87", + "id": "bh87", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "서정빌라 임료확인서의 평가시점·보증금 조건을 보존하고 제101호와의 평가범위 결합은 미확정으로 남긴다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라 임료확인서의 평가시점·보증금 조건을 보존하고 제101호와의 평가범위 결합은 미확정으로 남긴다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-12-23", + "TimeText": "2024-12-23", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-023-VF-002" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록", + "임 료 시 세 확 인 서" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-023", + "source_title": "임 료 시 세 확 인 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015", + "E-016", + "E-023" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_related_values": [ + { + "value_id": "E-023-VF-002", + "value_kind": "RENT", + "item_label": "월세", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-023", + "dates": [ + { + "date_text": "2022. 10.경", + "role": "AS_OF" + } + ], + "value_basis": "APPRAISED", + "object_label_text": [ + "경기도 평택시 서정3길 123(서정동, 서정빌라)" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라 임료확인서의 평가시점·보증금 조건을 보존하고 제101호와의 평가범위 결합은 미확정으로 남긴다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_valuation_projection": { + "target_text": "경기도 평택시 서정3길 123(서정동, 서정빌라)", + "unit_binding_candidate": "제1층 제101호", + "unit_binding_confirmed": false, + "document_date": "2024-12-23", + "basis_period": "2022. 10.경부터 현재까지", + "deposit_condition": "보증금 없음", + "amount_role": "appraised_monthly_rent_no_deposit", + "evidence_refs": [ + "E-023", + "E-015", + "E-016" + ] + } + } + } + } + }, + { + "BO_ID": "bh88", + "id": "bh88", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": { + "label": "구두 이행최고(준법률행위)" + }, + "Action": "오민한이 수령을 인정한 강용원의 선행 전화 변제 요구를 후행 답신과 구별하여 보존하는 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "oral_demand_notice_lifecycle", + "구두 이행최고(준법률행위)" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 수령을 인정한 강용원의 선행 전화 변제 요구를 후행 답신과 구별하여 보존하는 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-12-27 기준 수일 전", + "TimeText": "2024-12-27 기준 수일 전", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-028", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-028" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 수령을 인정한 강용원의 선행 전화 변제 요구를 후행 답신과 구별하여 보존하는 lifecycle 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh89", + "id": "bh89", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지의 건물 존부와 보증금 조건별 임료 평가를 대안 입력으로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지의 건물 존부와 보증금 조건별 임료 평가를 대안 입력으로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-12-29", + "TimeText": "2024-12-29", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-005-VF-002" + }, + "value_refs": [ + "E-005-VF-002", + "E-005-VF-003", + "E-005-VF-005", + "E-005-VF-006", + "E-005-VF-007" + ], + "EvidenceTitles": [ + "감정평가 의견서" + ], + "Evidence": [ + { + "evidence_index": "E-005", + "source_title": "감정평가 의견서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-005" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-005-VF-003", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 250만 원", + "amount_value": "2500000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-005", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 400만 원", + "amount_value": "4000000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-006", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 350만 원", + "amount_value": "3500000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-007", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 500만 원", + "amount_value": "5000000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지의 건물 존부와 보증금 조건별 임료 평가를 대안 입력으로 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "valuation_only": true, + "scenario_selection_deferred": true, + "evidence_indices": [ + "E-005" + ] + } + } + } + }, + { + "BO_ID": "bh90", + "id": "bh90", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지 전체의 건물 유무·보증금 조건별 임료 평가를 구별하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 전체의 건물 유무·보증금 조건별 임료 평가를 구별하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-12-29", + "TimeText": "2024-12-29", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-005-VF-002" + }, + "value_refs": [ + "E-005-VF-002", + "E-005-VF-003", + "E-005-VF-005", + "E-005-VF-006", + "E-005-VF-007", + "E-006-VF-004" + ], + "EvidenceTitles": [ + "감정평가 의견서", + "계 약 서", + "등기사항전부증명서(말소사항 포함)-토지", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-005", + "source_title": "감정평가 의견서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-005", + "E-006", + "E-013", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_related_values": [ + { + "value_id": "E-005-VF-003", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 250만 원", + "amount_value": "2500000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-005", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 400만 원", + "amount_value": "4000000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-006", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 350만 원", + "amount_value": "3500000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-007", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 500만 원", + "amount_value": "5000000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-006-VF-004", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 300만 원", + "amount_value": "3000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 전체의 건물 유무·보증금 조건별 임료 평가를 구별하여 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_valuation_projection": { + "target": "서울 성동구 성수동 256 대 330㎡", + "scope": "토지 전체", + "registry_identifier_candidate": "3103-1325-341248", + "document_date": "2024-12-29", + "basis_period": "2024년도", + "selected_scenario": null, + "rows": [ + { + "building_present": true, + "deposit_condition": "평가서상 보증금 조건 있음", + "amount_role": "appraised_monthly_rent_building_present_deposit_condition" + }, + { + "building_present": true, + "deposit_condition": "보증금 없음", + "amount_role": "appraised_monthly_rent_building_present_no_deposit" + }, + { + "building_present": false, + "deposit_condition": "평가서상 보증금 조건 있음", + "amount_role": "appraised_monthly_rent_building_absent_deposit_condition" + }, + { + "building_present": false, + "deposit_condition": "보증금 없음", + "amount_role": "appraised_monthly_rent_building_absent_no_deposit" + } + ], + "deposit_condition_amount_role": "appraisal_deposit_condition", + "contract_rent_comparator_role": "contractual_rent_comparator", + "evidence_refs": [ + "E-005", + "E-013", + "E-016", + "E-006" + ] + } + } + } + } + }, + { + "BO_ID": "bh91", + "id": "bh91", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "오민한이 해드림 상호·간판의 계속 사용과 강용원의 변제요구 수령을 자인하면서 영업양수인으로서의 책임을 다투는 상태이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "commercial_successor" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 해드림 상호·간판의 계속 사용과 강용원의 변제요구 수령을 자인하면서 영업양수인으로서의 책임을 다투는 상태이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024년 12월 27일 기준 수일 전", + "TimeText": "2024년 12월 27일 기준 수일 전", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "영업양도 계약서", + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-020", + "source_title": "영업양도 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-028", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-020", + "E-028" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-03" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 해드림 상호·간판의 계속 사용과 강용원의 변제요구 수령을 자인하면서 영업양수인으로서의 책임을 다투는 상태이다.", + "action_type": "사실행위(factual acts)", + "payload": { + "business_name": "해드림(SUN-DREAM)", + "demand_notice_hints": [ + "통지서 작성 수일 전 전화 변제요구를 받았다는 자인", + "정확한 구두 요구 도달일은 미특정" + ], + "admission_hints": [ + "상호·간판 계속 사용 자인", + "변제요구 수령 자인은 채무승인과 구별" + ], + "payment_history": [], + "agreed_interest_rate": null, + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [], + "successor_link_status": "review_required", + "liability_assessment_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh92", + "id": "bh92", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "인도 및 관리·사용 이전 약정" + }, + "Action": "이문호와 박성희가 계약대가 수령과 연계하여 성수동 대지·상가의 인도 및 관리·사용 이전을 약정하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "conditional_delivery_and_management_transfer", + "인도 및 관리·사용 이전 약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호와 박성희가 계약대가 수령과 연계하여 성수동 대지·상가의 인도 및 관리·사용 이전을 약정하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "계약 당일 대가 수령과 동시에", + "TimeText": "계약 당일 대가 수령과 동시에", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-006-VF-003" + }, + "value_refs": [ + "E-006-VF-003", + "E-006-VF-006" + ], + "EvidenceTitles": [ + "계 약 서", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-03", + "EVT-006-04" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-11", + "amount_alternatives": [ + { + "value_id": "E-006-VF-003", + "value_kind": "DEPOSIT", + "item_label": "보증금", + "amount_text": "3억 원", + "amount_value": "300000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ] + }, + { + "value_id": "E-006-VF-006", + "value_kind": "PRICE_TOTAL", + "item_label": "대금", + "amount_text": "2억 원", + "amount_value": "200000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "매매목적물인 상가" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호와 박성희가 계약대가 수령과 연계하여 성수동 대지·상가의 인도 및 관리·사용 이전을 약정하였다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh93", + "id": "bh93", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "토지 임대차계약" + }, + "Action": "이문호와 박성희의 성수동 대지 임대차에 관한 보증금·차임·기간 및 인도 약정을 지상 상가 매매와 구별하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "lease_contract_formation", + "lease_delivery_concurrent_performance", + "lease_rent_payment", + "토지 임대차계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호와 박성희의 성수동 대지 임대차에 관한 보증금·차임·기간 및 인도 약정을 지상 상가 매매와 구별하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "계약 당일 보증금 수령과 동시에", + "TimeText": "계약 당일 보증금 수령과 동시에", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-006-VF-003" + }, + "value_refs": [ + "E-006-VF-003", + "E-006-VF-004", + "E-006-VF-006" + ], + "EvidenceTitles": [ + "계 약 서" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-08", + "amount_related_values": [ + { + "value_id": "E-006-VF-004", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 300만 원", + "amount_value": "3000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호와 박성희의 성수동 대지 임대차에 관한 보증금·차임·기간 및 인도 약정을 지상 상가 매매와 구별하여 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh94", + "id": "bh94", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "부동산매매" + }, + "Action": "윤건우와 이수인이 흑석동 상가를 매매하고 중도금 지급일의 인도를 약정하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "부동산매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "윤건우와 이수인이 흑석동 상가를 매매하고 중도금 지급일의 인도를 약정하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "중도금을 지급받은 날", + "TimeText": "중도금을 지급받은 날", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10억 원", + "numeric_value": "1000000000", + "currency": "KRW", + "value_id": "E-017-VF-002" + }, + "value_refs": [ + "E-017-VF-002", + "E-017-VF-003", + "E-017-VF-004", + "E-017-VF-005" + ], + "EvidenceTitles": [ + "부동산 매매계약서" + ], + "Evidence": [ + { + "evidence_index": "E-017", + "source_title": "부동산 매매계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-017" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "윤건우와 이수인이 흑석동 상가를 매매하고 중도금 지급일의 인도를 약정하였다.", + "action_type": "법률행위(legal acts)", + "payload": { + "contract_component_refs": [ + "E-017-CC-01", + "E-017-CC-02" + ], + "registry_rows": [], + "transfer_registration": { + "registration_date": null, + "receipt_no": null, + "registered_holder": null + }, + "payment_performance_status": "review_required", + "contract_lifecycle_status": "legal_theory_required", + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh95", + "id": "bh95", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "조건부 보증인 입보 의사표시" + }, + "Action": "김선웅이 기한 내 미변제 시 보증인을 세우겠다고 한 의사표시의 성립 범위와 조건을 보존하는 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "condition_term_effect", + "조건부 보증인 입보 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 기한 내 미변제 시 보증인을 세우겠다고 한 의사표시의 성립 범위와 조건을 보존하는 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-01" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 기한 내 미변제 시 보증인을 세우겠다고 한 의사표시의 성립 범위와 조건을 보존하는 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh96", + "id": "bh96", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "공사도급계약서에 기재된 김일동의 계약금 지급과 박광윤의 영수 사실을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "partial_payment" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "공사도급계약서에 기재된 김일동의 계약금 지급과 박광윤의 영수 사실을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-007-VF-006" + }, + "value_refs": [ + "E-007-VF-006" + ], + "EvidenceTitles": [ + "공사도급 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-007", + "source_title": "공사도급 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-007" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "공사도급계약서에 기재된 김일동의 계약금 지급과 박광윤의 영수 사실을 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "value_id": "E-007-VF-006", + "payment_history_hint": "공사계약금 영수", + "payment_date_status": "review_required", + "appropriation_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh97", + "id": "bh97", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "흑석동 상가의 임차 사용원인과 상대방의 종료·반환 주장이 충돌하는 상태를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "unjust_enrichment" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "흑석동 상가의 임차 사용원인과 상대방의 종료·반환 주장이 충돌하는 상태를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-022-VF-003" + }, + "value_refs": [ + "E-022-VF-003", + "E-022-VF-004" + ], + "EvidenceTitles": [ + "내용증명", + "부동산 매매계약서", + "사 업 자 등 록 증", + "임대차계약서", + "해제 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-009", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-017", + "source_title": "부동산 매매계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-018", + "source_title": "사 업 자 등 록 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-022", + "source_title": "임대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-030", + "source_title": "해제 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-009", + "E-017", + "E-018", + "E-022", + "E-030" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-022-VF-004", + "value_kind": "RENT", + "item_label": "월 차임", + "amount_text": "500만 원", + "amount_value": "5000000", + "currency": "KRW", + "evidence_index": "E-022", + "value_basis": "AGREED", + "object_label_text": [ + "서울 동작구 흑석로 80 지상 철근콘크리트조 슬래브지붕 3층 건물 201호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "흑석동 상가의 임차 사용원인과 상대방의 종료·반환 주장이 충돌하는 상태를 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "opponent_return_assertion_preserved": true, + "tenant_rights_unresolved": true, + "current_possession_end_unknown": true, + "evidence_indices": [ + "E-009", + "E-018", + "E-022", + "E-030" + ] + } + } + } + }, + { + "BO_ID": "bh98", + "id": "bh98", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "서정빌라 제101호에 원인과 권리자가 공란인 소유권이전등기 접수기록이 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라 제101호에 원인과 권리자가 공란인 소유권이전등기 접수기록이 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라 제101호에 원인과 권리자가 공란인 소유권이전등기 접수기록이 있다.", + "action_type": "사실행위(factual acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-015-04", + "section": "갑구", + "rank_no": "4", + "receipt_no": "제12321호", + "receipt_date": "2022-10-01", + "purpose": "소유권이전", + "right_holder": null, + "cause": null, + "cause_date": null, + "is_cancelled": false + } + ], + "identity_resolution_status": "review_required", + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh99", + "id": "bh99", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "서정빌라 제101호의 김동국 명의 가압류등기가 말소된 상태로 표시되어 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라 제101호의 김동국 명의 가압류등기가 말소된 상태로 표시되어 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라 제101호의 김동국 명의 가압류등기가 말소된 상태로 표시되어 있다.", + "action_type": "사실행위(factual acts)", + "payload": { + "target_registry_refs": [ + "REG-015-03" + ], + "registered_state": "cancelled", + "cancellation_registration": null, + "fractional_effect_events": [] + } + } + } + }, + { + "BO_ID": "bh100", + "id": "bh100", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤은 임대 차임과 직접 거주 사용이익을 공사잔금 원리금에 충당하였고 잔여 채권이 남아 있다고 주장하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤은 임대 차임과 직접 거주 사용이익을 공사잔금 원리금에 충당하였고 잔여 채권이 남아 있다고 주장하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-011-VF-004" + }, + "value_refs": [ + "E-011-VF-002", + "E-011-VF-004" + ], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10", + "amount_related_values": [ + { + "value_id": "E-011-VF-002", + "value_kind": "RENT", + "item_label": "월", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "AGREED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤은 임대 차임과 직접 거주 사용이익을 공사잔금 원리금에 충당하였고 잔여 채권이 남아 있다고 주장하였다.", + "action_type": "사실행위(factual acts)", + "payload": { + "payment_allocation": [ + { + "asserted_by": "박광윤", + "benefit_kind": "third_party_rent", + "application_target": "공사잔금 원리금", + "actual_application_date": null, + "verification_status": "review_required" + }, + { + "asserted_by": "박광윤", + "benefit_kind": "residential_use_benefit", + "application_target": "공사잔금 원리금", + "actual_application_date": null, + "verification_status": "review_required" + } + ], + "agreed_interest_rate": null, + "agreed_delay_damage_rate": null, + "legal_theory_required": [ + "appropriation_eligibility", + "benefit_category_distinction", + "return_defense_effect" + ] + } + } + } + }, + { + "BO_ID": "bh101", + "id": "bh101", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권 해지" + }, + "Action": "처분 후 근저당권 말소를 원상회복 방식과 회복상한 검토에 필요한 후행 사건으로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "actio_remedy_or_cap", + "근저당권 해지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "처분 후 근저당권 말소를 원상회복 방식과 회복상한 검토에 필요한 후행 사건으로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "5,000만 원", + "numeric_value": "50000000", + "currency": "KRW", + "value_id": "E-010-VF-002" + }, + "value_refs": [ + "E-003-VF-003", + "E-004-VF-003", + "E-004-VF-004", + "E-010-VF-002", + "E-010-VF-003", + "E-010-VF-004", + "E-014-VF-004", + "E-014-VF-005" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서", + "감정평가서", + "내용증명에 대한 답신", + "등기사항전부증명서 (말소사항 포함) -건물", + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003", + "E-004", + "E-010", + "E-014", + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-13" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "처분 후 근저당권 말소를 원상회복 방식과 회복상한 검토에 필요한 후행 사건으로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "linked_actio_structures": [ + { + "seed_ref": "e13-003", + "type_id": "fraudulent_transfer" + } + ], + "remedy_mode_hints": { + "original_return": "legal_theory_required", + "value_compensation": "legal_theory_required", + "release_is_not_automatic_conversion": true, + "source_evidence_refs": [ + "E-014" + ] + }, + "value_compensation_cap_hints": { + "claim_seed_refs": [ + "e13-001", + "e13-002" + ], + "preserved_claim_balance": null, + "actual_senior_secured_balance": null, + "released_debt_balance": null, + "hearing_close_date": null, + "source_evidence_refs": [ + "E-024", + "E-014", + "E-004" + ] + }, + "encumbrance_timeline": [ + { + "event_type": "mortgage_release", + "date": "2024-10-17", + "registered_cause": "해지", + "registry_receipt_no": "제74586호", + "mortgagee_as_recorded": "강용일", + "underlying_payment": null, + "source_evidence_refs": [ + "E-014" + ] + } + ], + "defense_rebuttal": { + "issue": "수익자의 채무자에 대한 채권을 이용한 예비적 상계", + "asserted_total": { + "value_id": "E-010-VF-002" + }, + "asserted_components": [ + { + "component_type": "purchase_funding", + "value_id": "E-010-VF-003" + }, + { + "component_type": "loan", + "value_id": "E-010-VF-004" + } + ], + "documented_loan": { + "value_id": "E-003-VF-003", + "loan_date": "2022-07-18", + "due_date": "2023-07-17" + }, + "status": "legal_theory_required", + "source_evidence_refs": [ + "E-010", + "E-003" + ] + } + } + } + } + }, + { + "BO_ID": "bh102", + "id": "bh102", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "계약조건 변경 요청" + }, + "Action": "이수인이 윤건우에게 흑석동 상가 매매조건 변경과 타인 명의 등기를 요청하는 통지서를 작성·발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "contract_change_request_notice_lifecycle", + "계약조건 변경 요청" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이수인이 윤건우에게 흑석동 상가 매매조건 변경과 타인 명의 등기를 요청하는 통지서를 작성·발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-029-VF-001" + ], + "EvidenceTitles": [ + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-029", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-029" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1", + "amount_related_values": [ + { + "value_id": "E-029-VF-001", + "value_kind": "OTHER", + "item_label": "감액", + "amount_text": "10%", + "amount_value": "10", + "evidence_index": "E-029", + "dates": [ + { + "date_text": "2024. 3. 30.", + "date_value": "2024-03-30", + "role": "NOTICE_SENT" + } + ], + "value_basis": "PROPOSED", + "object_label_text": [ + "서울 동작구 흑석로 80 지상 상가건물 201호" + ], + "value_type": "RATIO" + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이수인이 윤건우에게 흑석동 상가 매매조건 변경과 타인 명의 등기를 요청하는 통지서를 작성·발송한 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh103", + "id": "bh103", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤이 강용원·양정숙에게 유치권 소멸청구에 반박하는 답변서를 작성·발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤이 강용원·양정숙에게 유치권 소멸청구에 반박하는 답변서를 작성·발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤이 강용원·양정숙에게 유치권 소멸청구에 반박하는 답변서를 작성·발송한 lifecycle 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh104", + "id": "bh104", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "오민한이 강용원에게 해드림 자재대금 변제책임을 부인하는 답신을 작성·발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "liability_denial_notice_lifecycle" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 강용원에게 해드림 자재대금 변제책임을 부인하는 답신을 작성·발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-028", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-028" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 강용원에게 해드림 자재대금 변제책임을 부인하는 답신을 작성·발송한 lifecycle 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh105", + "id": "bh105", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "오민한이 강용원의 최고에 반박하는 답신을 작성·발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "response_notice_lifecycle" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 강용원의 최고에 반박하는 답신을 작성·발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 강용원의 최고에 반박하는 답신을 작성·발송한 lifecycle 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh106", + "id": "bh106", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "주식회사 대한은행이 강용원에게 성수동 대지 근저당권 말소 요구를 거절하는 답신을 작성·발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "registry_cancellation_refusal_notice_lifecycle" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "주식회사 대한은행이 강용원에게 성수동 대지 근저당권 말소 요구를 거절하는 답신을 작성·발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기말소 신청에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-012", + "source_title": "등기말소 신청에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-012" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "주식회사 대한은행이 강용원에게 성수동 대지 근저당권 말소 요구를 거절하는 답신을 작성·발송한 lifecycle 후보이다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh107", + "id": "bh107", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 지상 건물의 별도 자산 표시와 매매 이후 소유·점유·사용·수익 상태 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 지상 건물의 별도 자산 표시와 매매 이후 소유·점유·사용·수익 상태 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-006-VF-006" + }, + "value_refs": [ + "E-006-VF-006" + ], + "EvidenceTitles": [ + "계 약 서", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-02", + "EVT-006-05" + ], + "source_meeting_clause_ids": [], + "source_domain": "X2" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 지상 건물의 별도 자산 표시와 매매 이후 소유·점유·사용·수익 상태 후보를 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "legacy_asset_projection": { + "asset_alias": "성수동 건물", + "description": "서울 성동구 성수동 256 지상 경량철골조 샌드위치패널지붕 단층 근린상가 200㎡", + "schedule_locator": "SCH-016-02", + "registry_identifier": null, + "evidence_refs": [ + "E-006", + "E-016" + ] + }, + "legacy_lineage_projection": { + "entries": [ + { + "date": "2024-11-20", + "kind": "売買계약", + "seller": "이문호", + "buyer": "박성희", + "registration_completion_confirmed": false + } + ], + "evidence_refs": [ + "E-006" + ] + }, + "legacy_state_projection": { + "ownership": { + "party_candidates": [], + "status": "미확인", + "evidence_refs": [ + "E-006" + ] + }, + "possession": { + "party_candidates": [ + "박성희" + ], + "status": "계약상 인도 대상자", + "actual_transfer_confirmed": false, + "evidence_refs": [ + "E-006" + ] + }, + "use": { + "party_candidates": [ + "박성희" + ], + "status": "대금 지급 후 관리·사용 약정", + "evidence_refs": [ + "E-006" + ] + }, + "benefit": { + "contractual_use_beneficiary_candidates": [ + "박성희" + ], + "actual_benefit_confirmed": false, + "evidence_refs": [ + "E-006" + ] + } + }, + "conflict_groups": [ + { + "issue": "소유권이전·계속점유 파생표지와 원천 계약의 증명범위", + "resolved": false, + "evidence_refs": [ + "E-006", + "EVT-006-02", + "EVT-006-05" + ] + } + ] + } + } + } + } +] diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/BO_11_04_4_30pm.json b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/BO_11_04_4_30pm.json new file mode 100644 index 00000000..4b9732e9 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/BO_11_04_4_30pm.json @@ -0,0 +1,7217 @@ +[ + { + "BO_ID": "bh1", + "id": "bh1", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "명의신탁 확인약정" + }, + "Action": "오국한의 신림동 상가 명의신탁 확인 문구와 오민한의 소유권 주장을 약정 효력 검토 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "juristic_act_validity", + "명의신탁 확인약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오국한의 신림동 상가 명의신탁 확인 문구와 오민한의 소유권 주장을 약정 효력 검토 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2015-09-17", + "TimeText": "2015-09-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "4,000만 원", + "numeric_value": "40000000", + "currency": "KRW", + "value_id": "E-003-VF-001" + }, + "value_refs": [ + "E-003-VF-001" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서", + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003", + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-01" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오국한의 신림동 상가 명의신탁 확인 문구와 오민한의 소유권 주장을 약정 효력 검토 후보로 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh2", + "id": "bh2", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "공사도급" + }, + "Action": "김일동과 박광윤 사이의 신축공사 도급대금 및 잔금 지급약정 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "공사도급" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김일동과 박광윤 사이의 신축공사 도급대금 및 잔금 지급약정 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-05-01", + "TimeText": "2021-05-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10억 원", + "numeric_value": "1000000000", + "currency": "KRW", + "value_id": "E-007-VF-004" + }, + "value_refs": [ + "E-007-VF-004", + "E-007-VF-009" + ], + "EvidenceTitles": [ + "공사도급 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-007", + "source_title": "공사도급 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-007" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김일동과 박광윤 사이의 신축공사 도급대금 및 잔금 지급약정 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "payment_history": [ + { + "payment_kind": "계약금", + "payment_date": "2021-05-01", + "status": "영수 기재" + }, + { + "payment_kind": "중도금", + "payment_date": "2021-08-30", + "status": "영수 기재" + } + ], + "balance_status": "review_required", + "lien_effect": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh3", + "id": "bh3", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "공사도급계약 체결 당시 김일동의 계약금 지급과 박광윤의 영수 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "partial_payment" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "공사도급계약 체결 당시 김일동의 계약금 지급과 박광윤의 영수 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-05-01", + "TimeText": "2021-05-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-007-VF-006" + }, + "value_refs": [ + "E-007-VF-006" + ], + "EvidenceTitles": [ + "공사도급 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-007", + "source_title": "공사도급 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-007" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "공사도급계약 체결 당시 김일동의 계약금 지급과 박광윤의 영수 후보이다.", + "action_type": "사실행위(factual acts)", + "payload": { + "payment_kind": "계약금", + "payment_status": "영수 기재" + } + } + } + }, + { + "BO_ID": "bh4", + "id": "bh4", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "공사도급계약" + }, + "Action": "김일동과 박광윤 사이 평택시 신축공사 도급계약의 공사대금 약정과 일부 지급 사실을 보존하는 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "construction_payment_claim", + "공사도급계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김일동과 박광윤 사이 평택시 신축공사 도급계약의 공사대금 약정과 일부 지급 사실을 보존하는 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-05-01", + "TimeText": "2021-05-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10억 원", + "numeric_value": "1000000000", + "currency": "KRW", + "value_id": "E-007-VF-004" + }, + "value_refs": [ + "E-007-VF-004", + "E-007-VF-006", + "E-007-VF-009", + "E-007-VF-010" + ], + "EvidenceTitles": [ + "공사도급 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-007", + "source_title": "공사도급 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-007" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-07" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김일동과 박광윤 사이 평택시 신축공사 도급계약의 공사대금 약정과 일부 지급 사실을 보존하는 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh5", + "id": "bh5", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "물품매매" + }, + "Action": "강용원의 김선웅에 대한 인테리어 자재 물품대금 채권을 후행 각서와 최고에 근거하여 보존한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "물품매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원의 김선웅에 대한 인테리어 자재 물품대금 채권을 후행 각서와 최고에 근거하여 보존한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-06-05", + "TimeText": "2021-06-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-027-VF-001" + }, + "value_refs": [ + "E-027-VF-001" + ], + "EvidenceTitles": [ + "이 행 각 서", + "최고 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-027", + "source_title": "최고 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021", + "E-027" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원의 김선웅에 대한 인테리어 자재 물품대금 채권을 후행 각서와 최고에 근거하여 보존한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "origin_support": "후행 채무승인 및 채권자 최고", + "original_due_date": null, + "payment_history": [], + "payment_status": "review_required", + "successor_liability_hint": "review_required", + "successor_liability_effect": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh6", + "id": "bh6", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "신림동 상가에 관한 나임오 명의 선순위 근저당권 설정등기 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 관한 나임오 명의 선순위 근저당권 설정등기 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-08-01", + "TimeText": "2021-08-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "50,000,000원", + "numeric_value": "50000000", + "currency": "KRW", + "value_id": "E-014-VF-004" + }, + "value_refs": [ + "E-014-VF-004" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 관한 나임오 명의 선순위 근저당권 설정등기 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-04", + "section": "을구", + "rank_no": "1", + "receipt_no": "제50099호", + "right_holder_name": "나임오", + "debtor_name": "오국환", + "target_scope": "신림동 단층 근린상가", + "value_id": "E-014-VF-004", + "is_cancelled": false + } + ] + } + } + } + }, + { + "BO_ID": "bh7", + "id": "bh7", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "김일동의 공사 중도금 지급과 박광윤의 영수 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "partial_payment" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김일동의 공사 중도금 지급과 박광윤의 영수 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2021-08-30", + "TimeText": "2021-08-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 4억 원정", + "numeric_value": "400000000", + "currency": "KRW", + "value_id": "E-007-VF-010" + }, + "value_refs": [ + "E-007-VF-010" + ], + "EvidenceTitles": [ + "공사도급 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-007", + "source_title": "공사도급 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-007" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김일동의 공사 중도금 지급과 박광윤의 영수 후보이다.", + "action_type": "사실행위(factual acts)", + "payload": { + "payment_kind": "중도금", + "payment_status": "영수 기재" + } + } + } + }, + { + "BO_ID": "bh8", + "id": "bh8", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "신림동 상가에 관한 강용일 명의 후순위 근저당권 설정등기 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 관한 강용일 명의 후순위 근저당권 설정등기 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-04-18", + "TimeText": "2022-04-18", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "150,000,000원", + "numeric_value": "150000000", + "currency": "KRW", + "value_id": "E-014-VF-005" + }, + "value_refs": [ + "E-014-VF-005" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 관한 강용일 명의 후순위 근저당권 설정등기 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-05", + "section": "을구", + "rank_no": "2", + "receipt_no": "제26597호", + "right_holder_name": "강용일", + "debtor_name": "오국환", + "target_scope": "신림동 단층 근린상가", + "value_id": "E-014-VF-005", + "is_cancelled": true + } + ] + } + } + } + }, + { + "BO_ID": "bh9", + "id": "bh9", + "BOType": "state", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원의 오국한에 대한 두 차용 약정에 기초한 피보전채권 묶음 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "preserved_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원의 오국한에 대한 두 차용 약정에 기초한 피보전채권 묶음 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-04-18", + "TimeText": "2022-04-18", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "100,000,000원", + "numeric_value": "100000000", + "currency": "KRW", + "value_id": "E-024-VF-001" + }, + "value_refs": [ + "E-024-VF-001", + "E-024-VF-002", + "E-024-VF-003" + ], + "EvidenceTitles": [ + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-024-01", + "EVT-024-02" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-13" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원의 오국한에 대한 두 차용 약정에 기초한 피보전채권 묶음 후보를 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "preserved_claim_bundle": { + "claim_origins": [ + "금전소비대차", + "추가 금전소비대차" + ], + "outstanding_balance_status": "review_required", + "debtor_identity_link_status": "review_required" + } + } + } + } + }, + { + "BO_ID": "bh10", + "id": "bh10", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "신림동 상가의 동일 표시와 등기상 소유 명의·담보 설정 및 말소 계보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 동일 표시와 등기상 소유 명의·담보 설정 및 말소 계보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-04-18", + "TimeText": "2022-04-18", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 150,000,000원", + "numeric_value": "150000000", + "currency": "KRW", + "value_id": "E-014-VF-003" + }, + "value_refs": [ + "E-014-VF-003", + "E-014-VF-004", + "E-014-VF-005" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_alternatives": [ + { + "value_id": "E-014-VF-003", + "value_kind": "TRANSACTION_PRICE", + "item_label": "거래가액", + "amount_text": "금 150,000,000원", + "amount_value": "150000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2023년3월17일", + "date_value": "2023-03-17", + "role": "CONTRACT" + }, + { + "date_text": "2023년3월17일", + "date_value": "2023-03-17", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + }, + { + "value_id": "E-014-VF-004", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "50,000,000원", + "amount_value": "50000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2021년8월1일", + "date_value": "2021-08-01", + "role": "CONTRACT" + }, + { + "date_text": "2021년8월1일", + "date_value": "2021-08-01", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + }, + { + "value_id": "E-014-VF-005", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "150,000,000원", + "amount_value": "150000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2022년4월18일", + "date_value": "2022-04-18", + "role": "CONTRACT" + }, + { + "date_text": "2022년4월18일", + "date_value": "2022-04-18", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월17일", + "date_value": "2024-10-17", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED" + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 동일 표시와 등기상 소유 명의·담보 설정 및 말소 계보를 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "신림동 상가", + "ownership": "등기상 이경주에서 오국환을 거쳐 오민한으로 이어지는 명의 계보", + "possession": "미확인", + "use": "미확인", + "benefit": "미확인", + "legacy_identity_projection": { + "evidence_indexes": [ + "E-014", + "E-016" + ] + }, + "legacy_lineage_projection": { + "evidence_indexes": [ + "E-014" + ] + }, + "legacy_state_projection": { + "evidence_indexes": [ + "E-014" + ] + } + } + } + } + }, + { + "BO_ID": "bh11", + "id": "bh11", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "제3자 임대차" + }, + "Action": "박광윤이 서정빌라를 인근 공장 직원숙소로 임대하였다고 자인한 행위 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "제3자 임대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤이 서정빌라를 인근 공장 직원숙소로 임대하였다고 자인한 행위 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-07-31", + "TimeText": "2022-07-31", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-011-VF-002" + ], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10", + "amount_related_values": [ + { + "value_id": "E-011-VF-002", + "value_kind": "RENT", + "item_label": "월", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "AGREED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤이 서정빌라를 인근 공장 직원숙소로 임대하였다고 자인한 행위 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "leased_object_description": "서정빌라 101호", + "lessor_name": "박광윤", + "counterparty_description": "인근 공장", + "owner_consent_status": "review_required", + "lien_violation_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh12", + "id": "bh12", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "평택시 서정빌라 전유부분과 대지권 표시 및 공란을 포함한 등기 계보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "평택시 서정빌라 전유부분과 대지권 표시 및 공란을 포함한 등기 계보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-09-01", + "TimeText": "2022-09-01", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금14,000,000원", + "numeric_value": "14000000", + "currency": "KRW", + "value_id": "E-015-VF-007" + }, + "value_refs": [ + "E-015-VF-007" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "평택시 서정빌라 전유부분과 대지권 표시 및 공란을 포함한 등기 계보를 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "평택시 빌라", + "ownership": "김일동·정남이 명의 이력 이후 후행 이전의 권리자는 공란", + "possession": "선택 자료에서 미확인", + "use": "선택 자료에서 미확인", + "benefit": "선택 자료에서 미확인", + "legacy_identity_projection": { + "evidence_indexes": [ + "E-015", + "E-016" + ] + }, + "legacy_lineage_projection": { + "evidence_indexes": [ + "E-015" + ] + }, + "legacy_state_projection": { + "evidence_indexes": [ + "E-015" + ] + } + } + } + } + }, + { + "BO_ID": "bh13", + "id": "bh13", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "서정빌라 해당 호실에 후행 소유권이전등기가 기재되어 있으나 등기원인과 권리자는 자료상 공란이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라 해당 호실에 후행 소유권이전등기가 기재되어 있으나 등기원인과 권리자는 자료상 공란이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-10-01", + "TimeText": "2022-10-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라 해당 호실에 후행 소유권이전등기가 기재되어 있으나 등기원인과 권리자는 자료상 공란이다.", + "action_type": null, + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-015-01", + "purpose": "소유권보존", + "right_holder": "김일동", + "receipt_date": "2021-12-10", + "receipt_no": "제7233호" + }, + { + "registry_ref": "REG-015-02", + "purpose": "소유권이전", + "right_holder": "정남이", + "receipt_date": "2021-12-30", + "receipt_no": "제7871호" + }, + { + "registry_ref": "REG-015-04", + "purpose": "소유권이전", + "right_holder": null, + "cause": null, + "receipt_date": "2022-10-01", + "receipt_no": "제12321호" + } + ], + "fractional_effect_events": [], + "missing_identity_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh14", + "id": "bh14", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "오국한이 강용원으로부터 첫 번째 대여금을 차용하고 변제기와 이자를 약정한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오국한이 강용원으로부터 첫 번째 대여금을 차용하고 변제기와 이자를 약정한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022-12-17", + "TimeText": "2022-12-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "100,000,000원", + "numeric_value": "100000000", + "currency": "KRW", + "value_id": "E-024-VF-001" + }, + "value_refs": [ + "E-024-VF-001" + ], + "EvidenceTitles": [ + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오국한이 강용원으로부터 첫 번째 대여금을 차용하고 변제기와 이자를 약정한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "agreed_interest_rate": "월 1%", + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [ + "E-024" + ], + "payment_history": [], + "payment_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh15", + "id": "bh15", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "신림동 상가의 연도별 시가 평가를 동일 목적물 및 각 평가구간에 결속하는 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 연도별 시가 평가를 동일 목적물 및 각 평가구간에 결속하는 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022. 1. 1. ~ 2022. 12. 31.", + "TimeText": "2022. 1. 1. ~ 2022. 12. 31.", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 3,000만 원", + "numeric_value": "230000000", + "currency": "KRW", + "value_id": "E-004-VF-002" + }, + "value_refs": [ + "E-004-VF-002", + "E-004-VF-003", + "E-004-VF-004" + ], + "EvidenceTitles": [ + "감정평가서", + "등기사항전부증명서 (말소사항 포함) -건물", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-004", + "E-014", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_alternatives": [ + { + "value_id": "E-004-VF-002", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 3,000만 원", + "amount_value": "230000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-003", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 4,000만 원", + "amount_value": "240000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-004", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 5,000만 원", + "amount_value": "250000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 연도별 시가 평가를 동일 목적물 및 각 평가구간에 결속하는 후보를 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "신림동 상가", + "valuation_kind": "market_price", + "legacy_valuation_projection": { + "evidence_indexes": [ + "E-004", + "E-014", + "E-016" + ], + "basis_periods": [ + "2022. 1. 1. ~ 2022. 12. 31.", + "2023. 1. 1. ~ 2023. 12. 31.", + "2024. 1. 1. ~ 현재" + ] + } + } + } + } + }, + { + "BO_ID": "bh16", + "id": "bh16", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "포천시 임야의 표시와 연도별 평가구간을 보존하고 담보가치 계산에 필요한 결속 누락을 남긴다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "포천시 임야의 표시와 연도별 평가구간을 보존하고 담보가치 계산에 필요한 결속 누락을 남긴다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022. 1. 1. ~ 2022. 12. 31.", + "TimeText": "2022. 1. 1. ~ 2022. 12. 31.", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3,000만 원", + "numeric_value": "30000000", + "currency": "KRW", + "value_id": "E-004-VF-006" + }, + "value_refs": [ + "E-004-VF-006", + "E-004-VF-007" + ], + "EvidenceTitles": [ + "감정평가서" + ], + "Evidence": [ + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-004" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_alternatives": [ + { + "value_id": "E-004-VF-006", + "value_kind": "MARKET_PRICE", + "item_label": "임야 시가", + "amount_text": "3,000만 원", + "amount_value": "30000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "경기 포천시 일동면 218 임야" + ] + }, + { + "value_id": "E-004-VF-007", + "value_kind": "MARKET_PRICE", + "item_label": "임야 시가", + "amount_text": "3,500만 원", + "amount_value": "35000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "경기 포천시 일동면 218 임야" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "포천시 임야의 표시와 연도별 평가구간을 보존하고 담보가치 계산에 필요한 결속 누락을 남긴다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "포천시 임야", + "ownership": "미확인", + "possession": "미확인", + "use": "미확인", + "benefit": "미확인", + "valuation_kind": "market_price", + "legacy_valuation_projection": { + "evidence_indexes": [ + "E-004" + ], + "basis_periods": [ + "2022. 1. 1. ~ 2022. 12. 31.", + "2023. 1. 1. ~ 2023. 12. 31.", + "2024. 1. 1. ~ 현재" + ] + } + } + } + } + }, + { + "BO_ID": "bh17", + "id": "bh17", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "서정빌라의 무보증금 월 임료 평가와 기준기간을 보존하고 특정 전유부분에 대한 평가 결속을 검토 대상으로 남긴다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "서정빌라의 무보증금 월 임료 평가와 기준기간을 보존하고 특정 전유부분에 대한 평가 결속을 검토 대상으로 남긴다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022. 10.경부터 현재까지", + "TimeText": "2022. 10.경부터 현재까지", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-023-VF-002" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록", + "임 료 시 세 확 인 서" + ], + "Evidence": [ + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-023", + "source_title": "임 료 시 세 확 인 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-015", + "E-016", + "E-023" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_related_values": [ + { + "value_id": "E-023-VF-002", + "value_kind": "RENT", + "item_label": "월세", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-023", + "dates": [ + { + "date_text": "2022. 10.경", + "role": "AS_OF" + } + ], + "value_basis": "APPRAISED", + "object_label_text": [ + "경기도 평택시 서정3길 123(서정동, 서정빌라)" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "서정빌라의 무보증금 월 임료 평가와 기준기간을 보존하고 특정 전유부분에 대한 평가 결속을 검토 대상으로 남긴다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "평택시 빌라", + "valuation_kind": "rent_value", + "specific_unit_binding": "미확인", + "legacy_valuation_projection": { + "evidence_indexes": [ + "E-023", + "E-015", + "E-016" + ], + "basis_period": "2022. 10.경부터 현재까지", + "scenario": "보증금 없는 월 임료" + } + } + } + } + }, + { + "BO_ID": "bh18", + "id": "bh18", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "평택시 서정빌라의 사용이익 산정을 위한 임료 평가 입력과 충당 항변을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "평택시 서정빌라의 사용이익 산정을 위한 임료 평가 입력과 충당 항변을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022年10월경부터 현재", + "TimeText": "2022年10월경부터 현재", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-023-VF-002" + ], + "EvidenceTitles": [ + "답 변 서", + "소멸청구 통지서", + "임 료 시 세 확 인 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-023", + "source_title": "임 료 시 세 확 인 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-019", + "E-023" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-023-VF-002", + "value_kind": "RENT", + "item_label": "월세", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-023", + "dates": [ + { + "date_text": "2022. 10.경", + "role": "AS_OF" + } + ], + "value_basis": "APPRAISED", + "object_label_text": [ + "경기도 평택시 서정3길 123(서정동, 서정빌라)" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "평택시 서정빌라의 사용이익 산정을 위한 임료 평가 입력과 충당 항변을 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh19", + "id": "bh19", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "신림동 상가와 포천시 임야에 관한 기간별 시가 평가 입력을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가와 포천시 임야에 관한 기간별 시가 평가 입력을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2022년도·2023년도·2024년부터 현재", + "TimeText": "2022년도·2023년도·2024년부터 현재", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 3,000만 원", + "numeric_value": "230000000", + "currency": "KRW", + "value_id": "E-004-VF-002" + }, + "value_refs": [ + "E-004-VF-002", + "E-004-VF-003", + "E-004-VF-004", + "E-004-VF-006", + "E-004-VF-007" + ], + "EvidenceTitles": [ + "감정평가서" + ], + "Evidence": [ + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-004" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_alternatives": [ + { + "value_id": "E-004-VF-002", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 3,000만 원", + "amount_value": "230000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-003", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 4,000만 원", + "amount_value": "240000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-004", + "value_kind": "MARKET_PRICE", + "item_label": "건물 시가", + "amount_text": "2억 5,000만 원", + "amount_value": "250000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 관악구 신림로 115 지상 철근콘크리트조 콘크리트지붕 단층 근린상가" + ] + }, + { + "value_id": "E-004-VF-006", + "value_kind": "MARKET_PRICE", + "item_label": "임야 시가", + "amount_text": "3,000만 원", + "amount_value": "30000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "경기 포천시 일동면 218 임야" + ] + }, + { + "value_id": "E-004-VF-007", + "value_kind": "MARKET_PRICE", + "item_label": "임야 시가", + "amount_text": "3,500만 원", + "amount_value": "35000000", + "currency": "KRW", + "evidence_index": "E-004", + "value_basis": "APPRAISED", + "object_label_text": [ + "경기 포천시 일동면 218 임야" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가와 포천시 임야에 관한 기간별 시가 평가 입력을 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh20", + "id": "bh20", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "성수동 대지 중 강용원의 일부 지분에 관한 근저당권 설정 약정과 등기 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 중 강용원의 일부 지분에 관한 근저당권 설정 약정과 등기 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-01-06", + "TimeText": "2023-01-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 260,000,000원", + "numeric_value": "260000000", + "currency": "KRW", + "value_id": "E-013-VF-006" + }, + "value_refs": [ + "E-013-VF-006" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지", + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-025", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013", + "E-025" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 중 강용원의 일부 지분에 관한 근저당권 설정 약정과 등기 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "fraction_ref": "FR-013-08", + "fractional_effect_events": [], + "registry_rows": [ + { + "registry_ref": "REG-013-08", + "section": "을구", + "rank_no": "1", + "receipt_no": "제1088호", + "target_scope": "갑구 3번 강용원 지분 5분의 2", + "right_holder_name": "오민환", + "debtor_name": "강용원", + "value_id": "E-013-VF-006", + "is_deleted": true + } + ] + } + } + } + }, + { + "BO_ID": "bh21", + "id": "bh21", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차계약" + }, + "Action": "강용원과 오민한 사이의 담보부 차용금 채무 발생 및 약정 내용 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "금전소비대차계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원과 오민한 사이의 담보부 차용금 채무 발생 및 약정 내용 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-01-06", + "TimeText": "2023-01-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "200,000,000원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-025-VF-001" + }, + "value_refs": [ + "E-025-VF-001", + "E-025-VF-002" + ], + "EvidenceTitles": [ + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-025", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-025" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원과 오민한 사이의 담보부 차용금 채무 발생 및 약정 내용 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "value_id": "E-025-VF-001", + "agreed_interest_rate": "연 10%", + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [ + "E-025" + ], + "secured_debt_chain": [ + { + "creditor_name": "오민한", + "debtor_name": "강용원", + "collateral_description": "서울 성동구 성수동 256 대지의 5분의 2 지분", + "balance_status": "review_required" + } + ] + } + } + } + }, + { + "BO_ID": "bh22", + "id": "bh22", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "오국한이 강용원으로부터 추가 대여금을 차용하고 별도의 변제기와 이자를 약정한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오국한이 강용원으로부터 추가 대여금을 차용하고 별도의 변제기와 이자를 약정한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-03-17", + "TimeText": "2023-03-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "100,000,000원", + "numeric_value": "100000000", + "currency": "KRW", + "value_id": "E-024-VF-002" + }, + "value_refs": [ + "E-024-VF-002" + ], + "EvidenceTitles": [ + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오국한이 강용원으로부터 추가 대여금을 차용하고 별도의 변제기와 이자를 약정한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "agreed_interest_rate": "월 1%", + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [ + "E-024" + ], + "payment_history": [], + "payment_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh23", + "id": "bh23", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매" + }, + "Action": "신림동 상가에 관하여 오국환에서 오민한 앞으로 매매를 원인으로 한 소유권이전등기가 기재되었다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가에 관하여 오국환에서 오민한 앞으로 매매를 원인으로 한 소유권이전등기가 기재되었다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-03-17", + "TimeText": "2023-03-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 150,000,000원", + "numeric_value": "150000000", + "currency": "KRW", + "value_id": "E-014-VF-003" + }, + "value_refs": [ + "E-014-VF-003" + ], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가에 관하여 오국환에서 오민한 앞으로 매매를 원인으로 한 소유권이전등기가 기재되었다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-02", + "right_holder": "오국환", + "receipt_date": "2015-09-17", + "receipt_no": "제56457호" + }, + { + "registry_ref": "REG-014-03", + "right_holder": "오민한", + "receipt_date": "2023-03-17", + "receipt_no": "제11593호" + } + ], + "related_encumbrance_refs": [ + "REG-014-04", + "REG-014-05", + "REG-014-06" + ], + "fractional_effect_events": [], + "restoration_basis_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh24", + "id": "bh24", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "성수동 대지 중 강용원의 다른 지분에 관한 후행 근저당권 설정등기 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 중 강용원의 다른 지분에 관한 후행 근저당권 설정등기 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-07-06", + "TimeText": "2023-07-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 390,000,000원", + "numeric_value": "390000000", + "currency": "KRW", + "value_id": "E-013-VF-008" + }, + "value_refs": [ + "E-013-VF-008" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 중 강용원의 다른 지분에 관한 후행 근저당권 설정등기 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "fraction_ref": "FR-013-09", + "fractional_effect_events": [], + "registry_rows": [ + { + "registry_ref": "REG-013-09", + "section": "을구", + "rank_no": "2", + "receipt_no": "제8293호", + "target_scope": "갑구 4번 강용원 지분 5분의 3", + "right_holder_name": "오민환", + "debtor_name": "강용원", + "value_id": "E-013-VF-008", + "is_deleted": true + } + ] + } + } + } + }, + { + "BO_ID": "bh25", + "id": "bh25", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차계약" + }, + "Action": "오국한과 오민한 사이 금전소비대차 문서에 나타난 지급 약속과 변제기 약정을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "condition_term_effect", + "금전소비대차계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오국한과 오민한 사이 금전소비대차 문서에 나타난 지급 약속과 변제기 약정을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-07-17", + "TimeText": "2023-07-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10,000,000원", + "numeric_value": "10000000", + "currency": "KRW", + "value_id": "E-003-VF-003" + }, + "value_refs": [ + "E-003-VF-003" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-01" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오국한과 오민한 사이 금전소비대차 문서에 나타난 지급 약속과 변제기 약정을 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh26", + "id": "bh26", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "오국한이 오민한으로부터 금전을 차용하고 반환기한을 약정한 거래 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오국한이 오민한으로부터 금전을 차용하고 반환기한을 약정한 거래 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-07-17", + "TimeText": "2023-07-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10,000,000원", + "numeric_value": "10000000", + "currency": "KRW", + "value_id": "E-003-VF-003" + }, + "value_refs": [ + "E-003-VF-003" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오국한이 오민한으로부터 금전을 차용하고 반환기한을 약정한 거래 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "agreed_interest_rate": null, + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [], + "payment_history": [], + "admission_hint": "차용 및 변제의무 자인", + "role_in_claim_hint": "가액배상 감액 항변의 기초채권", + "payment_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh27", + "id": "bh27", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매계약 해제 의사표시" + }, + "Action": "흑석동 상가 매매계약 해제 통지에 따른 급부 원인 소멸 및 원상회복 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "unjust_enrichment", + "매매계약 해제 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "흑석동 상가 매매계약 해제 통지에 따른 급부 원인 소멸 및 원상회복 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2023-10-01", + "TimeText": "2023-10-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10억 원", + "numeric_value": "1000000000", + "currency": "KRW", + "value_id": "E-017-VF-002" + }, + "value_refs": [ + "E-017-VF-002", + "E-017-VF-003", + "E-017-VF-004", + "E-017-VF-005" + ], + "EvidenceTitles": [ + "부동산 매매계약서", + "해제 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-017", + "source_title": "부동산 매매계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-030", + "source_title": "해제 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-017", + "E-030" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "흑석동 상가 매매계약 해제 통지에 따른 급부 원인 소멸 및 원상회복 후보를 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh28", + "id": "bh28", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "흑석동 상가의 매매·임대차 목적물 대응과 계약서상 인도 상태를 소유·사용·수익과 분리하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "흑석동 상가의 매매·임대차 목적물 대응과 계약서상 인도 상태를 소유·사용·수익과 분리하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-01-01", + "TimeText": "2024-01-01", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "별지 목록", + "부동산 매매계약서", + "임대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-017", + "source_title": "부동산 매매계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-022", + "source_title": "임대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-016", + "E-017", + "E-022" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "흑석동 상가의 매매·임대차 목적물 대응과 계약서상 인도 상태를 소유·사용·수익과 분리하여 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "흑석동 상가", + "ownership": "매매계약 당사자만 확인되며 소유권이전등기 상태는 미확인", + "possession": "임대차계약서에서 양정숙의 계약 당일 인도를 확인", + "use": "양정숙의 임차 사용에 관한 약정이며 현재 계속 여부는 미확인", + "benefit": "실제 수익 귀속 미확인", + "legacy_identity_projection": { + "evidence_indexes": [ + "E-016", + "E-017", + "E-022" + ] + }, + "legacy_state_projection": { + "evidence_indexes": [ + "E-017", + "E-022" + ] + } + } + } + } + }, + { + "BO_ID": "bh29", + "id": "bh29", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원이 오민한으로부터 영업자금을 차용하고 이자·변제기 및 지분담보 제공을 약정한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 오민한으로부터 영업자금을 차용하고 이자·변제기 및 지분담보 제공을 약정한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-01-05", + "TimeText": "2024-01-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "200,000,000원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-025-VF-001" + }, + "value_refs": [ + "E-025-VF-001" + ], + "EvidenceTitles": [ + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-025", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-025" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 오민한으로부터 영업자금을 차용하고 이자·변제기 및 지분담보 제공을 약정한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "agreed_interest_rate": "연 10%", + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [ + "E-025" + ], + "payment_history": [], + "payment_status": "review_required", + "collateral_effect": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh30", + "id": "bh30", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매" + }, + "Action": "윤건우와 이수인이 흑석동 상가를 매매하면서 중도금 지급 시 목적물을 먼저 인도하기로 약정하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "윤건우와 이수인이 흑석동 상가를 매매하면서 중도금 지급 시 목적물을 먼저 인도하기로 약정하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-05-01", + "TimeText": "2024-05-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "10억 원", + "numeric_value": "1000000000", + "currency": "KRW", + "value_id": "E-017-VF-002" + }, + "value_refs": [ + "E-017-VF-002" + ], + "EvidenceTitles": [ + "부동산 매매계약서" + ], + "Evidence": [ + { + "evidence_index": "E-017", + "source_title": "부동산 매매계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-017" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "윤건우와 이수인이 흑석동 상가를 매매하면서 중도금 지급 시 목적물을 먼저 인도하기로 약정하였다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [], + "fractional_effect_events": [], + "registration_performance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh31", + "id": "bh31", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "이행최고" + }, + "Action": "강용원이 김선웅에게 물품대금 변제를 최고하고 그 우편물이 본인에게 도달한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "demand_notice", + "이행최고" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 김선웅에게 물품대금 변제를 최고하고 그 우편물이 본인에게 도달한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-05-06", + "TimeText": "2024-05-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-027-VF-001" + }, + "value_refs": [ + "E-027-VF-001" + ], + "EvidenceTitles": [ + "최고 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-027", + "source_title": "최고 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-027" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 김선웅에게 물품대금 변제를 최고하고 그 우편물이 본인에게 도달한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "notice_hint": "내용증명 최고 및 본인 수령", + "limitation_effect": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh32", + "id": "bh32", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "이행최고" + }, + "Action": "강용원이 김선웅에게 인테리어 자재대금 변제를 최고하고 본인 수령 배달증명이 남은 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "demand_notice_lifecycle", + "이행최고" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 김선웅에게 인테리어 자재대금 변제를 최고하고 본인 수령 배달증명이 남은 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-05-06", + "TimeText": "2024-05-06", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-027-VF-001" + }, + "value_refs": [ + "E-027-VF-001" + ], + "EvidenceTitles": [ + "최고 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-027", + "source_title": "최고 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-027" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 김선웅에게 인테리어 자재대금 변제를 최고하고 본인 수령 배달증명이 남은 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh33", + "id": "bh33", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매계약 해제 통지" + }, + "Action": "윤건우가 이수인에게 흑석동 상가 매매계약 해제를 통지하고 본인 수령 배달증명이 남은 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "contract_rescission_notice_lifecycle", + "매매계약 해제 통지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "윤건우가 이수인에게 흑석동 상가 매매계약 해제를 통지하고 본인 수령 배달증명이 남은 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-05-16", + "TimeText": "2024-05-16", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "해제 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-030", + "source_title": "해제 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-030" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "윤건우가 이수인에게 흑석동 상가 매매계약 해제를 통지하고 본인 수령 배달증명이 남은 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh34", + "id": "bh34", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "금전소비대차" + }, + "Action": "강용원이 오민한으로부터 추가 차용하고 별도의 이자·변제기 및 지분담보 제공을 약정한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "money_claim", + "금전소비대차" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 오민한으로부터 추가 차용하고 별도의 이자·변제기 및 지분담보 제공을 약정한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-05", + "TimeText": "2024-07-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "300,000,000원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-026-VF-001" + }, + "value_refs": [ + "E-026-VF-001" + ], + "EvidenceTitles": [ + "차 용 증" + ], + "Evidence": [ + { + "evidence_index": "E-026", + "source_title": "차 용 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-026" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 오민한으로부터 추가 차용하고 별도의 이자·변제기 및 지분담보 제공을 약정한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "agreed_interest_rate": "연 15%", + "agreed_delay_damage_rate": null, + "interest_rate_source_evidence_refs": [ + "E-026" + ], + "interest_accrual_start_hint": null, + "payment_history": [], + "payment_status": "review_required", + "collateral_effect": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh35", + "id": "bh35", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "영업양도계약" + }, + "Action": "김선웅과 오민한이 해드림의 영업자산 및 고객·고용관계를 양도하고 상호 계속 사용과 기존 채무 책임배제를 약정하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "commercial_successor", + "영업양도계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅과 오민한이 해드림의 영업자산 및 고객·고용관계를 양도하고 상호 계속 사용과 기존 채무 책임배제를 약정하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-05", + "TimeText": "2024-07-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-020-VF-002" + }, + "value_refs": [ + "E-020-VF-002" + ], + "EvidenceTitles": [ + "영업양도 계약서" + ], + "Evidence": [ + { + "evidence_index": "E-020", + "source_title": "영업양도 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-020" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-03" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅과 오민한이 해드림의 영업자산 및 고객·고용관계를 양도하고 상호 계속 사용과 기존 채무 책임배제를 약정하였다.", + "action_type": "법률행위(legal acts)", + "payload": { + "payment_history": [], + "admission_hints": [], + "successor_liability_hints": [ + "영업자산 일체 양도", + "고객·고용관계 승계", + "상호 계속 사용 허용" + ], + "successor_link_uncertainty": [ + "기존 영업상 채무의 대외적 승계책임은 미판단" + ] + } + } + } + }, + { + "BO_ID": "bh36", + "id": "bh36", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "담보권실행 경매에 의한 소유권이전" + }, + "Action": "성수동 대지에 관하여 담보권실행 경매매각을 원인으로 이문호 명의 소유권이전등기가 기재되었다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "담보권실행 경매에 의한 소유권이전" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지에 관하여 담보권실행 경매매각을 원인으로 이문호 명의 소유권이전등기가 기재되었다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-21", + "TimeText": "2024-07-21", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지에 관하여 담보권실행 경매매각을 원인으로 이문호 명의 소유권이전등기가 기재되었다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-03", + "fraction_ref": "FR-013-03", + "cause": "상속", + "receipt_date": "2022-12-08", + "receipt_no": "제11202호" + }, + { + "registry_ref": "REG-013-04", + "fraction_ref": "FR-013-04", + "cause": "증여", + "receipt_date": "2023-04-08", + "receipt_no": "제7202호" + }, + { + "registry_ref": "REG-013-06", + "cause": "담보권실행을 위한 경매로 인한 매각", + "receipt_date": "2024-10-05", + "receipt_no": "제25797호" + } + ], + "fractional_effect_events": [], + "title_validity_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh37", + "id": "bh37", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지에 관한 담보권실행 경매개시결정 및 그 등기 기재 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지에 관한 담보권실행 경매개시결정 및 그 등기 기재 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-21", + "TimeText": "2024-07-21", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지에 관한 담보권실행 경매개시결정 및 그 등기 기재 후보이다.", + "action_type": null, + "payload": { + "auction_step": "commencement", + "registry_rows": [ + { + "registry_ref": "REG-013-05", + "section": "갑구", + "rank_no": "5", + "receipt_no": "제12402호", + "right_holder_name": "오민환", + "target_scope": "토지 전체", + "is_deleted": true + } + ] + } + } + } + }, + { + "BO_ID": "bh38", + "id": "bh38", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지의 표시·지분별 담보·소유 명의 계보와 계약상 관리·사용 관계를 구분하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지의 표시·지분별 담보·소유 명의 계보와 계약상 관리·사용 관계를 구분하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-07-21", + "TimeText": "2024-07-21", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 260,000,000원", + "numeric_value": "260000000", + "currency": "KRW", + "value_id": "E-013-VF-006" + }, + "value_refs": [ + "E-013-VF-006", + "E-013-VF-008", + "E-013-VF-009" + ], + "EvidenceTitles": [ + "계 약 서", + "등기사항전부증명서(말소사항 포함)-토지", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006", + "E-013", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_alternatives": [ + { + "value_id": "E-013-VF-006", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "금 260,000,000원", + "amount_value": "260000000", + "currency": "KRW", + "evidence_index": "E-013", + "dates": [ + { + "date_text": "2023년1월6일", + "date_value": "2023-01-06", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월5일", + "date_value": "2024-10-05", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED", + "object_label_text": [ + "서울특별시 성동구 성수동 256" + ] + }, + { + "value_id": "E-013-VF-008", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "금 390,000,000원", + "amount_value": "390000000", + "currency": "KRW", + "evidence_index": "E-013", + "dates": [ + { + "date_text": "2023년7월6일", + "date_value": "2023-07-06", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월5일", + "date_value": "2024-10-05", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED", + "object_label_text": [ + "서울특별시 성동구 성수동 256" + ] + }, + { + "value_id": "E-013-VF-009", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "금 520,000,000원", + "amount_value": "520000000", + "currency": "KRW", + "evidence_index": "E-013", + "dates": [ + { + "date_text": "2024년10월5일", + "date_value": "2024-10-05", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED", + "object_label_text": [ + "서울특별시 성동구 성수동 256" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지의 표시·지분별 담보·소유 명의 계보와 계약상 관리·사용 관계를 구분하여 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "성수동 대지", + "ownership": "등기상 박재경에서 강석우, 정유심·강용원, 강용원, 이문호로 이어지는 명의 계보", + "possession": "계약상 인도 조항은 있으나 실제 현재 점유는 미확인", + "use": "박성희에게 완납 후 관리·사용을 맡기는 계약조항", + "benefit": "실제 수익 귀속은 미확인", + "legacy_identity_projection": { + "evidence_indexes": [ + "E-013", + "E-016", + "E-006" + ] + }, + "legacy_lineage_projection": { + "evidence_indexes": [ + "E-013" + ] + }, + "legacy_state_projection": { + "evidence_indexes": [ + "E-013", + "E-006" + ] + } + } + } + } + }, + { + "BO_ID": "bh39", + "id": "bh39", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "채무승인 및 변제기·보증인 입보 약정" + }, + "Action": "김선웅이 강용원에게 한 물품대금 채무승인과 변제기 및 미변제 시 보증인 입보 약속을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "condition_term_effect", + "debt_acknowledgement", + "채무승인 및 변제기·보증인 입보 약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 강용원에게 한 물품대금 채무승인과 변제기 및 미변제 시 보증인 입보 약속을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-01" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 강용원에게 한 물품대금 채무승인과 변제기 및 미변제 시 보증인 입보 약속을 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh40", + "id": "bh40", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "변제기 변경약정" + }, + "Action": "김선웅이 이행각서에서 기존 물품대금의 지급기한을 새로 제시한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "due_date_modification", + "변제기 변경약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 이행각서에서 기존 물품대금의 지급기한을 새로 제시한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 이행각서에서 기존 물품대금의 지급기한을 새로 제시한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "payment_deadline_hint": "2024. 8. 말", + "due_date_modification_effect": "legal_theory_required", + "creditor_acceptance": "review_required" + } + } + } + }, + { + "BO_ID": "bh41", + "id": "bh41", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "보증인 입보약정" + }, + "Action": "김선웅이 지급기한까지 미변제하면 보증인을 세우겠다고 약속한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "guarantor_procurement_promise", + "보증인 입보약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 지급기한까지 미변제하면 보증인을 세우겠다고 약속한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 지급기한까지 미변제하면 보증인을 세우겠다고 약속한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "payment_promise_hint": "미변제 시 보증인 입보", + "guarantor_identified": false, + "guarantee_formation": "legal_theory_required", + "performance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh42", + "id": "bh42", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "채무승인" + }, + "Action": "김선웅이 이행각서로 강용원에 대한 기존 물품대금 채무를 승인한 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "debt_acknowledgement", + "채무승인" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅이 이행각서로 강용원에 대한 기존 물품대금 채무를 승인한 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-02" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅이 이행각서로 강용원에 대한 기존 물품대금 채무를 승인한 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "admission_hint": "기존 물품대금 채무의 존재 승인", + "payment_history": [], + "payment_status": "review_required", + "limitation_effect": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh43", + "id": "bh43", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "채무승인 및 변제기 약정" + }, + "Action": "김선웅의 물품대금 채무승인과 변제기 약정을 다른 채무자의 처분행위에 병합하지 않은 별도 피보전채권 후보로 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "preserved_claim", + "채무승인 및 변제기 약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "김선웅의 물품대금 채무승인과 변제기 약정을 다른 채무자의 처분행위에 병합하지 않은 별도 피보전채권 후보로 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-05", + "TimeText": "2024-08-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "이 행 각 서" + ], + "Evidence": [ + { + "evidence_index": "E-021", + "source_title": "이 행 각 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-021" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-021-01", + "EVT-021-02" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-13" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "김선웅의 물품대금 채무승인과 변제기 약정을 다른 채무자의 처분행위에 병합하지 않은 별도 피보전채권 후보로 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "preserved_claim_bundle": { + "origin": "인테리어 자재 물품대금", + "creditor": "강용원", + "debtor": "김선웅", + "disposition_link_status": "not_established" + }, + "theory_tracks": { + "creditor_revocation": "support_incomplete", + "creditor_subrogation": "support_incomplete" + } + } + } + } + }, + { + "BO_ID": "bh44", + "id": "bh44", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "강호연의 사망과 가족관계 및 강형수·강지수의 상속포기 수리 자료에 따른 상속권 귀속 상태 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "inheritance_succession_status" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강호연의 사망과 가족관계 및 강형수·강지수의 상속포기 수리 자료에 따른 상속권 귀속 상태 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-10", + "TimeText": "2024-08-10", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "서울가정법원 심판", + "가족관계증명서 [폐쇄]" + ], + "Evidence": [ + { + "evidence_index": "E-001", + "source_title": "서울가정법원 심판", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-002", + "source_title": "가족관계증명서 [폐쇄]", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-001", + "E-002" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-15" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강호연의 사망과 가족관계 및 강형수·강지수의 상속포기 수리 자료에 따른 상속권 귀속 상태 후보를 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh45", + "id": "bh45", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤이 소멸청구 통지를 수령한 뒤에도 서정빌라에 거주하며 유치권을 주장하는 상태 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤이 소멸청구 통지를 수령한 뒤에도 서정빌라에 거주하며 유치권을 주장하는 상태 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-29", + "TimeText": "2024-08-29", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-011-VF-001" + }, + "value_refs": [ + "E-011-VF-001" + ], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤이 소멸청구 통지를 수령한 뒤에도 서정빌라에 거주하며 유치권을 주장하는 상태 후보이다.", + "action_type": "사실행위(factual acts)", + "payload": { + "possession_object_description": "서정빌라 101호", + "possessor_name": "박광윤", + "co_resident_description": "박광윤의 가족", + "possession_start_date": null, + "lien_validity_status": "legal_theory_required", + "notice_sender_standing_status": "legal_theory_required", + "possession_cause_resolution_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh46", + "id": "bh46", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "유치권 소멸청구 의사표시" + }, + "Action": "강용원과 양정숙의 서정빌라 유치권 소멸·인도 요구 통지와 박광윤의 수령 자인 및 행사권한 부인 항변을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "possession_vindication", + "succession_notice_lien_asset_defense", + "유치권 소멸청구 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원과 양정숙의 서정빌라 유치권 소멸·인도 요구 통지와 박광윤의 수령 자인 및 행사권한 부인 항변을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-29", + "TimeText": "2024-08-29", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-011-VF-001" + ], + "EvidenceTitles": [ + "답 변 서", + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록", + "소멸청구 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-015", + "E-016", + "E-019" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-011-01", + "EVT-011-02", + "EVT-011-05", + "EVT-019-01", + "EVT-019-02" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-11", + "amount_related_values": [ + { + "value_id": "E-011-VF-001", + "value_kind": "PRICE_INSTALLMENT", + "item_label": "공사잔금", + "amount_text": "3억 원", + "amount_value": "300000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "CLAIMED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY" + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원과 양정숙의 서정빌라 유치권 소멸·인도 요구 통지와 박광윤의 수령 자인 및 행사권한 부인 항변을 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh47", + "id": "bh47", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤과 가족의 서정빌라 거주·점유 상태 및 유치권을 근거로 한 점유권원 주장과 반환 요구의 대립을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "possession_vindication", + "succession_notice_lien_asset_defense" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤과 가족의 서정빌라 거주·점유 상태 및 유치권을 근거로 한 점유권원 주장과 반환 요구의 대립을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-08-29", + "TimeText": "2024-08-29", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-011-VF-001" + ], + "EvidenceTitles": [ + "답 변 서", + "등기사항전부증명서(말소사항 포함)-집합건물", + "별지 목록", + "소멸청구 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-015", + "source_title": "등기사항전부증명서(말소사항 포함)-집합건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-015", + "E-016", + "E-019" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-011-03", + "EVT-011-04", + "EVT-011-05", + "EVT-011-06", + "EVT-019-03" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-11", + "amount_related_values": [ + { + "value_id": "E-011-VF-001", + "value_kind": "PRICE_INSTALLMENT", + "item_label": "공사잔금", + "amount_text": "3억 원", + "amount_value": "300000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "CLAIMED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY" + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤과 가족의 서정빌라 거주·점유 상태 및 유치권을 근거로 한 점유권원 주장과 반환 요구의 대립을 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh48", + "id": "bh48", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "유치권 소멸청구 통지" + }, + "Action": "강용원·양정숙이 박광윤에게 유치권 소멸 등을 통지하고 박광윤이 선행 통지 수령을 자인한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "유치권 소멸청구 통지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원·양정숙이 박광윤에게 유치권 소멸 등을 통지하고 박광윤이 선행 통지 수령을 자인한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-01", + "TimeText": "2024-09-01", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "답 변 서", + "소멸청구 통지서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-019", + "source_title": "소멸청구 통지서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011", + "E-019" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원·양정숙이 박광윤에게 유치권 소멸 등을 통지하고 박광윤이 선행 통지 수령을 자인한 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh49", + "id": "bh49", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "부동산 매매" + }, + "Action": "신림동 상가의 오국환에서 오민한 앞으로의 매매등기와 피보전채권·담보·명의신탁 항변의 연결 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "fraudulent_transfer", + "부동산 매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 오국환에서 오민한 앞으로의 매매등기와 피보전채권·담보·명의신탁 항변의 연결 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-13", + "TimeText": "2024-09-13", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 150,000,000원", + "numeric_value": "150000000", + "currency": "KRW", + "value_id": "E-014-VF-003" + }, + "value_refs": [ + "E-003-VF-001", + "E-004-VF-003", + "E-004-VF-006", + "E-014-VF-003", + "E-014-VF-004", + "E-014-VF-005" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서", + "감정평가서", + "내용증명에 대한 답신", + "등기사항전부증명서 (말소사항 포함) -건물", + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003", + "E-004", + "E-010", + "E-014", + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-003-01", + "EVT-010-03", + "EVT-010-04", + "EVT-014-05" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-13", + "amount_alternatives": [ + { + "value_id": "E-014-VF-003", + "value_kind": "TRANSACTION_PRICE", + "item_label": "거래가액", + "amount_text": "금 150,000,000원", + "amount_value": "150000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2023년3월17일", + "date_value": "2023-03-17", + "role": "CONTRACT" + }, + { + "date_text": "2023년3월17일", + "date_value": "2023-03-17", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + }, + { + "value_id": "E-014-VF-004", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "50,000,000원", + "amount_value": "50000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2021년8월1일", + "date_value": "2021-08-01", + "role": "CONTRACT" + }, + { + "date_text": "2021년8월1일", + "date_value": "2021-08-01", + "role": "REGISTRATION" + } + ], + "value_basis": "REGISTERED" + }, + { + "value_id": "E-014-VF-005", + "value_kind": "MAX_SECURED_AMOUNT", + "item_label": "채권최고액", + "amount_text": "150,000,000원", + "amount_value": "150000000", + "currency": "KRW", + "evidence_index": "E-014", + "dates": [ + { + "date_text": "2022년4월18일", + "date_value": "2022-04-18", + "role": "CONTRACT" + }, + { + "date_text": "2022년4월18일", + "date_value": "2022-04-18", + "role": "REGISTRATION" + }, + { + "date_text": "2024년10월17일", + "date_value": "2024-10-17", + "role": "REGISTRATION_CANCELLED" + } + ], + "value_basis": "REGISTERED" + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 오국환에서 오민한 앞으로의 매매등기와 피보전채권·담보·명의신탁 항변의 연결 후보를 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "theory_tracks": { + "creditor_revocation": "evidence_grounded_candidate", + "creditor_subrogation": "not_supported_by_assigned_sources" + }, + "preserved_claim_bundle": { + "origin": "강용원의 오국한에 대한 차용증상 채권", + "link_to_registered_transferor": "review_required" + }, + "fraudulent_transfer_facts": { + "recorded_cause": "매매", + "recorded_transferor": "오국환", + "recorded_transferee": "오민한", + "fraudulence_status": "legal_theory_required" + }, + "debtor_act_hints": { + "act_date": "2023-03-17", + "receipt_no": "제11593호", + "debtor_identity_status": "review_required" + }, + "balance_sheet": { + "known_assets": [ + "신림동 상가", + "포천시 임야 평가자료" + ], + "complete_assets_and_liabilities": false, + "actual_secured_balances": "review_required", + "insolvency_status": "legal_theory_required" + }, + "encumbrance_timeline": [ + { + "date": "2021-08-01", + "event": "나임오 명의 선순위 근저당권설정" + }, + { + "date": "2022-04-18", + "event": "강용일 명의 후순위 근저당권설정" + } + ], + "valuation_matrix": { + "disposition_period": "2023. 1. 1. ~ 2023. 12. 31.", + "appraised_objects": [ + "신림동 상가", + "포천시 임야" + ], + "valuation_does_not_establish_solvency": true + }, + "beneficiary_transferee_hints": { + "recorded_beneficiary": "오민한", + "subsequent_transferee": null, + "actual_consideration_payment": "review_required" + }, + "bad_faith_good_faith_hints": { + "title_trust_assertion_present": true, + "knowledge_assessment": "legal_theory_required" + }, + "defense_rebuttal": { + "title_trust": "각서·답신과 등기명의의 관계 및 효력 검토 필요", + "sufficient_collateral": "감정대상 권리범위와 실제 담보확보 범위 대조 필요" + } + } + } + } + }, + { + "BO_ID": "bh50", + "id": "bh50", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "이행최고" + }, + "Action": "강용원이 오민한에게 신림동 상가 관련 취소·원상회복 또는 배상을 요구하고 오민한이 이행최고서 수령을 자인한 통지 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "demand_notice_lifecycle", + "이행최고" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원이 오민한에게 신림동 상가 관련 취소·원상회복 또는 배상을 요구하고 오민한이 이행최고서 수령을 자인한 통지 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-20", + "TimeText": "2024-09-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명", + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-008", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-008", + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원이 오민한에게 신림동 상가 관련 취소·원상회복 또는 배상을 요구하고 오민한이 이행최고서 수령을 자인한 통지 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh51", + "id": "bh51", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "오민한이 강용원에게 보낸 답신에서 신림동 상가가 명의신탁한 자신의 소유라고 주장하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "sole_ownership_assertion" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 강용원에게 보낸 답신에서 신림동 상가가 명의신탁한 자신의 소유라고 주장하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-09-30", + "TimeText": "2024-09-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-12" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 강용원에게 보낸 답신에서 신림동 상가가 명의신탁한 자신의 소유라고 주장하였다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh52", + "id": "bh52", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "경매매각에 따른 이전등기와 같은 날 성수동 대지에 대한은행 명의 근저당권설정등기가 기재되었다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "경매매각에 따른 이전등기와 같은 날 성수동 대지에 대한은행 명의 근저당권설정등기가 기재되었다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 520,000,000원", + "numeric_value": "520000000", + "currency": "KRW", + "value_id": "E-013-VF-009" + }, + "value_refs": [ + "E-013-VF-009" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "경매매각에 따른 이전등기와 같은 날 성수동 대지에 대한은행 명의 근저당권설정등기가 기재되었다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-11", + "receipt_date": "2024-10-05", + "receipt_no": "제25799호", + "right_holder": "주식회사 대한은행", + "debtor": "이문호" + } + ], + "fractional_effect_events": [], + "derivative_invalidity_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh53", + "id": "bh53", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약" + }, + "Action": "이문호의 경매매각 원인 이전등기에 뒤따른 대한은행 명의 근저당권 설정등기 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호의 경매매각 원인 이전등기에 뒤따른 대한은행 명의 근저당권 설정등기 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "금 520,000,000원", + "numeric_value": "520000000", + "currency": "KRW", + "value_id": "E-013-VF-009" + }, + "value_refs": [ + "E-013-VF-009" + ], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호의 경매매각 원인 이전등기에 뒤따른 대한은행 명의 근저당권 설정등기 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-013-11", + "section": "을구", + "rank_no": "4", + "receipt_no": "제25799호", + "right_holder_name": "주식회사 대한은행", + "debtor_name": "이문호", + "target_scope": "토지 전체", + "value_id": "E-013-VF-009", + "is_deleted": false + } + ], + "derivative_invalidity_status": "legal_theory_required" + } + } + } + }, + { + "BO_ID": "bh54", + "id": "bh54", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지 경매매각에 수반된 기존 근저당권 및 경매개시결정 등기의 말소 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 경매매각에 수반된 기존 근저당권 및 경매개시결정 등기의 말소 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 경매매각에 수반된 기존 근저당권 및 경매개시결정 등기의 말소 후보이다.", + "action_type": null, + "payload": { + "fractional_effect_events": [], + "registry_rows": [ + { + "registry_ref": "REG-013-10", + "section": "을구", + "rank_no": "3", + "receipt_no": "제25798호", + "target_scope": "1번, 2번 근저당권" + }, + { + "registry_ref": "REG-013-07", + "section": "갑구", + "rank_no": "7", + "receipt_no": "제25800호", + "target_scope": "5번 경매개시결정등기" + } + ], + "payment_allocation_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh55", + "id": "bh55", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "이문호 명의로 마쳐진 성수동 대지의 경매매각 원인 소유권이전등기 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호 명의로 마쳐진 성수동 대지의 경매매각 원인 소유권이전등기 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-05", + "TimeText": "2024-10-05", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서(말소사항 포함)-토지" + ], + "Evidence": [ + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-013" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호 명의로 마쳐진 성수동 대지의 경매매각 원인 소유권이전등기 후보이다.", + "action_type": null, + "payload": { + "auction_step": "sale_and_registration", + "dividend_distribution_hints": [], + "registry_rows": [ + { + "registry_ref": "REG-013-06", + "section": "갑구", + "rank_no": "6", + "receipt_no": "제25797호", + "right_holder_name": "이문호", + "target_scope": "토지 전체", + "is_deleted": false + } + ] + } + } + } + }, + { + "BO_ID": "bh56", + "id": "bh56", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권설정계약 해지" + }, + "Action": "신림동 상가의 강용일 명의 근저당권에 대한 해지 원인 말소등기 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt", + "근저당권설정계약 해지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 강용일 명의 근저당권에 대한 해지 원인 말소등기 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-17", + "TimeText": "2024-10-17", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기사항전부증명서 (말소사항 포함) -건물" + ], + "Evidence": [ + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-014" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 강용일 명의 근저당권에 대한 해지 원인 말소등기 후보이다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [ + { + "registry_ref": "REG-014-06", + "section": "을구", + "rank_no": "3", + "receipt_no": "제74586호", + "cause": "해지", + "target_scope": "2번 근저당권" + } + ], + "secured_obligation_extinction_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh57", + "id": "bh57", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박광윤이 임대 차임과 거주 사용이익을 공사대금 원리금에 충당하였다고 주장하는 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "secured_debt" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤이 임대 차임과 거주 사용이익을 공사대금 원리금에 충당하였다고 주장하는 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-10-31", + "TimeText": "2024-10-31", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-011-VF-004" + }, + "value_refs": [ + "E-011-VF-001", + "E-011-VF-002", + "E-011-VF-004" + ], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-10", + "amount_related_values": [ + { + "value_id": "E-011-VF-002", + "value_kind": "RENT", + "item_label": "월", + "amount_text": "200만 원", + "amount_value": "2000000", + "currency": "KRW", + "evidence_index": "E-011", + "value_basis": "AGREED", + "object_label_text": [ + "서정빌라 101호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤이 임대 차임과 거주 사용이익을 공사대금 원리금에 충당하였다고 주장하는 후보이다.", + "action_type": null, + "payload": { + "payment_allocation": [ + { + "benefit_kind": "third_party_rent", + "value_id": "E-011-VF-002", + "allocation_status": "party_assertion" + }, + { + "benefit_kind": "personal_residential_use", + "allocation_status": "party_assertion" + } + ], + "allocation_effect_status": "legal_theory_required", + "actual_allocation_dates": [], + "remaining_balance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh58", + "id": "bh58", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "이문호의 상가 매매대금 수령 후보를 보증금과 구별하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "unjust_enrichment" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호의 상가 매매대금 수령 후보를 보증금과 구별하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-006-VF-003" + }, + "value_refs": [ + "E-006-VF-003", + "E-006-VF-006" + ], + "EvidenceTitles": [ + "계 약 서" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-03" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_alternatives": [ + { + "value_id": "E-006-VF-003", + "value_kind": "DEPOSIT", + "item_label": "보증금", + "amount_text": "3억 원", + "amount_value": "300000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ] + }, + { + "value_id": "E-006-VF-006", + "value_kind": "PRICE_TOTAL", + "item_label": "대금", + "amount_text": "2억 원", + "amount_value": "200000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "매매목적물인 상가" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호의 상가 매매대금 수령 후보를 보증금과 구별하여 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh59", + "id": "bh59", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "박성희의 성수동 대지 및 지상 상가 관리·사용에 따른 이익 귀속 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "land_use_gain" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박성희의 성수동 대지 및 지상 상가 관리·사용에 따른 이익 귀속 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-006-VF-004" + ], + "EvidenceTitles": [ + "감정평가 의견서", + "계 약 서" + ], + "Evidence": [ + { + "evidence_index": "E-005", + "source_title": "감정평가 의견서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-005", + "E-006" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-05" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-006-VF-004", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 300만 원", + "amount_value": "3000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박성희의 성수동 대지 및 지상 상가 관리·사용에 따른 이익 귀속 후보를 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh60", + "id": "bh60", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "토지 임대차계약" + }, + "Action": "이문호와 박성희가 성수동 대지의 임대차를 지상 상가 매매 및 관리·사용 약정과 결합하여 체결하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "lease_contract_formation", + "lease_rent_payment", + "토지 임대차계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호와 박성희가 성수동 대지의 임대차를 지상 상가 매매 및 관리·사용 약정과 결합하여 체결하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-006-VF-003" + }, + "value_refs": [ + "E-006-VF-003", + "E-006-VF-004" + ], + "EvidenceTitles": [ + "계 약 서" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-08", + "amount_related_values": [ + { + "value_id": "E-006-VF-004", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 300만 원", + "amount_value": "3000000", + "currency": "KRW", + "evidence_index": "E-006", + "value_basis": "AGREED", + "object_label_text": [ + "임대목적물인 대지" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호와 박성희가 성수동 대지의 임대차를 지상 상가 매매 및 관리·사용 약정과 결합하여 체결하였다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh61", + "id": "bh61", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "매매 및 소유권보존등기 절차 협력약정" + }, + "Action": "이문호와 박성희가 성수동 지상 상가를 매매하면서 허가명의 변경과 매수인 명의 보존등기 절차 협력을 약정하였다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "general_legal_effect", + "매매 및 소유권보존등기 절차 협력약정" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호와 박성희가 성수동 지상 상가를 매매하면서 허가명의 변경과 매수인 명의 보존등기 절차 협력을 약정하였다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-006-VF-006" + }, + "value_refs": [ + "E-006-VF-006" + ], + "EvidenceTitles": [ + "계 약 서" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-09" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호와 박성희가 성수동 지상 상가를 매매하면서 허가명의 변경과 매수인 명의 보존등기 절차 협력을 약정하였다.", + "action_type": "법률행위(legal acts)", + "payload": { + "registry_rows": [], + "fractional_effect_events": [], + "registration_performance_status": "review_required" + } + } + } + }, + { + "BO_ID": "bh62", + "id": "bh62", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "이문호가 박성희에게 성수동 대지와 지상 상가를 인도한 경위 후보를 계약상 인도 약정과 구별하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "possession_vindication" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이문호가 박성희에게 성수동 대지와 지상 상가를 인도한 경위 후보를 계약상 인도 약정과 구별하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "계 약 서", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-04" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-11" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이문호가 박성희에게 성수동 대지와 지상 상가를 인도한 경위 후보를 계약상 인도 약정과 구별하여 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh63", + "id": "bh63", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": { + "label": "대지 임대차 및 지상 건물 매매" + }, + "Action": "박성희의 성수동 대지 및 지상 상가 관리·사용 상태 후보와 계약상 점유 근거를 분리하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "possession_vindication", + "대지 임대차 및 지상 건물 매매" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박성희의 성수동 대지 및 지상 상가 관리·사용 상태 후보와 계약상 점유 근거를 분리하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "계 약 서", + "등기사항전부증명서(말소사항 포함)-토지", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006", + "E-013", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-006-05" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-11" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박성희의 성수동 대지 및 지상 상가 관리·사용 상태 후보와 계약상 점유 근거를 분리하여 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh64", + "id": "bh64", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "등기말소 청구 통지" + }, + "Action": "강용원의 성수동 대지 근저당권 말소 신청에 대한 은행 답신에서 선행 신청의 존재와 인지 정황이 확인되는 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "registry_cancellation_demand_notice_lifecycle", + "등기말소 청구 통지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원의 성수동 대지 근저당권 말소 신청에 대한 은행 답신에서 선행 신청의 존재와 인지 정황이 확인되는 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-20", + "TimeText": "2024-11-20", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기말소 신청에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-012", + "source_title": "등기말소 신청에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-012" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원의 성수동 대지 근저당권 말소 신청에 대한 은행 답신에서 선행 신청의 존재와 인지 정황이 확인되는 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh65", + "id": "bh65", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "임대차 해지 의사표시" + }, + "Action": "양정숙에 대한 해지 통지와 사용권원 소멸 주장에 따른 사용이익 반환 후보를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "unjust_enrichment", + "임대차 해지 의사표시" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "양정숙에 대한 해지 통지와 사용권원 소멸 주장에 따른 사용이익 반환 후보를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-30", + "TimeText": "2024-11-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명", + "사 업 자 등 록 증", + "임대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-009", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-018", + "source_title": "사 업 자 등 록 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-022", + "source_title": "임대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-009", + "E-018", + "E-022" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "양정숙에 대한 해지 통지와 사용권원 소멸 주장에 따른 사용이익 반환 후보를 보존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh66", + "id": "bh66", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "임대차 해지 통고" + }, + "Action": "윤건우가 양정숙에게 흑석동 상가 임대차 해지와 인도를 요구하는 통지를 발송하고 본인 수령 기록이 남은 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "lease_termination_notice_lifecycle", + "임대차 해지 통고" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "윤건우가 양정숙에게 흑석동 상가 임대차 해지와 인도를 요구하는 통지를 발송하고 본인 수령 기록이 남은 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-11-30", + "TimeText": "2024-11-30", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명" + ], + "Evidence": [ + { + "evidence_index": "E-009", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-009" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "윤건우가 양정숙에게 흑석동 상가 임대차 해지와 인도를 요구하는 통지를 발송하고 본인 수령 기록이 남은 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh67", + "id": "bh67", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "오민한이 해드림 상호·간판의 계속 사용과 변제요구 수령을 인정하면서 기존 채무의 승계책임 및 시효 관련 효력을 다투고 있다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "commercial_successor" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 해드림 상호·간판의 계속 사용과 변제요구 수령을 인정하면서 기존 채무의 승계책임 및 시효 관련 효력을 다투고 있다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024-12-27", + "TimeText": "2024-12-27", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "영업양도 계약서", + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-020", + "source_title": "영업양도 계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-028", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-020", + "E-028" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-03" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 해드림 상호·간판의 계속 사용과 변제요구 수령을 인정하면서 기존 채무의 승계책임 및 시효 관련 효력을 다투고 있다.", + "action_type": "사실행위(factual acts)", + "payload": { + "payment_history": [], + "demand_notice_hints": [ + "전화 변제요구 수령 자인", + "책임부인 답신 발송", + "답신 도달 미확인" + ], + "admission_hints": [ + "상호 및 간판의 실제 계속 사용 자인", + "변제요구 수령 자인은 채무승인과 구별" + ], + "successor_liability_hints": [ + "영업양수인의 상호속용에 따른 책임 후보" + ], + "successor_link_uncertainty": [ + "원채권과 양도 전 영업상 채무의 연결", + "책임배제 특약의 대외적 효력", + "원채무자의 시효중단·포기 사정이 양수인에게 미치는 효력" + ] + } + } + } + }, + { + "BO_ID": "bh68", + "id": "bh68", + "BOType": "state", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "상가 임대차계약" + }, + "Action": "양정숙의 흑석동 상가 임대차·인도 및 사업자등록과 윤건우의 차임 연체 및 매매 해제에 기한 해지 주장이 병존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "lease_relationship", + "lease_rent_payment", + "lease_termination", + "상가 임대차계약" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "양정숙의 흑석동 상가 임대차·인도 및 사업자등록과 윤건우의 차임 연체 및 매매 해제에 기한 해지 주장이 병존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024년 3월, 4월, 8월, 9월", + "TimeText": "2024년 3월, 4월, 8월, 9월", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-022-VF-003" + }, + "value_refs": [ + "E-022-VF-003", + "E-022-VF-004" + ], + "EvidenceTitles": [ + "내용증명", + "사 업 자 등 록 증", + "임대차계약서" + ], + "Evidence": [ + { + "evidence_index": "E-009", + "source_title": "내용증명", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-018", + "source_title": "사 업 자 등 록 증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-022", + "source_title": "임대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-009", + "E-018", + "E-022" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-08", + "amount_related_values": [ + { + "value_id": "E-022-VF-004", + "value_kind": "RENT", + "item_label": "월 차임", + "amount_text": "500만 원", + "amount_value": "5000000", + "currency": "KRW", + "evidence_index": "E-022", + "value_basis": "AGREED", + "object_label_text": [ + "서울 동작구 흑석로 80 지상 철근콘크리트조 슬래브지붕 3층 건물 201호" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "양정숙의 흑석동 상가 임대차·인도 및 사업자등록과 윤건우의 차임 연체 및 매매 해제에 기한 해지 주장이 병존한다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh69", + "id": "bh69", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지의 건물 유무와 보증금 조건별 임료 평가를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지의 건물 유무와 보증금 조건별 임료 평가를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024년도", + "TimeText": "2024년도", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [ + "E-005-VF-003", + "E-005-VF-005", + "E-005-VF-006", + "E-005-VF-007" + ], + "EvidenceTitles": [ + "감정평가 의견서" + ], + "Evidence": [ + { + "evidence_index": "E-005", + "source_title": "감정평가 의견서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-005" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "E-04", + "amount_related_values": [ + { + "value_id": "E-005-VF-003", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 250만 원", + "amount_value": "2500000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-005", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 400만 원", + "amount_value": "4000000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-006", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 350만 원", + "amount_value": "3500000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-007", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 500만 원", + "amount_value": "5000000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지의 건물 유무와 보증금 조건별 임료 평가를 보존한다.", + "action_type": "사실행위(factual acts)" + } + } + }, + { + "BO_ID": "bh70", + "id": "bh70", + "BOType": "event", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 대지 전체의 임료 평가를 건물 유무와 보증금 조건별 시나리오로 분리하여 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "valuation" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 대지 전체의 임료 평가를 건물 유무와 보증금 조건별 시나리오로 분리하여 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "2024년도", + "TimeText": "2024년도", + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "3억 원", + "numeric_value": "300000000", + "currency": "KRW", + "value_id": "E-005-VF-002" + }, + "value_refs": [ + "E-005-VF-002", + "E-005-VF-003", + "E-005-VF-005", + "E-005-VF-006", + "E-005-VF-007" + ], + "EvidenceTitles": [ + "감정평가 의견서", + "등기사항전부증명서(말소사항 포함)-토지", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-005", + "source_title": "감정평가 의견서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-013", + "source_title": "등기사항전부증명서(말소사항 포함)-토지", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-005", + "E-013", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2", + "amount_related_values": [ + { + "value_id": "E-005-VF-003", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 250만 원", + "amount_value": "2500000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-005", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 400만 원", + "amount_value": "4000000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-006", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 350만 원", + "amount_value": "3500000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + }, + { + "value_id": "E-005-VF-007", + "value_kind": "RENT", + "item_label": "차임", + "amount_text": "월 500만 원", + "amount_value": "5000000", + "currency": "KRW", + "evidence_index": "E-005", + "value_basis": "APPRAISED", + "object_label_text": [ + "서울 성동구 성수동 256 대 330㎡" + ], + "value_type": "MONEY", + "per": [ + "월" + ] + } + ] + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 대지 전체의 임료 평가를 건물 유무와 보증금 조건별 시나리오로 분리하여 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "성수동 대지", + "valuation_kind": "rent_value", + "valuation_scope": "토지 전체", + "scenario_selection": "미확정", + "legacy_valuation_projection": { + "evidence_indexes": [ + "E-005", + "E-013", + "E-016" + ], + "basis_period": "2024년도", + "scenarios": [ + "건물 있음·보증금 조건 있음", + "건물 있음·보증금 없음", + "나대지·보증금 조건 있음", + "나대지·보증금 없음" + ] + } + } + } + } + }, + { + "BO_ID": "bh71", + "id": "bh71", + "BOType": "state", + "ActionType": "사실행위(factual acts)", + "JuristicAct": null, + "Action": "성수동 지상 건물을 대지와 구별하고 매매에 따른 인도·관리 및 보존등기 협력 약정의 상태를 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "asset_state" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "성수동 지상 건물을 대지와 구별하고 매매에 따른 인도·관리 및 보존등기 협력 약정의 상태를 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": "계약 당일 대금 지급과 동시에", + "TimeText": "계약 당일 대금 지급과 동시에", + "TimePrecision": null, + "StatementType": "state", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "2억 원", + "numeric_value": "200000000", + "currency": "KRW", + "value_id": "E-006-VF-006" + }, + "value_refs": [ + "E-006-VF-006" + ], + "EvidenceTitles": [ + "계 약 서", + "별지 목록" + ], + "Evidence": [ + { + "evidence_index": "E-006", + "source_title": "계 약 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-016", + "source_title": "별지 목록", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-006", + "E-016" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X2" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "성수동 지상 건물을 대지와 구별하고 매매에 따른 인도·관리 및 보존등기 협력 약정의 상태를 보존한다.", + "action_type": "사실행위(factual acts)", + "payload": { + "asset_alias": "성수동 건물", + "ownership": "매매 및 보존등기 협력 약정만 확인되며 실체 귀속은 미확정", + "possession": "대금 지급과 동시 인도 약정", + "use": "완납 후 박성희의 관리·사용 약정", + "benefit": "실제 수익 귀속 미확인", + "legacy_identity_projection": { + "evidence_indexes": [ + "E-006", + "E-016" + ] + }, + "legacy_state_projection": { + "evidence_indexes": [ + "E-006" + ] + } + } + } + } + }, + { + "BO_ID": "bh72", + "id": "bh72", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "근저당권 해지" + }, + "Action": "신림동 상가의 처분 후 근저당권 말소에 따른 회복방식·상한 후보와 수익자의 상계·감액 항변을 보존한다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "actio_remedy_or_cap", + "근저당권 해지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "신림동 상가의 처분 후 근저당권 말소에 따른 회복방식·상한 후보와 수익자의 상계·감액 항변을 보존한다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": { + "value_text": "5,000만 원", + "numeric_value": "50000000", + "currency": "KRW", + "value_id": "E-010-VF-002" + }, + "value_refs": [ + "E-003-VF-003", + "E-004-VF-004", + "E-010-VF-002", + "E-010-VF-003", + "E-010-VF-004" + ], + "EvidenceTitles": [ + "각서 및 금전소비대차계약서", + "감정평가서", + "내용증명에 대한 답신", + "등기사항전부증명서 (말소사항 포함) -건물", + "차용증" + ], + "Evidence": [ + { + "evidence_index": "E-003", + "source_title": "각서 및 금전소비대차계약서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-004", + "source_title": "감정평가서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-014", + "source_title": "등기사항전부증명서 (말소사항 포함) -건물", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + }, + { + "evidence_index": "E-024", + "source_title": "차용증", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-003", + "E-004", + "E-010", + "E-014", + "E-024" + ], + "provenance": { + "source_event_candidate_ids": [ + "EVT-003-03", + "EVT-010-05", + "EVT-014-06", + "EVT-014-07" + ], + "source_meeting_clause_ids": [], + "source_domain": "E-13" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "신림동 상가의 처분 후 근저당권 말소에 따른 회복방식·상한 후보와 수익자의 상계·감액 항변을 보존한다.", + "action_type": "법률행위(legal acts)", + "payload": { + "encumbrance_timeline": [ + { + "date": "2024-10-17", + "event": "강용일 명의 근저당권 해지 말소", + "payment_cause": "review_required" + } + ], + "valuation_matrix": { + "object_description": "신림동 상가", + "period": "2024. 1. 1. ~ 현재", + "close_date_binding": "review_required" + }, + "remedy_mode_hints": { + "original_return": "legal_theory_required", + "value_compensation": "legal_theory_required", + "automatic_conversion": false + }, + "value_compensation_cap_hints": { + "preserved_claim_balance": "review_required", + "actual_encumbrance_deductions": "review_required", + "recoverable_common_collateral": "legal_theory_required", + "calculation_result": null + }, + "defense_rebuttal": { + "setoff_assertion": "債務者に対する債権を用いた相殺・減額の主張", + "assessment_status": "legal_theory_required", + "deduction_applied": false + }, + "legacy_actio_projection": { + "target": "actio / linked_actio_structures", + "structure_type": "actio_remedy_or_cap", + "projection_status": "candidate_only" + } + } + } + } + }, + { + "BO_ID": "bh73", + "id": "bh73", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "계약조건 변경 요청 통지" + }, + "Action": "이수인이 윤건우에게 흑석동 상가 매매대금 감액과 타인 명의 이전등기를 요청하는 통지를 발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "contract_change_request_notice_lifecycle", + "계약조건 변경 요청 통지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "이수인이 윤건우에게 흑석동 상가 매매대금 감액과 타인 명의 이전등기를 요청하는 통지를 발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-029", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-029" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "이수인이 윤건우에게 흑석동 상가 매매대금 감액과 타인 명의 이전등기를 요청하는 통지를 발송한 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh74", + "id": "bh74", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "구두 이행최고" + }, + "Action": "강용원의 김선웅 채무 변제 요구를 전화로 받았다는 오민한의 자인에 근거한 별도 구두 통지 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "oral_demand_notice_lifecycle", + "구두 이행최고" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "강용원의 김선웅 채무 변제 요구를 전화로 받았다는 오민한의 자인에 근거한 별도 구두 통지 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-028", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-028" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "강용원의 김선웅 채무 변제 요구를 전화로 받았다는 오민한의 자인에 근거한 별도 구두 통지 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh75", + "id": "bh75", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "등기말소 청구 거절 통지" + }, + "Action": "주식회사 대한은행이 강용원에게 성수동 대지 근저당권 말소 신청을 거절하는 답신을 발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "등기말소 청구 거절 통지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "주식회사 대한은행이 강용원에게 성수동 대지 근저당권 말소 신청을 거절하는 답신을 발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "등기말소 신청에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-012", + "source_title": "등기말소 신청에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-012" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "주식회사 대한은행이 강용원에게 성수동 대지 근저당권 말소 신청을 거절하는 답신을 발송한 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh76", + "id": "bh76", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "의사의 통지" + }, + "Action": "박광윤이 강용원·양정숙에게 유치권 소멸청구에 반박하는 답변서를 작성·발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "의사의 통지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "박광윤이 강용원·양정숙에게 유치권 소멸청구에 반박하는 답변서를 작성·발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "답 변 서" + ], + "Evidence": [ + { + "evidence_index": "E-011", + "source_title": "답 변 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-011" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "박광윤이 강용원·양정숙에게 유치권 소멸청구에 반박하는 답변서를 작성·발송한 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh77", + "id": "bh77", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "의사의 통지" + }, + "Action": "오민한이 강용원에게 신림동 상가 관련 최고에 반박하는 답신을 작성·발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "의사의 통지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 강용원에게 신림동 상가 관련 최고에 반박하는 답신을 작성·발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "내용증명에 대한 답신" + ], + "Evidence": [ + { + "evidence_index": "E-010", + "source_title": "내용증명에 대한 답신", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-010" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 강용원에게 신림동 상가 관련 최고에 반박하는 답신을 작성·발송한 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + }, + { + "BO_ID": "bh78", + "id": "bh78", + "BOType": "event", + "ActionType": "법률행위(legal acts)", + "JuristicAct": { + "label": "의사의 통지" + }, + "Action": "오민한이 강용원에게 해드림 관련 변제책임을 부인하는 통지서를 작성·발송한 lifecycle 후보이다.", + "Reason": "source evidence 및 event candidate에 의해 독립적으로 확인되는 BO", + "PriorAct": null, + "ReasonRefs": [], + "Legal_Keywords": [ + "succession_notice_lien_asset_defense", + "의사의 통지" + ], + "core_field_base": { + "Performer": null, + "PerformerType": null, + "Action_proposal": "오민한이 강용원에게 해드림 관련 변제책임을 부인하는 통지서를 작성·발송한 lifecycle 후보이다.", + "Subject": null, + "Object": null, + "BehaviorTime": null, + "TimeText": null, + "TimePrecision": null, + "StatementType": "event", + "Perspective": "plaintiff" + }, + "amount": null, + "value_refs": [], + "EvidenceTitles": [ + "통 지 서" + ], + "Evidence": [ + { + "evidence_index": "E-028", + "source_title": "통 지 서", + "priority_class": null, + "relevant_content": null, + "authentication_status": null, + "corroboration": null, + "selection_basis": "source_evidence_indexes membership" + } + ], + "source_evidence_indexes": [ + "E-028" + ], + "provenance": { + "source_event_candidate_ids": [], + "source_meeting_clause_ids": [], + "source_domain": "X1" + }, + "downstream_seed_refs": { + "claim_group_seed_refs_proposed": [], + "canonical_theory_graph_seed_ref_proposed": null, + "legal_effect_structure_seed_ref_proposed": null + }, + "extensions": { + "domain_payload": { + "action_summary": "오민한이 강용원에게 해드림 관련 변제책임을 부인하는 통지서를 작성·발송한 lifecycle 후보이다.", + "action_type": "법률행위(legal acts)" + } + } + } +] diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고_R0_통계치_with_high_part_2.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고_R0_통계치_with_high_part_2.md new file mode 100644 index 00000000..b1832ee4 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고_R0_통계치_with_high_part_2.md @@ -0,0 +1,130 @@ +# Stage 1 Part 2 R0 통계치 (2026-11-04 실행) + +- **대상:** `stage_1_part_2_v.8.yml`(`22ac686f…`)의 workspace `11월_1일_구성` 실행. 세션 `7f798164`, 04:50:58~04:59:31 UTC. worker 15개는 GPT-6.1 Sol, reasoning high. +- **근거(모두 읽기 전용):** + - `agent-backend` 로그. R0 stdout과 에러 문자열을 확인했다. + - localdocs에서 읽은 산출물: + - worker 원본 `runtime/domain_seed_outputs/.json` 15개 + - R0 수용본 `stage1_tmp/task_c_bo/admitted_seeds/.json` 15개 + - `stage1_tmp/task_c_bo/postb_seed_ledger.json` + - `quality_gates/stage1_part2_review_handoff.json` + - `BO.json` + - 집계 스크립트: scratchpad `p2c/r0_stats.py`. +- **용도:** 다음 비교 실행(예: worker reasoning medium)의 기준선. + +## 요약 + +| 항목 | 값 | +|---|---| +| R0 상태 | `READY`. **BLOCK 0, 격리 0, 거부 0** | +| 수용 처분(`admission_records`) | 610건 = 보정 607(`repair_harvest` 532 · `repair_derive` 75) + review 3 | +| 후보 → BO | worker 후보 107 → 수용 107 → BO 107(소실 0, 병합 흡수 0) | +| review 항목 | worker 원본 seed 330건(후보 `review_items` 306 + `unknown_or_unrouted_reviews` 24). R0·F0를 거친 review handoff 1,145건(모두 `SOFT_WARNING`, 최종 작성 차단 0) | +| 증거 슬롯(483개) | filled 223(46.2%) · partial 177(36.6%) · missing 66(13.7%) · conflicted 17(3.5%) | + +## 1. R0 격리·거부 건수와 BLOCK 여부 + +- **BLOCK 없음.** R0 stdout은 `"status": "READY"`이고 ledger도 `READY`다. + - 로그에 `PART2_SEED_ADMISSION_BLOCKED`와 `source_refs outside Stage A universe`가 각각 보인다. 그러나 둘 다 task에 넘긴 코드 본문(`params=`) 안의 문자열이며, 실행 결과로 나온 것이 아니다. +- **격리 0, 거부 0.** ledger의 `SEED_ADMISSION_SUMMARY`는 `enforcement: enforce`, `quarantined_candidates: 0`, `admitted_candidates: 107`, `quarantine_ratio: 0.0`이다. +- **처분 610건은 후보를 버리지 않는 보정이다.** R0는 이 기록을 review handoff에 `R0:admission:NNN`으로 남긴다. + +| 처분 | 원인 코드 | 건수 | 내용 | +|---|---|---:|---| +| `repair_harvest` | `SCHEMA_PATTERN` | 400 | `party_refs`(280)에 한글 이름, `object_refs`(120)에 문장. 패턴 `^[A-Za-z][A-Za-z0-9_.:/-]*$` 위반이라 값을 `worker_surplus`로 옮겼다 | +| `repair_harvest` | `SCHEMA_TYPE` | 132 | `dependency_refs`에 `{"domain_id","source_refs"}` 객체를 적었다. 도메인 id 문자열이어야 한다 | +| `repair_derive` | `SCHEMA_REQUIRED` | 75 | `completion_receipt` 필수 5키(`domain_id`·`task_instance_id`·`seed_count`·`emitted_seed_ids`·`r0_membership_key`)가 15개 도메인 모두에서 빠져 R0가 채웠다 | +| `review` | `SCHEMA_ADDITIONAL_PROPERTY` | 3 | X1 `completion_receipt`에 스키마 밖 키 3개 | + +- 도메인별 처분 건수는 §2 표의 "처분" 열에 있다. +- `repair_derive`는 X3를 포함한 모든 도메인에서 5건씩이다. 나머지 도메인 차이는 모두 `repair_harvest` 건수다. + +## 2. 도메인별 `bo_seed_candidates` 수와 BO 수 + +| 도메인 | worker 후보 | 수용 | BO | 후보 review | unrouted | handoff 항목 | 처분(harvest/derive/review) | +|---|---:|---:|---:|---:|---:|---:|---| +| E-01 | 5 | 5 | 5 | 14 | 2 | 50 | 17 / 5 / 0 | +| E-02 | 13 | 13 | 13 | 34 | 1 | 119 | 52 / 5 / 0 | +| E-03 | 3 | 3 | 3 | 11 | 1 | 47 | 23 / 5 / 0 | +| E-04 | 9 | 9 | 9 | 27 | 2 | 93 | 39 / 5 / 0 | +| E-07 | 1 | 1 | 1 | 4 | 1 | 15 | 3 / 5 / 0 | +| E-08 | 3 | 3 | 3 | 20 | 2 | 46 | 12 / 5 / 0 | +| E-09 | 24 | 24 | 24 | 61 | 3 | 238 | 131 / 5 / 0 | +| E-10 | 14 | 14 | 14 | 25 | 2 | 142 | 88 / 5 / 0 | +| E-11 | 5 | 5 | 5 | 13 | 2 | 58 | 26 / 5 / 0 | +| E-12 | 1 | 1 | 1 | 3 | 1 | 16 | 4 / 5 / 0 | +| E-13 | 5 | 5 | 5 | 18 | 2 | 76 | 39 / 5 / 0 | +| E-15 | 2 | 2 | 2 | 7 | 1 | 28 | 11 / 5 / 0 | +| X1 | 12 | 12 | 12 | 40 | 2 | 111 | 40 / 5 / 3 | +| X2 | 10 | 10 | 10 | 23 | 2 | 100 | 47 / 5 / 0 | +| X3 | 0 | 0 | 0 | 0 | 1 | 6 | 0 / 5 / 0 | +| **합계** | **107** | **107** | **107** | **306** | **24** | **1,145** | **532 / 75 / 3** | + +- **BO 수는 모든 도메인에서 후보 수와 같다.** F0 게이트 `candidate_conservation`이 "BO 107 + absorbed 0 == ledger 107"로 PASS했다. 근접 중복 군집 20개는 모두 `KEEP_SEPARATE`로 유지됐다. +- **BO 유형:** event 92, state 15. 금액이 결속된 BO는 57건이다. +- **X3**는 seed 상태가 `READY_WITH_REVIEW`인데 후보가 0이다. D0 선별 근거도 0건이었다(slice `positive_refs` 0). +- **handoff 항목**에는 도메인 귀속 항목만 셌다. 같은 순서로 대응한다. + +## 3. `review_items` 수 + +| 층 | 건수 | 구성 | +|---|---:|---| +| worker 원본 seed | 330 | 후보 `review_items` 306 + `unknown_or_unrouted_reviews` 24 | +| review handoff(최종) | 1,145 | 아래 표 | + +| handoff `issue_type` | 건수 | 비고 | +|---|---:|---| +| `seed_admission_repair` | 610 | §1의 R0 처분 | +| `review_required` | 325 | 도메인 review | +| `EXTENSION_PAYLOAD_KEY_UNDECLARED` | 107 | F0, BO 전부 | +| `amount_or_date_uncertain` | 80 | | +| `near_duplicate_kept_separate` | 20 | | +| `schema_field_fallback` | 3 | | + +- 심각도는 1,145건 모두 `SOFT_WARNING`이다. `blocks_final_drafting: true`는 0건이다. +- **도메인 review 상위 코드:** + - `E09_CAUSE_REGISTRY_MISMATCH_REVIEW` 32 + - `UNROUTED_ISSUE_REVIEW` 26 + - `UNREGISTERED_EFFECT_TYPE_REVIEW` 24 + - `E09_THIRD_PARTY_CONSENT_REVIEW` 24 + - `E02_PAYMENT_STATUS_CONFLICT` 12 + - `X2_STATE_OR_LINEAGE_CONFLICT` 12 +- 1,145건의 53%는 worker 형식 오류에서 나온 보정 기록이다. 순수한 판단 review는 325건 + 80건이다. + +## 4. `evidence_slot_status`의 filled/missing 분포 + +| 도메인 | filled | partial | missing | conflicted | 슬롯 합계 | filled 비율 | +|---|---:|---:|---:|---:|---:|---:| +| E-01 | 7 | 9 | 1 | 0 | 17 | 41% | +| E-02 | 40 | 17 | 1 | 0 | 58 | 69% | +| E-03 | 2 | 7 | 0 | 0 | 9 | 22% | +| E-04 | 12 | 26 | 16 | 4 | 58 | 21% | +| E-07 | 2 | 2 | 4 | 0 | 8 | 25% | +| E-08 | 5 | 13 | 3 | 2 | 23 | 22% | +| E-09 | 60 | 37 | 23 | 0 | 120 | 50% | +| E-10 | 4 | 21 | 3 | 0 | 28 | 14% | +| E-11 | 20 | 11 | 0 | 3 | 34 | 59% | +| E-12 | 0 | 1 | 1 | 0 | 2 | 0% | +| E-13 | 2 | 8 | 1 | 3 | 14 | 14% | +| E-15 | 2 | 2 | 1 | 0 | 5 | 40% | +| X1 | 43 | 6 | 10 | 1 | 60 | 72% | +| X2 | 24 | 17 | 2 | 4 | 47 | 51% | +| X3 | 0 | 0 | 0 | 0 | 0 | — | +| **합계** | **223** | **177** | **66** | **17** | **483** | **46.2%** | + +- **R0는 슬롯 판정을 바꾸지 않았다.** worker 원본과 수용본의 분포가 15개 도메인 모두 같다. +- **missing이 많은 도메인:** E-04 16, E-09 23, X1 10. 세 도메인이 missing의 74%다. +- **filled 비율이 낮은 도메인:** E-10 14%, E-13 14%, E-04 21%, E-03 22%. partial이 대부분이다. +- **conflicted 17건:** E-04 4, X2 4, E-11 3, E-13 3, E-08 2, X1 1. 상충 근거가 함께 있는 슬롯이다. + +## 5. 해석과 비교 시 볼 점 + +1. **수용 단계는 건전하다.** BLOCK·격리·소실이 모두 0이다. 처분 610건은 전부 형식 보정이고 후보 내용은 유지됐다. +2. **다만 보정 532건은 정보 손실을 동반한다.** `party_refs`·`object_refs`·`dependency_refs`의 값이 BO에 투영되지 않아, BO 107건의 `core_field_base.Object`가 모두 null이다. 원인은 worker 프롬프트가 이 칸들의 식별자 형식을 알려 주지 않는 것이다(`결과보고서_1_part_2.md` §4-2). +3. **reasoning을 medium으로 낮춰 비교할 때 볼 지표:** + - 수용 처분 610건과 그중 `repair_harvest` 532건 + - 격리 건수 + - 도메인별 후보 수(E-09 24, E-10 14, E-02 13) + - 슬롯 filled 비율 46.2%와 missing 66건 + - 도메인 review 325건 +4. **검증 범위:** 숫자는 산출물 파일에서 직접 셌다. 법률적 정확성은 판단하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_1_part_2.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_1_part_2.md new file mode 100644 index 00000000..80395fa6 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_1_part_2.md @@ -0,0 +1,95 @@ +# Stage 1 Part 2 결과보고서 1 (2026-11-04 실행) + +- **대상:** `stage_1_part_2_v.8.yml`(11-04 일치성 개정판 `22ac686f…`, task 9종). +- **실행:** workspace `11월_1일_구성`, 세션 `7f798164`, 2026-11-04 04:50:58 ~ 04:59:31 UTC(8분 33초). +- **근거:** + - `agent-backend` 로그(코드 task stdout, `[USAGE]`). + - localdocs `read_docs`로 읽은 산출물(seed 15, ledger, exception pack, review handoff, R1 판정, BO.json, slice·공유 우주, 서버 자산 366건). + - 모두 읽기 전용으로 확인했다. + +## 1. 판정 — **부분 성공**: BO까지 완성, 마지막 S0(signal) 실패 + +| 기준 | 결과 | +|---|---| +| 백엔드 | task 36건 중 35건 성공. `Task_C_BO_S0_signal_bundle_writer`가 2회 시도 모두 `exit_code=1`로 끝나 `task_error`가 1건 났다. `execution_complete`는 나왔다 | +| 핵심 산출물 | A0 `READY`, fan-out `CLEARED`(15), seed 15건 `READY_WITH_REVIEW`, R0 `READY`, R1 `READY`, F0 `PASS`. **`BO.json` 107건 작성** | +| 실패 원인 | `MODULE_MIRROR_HASH_MISMATCH:Default_Agent/signals/adapters/s3_domain_seed_adapter.txt`. 서버 workspace 사본(7,223자, sha `0aa58a1d…`)은 10-31 개정 전 판본이다. manifest가 기대하는 값은 `0372ac56…`이고 로컬과 174행이 다르다. `signals/emitters/emitter_runtime.txt`도 서버 사본이 옛 판본이어서, adapter를 고쳐도 다음 검사에서 같은 오류가 난다 | +| 영향 | Part 2 signal 묶음(SG-02~13, `compatibility_views/*`)이 만들어지지 않았다. 잔재 파일도 없다(`actio_case_signals.json` 등 not found). **Part 3·S2가 signal을 읽는다면 이 회차로는 진행할 수 없다** | +| 이번 개정 | 개정 4건이 모두 실행에서 확인됐다(§3). A0 봉인 대조, 모듈 해시, manifest pin(`a828e962…`)도 모두 통과했다 | + +**왜 A0는 통과하고 S0만 멈췄나.** A0는 자기가 반입하는 stage1_runtime 모듈 8개만 manifest와 대조한다. 이번에 올린 두 모듈과 manifest는 서버 사본이 로컬과 같다. 반면 S0는 signal adapter 4개, emitter 13개, compiler 7개를 반입하는데, 그중 10-31 이후 바뀐 두 파일이 서버에 올라가지 않았다. + +서버에 아예 없는 manifest 항목도 214건 있다(computations, law_versions, router 등). Part 2 task 중 이 파일을 읽는 것은 없으므로 이번 실패와는 관계없다. + +## 2. IO 구조 (DAG) + +``` +[입력·Part 1] handoff(digest_guard 7키) · domain_screening · domain_activation_manifest · evidence_indexed + · evidence_event_candidates · value_facts(+gate) · client_meeting.md · 배포 자산(Default_Agent/*) + +A0 (코드 4.5s) ─ 봉인 대조(screening·manifest·registry + C-05 증거·사건) · 모듈 반입 · stage_a · slice 15 + ├▶ stage1_tmp/task_c_bo/{stage_a_context, source_universe_manifest, value_facts_catalog}.json + ├▶ runtime/domain_slices/.json ×15 · runtime/compiled_prompts/.md ×15 + └▶ runtime/shared/{source_universe.json(254,830자), vocabulary.md} · runtime/worker_inputs/.json ×15 + │ +prewarm (Sol 3.3s, 캐시 113,723토큰 생성) ─▶ load_fanout (코드) ─▶ fanout/domain_fanout_plan.json + │ + ▼ 동시 8개씩 +worker_* ×15 (GPT-6.1 Sol high, 11~268s) ─▶ capture_* ×15 ─▶ runtime/domain_seed_outputs/.json + │ (all) +R0 (코드 4.1s) ─▶ stage1_tmp/task_c_bo/{admitted_seeds/.json, postb_seed_ledger.json} + └▶ quality_gates/stage1_part2_exception_pack.json (예외 13) + ▼ +R1 (Flash-Lite 8.4s) ─▶ stage1_tmp/task_c_bo/postb_adjudication_decisions.json + ▼ +F0 (코드 3.5s) ─▶ BO.json (107) · postb_compiled_bundle_compact.json · quality_gates/stage1_part2_review_handoff.json + ▼ +S0 (코드) ✗ MODULE_MIRROR_HASH_MISMATCH ─▶ (signals/* · compatibility_views/* 미생성) +``` + +## 3. 산출물 검증 (YAML 의도 대비) + +| 구간 | 실측 | YAML 의도 | 판정 | +|---|---|---|---| +| A0 | 15개 도메인 모두 slice 작성, 오류 0. 경고는 `PREFLIGHT_FILE_NEAR_LIMIT`(공유 우주 254,830자 > 90%) 1건. 도메인별 합계 최대 382,724자(X2), 한도 500,000자. value_facts `BOUND` | 봉인·반입·한도 검사 후 slice와 worker 입력 작성 | **정상** | +| C-05 봉인 | 증거·사건 파일 sha가 handoff `digest_guard`와 일치해 통과 | 바뀐 파일이면 `SEAL_FAILED` | **정상** | +| C-01 선별 | X2: `positive_refs` 10, `confidence` high, `selected_sources` 10. E-09: 5 / high / 5 | 이전에는 늘 0 / low | **의도대로 바뀜** | +| C-03 투영 | 공유 우주의 사건 100건 모두 `support_locators[{directness}]`. `obligation_direction`은 12건 | 오프라인 실측(12)과 같음 | **정상** | +| worker·C-07 | seed 15개 모두 `READY_WITH_REVIEW`. 후보 107(E-09 24, E-10 14, E-02 13, X1 12, X2 10 …, X3 0). 조항 id(`MTG.`·`:`) 인용 0. R0 BLOCK 0 | 조항 id를 인용하면 R0가 BLOCK | **정상** | +| R0 수용 | ledger 107, 완전 중복 0, 근접 중복 군집 20. 수용 보정 610건 | 스키마 밖 값은 보정하고 review를 남김 | **동작 정상, 품질 문제 있음(§4-2)** | +| R1 | 예외 13건(모두 `field_conflict`), 13건 모두 `KEEP_SEPARATE` | 예외가 있을 때만 판정 | **정상** | +| F0 | BO 107 = ledger 107(보존 등식 PASS). event 92, state 15. 금액 57건(value_id 결속, 강등 0). 게이트 7종 PASS | BO 스키마·참조·금액 결속 | **정상** | +| review handoff | `FINALIZED`. 1,145건 모두 `SOFT_WARNING`. `blocks_final_drafting` 0 | 하류(Stage 2)로 넘김 | **정상(양이 많음)** | +| S0 | 실패 | signal 묶음 작성 | **실패(§1)** | + +## 4. 런타임·비용과 품질 문제 + +1. **런타임:** 총 8분 33초 중 worker 단계가 7분 46초다. + - worker는 동시 8개까지만 돌았다. 04:51:17에 8개가 시작했고, 나머지는 자리가 날 때마다 시작했다. + - 마지막 worker_13은 04:54:55에 시작해 245초가 걸렸다. 실제 임계 경로는 "가장 느린 호출"이 아니라 "동시 실행 한도 + 늦게 시작한 무거운 호출"이다. + - 비용은 $3.08이다(GPT-6.1 Sol 16회 $3.05, Flash-Lite 1회 $0.03). prewarm 캐시는 worker 15회 모두 113,723토큰 적중했다. +2. **R0 보정 610건: worker가 스키마 패턴을 지키지 않는다.** + - `party_refs` 280건: "강용원" 같은 한글 이름. + - `object_refs` 120건: "인테리어 자재 물품대금 채무를…" 같은 문장. + - `dependency_refs` 132건: `{"domain_id","source_refs"}` 객체. + - 15건씩: `completion_receipt`의 필수 5키 누락. + - 이 값은 모두 `worker_surplus`로 옮겨져 BO에 반영되지 않는다. 그래서 **BO 107건 모두 `core_field_base.Object`가 null**이다. + - `Performer`·`Subject`는 원래 R0가 투영하지 않는 칸이다(설계상 null). + - 원인은 프롬프트에 있다. `object_refs[]`는 "목적물 식별자 문자열", `party_roles[].party_refs`는 형식 안내 없이 적혀 있고, 스키마 패턴 `^[A-Za-z][A-Za-z0-9_.:/-]*$`를 말하지 않는다. 이번 개정 전부터 있던 문제다. +3. **review 항목이 많다.** + - 1,145건 = 수용 보정 610 + 도메인 review 325 + `EXTENSION_PAYLOAD_KEY_UNDECLARED` 107(BO 전부) + 금액·날짜 불확실 80 + 근접 중복 20 등. + - 모두 SOFT라 진행은 막지 않는다. 다만 하류 검토 부담이 크다. + +## 5. 다음 조치 + +1. **(필수, S0 복구)** 로컬 `v.7/extension_research/Default_Agent/` 아래 두 파일을 서버 workspace 같은 경로에 올리고, 다시 실행해 S0를 확인한다. `.py` 사본도 manifest에 같은 해시로 있다. + - `signals/adapters/s3_domain_seed_adapter.txt`(`0372ac56…`) + - `signals/emitters/emitter_runtime.txt` + - 업로드 전에 manifest의 `signals/*`, `compiler/*` 항목 전체를 서버 사본과 대조하면 같은 실패가 반복되지 않는다. 이번 대조에서 내용이 다른 파일은 위 2건뿐이었다. +2. **(권장)** worker 프롬프트 ``(prewarm·worker 두 블록, 바이트 동일 유지)에 두 가지를 명시한다. + - `party_refs`·`object_refs`는 영문 식별자 패턴만 쓴다. 이름과 문장은 `excerpt`·`reason`에 적는다. + - `dependency_refs`는 도메인 id 문자열만 쓴다. + - 그러면 `Object` 소실과 보정 review 약 530건이 줄어든다. +3. **(확인)** E-04·E-11·E-13·X2 overlay가 새로 채워진 `selected_sources`로 의도대로 작동하는지 seed 내용으로 점검한다(C-17). + +**검증 범위:** 산출물의 법률적 정확성은 검증하지 않았다. 형식, 흐름, 계약 준수만 확인했다. 비용은 백엔드 `[USAGE]` 단가표 기준이다. 비교할 이전 Part 2 성공 회차가 같은 입력으로는 없어서, 개정 전후 품질 비교는 하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_2_part_1.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_2_part_1.md new file mode 100644 index 00000000..2c8eb5c4 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_2_part_1.md @@ -0,0 +1,90 @@ +# Stage 1 Part 1 결과보고서 2 (2026-11-04 2차 실행) + +- **대상:** `stage_1_part_1_v.8.yml`, sha256 `4cf8c5b7…`, task 29개. + - 로컬 저장은 10:32:54 KST, 업로드는 10:33:31 KST다. +- **직전 판(`_11_04_10_30am.yml`, `2450ea53…`)과의 차이는 두 줄뿐이다.** + - `Task_A0_domain_screener_01`: `llm_reasoning` medium → **low** + - `Task_V1_value_facts_*`: `llm_reasoning` medium → **low** +- **실행:** workspace `11월_1일_구성`, 세션 `83ad5831`, 2026-11-04 01:33:42 ~ 01:39:27 UTC. +- **근거:** + - `agent-backend` 로그 28,258행과 localdocs 산출물 75개. 모두 읽기 전용으로 확인했다. + - 비교 대상은 1차 실행(세션 `b077789a`, 결과보고서 `결과보고서_part_1.md`)이다. + +## 1. 판정 — **성공** (`READY_WITH_REVIEW`) + +| 기준 | 결과 | +|---|---| +| 백엔드 | task 199개 모두 `task_complete`, `execution_complete` 1회. 코드 task 106건 모두 `error_code=0`, iteration 2 재시도 0 | +| 일시 오류 1건 | `V1c_value_facts_capture_3`의 code-executor 호출 1차 시도가 `SSE stream ended without a response`로 끊겼다. 브리지가 자동 재시도해 11.1초 만에 성공했다. 결과에 영향은 없다 | +| Part 1 판정 | handoff **`READY_WITH_REVIEW`**, `stage2_auto_progression_allowed: true`, hard gate 0 | +| 검토 항목 | 25건(B1 6 · B2 7 · D0 12). 최종 작성 차단 2건은 D0의 `E08_TERM_RENEWAL_CONFLICT`와 `E13_CONSIDERATION_OR_GOOD_FAITH_CONFLICT`다(§3) | +| 봉인 정합 | screening sha `f6cfe2a2…`가 vocabulary 머리말, D0 manifest, handoff `activation_seal_crosscheck`에서 모두 같다. digest_guard 7키가 있다 | +| 잔재·경고 | 산출물 75개가 모두 정상 시작이고, `*_PENDING` 표식은 0이다. A0_02 `DIGEST_HEADER_ABSENT`(의도된 경고), B1r·B2r fan-out 0, Gemini 캐시 만료 후 재생성 13회는 모두 정상이다 | + +## 2. IO 구조 (DAG) + +``` +[입력] client_meeting.md · Default_Agent/routing/activation_cue_digest.md · 증거 shard 30 · 스키마·사전 + +A 사슬 (임계 경로) + A0_01 (3.8 Flash, low, 44.5s) ─▶ A0c ─▶ routing/domain_screening_draft.json + └▶ A0_02 ─▶ routing/domain_screening.json ─▶ A0_03 ─▶ routing/candidate_profile_vocabulary.md + │ (둘 다 preflight) + ▼ + Task_A (GPT-6.1 Sol, medium, 278.2s) ─▶ Ac ─▶ client_goal.json ─────────────────────┐ +B 사슬 │ + shard_planner ─▶ B1_*×30 (3.8 Flash, medium) ─▶ B1c_* ─▶ evidence_indexed_parts/ ──┐ │ + (ordinal 스트림) ─▶ B2_*×30 (medium) ─▶ B2c_* ─▶ evidence_event_candidate_parts/ │ + B1_quality_gate ─▶ evidence_indexed.json B1r_planner ─▶ (B1r_*·B1rc_* 0건) │ + B2_quality_gate ─▶ evidence_event_candidates.json + B12_exception_pack.json B2r_planner ─▶ (0건) + └▶ B12 (Flash-Lite, low) ─▶ B12c ─▶ B12_adjudication_decisions.json │ + └▶ B12_audit_finalizer ─▶ B1/B2_failure.json (CLEARED) │ + D0 (A0_03 + B 게이트) ─▶ routing/domain_activation_manifest.json ───────────────────┤ + ▼ + T9 handoff_writer (Ac + D0) ─▶ quality_gates/stage1_part1_soft_gate_handoff.json + routing/party_aliases.json +V 사슬 + V0 ─▶ V1_*×30 (3.8 Flash, low) ─▶ V1c_* ─▶ value_facts_parts/ ─▶ V2 ─▶ value_facts.json + quality_gates/value_facts_gate.json + └▶ V3 (V2 + client_goal) ─▶ value_facts_party_links.json +``` + +## 3. 산출물 검증 (YAML 의도 대비, 1차 실행과 비교) + +| 구간 | 실측 (2차) | 1차 | 판정 | +|---|---|---|---| +| A0 | 후보 15(원천 단위 36), 검토 2(`E08_TERM_RENEWAL_CONFLICT`, `E13_CONSIDERATION_OR_GOOD_FAITH_CONFLICT`). vocabulary 절 15 | 후보 15, 검토 1(`UNROUTED`) | **정상.** low에서도 후보 집합 15개가 그대로다(E-10 포함). 미인용 원천 단위가 사라지고, 대신 도메인 내부 충돌 2건을 검토로 올렸다 | +| Task_A | 105,700자 → **107,663자**, 14키. 원고 2·피고 7·제3자 13, IC 5, 청구 후보 5. `defendant_qualification` **8** | 7 | **형식 정상.** 프로필 칸은 모두 후보 안이다. 다만 **오민한이 IC-01(물품대금)에도 피고로 추가됐다**. 근거 인용("강용원은 물품대금 채권을 실현하는 데 필요한 소의 제기를 희망한다")에 오민한의 이름이 없다. 1차는 "직접 문장이 없어 피고로 확정하지 않는다"고 적었다. Task_A 설정은 바꾸지 않았으므로 모델의 실행 간 편차로 본다. 변호사 확인이 필요하다 | +| B1·B2 | B1 items 30, suspect 6. B2 후보 100, exception 16 | 97 / 15 | **정상.** B 설정은 바뀌지 않았고 편차는 작다 | +| B12 | 판정 16건(SOFT 10 · DISMISS 3 · HARD 2 · ESCALATE 1) | 15건 | **정상** | +| D0 | active 13 + active_with_review 2(E-08·E-13) + supporting 1, 검토 12, **unrouted 0** | active 14, 검토 7, unrouted 1 | **정상.** E-08·E-13은 A0 검토를 받아 `active_with_review`가 됐다. E-12(B 증거 구성요소 `e12.opposing_record`로 활성)가 새로 생겼는데, 스크리닝 후보가 아니어서 Task_A에 프로필 칸이 없다 | +| T9·alias | handoff READY_WITH_REVIEW. canonical 22, alias 1, error 없음 | alias 2 | **정상** | +| V | gate **READY_WITH_REVIEW**: ok 28 · review 2(E-006, E-022) · failed 0, records **117**, rejected 3. V3 links 119(resolved 97) | ok 30, records 109, rejected 0 | **정상(경미한 하락).** 기록은 8건 늘었다. 그러나 E-006 `DURATION`, E-022 금액 없는 `PAYMENT_MADE` 같은 형식 오류 3건이 게이트에서 거부됐다. 잘림·파싱 실패는 0이다 | + +## 4. 런타임과 비용 + +- **총 5분 44.7초**(1차 10분 37.9초 대비 **−46%**). +- **임계 경로:** A0_01 44.5s → A0c~A0_03 11s → **Task_A 278.2s(전체의 81%)** → T9·V3 10s. +- 다른 사슬은 먼저 끝났다. V 사슬은 2분 58초, B 사슬은 3분 58초(D0 4분 1초)에 끝났다. + +| 구간 | 본문 출력 | 사고 토큰 | 평균 / 최대 | 1차 대비 | +|---|---:|---:|---|---| +| A0_01 (low) | 7,442 | **0** | 44.5s | 353.5s, 사고 51,440 | +| V1 ×30 (low) | 26,573 | **0** | 8s / 20s | 70s / 284s, 사고 293,319 | +| B1 ×30 (medium) | 52,291 | 136,506 | 41s / 122s | 비슷 | +| B2 ×30 (medium) | 94,837 | 138,576 | 49s / 108s | 비슷 | +| Task_A (medium) | completion 32,874 | 미기록 | 278.2s | 263.7s | + +- B1·B2는 공유 캐시 크기(21,816 / 18,293)로 나눴다. B2 쪽이 늦게 끝나 1차 추정과 맞는다. +- **비용은 $2.36(92회)으로 1차 $3.66보다 −35%다.** + - 모델별: gemini-3.8-flash $1.93 · gpt-6.1-sol $0.42 · flash-lite $0.01. + - 남은 Gemini 사고 27.5만 토큰은 모두 B1·B2에서 나온다. +- **3.8 Flash의 `thinking_level=low`는 이번 실행에서 사고 토큰 0이었다.** 사실상 사고 없이 응답했다. + +## 5. 평가와 남은 일 + +1. **A0 low는 이번 1회에서 목적 손상이 없었다.** 후보 15개 유지, 미인용 0, 도메인 충돌 검토 2건 추가로 오히려 보수적이다. 다만 평가서 기준(low 3회)에는 2회가 더 필요하다. +2. **V1 low는 속도·비용 이득이 크지만, 품질은 약간 떨어졌다.** review 2건과 rejected 3건이 생겼다. 금액 기록 누락은 없다(record 0 문서 7개는 1차의 8개 안에 포함된다). 재실행에서도 같은 수준이면 수용 가능하다. +3. **다음 병목은 Task_A(278초)다.** 추론 수준보다 출력량(약 10.8만 자)이 시간을 정한다. +4. **확인이 필요한 것:** + - 오민한 IC-01 피고 추가가 의도된 판단인지(상호 속용 영업양수인 책임 가능성 등). Task_A 판단이 실행마다 흔들리는 문제다. + - E-12 활성의 타당성. +5. **검증 범위:** 산출물의 법률적 정확성은 검증하지 않았다. 비용은 백엔드 `[USAGE]` 단가표 기준이다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_2_part_2.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_2_part_2.md new file mode 100644 index 00000000..5d91cec2 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_2_part_2.md @@ -0,0 +1,73 @@ +# Stage 1 Part 2 결과보고서 2 (2026-11-04 4차 실행) + +- **대상:** `stage_1_part_2_v.8.yml`(`3a66272c…`, 5,769행). 개정전략서 4pm의 H-1~H-5가 적용되어 있고, 그전에 넣은 F-2·S-1·S-2도 함께 들어 있다. worker reasoning은 medium이다. +- **실행:** workspace `11월_1일_구성`, 세션 `5d47278e`, 2026-11-04 07:26:06 ~ 07:30:41 UTC(4분 35초). +- **근거(모두 읽기 전용):** + - `agent-backend` 로그: task 완료·오류 이벤트, 코드 task stdout, `[USAGE]`. + - localdocs 산출물: seed 15개, ledger, exception pack, R1 판정, `BO.json`, review handoff, compact, `signals/signal_manifest.json`. + +## 1. 판정 — **성공** (BO `PASS`, signal `READY_WITH_REVIEW`) + +| 기준 | 결과 | +|---|---| +| 백엔드 | task 37건 모두 `task_complete`. `task_error`·`task_retry` 0. `execution_complete` 1회 | +| 코드 task | A0 `READY` · load_fanout `PREPARED` · capture 15 · R0 `READY` · **F0 `PASS`(BO 78건)** · **S0 `READY_WITH_REVIEW`** | +| S0 | 정본 signal 거래 1건 기록(`S5TX-89d93dca8f879c30090d`). 파일 32종(manifest + 31). signal gate `PASS`, 오류 0 | +| 이전 실패 해소 | 2·3차 회차에서 멈췄던 F0와 S0가 이번에 처음 끝까지 통과했다 | +| 비용 | $1.96(GPT-6.1 Sol 16회 $1.94, Flash-Lite 1회 $0.02) | + +## 2. IO 구조 (DAG) + +``` +[입력·Part 1] handoff(digest_guard 7키) · domain_screening(source_document_refs MTG.* 36) + · domain_activation_manifest · evidence_indexed · evidence_event_candidates · value_facts · client_meeting.md + +A0 (코드 4.5s) ─ 봉인 대조 · 모듈 반입 · stage_a · slice 15 · 한도 검사(공유 우주 254,830자) + └▶ runtime/{domain_slices, compiled_prompts, worker_inputs}/ ×15 · runtime/shared/{source_universe.json, vocabulary.md} + │ +prewarm (Sol 2.6s) ─▶ load_fanout (코드) ─▶ fanout/domain_fanout_plan.json (15) + ▼ 동시 8개씩 +worker_* ×15 (Sol medium, 9~154s) ─▶ capture_* ×15 ─▶ runtime/domain_seed_outputs/.json + ▼ +R0 (코드 3.9s) ─▶ admitted_seeds/ ×15 · postb_seed_ledger.json(78) + └▶ quality_gates/stage1_part2_exception_pack.json (field_conflict 8) + ▼ +R1 (Flash-Lite 8.5s) ─▶ postb_adjudication_decisions.json (KEEP 6 · BLOCK 2) + ▼ +F0 (코드 3.5s) ─▶ BO.json (78) · postb_compiled_bundle_compact.json (human_review_count 2) + └▶ quality_gates/stage1_part2_review_handoff.json (FINALIZED, 451) + ▼ S-2: handoff FINALIZED · bo_item_count 78 == BO 78 확인 +S0 (코드 4.2s) ─▶ signals/signal_manifest.json + domain_signals/ ×15 · SG-02~13 · compatibility_views ×3 + · downstream_read_sets(Part 3 L0 등) +``` + +## 3. 산출물 검증 (YAML 의도 대비) + +| 구간 | 실측 | 의도 | 판정 | +|---|---|---|---| +| A0 | 15개 도메인 slice. 공유 우주 254,830자(경고 1건), 도메인별 합계 최대 382,724자. value_facts `BOUND` | 봉인·한도 검사 | **정상** | +| worker(H-3) | 후보 78건. 사건 id(`EVT-`) 인용 후보 **10건**(3차 2/81). `source_refs` 149개 중 EVT 26개. 요건 행 266개 중 `event_candidate` 25개 | 사건 후보에서 나온 후보는 EVT id를 함께 적는다 | **개선, 부분적**. 인용률은 13%다 | +| R0 수용 | 처분 80건(`completion_receipt` 필수 키 75, 스키마 밖 키 5). `repair_harvest` 0. 격리 0 | 보정·격리 기록 | **정상**. 참조 형식 개정 효과가 유지됐다 | +| R0 군집(H-4) | 근접 중복 군집 16개 = 사건 기준 1, 문서 기준 15. 구성원 39. exception 8건(모두 field_conflict) | 사건 id가 있으면 사건 단위 | **동작 정상**. 사건 id 인용이 적어 대부분 문서 군집이다 | +| R1(H-2) | **KEEP_SEPARATE 6, BLOCK_REVIEW 2**, blocked 2(일치) | 다른 행위는 KEEP, 같은 행위의 값 상충만 BLOCK | **정상**. BLOCK 2건은 같은 대상에 대한 상충이다: EX-FIELD-003 동일 담보부 차용금의 발생 시점(2023-01-06 vs 2024-01-05), EX-FIELD-004 시가 평가 기간·금액 | +| F0(H-1) | **PASS**. BO 78 = ledger 78(보존 등식). event 65, state 13. 금액 결속 42. `F0:human_review:EX-FIELD-003·004` 2건(HARD_WARNING, `human_judgment_required`). compact `human_review_count` 2 | BLOCK이어도 멈추지 않고 따로 보존 + 사람 판정 review | **정상** | +| review handoff | `FINALIZED`, `bo_item_count` 78. 451건(SOFT 449, HARD 2). 구성: 도메인 review 213, 수용 처분 80, 미선언 확장 키 78, 금액·날짜 57, 근접 중복 16, 폴백 5, 사람 판정 2 | 하류로 넘김 | **정상** | +| S0(S-1·S-2) | S-2 통과(FINALIZED · 78 = 78). signal gate PASS, 오류 0. E-08·E-13의 `MTG.*` conflict ref도 통과 | 스크리닝 단위를 출처 우주에 포함 | **정상**. S-1이 처음 실측으로 확인됐다 | +| S0 산출 | manifest `READY_WITH_REVIEW`. `active_domains` 13개(E-08·E-13 제외), `active_calculations` 9개(CE-01~04·07·08·10·11·13). 도메인 signal 15개, 호환 뷰 3개 | Part 3 입력 묶음 | **정상** | + +## 4. 회차 비교와 남은 문제 + +| 지표 | 1차(high) | 2차(high, 참조 개정) | 3차(medium) | **4차(medium, H 적용)** | +|---|---:|---:|---:|---:| +| 결과 | BO PASS / S0 모듈 실패 | F0·S0 실패 | F0·S0 실패 | **전부 성공** | +| 후보·BO | 107 / 107 | 85 / — | 81 / — | **78 / 78** | +| R0 수용 처분 | 610 | 92 | 92 | **80** | +| R1 판정 | KEEP 13 | KEEP 9 + blocked 9(모순) | BLOCK 11 | **KEEP 6 · BLOCK 2** | +| 사건 id 인용 후보 | 7 / 107 | — | 2 / 81 | **10 / 78** | +| 런타임 · 비용 | 8분 33초 · $3.08 | 4분 16초 · $2.02 | 4분 36초 · $2.02 | **4분 35초 · $1.96** | + +1. **후보 수가 계속 줄고 있다(107 → 78).** 가장 큰 감소는 E-09(24 → 6)다. 참조 형식 개정 이후 worker가 등기 행 단위 후보를 덜 낸다. 이 회차는 성공했으므로, 지금 바로 1차 BO(107건)와 사건 단위로 대조할 수 있다. 등기·처분 사건이 누락됐는지 확인하는 것이 다음 우선순위다. +2. **사건 id 인용률은 13%에 그친다.** 그래서 군집 16개 중 15개는 여전히 문서 기준이다. 필요하면 worker 규칙에 "사건 후보에서 읽은 요건 행이 있으면 그 후보의 `source_refs`에도 같은 EVT id를 넣는다"를 더해 볼 수 있다. +3. **BO `Object`는 78건 모두 null이다.** 당사자·목적물 id 체계가 없어서 생기는 알려진 한계다. +4. **Stage 2 확인:** 사람 판정 2건은 handoff의 `human_judgment_required`로만 전달된다. S2_00이 이 issue_type을 사용자에게 보여 주는지 확인해야 한다. +5. **검증 범위:** 형식, 흐름, 계약 준수만 보았다. BO와 signal의 법률적 타당성은 판단하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_part_1.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_part_1.md new file mode 100644 index 00000000..e0b51c5d --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/결과보고서_part_1.md @@ -0,0 +1,91 @@ +# Stage 1 Part 1 결과보고서 (2026-11-04 실행) + +- **대상:** `stage_1_part_1_v.8.yml`, sha256 `2450ea53…`, task 29개. + - 로컬 저장은 09:46:39 KST, 업로드는 09:47:09 KST다. 시각이 맞아 이 파일이 실행된 것으로 본다(내용 대조는 하지 않음). +- **실행:** workspace `11월_1일_구성`, 세션 `b077789a`, 2026-11-04 00:47:25 ~ 00:58:03 UTC. +- **근거:** + - `agent-backend` 로그 28,130행(`[USAGE]`, `[BRIDGE]`, 코드 task stdout). + - localdocs `read_docs`로 읽은 산출물 75개. + - 모두 읽기 전용으로 확인했다. 비교 대상은 11-03 08:05 실행(세션 `2ef6f8fc`)이다. + +## 1. 판정 — **성공** (`READY_WITH_REVIEW`) + +| 기준 | 결과 | +|---|---| +| 백엔드 | task 199개 모두 `task_complete`, `execution_complete` 1회. 코드 task 106건 모두 `error_code=0`. 재시도(iteration 2) 0, `FAILED` 0 | +| Part 1 판정 | `quality_gates/stage1_part1_soft_gate_handoff.json`이 **`READY_WITH_REVIEW`**이고 `stage2_auto_progression_allowed: true`다. hard gate는 0이다 | +| 검토 항목 | 18건(B1 6 · B2 5 · D0 7). 최종 작성 차단 1건은 `UNROUTED_ISSUE_REVIEW`(`MTG.WISH.05.00`)로, 11-03과 같은 항목이다 | +| 봉인 정합 | screening sha `508242cf…`가 vocabulary 머리말, D0 manifest, handoff `activation_seal_crosscheck`에서 모두 같다. digest_guard 7키가 있다 | +| 지난 실행 잔재 | 확인한 산출물 75개가 모두 정상 JSON·MD로 시작한다. `*_PENDING` 표식은 남지 않았다 | +| 경고(정상) | A0_02 `DIGEST_HEADER_ABSENT` 2건은 의도된 경고다. B1r·B2r는 고장 part가 없어 fan-out 0이다. B12 캐시 생성 실패(866토큰 < 최소)는 영향이 없다 | + +## 2. IO 구조 (DAG) + +``` +[입력] client_meeting.md · Default_Agent/routing/activation_cue_digest.md · 증거 shard 30 · 스키마·사전 + +A 사슬 (임계 경로) + A0_01 (LLM 3.8 Flash, medium) ─▶ A0c ─▶ routing/domain_screening_draft.json + └▶ A0_02 (코드 검증) ─▶ routing/domain_screening.json ─▶ A0_03 ─▶ routing/candidate_profile_vocabulary.md + └───────────────┬──────────────────────────────────────────────┘ + ▼ + Task_A (LLM GPT-6.1 Sol, medium) ─▶ Ac ─▶ client_goal.json ────────────────┐ + │ +B 사슬 │ + shard_planner ─▶ B1_*×30 ─▶ B1c_* ─▶ evidence_indexed_parts/E-0NN.json ─┐ │ + (ordinal 스트림) ─▶ B2_*×30 ─▶ B2c_* ─▶ evidence_event_candidate_parts/ ┤ + B1_quality_gate ─▶ evidence_indexed.json B1r_planner ─▶ (B1r_*·B1rc_* 0건) │ + B2_quality_gate ─▶ evidence_event_candidates.json B2r_planner ─▶ (B2r_* 0건) │ + └▶ (B2 게이트가 쓴 B12_exception_pack.json) ─▶ B12 (LLM Flash-Lite, low) ─▶ B12c ─▶ B12_adjudication_decisions.json + └▶ B12_audit_finalizer ─▶ B1/B2_failure.json(CLEARED) │ + D0 (A0_03 + B 게이트) ─▶ routing/domain_activation_manifest.json ─────────┤ + ▼ + T9 handoff_writer (Ac + D0) ─▶ quality_gates/stage1_part1_soft_gate_handoff.json + + routing/party_aliases.json +V 사슬 + V0 ─▶ V1_*×30 (LLM 3.8 Flash, medium) ─▶ V1c_* ─▶ value_facts_parts/ ─▶ V2 ─▶ value_facts.json + + quality_gates/value_facts_gate.json + └▶ V3 (V2 + client_goal) ─▶ value_facts_party_links.json +``` + +## 3. 산출물 검증 (YAML 의도 대비) + +| 구간 | 산출물(실측) | YAML 의도 | 판정 | +|---|---|---|---| +| A0 | screening `READY_WITH_REVIEW`: 후보 15, 원천 단위 36(인용 35, 미인용 1), 검토 1. vocabulary `READY`, 도메인 절 15 | fail-open 후보 도출, 근거 인용, 보존 등식, sha 봉인 | **정상.** 후보 15개가 11-03과 같다(E-10 포함). 검토는 5건에서 1건으로 줄었다 | +| Task_A·Ac | `client_goal.json` 105,700자, 최상위 14키, parties 원고 2·피고 7·제3자 13, issue cluster 5, 청구 후보 5, `defendant_qualification` 7 | 피고 자격 4키 기준, 스크리닝 후보 안에서만 도메인 프로필 칸 | **정상.** 피고 7명이 11-03과 같다. 프로필 칸 ID는 모두 후보 15개 안에 있다. IC-01에 E-01이 늘고, IC-04에서 E-09가 빠졌다 | +| B1 | parts 30 → `evidence_indexed.json` items 30. 게이트 PASS, suspect 6, 복구 0 | 30문서 전수 색인, 결정적 게이트 | **정상** | +| B2 | parts 30 → `evidence_event_candidates.json` items 30. 후보 97, dedup 0, exception 15 | 사건 후보, 채권 방향 | **정상.** 11-03(126)보다 후보가 23% 적다. 원인은 확인하지 않았다(§5) | +| B12 | 판정 15건(SOFT 10 · DISMISS 4 · ESCALATE 1). finalizer는 B1 SOFT_WARNING · B2 HARD_WARNING, review 11, hard 0 | exception이 있을 때만 판정 | **정상** | +| D0 | manifest `READY_WITH_REVIEW`: 도메인 26, active 14, supporting 1(EC-00), 검토 7, unrouted 1 | A0 + B 신호 합산, 자기검증 | **정상.** active가 10에서 14로 늘었다(E-03·E-08·E-10·E-13). D0 검토는 17건에서 7건으로 줄었다 | +| T9·alias | handoff `READY_WITH_REVIEW`. `party_aliases.json`은 canonical 22, alias 2, 후보 3, 승계 2, error 없음 | 게이트 실패 시 BLOCKED, 산출물 게이트 | **정상** | +| V | gate `READY`: 문서 30 모두 ok, records 109, rejected 0. V3 links 89(resolved 73 · unresolved 16) | 원문 인용 값 사실, 게이트 대조 | **개선.** 11-03에는 ok 26 · review 3 · failed 1, records 90이었다. `max_tokens` 조기 종료가 사라졌다 | + +## 4. 런타임과 비용 + +- **총 10분 37.9초**(11-03 대비 −2분 12초)다. +- **임계 경로는 A 사슬이다.** A0_01 353.5s → 코드 10s → Task_A 263.7s → 코드 10s이고, 전체의 97%다. + - B 사슬은 4분 19초, V 사슬은 5분 24초에 끝나고 대기했다. + +| 구간 | 호출 | 본문 출력 | 사고 토큰 | 평균 / 최대 시간 | +|---|---:|---:|---:|---| +| A0_01 | 1 | 6,390 | 51,440 | 347s | +| B1 (캐시 21,816) | 30 | 55,494 | 143,648 | 41s / 109s | +| B2 (캐시 18,293) | 30 | 92,642 | 131,525 | 45s / 107s | +| V1 | 30 | 22,846 | **293,319** | 70s / 284s | +| B12 | 1 | 3,285 | 0 | 8s | +| Task_A | 1 | completion 30,946 | 미기록 | 264s | + +- B1·B2는 공유 캐시 크기로 나눴다. 어느 쪽이 B2인지는 출력량으로 추정했다. +- **비용은 $3.66(93회)으로, 11-03의 $1.61보다 2.3배다.** + - 모델별: gemini-3.8-flash $3.25 · gpt-6.1-sol $0.40 · flash-lite $0.01. + - 원인: 11-03 13:02 브리지 재배포로 `llm_reasoning`이 실제 `thinking_level`로 전달됐다. 그 결과 Gemini 사고 토큰이 62만 개가 됐고, 사고 토큰은 출력 단가로 청구된다. + - V1은 본문 2.3만 토큰에 사고 29만 토큰을 써, 사고량의 47%를 차지한다. + +## 5. 남은 문제와 확인하지 못한 것 + +1. **V1 사고량이 과다하다.** 값을 옮겨 적는 추출에 medium 사고를 쓴다. 11-03 사용자 지정값은 low였지만 현재 YAML은 medium·`llm_token_limit: 65536`이다. 품질은 개선됐으므로, low로 바꾸면 ok 30이 유지되는지 비교한 뒤 정한다. +2. **A0_01이 런타임의 55%다.** `모델_조건변경_A0_A1_평가서.md`의 option 1(3.8 Flash low)을 비교 실행으로 확인한다. +3. **B2 후보가 126에서 97로 줄었다.** 추론 수준 변경(high에서 medium) 때문인지, 누락인지 중복 감소인지 확인하지 않았다. exception은 14에서 15로 비슷하다. +4. 산출물의 법률적 정확성(피고 자격, 활성 도메인 14개 타당성)은 검증하지 않았다. 형식과 흐름만 확인했다. +5. 비용은 백엔드 `[USAGE]` 단가표 기준이다. 공급자 청구서와 대조하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/실패결과보고서_1_part_2.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/실패결과보고서_1_part_2.md new file mode 100644 index 00000000..19a18813 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/실패결과보고서_1_part_2.md @@ -0,0 +1,97 @@ +# Stage 1 Part 2 실패결과보고서 1 (2026-11-04 2차 실행) + +- **대상:** `stage_1_part_2_v.8.yml`(`30ed8748…`, worker 참조 형식 개정판). +- **실행:** workspace `11월_1일_구성`, 세션 `4ff7d817`, 2026-11-04 05:53:51 ~ 05:58:07 UTC(4분 16초), 비용 $2.02. +- **근거(모두 읽기 전용):** + - `agent-backend` 로그(코드 task stdout, 에러, `[USAGE]`). + - localdocs 산출물: R1 판정, exception pack, ledger, review handoff, `BO.json`, source universe manifest, D0 manifest, Part 1 `routing/domain_screening.json`. + - S0 검사 코드 `Default_Agent/signals/compiler/signal_gate.py`. + +## 1. 결론 + +| task | 결과 | 실패 원인(한 줄) | 해결안 | +|---|---|---|---| +| A0 ~ R1 | 성공 | — | — | +| **F0** | 2회 모두 `FAILED` | R1이 9건을 `KEEP_SEPARATE`로 판정하면서 같은 9건을 `blocked_review_items`에도 넣었다. F0는 이 목록이 비어 있지 않으면 무조건 멈춘다 | F0에서 판정과 모순되는 blocked 항목을 review로 낮춘다. R1 프롬프트에 "blocked에는 `BLOCK_REVIEW`로 판정한 것만 넣는다"를 넣는다 | +| **S0** | 2회 모두 `FAILED` | SG-01 출처 검사가 D0 manifest `conflict_refs`의 `MTG.*` 6개를 출처 우주에서 찾지 못했다 | S0 출처 우주에 Part 1 스크리닝 `source_document_refs`(`MTG.*` 정본 36개)를 더한다 | +| (부수) | — | F0가 실패했는데도 S0가 실행됐고, 지난 회차의 `BO.json`(107건)을 읽었다 | S0 앞에서 review handoff가 `FINALIZED`인지 확인한다 | + +두 실패는 서로 독립이다. F0를 고쳐도 S0는 같은 이유로 멈춘다. 셋 모두 YAML만 고치면 되고, 모듈과 manifest는 재봉인하지 않아도 된다. + +## 2. 실패 지점과 원인 + +### 2-1. F0 — `R1 returned BLOCK_REVIEW items: 인간 검토 필요` + +- **실패 지점:** `Task_C_BO_F0_final_bo_compiler_gate_writer`, YAML 4693행 근처 `if blocked or block_decisions: _fail(...)`. + - 게이트 `r1_decision_presence`만 PASS하고 그 뒤 게이트는 실행되지 않았다. 5초 뒤 재시도해도 같은 입력이라 같은 결과가 나왔다. +- **R1 산출물(`postb_adjudication_decisions.json`)이 자기모순이다.** + - `canonical_decisions` 9건이 모두 `KEEP_SEPARATE`다. 근거 문장은 "preserve separately or route to review"다. + - 그런데 `blocked_review_items`에도 같은 9건이 들어 있다. 예: "Conflicting BehaviorTime values (2024-08-05 vs 2024-08-31); requires human review." + - F0는 canonical 판정이 무엇이든 `blocked_review_items`가 비어 있지 않으면 멈춘다. +- **예외 9건은 모두 `field_conflict`다.** 행위 시점(BehaviorTime)이 둘 이상이거나, 서로 다른 value_id의 금액이 함께 있는 경우다. + - 예: EX-FIELD-004는 2억 원(`E-006-VF-006`)과 3억 원(`E-006-VF-003`)이다. + - R1 프롬프트(4005행)는 금액 상충을 "KEEP_SEPARATE 또는 BLOCK_REVIEW"로 정하게 한다. KEEP_SEPARATE를 기본값으로 하라는 문장(4006행)도 있다. R1은 KEEP_SEPARATE를 골랐으므로 판정 자체는 규칙에 맞는다. +- **왜 이번에만 났나.** + - R1 프롬프트 4번 마지막 줄 "compact payload로 확정할 수 없으면 반드시 `blocked_review_items`에 넣는다"가 KEEP_SEPARATE와 동시에 적용될 여지를 남긴다. + - R1 모델은 Gemini 3.5 Flash-Lite, reasoning low다. 같은 프롬프트로 직전 회차(04:50Z 세션 `7f798164`)에서는 13건 모두 KEEP_SEPARATE만 냈고 blocked는 0이었다. 실행마다 흔들리는 해석의 문제다. +- **영향:** BO.json이 갱신되지 않았다. review handoff는 `PENDING_FINALIZE`(386건, `bo_item_count` 없음)로 남았다. + +### 2-2. S0 — `S0_SIGNAL_GATE_FAILED: sg01_source_membership` + +- **실패 지점:** `signal_gate.py` 91–96행. SG-01(D0 manifest)의 `domain_entries[]`마다 `positive_refs`·`negative_refs`·`conflict_refs`가 `all_refs`(S0 출처 우주) 안에 있어야 한다. +- **걸린 값** + - E-08 `conflict_refs`: `MTG.FACT.05.02`, `MTG.FACT.05.03`, `MTG.FACT.05.04`, `MTG.OPP.05.00` + - E-13 `conflict_refs`: `MTG.FACT.03.03`, `MTG.OPP.03.01` +- **원인: 조항 id 체계가 둘이다.** + - S0는 출처 우주를 `stage1_tmp/task_c_bo/source_universe_manifest.json`으로 만든다(YAML 5415–5441행). 그 안의 상담 조항 id는 stage_a 형식(`s01_consultation:1-가`)뿐이다. + - D0 manifest의 negative·conflict ref는 Part 1 스크리닝 형식 `MTG..NN.NN`이다. 일치성 보고서 C-07과 같은 뿌리다. +- **왜 이번에 처음 났나.** + - D0 entry에는 `positive_refs` 키가 없다(D0는 `primary_positive_refs`로 쓴다). 그래서 이 검사는 늘 빈 목록을 본다. + - 이전 회차까지는 `negative_refs`·`conflict_refs`도 비어 있었다. + - 11-04 Part 1 2차 실행(A0 low)에서 E-08·E-13이 `active_with_review`가 되며 conflict ref가 생겼다. 그래서 잠복해 있던 결함이 드러났다. + - 11-04 첫 Part 2 실행은 S0가 모듈 해시에서 먼저 멈춰 이 검사까지 가지 못했다. +- **정본 목록은 있다.** Part 1 `routing/domain_screening.json`의 `source_document_refs`(36개)가 `MTG.*` 단위의 정본이다. Part 1 프롬프트도 "SOURCE_UNITS 목록과 같은 집합"이라고 적는다. 걸린 6개는 모두 이 목록에 있다. + +### 2-3. 부수 결함 — S0가 지난 회차 BO를 읽었다 + +- 백엔드는 부모 task가 실패해도 자식 task를 실행한다(11-02부터 알려진 동작). 그래서 F0 실패 뒤에도 S0가 돌았다. +- S0는 `BO.json`을 읽어 `bo_ids`를 만든다(5417행). 지금 workspace의 BO.json은 지난 회차 것이다(107건, 이번 ledger는 85건). +- 이번에는 SG-01에서 먼저 멈췄다. 그러나 S0 검사를 고치고 F0가 다시 실패하면, **옛 BO와 새 seed를 섞은 signal 묶음이 PASS로 기록될 수 있다.** + +## 3. 해결 방안 + +| 순서 | 고칠 곳 | 내용 | 비고 | +|---|---|---|---| +| **F-1** | F0 코드(4693행 근처) | `blocked_review_items` 중 같은 `exception_id`에 `BLOCK_REVIEW`가 아닌 canonical·field 판정이 있는 항목은 실패로 세지 않는다. review handoff에 `HARD_WARNING`, `blocks_final_drafting: true`로 남긴다. 판정 자체가 `BLOCK_REVIEW`인 항목은 지금처럼 멈춘다 | 결정적. 모델 편차를 코드가 흡수한다 | +| **F-2** | R1 프롬프트 `` 4번 | "`blocked_review_items`에는 canonical 판정을 `BLOCK_REVIEW`로 정한 exception만 넣는다. KEEP_SEPARATE를 고른 exception은 넣지 않는다"를 추가한다 | F-1이 있으면 보조 수단이다 | +| **S-1** | S0 코드(5415–5441행) | Part 1 `routing/domain_screening.json`의 `source_document_refs`를 읽어 `all_source_refs`에만 더한다. `meeting_clause_ids`에는 넣지 않는다 | 검사는 그대로 엄격하다. 목록 밖 `MTG.*`는 여전히 실패한다 | +| **S-2** | S0 코드 시작부 | `quality_gates/stage1_part2_review_handoff.json`의 `status`가 `FINALIZED`가 아니거나 `bo_item_count`가 `len(BO.json)`과 다르면 `S0_UPSTREAM_F0_NOT_FINALIZED`로 멈춘다 | 옛 BO 혼입을 막는다 | + +**택하지 않은 대안** +- **SG-01 adapter에서 `MTG.*` ref를 지우기:** 충돌 근거가 signal에서 사라진다. +- **D0가 stage_a 형식 id를 쓰게 하기:** Part 1 모듈과 YAML을 함께 바꿔야 한다. 조항 id 단일화는 별도 과제다. +- **R1 모델 상향:** 런타임과 비용은 늘지만 F0의 모순 처리 문제는 그대로 남는다. + +**검증 방법(적용 후)** +1. 이번 회차의 R1 판정 파일로 F0를 오프라인 재생해 BO가 85건 작성되고, blocked 9건이 review로 남는지 확인한다. +2. D0 manifest와 screening으로 S0 universe를 만들어 SG-01 오류가 0인지 확인한다. screening 목록 밖 가짜 `MTG.*`를 넣은 사본으로는 실패하는지도 확인한다. +3. review handoff를 `PENDING_FINALIZE`로 둔 사본으로 S-2 정지를 확인한다. + +## 4. 이번 회차의 다른 관찰 + +- **지난 프롬프트 개정(참조 형식 명시)은 효과가 있었다.** + + | 지표 | 1차 → 2차 | + |---|---| + | R0 수용 처분 | 610 → **92** | + | `repair_harvest` | 532 → **0** | + | 남은 처분 | `completion_receipt` 필수 5키 × 15 = 75 · `UNKNOWN_VALUE_REVIEW_MISSING` 12 · 스키마 밖 키 5 | + | review handoff | 1,145 → 386(F0 전 기준) | + | 격리 | 0 | + +- **런타임과 비용:** 8분 33초에서 4분 16초로, $3.08에서 $2.02로 줄었다. worker 설정(Sol, high)은 같고, 최장 호출이 268초에서 111초로 짧아졌다. 출력이 줄어든 결과로 보인다(추론 토큰은 로그에 없다). +- **확인 필요:** 후보가 107건에서 **85건**으로 줄었다. + - E-09 24 → 11, E-10 14 → 12, E-02 13 → 12, X1 12 → 12, X2 10 → 9. + - 프롬프트 변경으로 줄어든 것인지, 실행 간 편차인지는 이 회차만으로 가릴 수 없다. + - F0를 고친 뒤 재실행해 BO 내용(특히 E-09 등기·처분 사건)이 빠지지 않았는지 1차 BO와 비교해야 한다. +- **검증 범위:** 법률적 타당성은 보지 않았다. 해결안은 아직 적용하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/실패결과보고서_2_part_2.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/실패결과보고서_2_part_2.md new file mode 100644 index 00000000..fd573b78 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_04/실패결과보고서_2_part_2.md @@ -0,0 +1,88 @@ +# Stage 1 Part 2 실패결과보고서 2 (2026-11-04 3차 실행) + +- **대상:** `stage_1_part_2_v.8.yml`(`2d69f426…`). worker reasoning은 medium이고, F-1·F-2·S-1·S-2가 적용된 판이다. +- **실행:** workspace `11월_1일_구성`, 세션 `167723e7`, 2026-11-04 06:38:56 ~ 06:43:32 UTC(4분 36초), 비용 $2.02. +- **근거(모두 읽기 전용):** + - `agent-backend` 로그(코드 task stdout, 에러, `[USAGE]`). + - localdocs 산출물: exception pack, R1 판정, ledger, review handoff, `BO.json`. + +## 1. 결론 + +| task | 결과 | 원인 | 판정 | +|---|---|---|---| +| A0 ~ R1 | 성공 | — | 정상 | +| **F0** | 2회 모두 `FAILED` | R1이 예외 11건 **모두를 canonical `BLOCK_REVIEW`로 판정**했다. F-1 규칙상 "판정 자체가 BLOCK_REVIEW"이므로 멈췄다 | 코드는 **설계대로** 동작했다. **설계 전제가 틀렸다**(§2) | +| **S0** | 2회 모두 `FAILED` | `S0_UPSTREAM_F0_NOT_FINALIZED:status=PENDING_FINALIZE bo_item_count=None bo_json=107` | **S-2가 의도대로 막았다.** 지난 회차 BO(107건)를 쓰지 않았다. S-1은 이번에 검사까지 가지 못했다 | + +- **지난 회차 결함은 고쳐졌다.** R1은 이번에 판정과 blocked 목록이 일치했다(11 = 11). F-2가 효과를 냈다. +- **남은 문제는 하나다.** R0가 "단일 값을 골라야 한다"며 R1에 올리는 근접 중복 예외가, 실제로는 서로 다른 행위를 묶은 것이다. 그래서 R1이 BLOCK을 고르면 회차 전체가 멈춘다. +- F0만 고치면 S0는 S-2를 통과하고 이번 판의 S-1까지 검증된다. + +## 2. 실패 원인 — 근접 중복 예외의 전제 오류 + +### 2-1. R0가 예외를 만드는 방식(YAML 3776–3825행) + +1. R0는 증거 번호 집합, 사건 id 집합, `BOType`, `ActionType`이 같은 seed를 **근접 중복 군집**으로 묶는다. +2. 군집 후보는 이미 결정적으로 **따로 보존(KEEP_SEPARATE)** 되고, `near_duplicate_kept_separate` review가 붙는다. +3. 군집 안에서 `BehaviorTime`이나 `amount`가 서로 다르면 주석 "writer가 단일 값을 고를 수 없으므로"에 따라 `field_conflict` 예외로 R1에 올린다. 허용 판정에는 `BLOCK_REVIEW`가 있다. + +### 2-2. 전제가 틀린 이유 + +- **따로 보존한 후보는 각자 자기 값을 갖는다.** F0가 단일 값을 고를 일이 없다. 1차 회차에서 13건을 모두 `KEEP_SEPARATE`로 처리했을 때 F0가 BO 107건을 문제없이 썼다. +- **군집 자체가 너무 넓다.** ledger seed 81건 중 사건 id(`source_event_candidate_ids`)를 가진 것은 **2건**뿐이다. 그래서 실제 묶는 기준은 "같은 증거 문서 + 같은 BO 유형 + 같은 행위 유형"이 된다. +- **이번 예외 11건은 모두 서로 다른 행위다.** + + | 예외 | 묶인 후보 | 실제 관계 | + |---|---|---| + | EX-FIELD-004 | E-02:002 · E-02:003 · E-13:001 · … | 첫 번째 대여(2022-12-17)와 추가 대여(2023-03-17) | + | EX-FIELD-005 | E-02:007 · E-02:008 | 공사 계약금(2021-05-01, 3억)과 중도금(2021-08-30, 4억) | + | EX-FIELD-008 | E-09:002~005 · E-10:004·008 | 성수동 대지의 상속 지분등기, 증여, 경매매각 이전 등 등기부의 서로 다른 등기 6건 | + | EX-FIELD-010 | E-10:005~007 | 경매개시결정(2024-07-21)과 매각 이전·말소(2024-10-05) | + | EX-FIELD-001 | E-01:001 · E-01:003 | 명의신탁 확인(4,000만 원)과 예비적 상계 주장(5,000만 원) | + +- **R1의 판단은 규칙상 틀리지 않았다.** R1 규칙(4010–4011행)은 BehaviorTime의 우열을 가릴 수 없거나 금액이 서로 다른 정본이면 "KEEP_SEPARATE 또는 BLOCK_REVIEW"를 고르게 한다. 같은 프롬프트로 1차 회차는 13건 모두 KEEP, 이번 회차는 11건 모두 BLOCK을 골랐다. **모델 선택에 따라 회차 전체의 성패가 갈리는 구조**가 원인이다. + +### 2-3. 실행 경과 + +| 회차 | worker | 후보 | R1 판정 | F0 | +|---|---|---|---|---| +| 1차(`7f798164`) | high | 107 | KEEP 13 / blocked 0 | PASS | +| 2차(`4ff7d817`) | high | 85 | KEEP 9 / blocked 9(모순) | FAILED | +| 3차(`167723e7`, 이번) | **medium** | 81 | **BLOCK 11** / blocked 11 | FAILED(설계대로) | + +- 이번 회차 worker 최장 호출은 130초였다(2차 111초, 1차 268초). +- 후보 수 감소(107 → 85 → 81)는 이번 실패와 별개다. §5에서 따로 다룬다. + +## 3. 해결 방안 + +| 순서 | 고칠 곳 | 내용 | 이유 | +|---|---|---|---| +| **G-1(권장)** | F0 코드, F-1 바로 아래 | `exception_type == "field_conflict"`인 예외의 canonical `BLOCK_REVIEW`는 **KEEP_SEPARATE로 적용**하고, `F0:r1_blocked:*` HARD_WARNING review로 남긴다. link·semantic 등 다른 유형의 BLOCK_REVIEW는 지금처럼 멈춘다 | 근접 중복 후보는 R0가 이미 따로 보존한다. field_conflict에서 BLOCK과 KEEP의 실제 차이는 "검토 표시"뿐이다. 결정적이라 모델 편차와 무관하다 | +| **G-2(보조)** | R1 프롬프트 `` | "field_conflict 군집의 후보가 서로 다른 행위(날짜·금액·대상이 다름)를 기술하면 KEEP_SEPARATE다. BLOCK_REVIEW는 같은 행위를 두 후보가 다른 값으로 적었을 때만 쓴다"를 추가한다 | R1 판정을 실제 의미에 맞춘다. G-1이 있으면 실패에는 영향이 없다 | +| **G-3(정정)** | R0 주석(3804–3805행) | "writer가 단일 값을 고를 수 없으므로"를 "같은 행위의 값 상충일 수 있어 R1이 병합 여부를 본다"로 고친다 | 전제 오류를 바로잡는다. 동작은 바뀌지 않는다 | + +**F-1과의 관계.** 실패결과보고서 1의 F-1은 "판정 자체가 BLOCK_REVIEW이면 멈춘다"였다. G-1은 그 원칙을 field_conflict 유형에서만 완화한다. Stage 1은 법률효과를 확정하지 않고 두 값을 모두 보존한 채 Stage 2로 넘기는 것이 원칙이다(R1 프롬프트 `` 첫 항). 그래서 따로 보존과 검토 표시로 충분하다. + +**택하지 않은 대안** +- **R0가 field_conflict를 pack에 올리지 않기:** R1이 정말 같은 행위를 MERGE할 기회가 사라진다. 지금까지 MERGE는 0건이지만 기능 자체를 없애는 것은 범위 밖이다. +- **R1 모델 상향:** KEEP와 BLOCK 모두 규칙상 허용되므로, 모델을 바꿔도 BLOCK이 다시 나올 수 있다. +- **근접 중복 기준 강화**(BehaviorTime을 키에 넣거나 worker가 사건 id를 인용하게 하기): 군집 과대 묶음의 근본 해결이지만 R0와 worker 계약을 함께 바꿔야 한다. 별도 과제로 남긴다. + +**검증 방법(적용 후)** +1. 이번 회차의 R1 판정 파일(BLOCK 11)로 F0를 재생해 BO 81건이 써지고 `F0:r1_blocked:*` review가 11건 남는지 확인한다. +2. link 유형 BLOCK_REVIEW를 넣은 사본으로는 여전히 멈추는지 확인한다. +3. 재실행해 S0가 S-2를 통과하고, S-1로 SG-01 오류가 0인지 확인한다. + +## 4. 이번 회차에서 확인된 것 + +- **F-2:** R1 판정과 blocked 목록이 일치했다(모순 0). +- **F-1:** 판정 자체가 BLOCK인 11건에서 멈췄다(설계대로). +- **S-2:** F0 실패 뒤 S0가 옛 BO(107)를 쓰지 않고 `S0_UPSTREAM_F0_NOT_FINALIZED`로 멈췄다. +- **S-1:** 이번 회차는 S-2에서 멈춰 검사까지 가지 못했다(미검증). + +## 5. 별도 확인이 필요한 것 + +- **후보 수 감소:** 107(high, 개정 전) → 85(high, 참조 형식 개정 후) → 81(medium). 감소의 대부분은 참조 형식 개정 직후에 나타났다(E-09 24 → 11 → 10). + - worker가 형식 규칙을 지키려고 후보를 덜 내는지, 실행 간 편차인지 아직 모른다. + - F0를 고친 뒤 BO 내용을 1차 BO(107건)와 사건 단위로 비교해야 한다. +- **군집 과대 묶음:** worker seed 대부분에 사건 id가 없어 근접 중복이 "같은 문서" 수준으로 잡힌다. near_duplicate review 18건과 예외 11건이 여기서 나온다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_1_part_3.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_1_part_3.md new file mode 100644 index 00000000..32f9fc28 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_1_part_3.md @@ -0,0 +1,91 @@ +# Stage 1 Part 3 실행결과보고서 1 (2026-11-05, L1 JEV 추천기 첫 실행) + +- **대상:** `stage_1_part_3_v.8.yml`(`057ff1ee…`, 2,155행). L1 후보 유형 추천기(JEV)를 처음 넣은 판이다. 근거 전략서는 `개정전략서_part_3_v2_with_part_1_2.md`이고, 그림자 실행 설정(`SHADOW_RUN=True`)이다. +- **실행:** workspace `11월_1일_구성`, 세션 `67b1e054`, 2026-11-05 02:14:32 ~ 02:14:57 UTC(**25초**). +- **입력:** Part 2 4차 실행 산출. 신호 거래 `S5TX-89d93dca8f879c30090d`, BO 78건(`BO.json` sha `654529b4…`). +- **근거(모두 읽기 전용):** + - `agent-backend` 로그: SSE 이벤트, `[TASK:*]`, 코드 task stdout, `JEV call`. + - localdocs 산출물: L1 영수증, 요청 파일, handoff, `legal_effect_structures.json`, L0 영수증. +- **실행 판 확인:** 로그의 신설 task 4종 이름과 `JEV call model=jev-1.14.0`이 개정본과 일치한다. + +## 1. 판정 — **성공** + +| 기준 | 결과 | +|---|---| +| 백엔드 | `task_complete` 38건 = L0 1 + planner 1 + recommender 17 + capture 17 + apply 1 + L2 1. `task_error`·`task_retry`·`stage_error`·Traceback 0건. `stage_complete` 1, `execution_complete` 1 | +| L0 | `READY_WITH_REVIEW`. 구조 50, Θ 34, BO 부착 63 / 미부착 15, route 부착 66 / 미부착 18. errors·warnings 없음 | +| L1 planner | `PLANNED`. 후보 13, 쌍 17. 요청 파일은 `planned:true`, `handoff_sha256` `7605ddc9…` | +| L1 recommender | JEV 17회 호출, 모두 응답했다. 모델 `jev-1.14.0`, 입력 토큰 합 **8,375**(약 $0.00035, 출력 무료) | +| L1 capture | 17건 모두 `ANSWERED`(`FAILED` 0) | +| L1 apply | `APPLIED`. 결론은 13건 모두 `UNDECIDED`(그림자 실행). 번들·handoff 재기록 없음(`bundle_rewritten:false`, `handoff_rewritten:false`) | +| L2 | `READY_WITH_REVIEW`. 보존 등식 세 개 모두 통과(선언 50, route 66+18=84, BO 63+15=78). `review_queue` 2종 | + +- **그림자 실행 의도대로 동작했다.** L1이 판정 점수만 영수증에 남겼고, L2 입력(번들·handoff)은 L0 산출 그대로다. +- 그래서 최종 `legal_effect_structures.json`은 L1 도입 전과 같은 결과다. 미부착 BO 15건과 `PART3_BO_UNATTACHED` HARD 15건이 그대로 있다. + +## 2. IO 구조 (DAG, 실측 시각) + +``` +[입력·Part 2] signals/* (S5TX-89d93dca…) · BO.json(78) · Default_Agent 자산 +L0 (코드 6.1s, 02:14:32→38) ─▶ stage1_tmp/task_le/structure_seed_bundle.json + quality_gates/stage1_part3_review_handoff.json (OPEN, 33) + validation_assets/routing/part3_receipt.json + └▶ L1 planner (코드 3.1s) ─▶ stage1_tmp/task_le/recommender_requests.json (후보 13, 쌍 17) + │ dynamic_fanout 17 + ├▶ recommender_0..16 (jev, 02:14:42 동시 발사) ─▶ capture_{same_ordinal} (6.4~8.7s) + │ └▶ stage1_tmp/task_le/recommender_answers/pair_0000..0016.json + └▶ (planner→apply 직접 간선) + L1 apply (코드 3.3s; "All 17 instances … completed → aggregate set" 뒤 시작) + ─▶ validation_assets/routing/part3_recommender_receipt.json (번들·handoff 미기록) + L2 (코드 3.4s, 02:14:54→57) ─▶ legal_effect_structures.json (READY_WITH_REVIEW) · handoff FINALIZED +``` + +## 3. 산출물 검증 (YAML 의도 대비) + +| 구간 | 실측 | 의도 | 판정 | +|---|---|---|---| +| 후보 조건(§2.3) | 후보 13개. 도메인별로 E-02 5, X1 6, E-15 1, E-12 1. 후보별 미부착 BO 항목 수의 합 15 = 미부착 BO 15 | 미부착 BO를 만든 Θ 밖 유형만 후보로 삼는다 | **정상**. 미부착 15건이 모두 후보에 걸렸다 | +| 포괄 유형 제외 | 쌍 17개 중 `general_legal_effect` 대상 0. E-02는 `money_claim`, X1·E-15는 `succession_notice_lien_asset_defense`, E-12는 선언 유형 5개 전부 | T에서 제외한다 | **정상** | +| `state` | 영문 식별자만. 호출당 입력 약 490토큰 | 사건 서술을 외부로 보내지 않는다 | **정상** | +| JEV 응답 형식 | 17건 모두 `answers.relation`에 확률 3키가 있고 capture가 그대로 저장했다 | 유효 답 검사 통과 | **정상**. 무효·누락 답 0 | +| apply 판정 | `UNDECIDED` 13. `PART3_RECOMMENDER_ANSWER_MISSING` 항목 0이라 handoff가 바뀌지 않았다 | 그림자 실행에서는 수용·승격 비활성 | **정상** | +| L2 | 보존 등식 통과. `review_queue`는 `PART3_BO_UNATTACHED` HARD 15, `UNREGISTERED_EFFECT_TYPE_REVIEW` HARD 18. handoff `FINALIZED` | L1이 L2 입력을 바꾸지 않았으면 L0 기준 결과가 나온다 | **정상** | + +## 4. 판정 점수 (영수증 `part3_recommender_receipt.json`, 정규화 확률) + +| 도메인 | 후보 → 선언 유형 | independent | part_of | wording | attach_score | +|---|---|---:|---:|---:|---:| +| E-02 | partial_payment → money_claim | 0.29 | **0.71** | 0.00 | **0.71** | +| E-02 | demand_notice → money_claim | 0.62 | 0.36 | 0.02 | 0.38 | +| E-02 | debt_acknowledgement → money_claim | 0.67 | 0.32 | 0.01 | 0.33 | +| E-02 | due_date_modification → money_claim | 0.67 | 0.33 | 0.00 | 0.33 | +| E-02 | guarantor_procurement_promise → money_claim | 0.75 | 0.24 | 0.01 | 0.25 | +| E-15 | inheritance_succession_status → succession_notice_lien_asset_defense | 0.69 | 0.30 | 0.01 | 0.31 | +| E-12 | sole_ownership_assertion → (선언 유형 5개) | 0.68~0.91 | 0.09~0.30 | 0.00~0.04 | 0.09~0.32 | +| X1 | *_notice_lifecycle 6종 → succession_notice_lien_asset_defense | 0.77~0.95 | 0.05~0.22 | 0.00~0.01 | 0.05~0.23 | + +**시작 임계값(0.80/0.20/0.80)을 적용했다면** — 영수증 점수로 다시 계산한 값이다. +- **수용: 0건.** 최고 점수는 `partial_payment`의 0.71로 `accept_min` 0.80에 못 미친다. +- **승격 제안: 5건.** X1의 `contract_change_request`·`contract_rescission`·`lease_termination`·`oral_demand`·`registry_cancellation_demand` notice_lifecycle이다(independent ≥ 0.80). +- **무결정: 8건.** +- 결국 이 회차 데이터로는 시작 임계값에서도 **붙는 BO가 0건**이다. 전략서 §8이 예상한 대로 X1·E-15는 승격 제안이나 무결정으로 기운다. + +## 5. 프로브(P-1~P-4) 결과 + +| 프로브 | 결과 | +|---|---| +| P-1 jev wildcard·`state` 전달·키 | **확인.** 다음이 모두 동작했다.
- `Created JEV task: Task_C_LE_L1_recommender_*`로 wildcard 확장.
- `{{item.state_json}}`(JSON 문자열) 전달. 응답이 식별자에 맞게 갈렸고, 호출당 약 490토큰.
- `retry`·`description`·`provider: jev`가 스테이지 `llm_provider: openai`와 공존.
- 서버 `JEV_API_KEY` 유효.
`{{item.state}}` 객체 치환은 시험하지 않았다. | +| P-2 실패한 jev 인스턴스 뒤 하류 진행 | **미확인.** 실패한 인스턴스가 0건이었다. | +| P-3 장벽 | **절반 확인.** 비어 있지 않은 fan-out에서 apply는 planner와 `all capture_*`(17개)가 모두 끝난 뒤 시작했다(`aggregate set` → `dependencies satisfied`). 빈 fan-out에서 장벽이 풀리는지는 미확인이다. | +| P-4 capture의 `{{prev}}` 형태 | **확인.** 17개 capture 모두 같은 ordinal 인스턴스의 응답에서 `answers.relation`을 꺼냈다. apply의 prev 문맥에 planner와 capture 17개가 모두 실렸다(`re-created with rendered prev context`). capture를 없앨지는 별도 결정이다. | + +## 6. 남은 문제와 권고 + +1. **JEV가 `independent_effect` 쪽으로 강하게 기운다.** 17쌍 중 16쌍에서 independent가 최댓값이었다. + - 원인 후보 1: `state`가 식별자뿐이라 정보가 적다(전략서 §8 위험 3). + - 원인 후보 2: 선택지가 셋뿐이어서 "무관"인 쌍(예: E-12 `sole_ownership_assertion` → `boundary_determination`)도 independent로 몰린다. + - 그래서 지금 설계로는 P3-02(미부착 15건)가 거의 줄지 않는다. + - 보정 단계에서 할 일: (a) 15건에 사람이 라벨을 붙여 `partial_payment`→`money_claim`처럼 붙어야 할 쌍을 확정하고 `accept_min`을 다시 정한다(전략서는 0.5 근처까지 허용, 최댓값 조건은 유지). (b) 질문이나 선택지 설명을 고칠지 검토한다. (c) 레지스트리 승격 후보 5건(X1 notice_lifecycle)을 법률 검토한다. +2. **P-2와 빈 fan-out 장벽(P-3 절반)은 아직 실측하지 않았다.** 작은 프로브로 확인하기를 권한다. 0건 fan-out 1회, 그리고 잘못된 `state`를 1건 넣은 회차를 돌린다. +3. **`SHADOW_RUN`은 그대로 둔다.** 보정 전에 끄면 시작 임계값에서 승격 제안 5건이 handoff에 SOFT 항목으로 추가된다(BO 부착은 0건). +4. **검증 범위:** 형식, 흐름, 계약 준수만 보았다. JEV 판정이 법률적으로 맞는지는 판단하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_2_part_3.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_2_part_3.md new file mode 100644 index 00000000..25bac2c6 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_2_part_3.md @@ -0,0 +1,126 @@ +# Stage 1 Part 3 실행결과보고서 2 (2026-11-05, L1 glossary 첫 실행) + +- **대상:** `stage_1_part_3_v.8.yml`(`284f4417…`, 2,513행). + - L1 앞에 `Task_C_LE_L1_glossary`(Gemini 3.8 Flash, 사고 수준 low)를 넣었다. + - planner는 정의와 BO 문맥을 JEV state에 싣는다. + - JEV 지시문은 "Use only the information given in state"로 바꿨다. + - 그림자 실행 설정(`SHADOW_RUN=True`)이다. +- **실행:** workspace `11월_1일_구성`, 세션 `781fad3b`, 2026-11-05 05:06:19 ~ 05:07:13 UTC(**54초**). +- **입력:** 1차 회차(세션 `67b1e054`)와 같은 Part 2 4차 산출이다. BO 78건, L0 결과(구조 50, BO 63/15)도 같다. +- **근거(모두 읽기 전용):** + - `agent-backend` 로그: SSE 이벤트, `[TASK:*]`, `[BRIDGE]`, `[USAGE]`. + - localdocs 산출물: `type_glossary.json`, 요청 파일, L1 영수증, handoff, `legal_effect_structures.json`, L0 영수증. + - 1차 회차의 쌍별 확률은 같은 로그 구간(세션 `67b1e054`)의 capture 출력에서 뽑았다. + +## 1. 판정 — **실행은 성공, 의도한 효과는 나오지 않음** + +| 기준 | 결과 | +|---|---| +| 백엔드 | `task_complete` 39건 = L0 1 + glossary 1 + planner 1 + recommender 17 + capture 17 + apply 1 + L2 1. `task_error`·`task_retry`·Traceback 0건. `stage_complete` 1, `execution_complete` 1 | +| glossary | Gemini 1회 31.9초. prompt 15,084, output 3,479, thoughts 0 토큰. **$0.0244** | +| planner | `PLANNED`. 후보 13, 쌍 17(1차와 같다). glossary `OK`: 요청 48 = 수용 48, 버린 항목 0, 조문 버림 0, kind 정정 0, 정의 없이 보낸 유형 0. BO 문맥 `OK` | +| JEV | 17회, `jev-1.14.0`. 입력 토큰 합 **11,243**(1차 8,375, 호출당 약 660). 모두 응답했다 | +| apply | `APPLIED`. 13건 모두 `UNDECIDED`(그림자 실행). 번들·handoff 재기록 없음. 정의 누락이 없어 `PART3_GLOSSARY_MISSING`도 없음 | +| L2 | `READY_WITH_REVIEW`. 보존 등식 셋 통과(선언 50, route 66+18=84, BO 63+15=78). review_queue는 `PART3_BO_UNATTACHED` HARD 15와 `UNREGISTERED_EFFECT_TYPE_REVIEW` HARD 18로 1차와 같다 | + +- **실행 면에서는 개정이 의도대로 돌았다.** 새 task가 정의표를 계약 형식대로 냈고, 검증을 모두 통과했으며, 정의가 17쌍 state에 실렸다. 그림자 실행이라 L2 결과는 1차와 같다. +- **효과 면에서는 목적과 반대로 갔다.** JEV가 independent_effect 쪽으로 더 기울었다(§4). 미부착 15건을 줄이는 데는 이번 개정이 도움이 되지 않았다. + +## 2. IO 구조 (DAG, 실측) + +``` +L0 (코드) ─▶ structure_seed_bundle.json · review handoff(OPEN, 33) · part3_receipt.json + ├▶ glossary (Gemini 3.8 Flash low, 05:06:23→05:06:55; 번들 1개 preflight inline, 도구 미노출) + │ └─ 응답 봉투 ─▶ planner prev + └▶ planner (코드 3.2s; prev = [glossary, L0]) ─▶ type_glossary.json(48) · recommender_requests.json(13/17) + │ dynamic_fanout 17 + ├▶ recommender_0..16 (jev) ─▶ capture_{same_ordinal} ─▶ recommender_answers/pair_0000..0016.json + └▶ apply (코드 3.2s; "All 17 instances … aggregate set" 뒤) ─▶ part3_recommender_receipt.json + L2 (코드 3.4s) ─▶ legal_effect_structures.json (READY_WITH_REVIEW) · handoff FINALIZED +``` + +- 로그에서 확인한 간선: + - glossary는 L0를 기다렸다. + - planner는 `deps={'Task_C_LE_L1_glossary', 'Task_C_LE_L0_structure_seed_reducer'}`를 기다린 뒤 `rendered prev context: ['Task_C_LE_L1_glossary', 'Task_C_LE_L0_structure_seed_reducer']`로 다시 만들어졌다. + - planner의 `timeout`은 300으로 반영됐다. +- preflight는 백엔드가 "No-tools preflight: all 1 file(s) are shared → inlined into prompt prefix only"로 처리했다. 첫 iteration의 토큰은 12,007이었다. + +## 3. glossary 산출 (미검증 LLM 초안) + +| 항목 | 값 | +|---|---| +| 대상 | 선언 33 + 후보 15 = 48 | +| 정의 길이 | 최대 68자(상한 80) | +| 조문 수 | 1개 14건, 2개 34건 | +| sha256 | `3cb6348f…` (영수증 `glossary.glossary_sha256`) | + +예시. 조문은 사람이 대조하지 않았으므로 맞는지 판단하지 않았다. + +| type_id | definition_ko | statutes | +|---|---|---| +| money_claim (선언) | 일정한 금전의 지급을 목적으로 채권자가 채무자에게 청구하는 권리이다. | 민법 제376조, 제390조 | +| partial_payment (후보) | 채무자가 부담하는 채무의 일부를 변제함으로써 해당 범위에서 채무를 소멸시키고 채무를 승인하는 효력이다. | 민법 제460조, 제168조 제3호 | +| demand_notice (후보) | 채권자가 채무자에게 채무의 이행을 촉구하는 최고로서 이행지체 및 시효중단의 효력을 발생시키는 통지이다. | 민법 제174조, 제387조 제2항 | +| debt_acknowledgement (후보) | 소멸시효의 이익을 받을 채무자가 시효 완성 전에 채권자에 대해 채무의 존재를 승인하는 관념의 통지이다. | 민법 제168조 제3호 | +| succession_notice_lien_asset_defense (선언) | 승계·통지 사실의 흠결이나 유치권 성립 등을 이유로 채무이행 또는 인도 청구를 거절하는 항변권이다. | 민법 제320조, 제450조 | + +## 4. JEV 판정 비교 (같은 입력, 1차 → 2차, 정규화 확률) + +| 도메인 | 후보 → 선언 유형 | independent 1차→2차 | part_of 1차→2차 | wording 1차→2차 | +|---|---|---|---|---| +| E-02 | partial_payment → money_claim | 0.29 → **0.68** | **0.71** → 0.32 | 0.00 → 0.00 | +| E-02 | demand_notice → money_claim | 0.62 → 0.85 | 0.36 → 0.15 | 0.02 → 0.00 | +| E-02 | debt_acknowledgement → money_claim | 0.67 → 0.85 | 0.32 → 0.15 | 0.01 → 0.00 | +| E-02 | due_date_modification → money_claim | 0.67 → 0.89 | 0.33 → 0.11 | 0.00 → 0.00 | +| E-02 | guarantor_procurement_promise → money_claim | 0.75 → 0.88 | 0.24 → 0.12 | 0.01 → 0.00 | +| E-15 | inheritance_succession_status → succession_notice_lien_asset_defense | 0.69 → 0.95 | 0.30 → 0.05 | 0.01 → 0.00 | +| E-12 | sole_ownership_assertion → 선언 유형 5개 | 0.68~0.91 → 0.94~1.00 | 0.09~0.30 → 0.00~0.05 | 0.00~0.04 → 0.00~0.01 | +| X1 | *_notice_lifecycle 6종 → succession_notice_lien_asset_defense | 0.77~0.95 → 0.98~1.00 | 0.05~0.22 → 0.00~0.02 | 0.00~0.01 → 0.00 | + +- 쌍은 `pair_id` 앞부분 `d|k|T`로 맞췄다. 정의가 들어가 state sha가 바뀌었으므로 sha 부분은 회차마다 다르다. +- **17쌍 모두에서 independent가 올랐다.** + - 1차에서 유일하게 part_of가 최댓값이던 `partial_payment → money_claim`도 independent 0.68로 뒤집혔다. + - 신뢰도도 높아졌다. 1.00이 6쌍이다. +- **시작 임계값(0.80/0.20/0.80)으로 다시 계산하면:** + - 수용 0건. + - 승격 제안 12건: E-02 4건, E-12 1건, E-15 1건, X1 6건. 1차는 5건이었다. + - 무결정 1건: `partial_payment`, attach 0.32. + - 결국 이 설정을 켜면 미부착 BO는 줄지 않고, 승격 제안만 늘어난다. + +### 원인 분석 + +이번 회차는 정의 추가와 지시문 변경을 함께 바꿨으므로, 아래는 실측에서 끌어낸 가설이다. +1. **정의가 차이를 드러냈다.** + - 선언 유형 정의는 상위 권리를 추상적으로 정의한다. 예: `money_claim` = "청구하는 권리". + - 후보 정의는 고유한 효과와 조문을 적는다. 예: 시효중단, 채무승인, `민법 제168조 제3호`. + - 그 결과 criteria의 independent_effect 설명("선언 유형이 다루지 않는 고유한 결과·요건·구제")에 그대로 들어맞게 되었다. 조문이 서로 다르다는 점도 독립의 근거로 읽혔을 가능성이 크다. +2. **질문 틀이 목적과 어긋난다.** + - 부착에 필요한 판단은 "이 BO가 선언 유형 구조 안의 사건·요건·항변으로 다뤄질 수 있는가"다. 예를 들어 일부변제·최고·승인은 금전채권의 시효·금액에 작용하는 사건이다. + - 그런데 지금 선택지는 "고유한 효과가 있는가"를 묻는다. 고유한 효과가 있어도 선언 유형의 생애에 속하는 사건은 많은데, 이 경우를 담을 선택지가 없다. + - 정보가 늘수록 JEV는 이 틀 안에서 더 확신을 가지고 independent를 고른다. +3. **지시문 변경("identifiers" → "information")의 몫은 이 회차만으로 나눌 수 없다.** +4. **이 회차의 판정이 틀린 것은 아니다.** X1의 6쌍처럼 선언 유형과 실제로 관계가 없는 쌍에서 independent가 1.00에 가까워진 것은 정보가 늘어 판별이 선명해진 결과로 볼 수 있다. + +## 5. 프로브와 기타 관찰 + +| 항목 | 결과 | +|---|---| +| glossary 실패 시 planner 진행 | **미확인**(glossary가 실패하지 않았다) | +| P-2 실패한 jev 인스턴스 · 빈 fan-out 장벽 | **미확인**(1차와 같은 데이터라 시험되지 않았다) | +| 비어 있지 않은 fan-out 장벽 | 재확인. "All 17 instances … aggregate set" 뒤에 apply가 시작했다 | +| `llm_reasoning: low` → thoughts | `thoughts_tokens=0`. 사고 토큰이 쓰이지 않았다 | +| 비용 | glossary $0.0244 + JEV 약 $0.0005. 1차 대비 회차당 약 $0.025 늘었다 | + +## 6. 권고 + +1. **`SHADOW_RUN`은 그대로 둔다.** 지금 임계값으로 켜면 승격 제안 12건만 handoff에 쌓이고, 부착은 0건이다. +2. **질문 틀을 고치는 것을 먼저 검토한다.** JEV 이후 구간의 개정이므로 사용자 승인이 필요하다. + - 선택지 예: "선언 유형 구조 안에서 다뤄지는 사건·요건·항변"(부착 대상), "선언 유형과 별개 구조"(승격 후보), "무관"(목표 T가 맞지 않음). + - criteria 설명은 "고유한 효과가 있어도 선언 유형의 성립·소멸·시효·금액에 작용하면 부착"이라는 판단 기준을 담도록 바꾼다. +3. **원인을 나누는 A/B 실행을 고려한다.** 이번 `type_glossary.json`(`3cb6348f`)을 고정해 재사용하고, 지시문만 "identifiers"로 되돌려 한 번 돌린다. 그러면 정의 효과와 지시문 효과를 가를 수 있다. 정의가 회차마다 다시 생성되는 점도 이 방법으로 통제된다. +4. **사람 라벨을 붙인다.** 미부착 BO 15건마다 "붙여야 할 선언 유형 / 승격 / 무관"을 정해야, 어떤 질문 틀과 임계값이 맞는지 잴 수 있다. +5. **조문은 여전히 미검증이다.** 이 판의 점수는 임계값 보정 근거로만 쓴다. + +## 7. 검증 범위 + +형식, 흐름, 계약 준수, 회차 간 수치 비교만 보았다. glossary 정의·조문과 JEV 판정이 법률적으로 맞는지는 판단하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_3_part_3.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_3_part_3.md new file mode 100644 index 00000000..3d62141a --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_3_part_3.md @@ -0,0 +1,112 @@ +# Stage 1 Part 3 실행결과보고서 3 (2026-11-05, criteria 개정 + `unrelated` 첫 실행) + +- **대상:** `stage_1_part_3_v.8.yml`(`43dfd228…`, 2,560행). 2차 실행 판(`284f4417`)에서 두 가지를 바꿨다. + - 2:25pm: criteria 두 줄. part_of를 넓히고 independent를 좁혔다. + - 2:39pm: 넷째 선택지 `unrelated`를 추가하고 apply를 개정했다(4키, 수용 차단, 승격 하한 0.50, 영수증 v2). + - 그림자 실행 설정(`SHADOW_RUN=True`)이다. +- **실행:** workspace `11월_1일_구성`, 세션 `2650ba1a`, 2026-11-05 05:52:09 ~ 05:53:17 UTC(**68초**). +- **입력:** 1·2차와 같은 Part 2 4차 산출이다. BO 78건, L0 결과(구조 50, BO 63/15)도 같다. +- **근거(모두 읽기 전용):** + - `agent-backend` 로그(타임스탬프 포함). + - localdocs 산출물: `type_glossary.json`, 요청 파일, L1 영수증 v2, handoff, `legal_effect_structures.json`. + - 1·2차의 쌍별 확률은 같은 백엔드 로그 구간에서 뽑은 값(`실행결과보고서_2_part_3.md` §4)을 쓴다. + +## 1. 판정 — **실행 성공, 의도한 효과 확인** + +| 기준 | 결과 | +|---|---| +| 백엔드 | `task_complete` 39건(L0 1 + glossary 1 + planner 1 + recommender 17 + capture 17 + apply 1 + L2 1). `task_error`·`task_retry`·Traceback 0건. `stage_complete`·`execution_complete` 각 1 | +| glossary | Gemini 1회 43.9초. prompt 15,084, output 3,091, thoughts 0 토큰. $0.0229. 48/48 통과, 조문 버림 0. sha `1e3b5fab…`(2차 `3cb6348f…`와 다름 — 다시 생성됐다) | +| planner | `PLANNED`. 13후보·17쌍(변화 없음). timeout 300 반영 | +| JEV | 17회, `jev-1.14.0`. 입력 토큰 합 14,283(호출당 약 840). **ANSWER_MISSING 0** — 17건 모두 4키 확률을 돌려줬다 | +| apply | `APPLIED`. 영수증 `…receipt.v2`, `relation_keys` 4개, `thresholds.independent_floor` 0.5. 13건 모두 `UNDECIDED`(그림자 실행). 번들·handoff 재기록 없음 | +| L2 | `READY_WITH_REVIEW`. 보존 등식 셋 통과. review_queue는 HARD 15 + 18로 1·2차와 같다 | + +- 4키 계약(criteria ↔ `RELATION_KEYS` ↔ 영수증 v2)이 실호출에서 깨지지 않았다. +- 이번 회차에서 처음으로 JEV 판정이 목적한 방향으로 갈렸다(§3). + +## 2. IO 구조 (실측 시각) + +``` +L0 ─▶ bundle · handoff(OPEN, 33) + ├▶ glossary (05:52:14→05:52:58, Gemini 43.9s) ─▶ planner prev + └▶ planner (05:52:58→05:53:01, 3.35s) ─▶ type_glossary.json(48) · recommender_requests.json(13/17) + ├▶ recommender_0..16 (jev) — "All 17 … aggregate set" 05:53:02 + │ └▶ capture_{same_ordinal} — "All 17 … aggregate set" 05:53:11 + └▶ apply (→05:53:14, 3.17s) ─▶ part3_recommender_receipt.json (v2) + L2 (→05:53:17, 3.27s) ─▶ legal_effect_structures.json (READY_WITH_REVIEW) +``` + +## 3. JEV 판정 비교 (1차 → 2차 → 3차, 정규화 확률) + +i = independent_effect, p = part_of_declared_type, w = wording_variant, u = unrelated(3차만). 쌍은 `d|k|T`로 맞췄다. + +| 도메인 | 후보 → 선언 유형 | 1차 i / p | 2차 i / p | **3차 i / p / w / u** | 3차 최댓값 | +|---|---|---|---|---|---| +| E-02 | partial_payment → money_claim | 0.29 / 0.71 | 0.68 / 0.32 | 0.00 / **1.00** / 0.00 / 0.00 | part_of | +| E-02 | demand_notice → money_claim | 0.62 / 0.36 | 0.85 / 0.15 | 0.00 / **1.00** / 0.00 / 0.00 | part_of | +| E-02 | debt_acknowledgement → money_claim | 0.67 / 0.32 | 0.85 / 0.15 | 0.00 / **1.00** / 0.00 / 0.00 | part_of | +| E-02 | due_date_modification → money_claim | 0.67 / 0.33 | 0.89 / 0.11 | 0.01 / **0.99** / 0.00 / 0.00 | part_of | +| E-02 | guarantor_procurement_promise → money_claim | 0.75 / 0.24 | 0.88 / 0.12 | 0.33 / **0.36** / 0.00 / 0.31 | part_of(근소) | +| E-15 | inheritance_succession_status → succession_notice_lien_asset_defense | 0.69 / 0.30 | 0.95 / 0.05 | 0.15 / 0.16 / 0.00 / **0.69** | unrelated | +| E-12 | sole_ownership_assertion → aggregate_building_management | 0.68 / 0.30 | 0.98 / 0.02 | 0.14 / 0.05 / 0.00 / **0.81** | unrelated | +| E-12 | sole_ownership_assertion → boundary_determination | 0.76 / 0.22 | 1.00 / 0.00 | 0.30 / 0.04 / 0.00 / **0.66** | unrelated | +| E-12 | sole_ownership_assertion → coownership_governance | 0.91 / 0.09 | 0.99 / 0.01 | **0.53** / 0.14 / 0.00 / 0.33 | independent | +| E-12 | sole_ownership_assertion → coownership_partition | 0.71 / 0.25 | 0.94 / 0.05 | **0.56** / 0.22 / 0.03 / 0.19 | independent | +| E-12 | sole_ownership_assertion → exclusive_use_settlement | 0.78 / 0.19 | 1.00 / 0.00 | **0.51** / 0.09 / 0.01 / 0.39 | independent | +| X1 | contract_change_request_notice_lifecycle → (S) | 0.90 / 0.10 | 0.99 / 0.01 | 0.07 / 0.03 / 0.00 / **0.90** | unrelated | +| X1 | contract_rescission_notice_lifecycle → (S) | 0.95 / 0.05 | 0.99 / 0.01 | 0.19 / 0.04 / 0.00 / **0.77** | unrelated | +| X1 | registry_cancellation_demand_notice_lifecycle → (S) | 0.86 / 0.14 | 0.98 / 0.02 | 0.13 / 0.04 / 0.00 / **0.83** | unrelated | +| X1 | lease_termination_notice_lifecycle → (S) | 0.93 / 0.07 | 1.00 / 0.00 | 0.18 / 0.09 / 0.00 / **0.73** | unrelated | +| X1 | oral_demand_notice_lifecycle → (S) | 0.81 / 0.18 | 1.00 / 0.00 | 0.31 / 0.33 / 0.00 / **0.36** | unrelated(근소) | +| X1 | demand_notice_lifecycle → (S) | 0.77 / 0.22 | 1.00 / 0.00 | 0.26 / **0.39** / 0.00 / 0.35 | part_of(근소) | + +(S) = succession_notice_lien_asset_defense + +### 기대값 대비 + +| 기대값(2:39pm 머리말) | 결과 | +|---|---| +| E-02: part_of 상승. 효과는 예시에 이름이 없는 두 쌍으로 판단 | **충족.** `due_date_modification` 0.11 → 0.99. `guarantor_procurement_promise`는 0.12 → 0.36으로 올랐지만 셋으로 갈렸다. 예시에 이름이 있는 세 쌍은 1.00(예시 효과와 분리할 수 없다) | +| E-02: unrelated 질량은 part_of가 아니라 independent에서 빠져야 한다 | **충족.** 4쌍은 u 0.00. guarantor만 u 0.31 | +| X1 → unrelated | **6쌍 중 5쌍 충족**(u 0.36~0.90). `demand_notice_lifecycle`은 part_of 0.39로 근소하게 앞섰고, `oral_demand_notice_lifecycle`은 u 0.36으로 근소하다. 두 후보 모두 "최고(demand)" 계열이다 | +| E-12: 공유 유형 쌍 → independent 또는 part_of, 경계 쌍 → unrelated 또는 independent | **충족.** 공유 3쌍은 independent 0.51~0.56, 경계·집합건물 2쌍은 unrelated | +| E-15: 기록만 | unrelated 0.69 | + +### 시작 임계값(0.80 / 0.20 / 0.80 / floor 0.50)으로 다시 계산 + +| 결과 | 후보 | 붙는 BO | +|---|---|---| +| **수용 4** | E-02 partial_payment, demand_notice, debt_acknowledgement, due_date_modification → `money_claim`(attach 0.99~1.00, T가 하나라 마진 조건 없음) | bh3, bh7, bh31, bh42, bh40 = **5건** | +| 승격 제안 0 | — | — | +| 무결정 9 | E-02 guarantor(attach 0.36), E-12 sole_ownership(최고 attach 0.25, 비부착 질량이 0.80 미만인 쌍 있음), E-15, X1 6종 | — | + +- 그림자 실행을 끄면 미부착 BO는 15건에서 **10건**으로 줄어든다. 남는 10건은 bh41, bh44, bh51, X1 7건이다. +- 1·2차에서는 같은 계산으로 붙는 BO가 0건이었다. +- 승격 제안은 0건이다. 2차의 12건이 모두 사라졌다. X1처럼 목표가 하나이고 그것이 무관한 후보는 설계상 승격되지 않는다. + +## 4. 해석과 주의 + +1. **criteria와 `unrelated`가 함께 작동했다.** 2차에서 17쌍 모두 independent 쪽(0.68~1.00)으로 기울던 분포가 셋으로 갈렸다. 생애 사건은 part_of, 경합 구조는 independent, 무관한 목표는 unrelated다. 이번 변경으로 질문 틀과 목적(부착 여부)이 맞춰졌다. +2. **E-02의 1.00은 예시 효과와 섞여 있다.** part_of 설명의 예시가 partial_payment·demand_notice·debt_acknowledgement를 직접 부른다. 예시에 없는 due_date_modification도 0.99라서 규칙 자체가 통했다는 근거는 있다. 하지만 세 쌍의 확신도는 예시를 빼면 낮아질 수 있다. +3. **약한 판정이 세 곳에 있다.** + - `guarantor_procurement_promise`(0.33/0.36/0.31) + - X1 `demand_notice_lifecycle`(p 0.39 / u 0.35) + - X1 `oral_demand_notice_lifecycle`(u 0.36 / p 0.33) + - 시작 임계값에서는 모두 무결정이라 잘못 붙지는 않는다. 다만 "최고" 계열 통지가 승계 항변의 part_of로 끌리는 것은 예시의 "demand for performance"가 X1에도 함께 실리기 때문일 수 있다(1차 검증 MINOR-1이 예상한 위험). +4. **"같은 입력"이 아니다.** glossary가 다시 생성됐다(`1e3b5fab`, 2차는 `3cb6348f`). 그래서 이번 변화는 criteria·`unrelated`·정의 차이가 합쳐진 결과다. +5. **조문·정의는 여전히 미검증이다.** 판정의 법률적 타당성은 이 보고서에서 판단하지 않았다. + +## 5. 권고 + +1. **수용 4건(BO 5건)을 사람이 검토한다.** E-02 `money_claim`에 일부변제·최고·채무승인·변제기 변경을 붙이는 것이 맞는지 확인한다. 맞다면 그림자 실행을 끌 근거가 생긴다. 끄더라도 시작 임계값(0.80/0.20/0.80/0.50)이면 이번 데이터에서는 이 4건만 움직인다. +2. **임계값은 지금 값을 유지한다.** 이 회차에서 수용과 무결정이 깔끔하게 갈린다(수용은 0.99 이상, 다음 높은 attach는 0.39). +3. **선택 사항(각각 승인 필요):** + - part_of 예시를 시험 후보가 아닌 항목으로 바꿔 예시 효과를 걷어낸다. + - "목표 무관" 판정을 handoff SOFT 항목으로 알린다. 그러면 X1 7건에 대해 사람이 "레지스트리 승격 또는 다른 도메인 대상"을 판단하기 쉬워진다. + - glossary를 고정해 회차 간 비교의 변수를 하나로 줄인다. +4. **미실측 경로:** glossary 실패, 실패한 jev 인스턴스(P-2), 빈 fan-out 장벽은 여전히 시험되지 않았다. + +## 6. 검증 범위 + +형식, 흐름, 계약 준수, 회차 간 수치 비교, 임계값 재계산만 보았다. 판정과 정의가 법률적으로 맞는지는 판단하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_4_part_3.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_4_part_3.md new file mode 100644 index 00000000..0c83adff --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/실행결과보고서_4_part_3.md @@ -0,0 +1,124 @@ +# Stage 1 Part 3 실행결과보고서 4 (2026-11-05, 그림자 실행 해제 후 첫 실행) + +- **대상:** `stage_1_part_3_v.8.yml`(`5b6336bd…`, 2,589행). 3:30pm 사용자 결정 세 가지를 적용한 판이다. + - `SHADOW_RUN = False` + - part_of 예시를 "채무면제·혼동"으로 교체 + - SOFT `PART3_RECOMMENDER_TARGET_UNRELATED` 신설 +- **실행:** workspace `11월_1일_구성`, 세션 `6ed2a14b`, 2026-11-05 06:43:27 ~ 06:44:24 UTC(**57초**). +- **입력:** 1~3차와 같은 Part 2 4차 산출이다. BO 78건, L0 결과(구조 50, BO 63/15)도 같다. +- **근거(모두 읽기 전용):** + - `agent-backend` 로그(타임스탬프 포함). + - localdocs 산출물: `type_glossary.json`, 요청 파일, L1 영수증 v2, handoff, `legal_effect_structures.json`. + - 3차 쌍별 확률(보고서 3 §3). + +## 1. 판정 — **성공 (L1이 처음으로 결과물을 바꿨다)** + +| 기준 | 결과 | +|---|---| +| 백엔드 | `task_complete` 39건. `task_error`·`task_retry`·Traceback 0건. `stage_complete`·`execution_complete` 각 1 | +| glossary | Gemini 1회 33.1초. prompt 15,084, output 4,102, thoughts 0 토큰. $0.0267. 48/48 통과, 조문 버림 0. sha `3f875037…`(3차 `1e3b5fab…`와 다름) | +| planner | `PLANNED`, 13후보·17쌍 | +| JEV | 17회, `jev-1.14.0`. 입력 토큰 14,720. ANSWER_MISSING 0 | +| apply | `APPLIED`, `shadow_run: false`. 실제 임계값: 수용 0.80, 마진 0.20, 승격 0.80, 하한 0.50. **ACCEPT 4 · UNDECIDED 9.** 번들·handoff 모두 재기록(`bundle_rewritten`·`handoff_rewritten` true) | +| 부착 | BO **5건** → E-02 `money_claim`. 영수증 `bo_counts`: 부착 63 → 68, 미부착 15 → 10 | +| L2 | `READY_WITH_REVIEW`. 보존 등식 셋 통과 — **BO 68 + 10 = 78**, 선언 50, route 66 + 18 = 84 | + +- 그림자 실행을 끈 판이 처음으로 실제 데이터에서 돌았다. + - 번들·handoff 재기록, 쓰기 재읽기 대조, L2 보존 등식 재계산이 모두 정상이었다. + - handoff 검토 항목 가운데 `status`·`blocked` 키를 가진 것은 0건이다. + +## 2. IO 구조 (실측 시각) + +``` +L0 ─▶ bundle · handoff(OPEN, 33) + ├▶ glossary (06:43:31→06:44:05, Gemini 33.1s) + └▶ planner (→06:44:08, 3.43s) ─▶ type_glossary.json · recommender_requests.json(13/17) + ├▶ recommender_0..16 — "All 17 … aggregate set" 06:44:08 + │ └▶ capture_* — "All 17 … aggregate set" 06:44:18 + └▶ apply (→06:44:21, 3.28s) ─▶ bundle 재기록(부착 5) · handoff 재기록(33 → 40) · 영수증 v2 + L2 (→06:44:24, 3.32s) ─▶ legal_effect_structures.json (READY_WITH_REVIEW) · handoff FINALIZED +``` + +## 3. 결과물 변화 + +### 3.1 부착된 BO 5건 (`PART3_BO_ATTACHED_BY_RECOMMENDER`, SOFT, `decided_by: recommender`) + +| BO | 후보 유형 | 붙은 구조 | relation | accept_score | +|---|---|---|---|---| +| bh3 | partial_payment | `LES-E-02-money_claim` | part_of_declared_type | 0.99 | +| bh7 | partial_payment | `LES-E-02-money_claim` | part_of_declared_type | 0.99 | +| bh31 | demand_notice | `LES-E-02-money_claim` | part_of_declared_type | 0.99 | +| bh40 | due_date_modification | `LES-E-02-money_claim` | part_of_declared_type | 0.99 | +| bh42 | debt_acknowledgement | `LES-E-02-money_claim` | part_of_declared_type | 0.99 | + +- 최종 `money_claim` 레코드의 `source_bo_ids`는 12개다(기존 7 + 5). + - `review_codes`는 `PART3_BO_ATTACHED_BY_RECOMMENDER`, `review_required`는 true다. +- `structure_index.by_bo_id`에서 bh3·bh40 등이 `LES-E-02-money_claim`을 가리킨다. Part 4는 이 색인으로 이 구조를 찾는다. +- 이 5건의 HARD `PART3_BO_UNATTACHED`는 handoff에서 제거됐다. +- 결과는 3차 보고서가 예상한 수용 4건(BO 5건)과 같다. + +### 3.2 handoff / L2 review_queue (33 → 40) + +| 코드 | 심각도 | 3차 | 4차 | +|---|---|---:|---:| +| UNREGISTERED_EFFECT_TYPE_REVIEW | HARD | 18 | 18 | +| PART3_BO_UNATTACHED | HARD | 15 | **10** | +| PART3_BO_ATTACHED_BY_RECOMMENDER | SOFT | — | **5** | +| PART3_RECOMMENDER_TARGET_UNRELATED | SOFT | — | **7** | + +- **목표 무관 7건:** + - E-15 `inheritance_succession_status` + - X1 `contract_change_request` · `contract_rescission` · `demand_notice` · `lease_termination` · `oral_demand` · `registry_cancellation_demand`(각 `*_notice_lifecycle`) +- 3차 데이터로 재현했을 때는 6건이었다. 이번에는 X1 `demand_notice_lifecycle`의 최댓값이 part_of 0.39에서 unrelated 0.42로 바뀌어 한 건이 늘었다. +- 남은 HARD 미부착 10건과 그 판정은 다음과 같다. + + | BO | 후보 | 판정 | + |---|---|---| + | bh41 | guarantor | 무결정 | + | bh44 | E-15 | 목표 무관 | + | bh51 | E-12 | 무결정, 공유 유형과 경합 | + | X1 7건 | X1 후보 6종 | 목표 무관 | + +## 4. JEV 판정 비교 (3차 → 4차) + +i / p / w / u = independent / part_of / wording / unrelated. + +| 쌍 | 3차 | 4차 | 4차 최댓값 | +|---|---|---|---| +| E-02 partial_payment → money_claim | 0.00/1.00/0.00/0.00 | 0.01/0.99/0.00/0.00 | part_of | +| E-02 demand_notice → money_claim | 0.00/1.00/0.00/0.00 | 0.01/0.99/0.00/0.00 | part_of | +| E-02 debt_acknowledgement → money_claim | 0.00/1.00/0.00/0.00 | 0.01/0.99/0.00/0.00 | part_of | +| E-02 due_date_modification → money_claim | 0.01/0.99/0.00/0.00 | 0.01/0.99/0.00/0.00 | part_of | +| E-02 guarantor_procurement_promise → money_claim | 0.33/0.36/0.00/0.31 | 0.36/0.43/0.00/0.21 | part_of(0.43, 수용 미달) | +| E-12 sole_ownership → aggregate_building_management | 0.14/0.05/0.00/0.81 | 0.15/0.03/0.00/0.82 | unrelated | +| E-12 sole_ownership → boundary_determination | 0.30/0.04/0.00/0.66 | 0.40/0.02/0.00/0.58 | unrelated | +| E-12 sole_ownership → coownership_governance | 0.53/0.14/0.00/0.33 | 0.55/0.34/0.00/0.11 | independent | +| E-12 sole_ownership → coownership_partition | 0.56/0.22/0.03/0.19 | 0.67/0.16/0.07/0.10 | independent | +| E-12 sole_ownership → exclusive_use_settlement | 0.51/0.09/0.01/0.39 | 0.55/0.14/0.01/0.30 | independent | +| E-15 inheritance_succession_status → (S) | 0.15/0.16/0.00/0.69 | 0.16/0.20/0.00/0.64 | unrelated | +| X1 contract_change_request → (S) | 0.07/0.03/0.00/0.90 | 0.06/0.06/0.00/0.88 | unrelated | +| X1 contract_rescission → (S) | 0.19/0.04/0.00/0.77 | 0.07/0.06/0.00/0.87 | unrelated | +| X1 demand_notice_lifecycle → (S) | 0.26/0.39/0.00/0.35 | 0.22/0.36/0.00/0.42 | unrelated(근소) | +| X1 lease_termination → (S) | 0.18/0.09/0.00/0.73 | 0.07/0.05/0.00/0.88 | unrelated | +| X1 oral_demand → (S) | 0.31/0.33/0.00/0.36 | 0.23/0.32/0.00/0.45 | unrelated | +| X1 registry_cancellation_demand → (S) | 0.13/0.04/0.00/0.83 | 0.18/0.19/0.00/0.63 | unrelated | + +(S) = succession_notice_lien_asset_defense + +- **예시 교체의 효과:** E-02 예시를 시험 후보 셋(일부변제·최고·채무승인)에서 채무면제·혼동으로 바꿨는데도, 그 셋은 0.99를 유지했다. 3차의 1.00은 예시 효과가 아니라 기준 문장 자체의 효과였다고 볼 수 있다. +- **안정성:** 정의표가 다시 생성됐지만(sha가 바뀜) 17쌍 모두 최댓값이 3차와 같거나 근소한 쌍에서만 바뀌었다(X1 `demand_notice_lifecycle`). 수용·무결정 경계는 그대로다. 수용 4건은 모두 0.99이고, 그다음으로 높은 attach는 guarantor 0.43이다. +- 근소한 쌍은 여전히 남아 있다. X1의 최고 계열 두 후보(u 0.42·0.45)와 E-12 `boundary_determination`(u 0.58 / i 0.40)이다. + +## 5. 남은 확인 사항과 권고 + +1. **Part 4 확인(3:30pm 머리말 예고):** 붙은 BO 5건 행에 Part 4가 `money_claim`의 `calculation_request_refs`·`domain_effects`를 복사한다. 다음 Part 4 실행에서 그 행들의 `calculation_requests`가 청구 계산 요청을 되풀이하는지 확인한다. 보존 등식에는 영향이 없다. +2. **사람 검토:** SOFT `PART3_BO_ATTACHED_BY_RECOMMENDER` 5건을 검토한다. + - bh3·bh7은 공사도급의 계약금·중도금 지급이다. E-02 금전채권의 "일부 변제"가 맞는지 확인한다. + - bh31·bh40·bh42는 물품대금 채권에 관한 것이다. E-02 `money_claim`이 가리키는 청구와 같은지 확인한다. +3. **목표 무관 7건(SOFT):** 검토자가 다음 처리를 고른다. 레지스트리 승격, 다른 도메인 유형에 붙이기, 또는 버리기다. +4. **정의표 고정:** 추후 Liti-agent 개정 사항(3:30pm 결정)이다. 이번 회차에서도 정의표가 바뀌었다(`3f875037`). +5. **미실측 경로:** glossary 실패, 실패한 jev 인스턴스(P-2), 빈 fan-out 장벽은 아직 시험되지 않았다. + +## 6. 검증 범위 + +형식, 흐름, 계약 준수, 회차 간 수치 비교만 보았다. 부착·판정·정의가 법률적으로 맞는지는 판단하지 않았다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/정의표_실행3_part_3.md b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/정의표_실행3_part_3.md new file mode 100644 index 00000000..7b750d35 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/Testrun/Nov_05/정의표_실행3_part_3.md @@ -0,0 +1,68 @@ +# 유형 정의표 — Stage 1 Part 3 실행 3 (Gemini 3.8 Flash 초안, 미검증) + +- **출처:** workspace `11월_1일_구성`, 세션 `2650ba1a`(2026-11-05 05:52Z). `Task_C_LE_L1_glossary`(gemini-3.8-flash, llm_reasoning low)가 쓰고, `Task_C_LE_L1_candidate_planner`가 검증해 기록한 `stage1_tmp/task_le/type_glossary.json`을 옮겼다. +- **판:** 파일 sha256 `1e3b5fab2fa3…` · 영수증 `glossary_sha256` `1e3b5fab2fa3…`(planner가 기록한 canonical 본문 sha). 상태 `OK`, 요청 48 = 수용 48, 버린 항목 0. +- **주의:** LLM 초안이다. 모든 항목이 `verified:false`다. law.go.kr 원문으로 조문 번호와 내용을 대조하지 않았으므로 정의와 조문을 사실로 쓰지 않는다. 이 문서는 사람 검토용 사본이고 파이프라인이 읽지 않는다. +- **열:** 도메인 = 그 유형이 선언됐거나(선언 유형) 미부착 BO로 나타난(후보 유형) 도메인. module·role_projection은 선언 유형만 있다. + +## 1. 선언 유형 (33개, `general_legal_effect` 제외) + +| # | type_id | 도메인 | module / role_projection | 정의(definition_ko) | 근거 조문(statutes) | +|---|---|---|---|---|---| +| 1 | `actio_remedy_or_cap` | E-13 | `actio` / `linked_actio_structures` | 사해행위취소소송에서 원상회복 방법 또는 취소 및 가액배상의 한도액이다. | 민법 제406조 | +| 2 | `aggregate_building_management` | E-12 | `aggregate_building` / `management_body_unit_owner_roles` | 집합건물의 공용부분 관리 및 관리단 운영 등에 관한 법률관계다. | 집합건물의 소유 및 관리에 관한 법률 제16조, 집합건물의 소유 및 관리에 관한 법률 제23조 | +| 3 | `apparent_agency` | E-01 | `agency` / `principal_apparent_agent_relying_party_roles` | 대리권이 없음에도 외관에 터 잡아 본인에게 법률행위 효과를 귀속시키는 제도다. | 민법 제125조, 민법 제126조, 민법 제129조 | +| 4 | `asset_state` | X2 | `asset_state` / `asset_state_projection` | 채무자 등의 적극재산 및 소극재산의 귀속과 현황을 나타내는 상태다. | 민법 제406조 | +| 5 | `boundary_determination` | E-12 | `boundary` / `adjacent_owner_parcel_boundary_roles` | 인접한 토지 상호 간의 경계를 확정하여 법률관계를 명확히 하는 재판상 형성권이다. | 민법 제214조, 민법 제242조 | +| 6 | `cancellation_effect` | E-01 | `juristic_act` / `canceller_counterparty_third_party_roles` | 취소권 행사에 의하여 일단 효력이 발생한 법률행위를 소급하여 무효로 만드는 효력이다. | 민법 제141조 | +| 7 | `commercial_successor` | E-03 | `commercial_successor` / `claim_chain_ref` | 영업양도나 합병 등으로 상사 법률관계상의 지위와 채무를 승계하는 자다. | 상법 제42조 | +| 8 | `condition_term_effect` | E-01 | `juristic_act` / `condition_beneficiary_obligor_roles` | 조건 성취나 기한 도래로 인하여 법률행위의 효력이 발생하거나 소멸하는 효과다. | 민법 제147조, 민법 제152조 | +| 9 | `construction_defect_remedy` | E-07 | `construction_defect` / `construction_defect_roles` | 완성물에 하자가 있는 경우 도급인이 하자보수나 손해배상을 청구하는 권리다. | 민법 제667조 | +| 10 | `construction_defect_setoff` | E-07 | `construction_defect` / `construction_setoff_roles` | 도급인이 수급인에 대한 하자보수 손해배상채권으로 공사대금채권과 대등액에서 상계하는 효력이다. | 민법 제492조, 민법 제667조 | +| 11 | `construction_payment_claim` | E-07 | `construction_contract` / `construction_payment_roles` | 수급인이 도급인에게 완성된 일의 보수 지급을 청구하는 권리다. | 민법 제665조 | +| 12 | `construction_progress_settlement` | E-07 | `construction_contract` / `construction_progress_roles` | 공사 진행 기성에 따라 발생한 공사대금을 정산하여 지급을 구하는 권리다. | 민법 제665조 | +| 13 | `coownership_governance` | E-12 | `coownership` / `coowner_act_consent_roles` | 공유물의 보존 관리 및 처분 변경에 관한 공유자 상호 간의 의사결정 및 권한관계다. | 민법 제264조, 민법 제265조 | +| 14 | `coownership_partition` | E-12 | `partition` / `partitioner_coowner_object_roles` | 공유관계를 해소하고 공유물을 단독소유 또는 가격배상 등의 방식으로 분할하는 청구권이다. | 민법 제268조, 민법 제269조 | +| 15 | `declaration_defect` | E-01 | `juristic_act` / `declarant_counterparty_roles` | 비진의표시 통정허위표시 착오 사기 강박 등으로 흠이 있는 의사표시다. | 민법 제107조, 민법 제108조, 민법 제109조 | +| 16 | `exclusive_use_settlement` | E-12 | `coownership` / `using_coowner_nonusing_coowner_roles` | 공유자 1인이 공유물을 배타적으로 사용수익함에 따라 다른 공유자에게 부당이득을 정산하는 의무다. | 민법 제263조, 민법 제741조 | +| 17 | `fraudulent_transfer` | E-13 | `actio` / `actio_roles` | 채무자가 일반채권자를 해함을 알면서 자기의 재산을 제3자에게 처분하는 사해행위다. | 민법 제406조 | +| 18 | `juristic_act_validity` | E-01 | `juristic_act` / `act_party_object_roles` | 당사자가 의도한 법률효과를 완전히 발생시키는 법률행위의 유효성이다. | 민법 제105조 | +| 19 | `land_use_gain` | E-04, E-11 | `land_use_gain` / `legal_calculation_object` | 권원 없이 타인의 토지를 점유 및 사용하여 얻은 차임 상당의 부당이득 반환의무다. | 민법 제741조 | +| 20 | `lease_attached_property_purchase` | E-08 | `lease_contract` / `lease_purchase_claim_roles` | 임차인이 임대인의 동의를 얻어 부속시킨 물건의 매수를 임대인에게 청구하는 권리다. | 민법 제646조 | +| 21 | `lease_delivery_concurrent_performance` | E-08 | `lease_lifecycle` / `lease_concurrent_performance_roles` | 임대차 종료 시 목적물 인도와 보증금 반환 의무가 상호 동시이행 관계에 있는 항변권이다. | 민법 제536조 | +| 22 | `lease_deposit_return` | E-08 | `lease_contract` / `lease_deposit_return_roles` | 임대차 종료 시 임차인이 임대인에게 보증금의 반환을 청구하는 권리다. | 민법 제317조, 민법 제618조 | +| 23 | `lease_rent_payment` | E-08 | `lease_contract` / `lease_rent_roles` | 임대인이 임차인에게 목적물 사용 수익의 대가인 차임 지급을 청구하는 권리다. | 민법 제618조 | +| 24 | `lease_termination` | E-08 | `lease_lifecycle` / `lease_termination_roles` | 기간 만료나 해지 통고로 인하여 유효하던 임대차관계를 장래를 향해 소멸시키는 효력이다. | 민법 제635조, 민법 제636조 | +| 25 | `money_claim` | E-02, E-03 | `money_claim` / `claim_chain_ref` | 채권자가 채무자에게 금전의 지급을 청구할 수 있는 권리다. | 민법 제390조 | +| 26 | `possession_vindication` | E-11 | `possession_vindication` / `linked_structures` | 소유자가 그 소유에 속한 물건을 정당한 권원 없이 점유하는 자에게 반환을 청구하는 권리다. | 민법 제213조 | +| 27 | `preserved_claim` | E-13 | `actio` / `claim_chain_ref` | 채권자취소권이나 채권자대위권 행사에 의하여 보전되는 채권자의 권리다. | 민법 제404조, 민법 제406조 | +| 28 | `registry_invalidity` | E-09, E-10 | `registry_invalidity` / `linked_structures` | 실체적 권리관계에 부합하지 않거나 원인무효인 등기의 효력이 부정되는 상태다. | 민법 제186조 | +| 29 | `secured_debt` | E-10 | `secured_property` / `linked_structures` | 저당권이나 질권 등 담보물권에 의하여 우선변제가 담보되는 피담보채권이다. | 민법 제356조, 민법 제360조 | +| 30 | `succession_notice_lien_asset_defense` | E-10, E-11, E-15, X1, X3 | `succession_notice_lien_asset_defense` / `linked_structures` | 권리승계 통지나 유치권 등 실체적 권리에 터 잡아 목적물 인도나 청구를 거절하는 항변이다. | 민법 제320조, 민법 제450조 | +| 31 | `unauthorized_agency` | E-01 | `agency` / `principal_agent_counterparty_roles` | 대리권 없는 자가 본인을 대리하여 행한 법률행위로 본인에 대해 무효인 상태다. | 민법 제130조 | +| 32 | `unjust_enrichment` | E-04 | `unjust_enrichment` / `restitution_roles` | 법률상 원인 없이 타인의 재산 또는 노무로 인하여 이익을 얻고 손해를 가한 자의 반환의무다. | 민법 제741조 | +| 33 | `valuation` | E-04, X2 | `valuation` / `legal_calculation_object` | 재산이나 물건 또는 사용이익 등의 경제적 가치액을 금전으로 산정하는 효력이다. | 민법 제748조 | + +## 2. 후보 유형 (15개, 레지스트리 미등록) + +| # | type_id | 도메인 | 정의(definition_ko) | 근거 조문(statutes) | +|---|---|---|---|---| +| 1 | `contract_change_request_notice_lifecycle` | X1 | 계약 내용의 변경을 구하는 청약 또는 통지의 발송 도달 및 효력발생 과정이다. | 민법 제111조, 민법 제527조 | +| 2 | `contract_rescission_notice_lifecycle` | X1 | 채무불이행 등을 이유로 한 계약해제 의사표시의 발송 도달 및 효력발생 과정이다. | 민법 제111조, 민법 제543조 | +| 3 | `debt_acknowledgement` | E-02 | 시효의 이익을 받는 자가 채권자에 대하여 채무의 존재를 알고 있음을 표시하는 통지다. | 민법 제168조 제3호 | +| 4 | `demand_notice` | E-02 | 채권자가 채무자에 대하여 채무의 이행을 구하는 최고다. | 민법 제174조, 민법 제387조 제2항 | +| 5 | `demand_notice_lifecycle` | X1 | 채무자에 대한 이행청구 또는 최고 통지의 발송부터 상대방 도달 및 최고 효력의 과정이다. | 민법 제111조, 민법 제174조 | +| 6 | `due_date_modification` | E-02 | 당사자의 합의로 기존 채무의 변제기를 연기하거나 변경하는 효력이다. | 민법 제152조 | +| 7 | `guarantor_procurement_promise` | E-02 | 주채무자가 채권자에게 장래에 보증인을 세우기로 약속하는 법률관계다. | 민법 제431조 | +| 8 | `inheritance_succession_status` | E-15 | 피상속인의 사망으로 인하여 재산에 관한 포괄적 권리의무를 승계하는 지위다. | 민법 제1005조 | +| 9 | `lease_contract_formation` | —(미부착 BO 없음, route만) | 당사자 일방이 사용수익하게 하고 상대방이 차임 지급을 약정함으로써 성립하는 계약이다. | 민법 제618조 | +| 10 | `lease_relationship` | —(미부착 BO 없음, route만) | 임대차계약 체결로 인하여 당사자 간에 발생하는 사용수익권과 차임채무 등의 권리의무관계다. | 민법 제618조 | +| 11 | `lease_termination_notice_lifecycle` | X1 | 임대차계약 해지 의사표시의 통지 발송부터 도달 및 계약 종료 효력까지의 과정이다. | 민법 제111조, 민법 제635조 | +| 12 | `oral_demand_notice_lifecycle` | X1 | 구두로 행해진 이행청구 또는 최고 의사표시의 발화부터 상대방 요지 및 효력발생 과정이다. | 민법 제111조, 민법 제174조 | +| 13 | `partial_payment` | E-02 | 채무의 전액 중 일부에 관하여 채무를 이행하는 변제다. | 민법 제460조 | +| 14 | `registry_cancellation_demand_notice_lifecycle` | X1 | 원인무효 등기의 말소를 구하는 청구 의사표시의 통지 발송 도달 및 최고 효력 과정이다. | 민법 제111조, 민법 제214조 | +| 15 | `sole_ownership_assertion` | E-12 | 특정 목적물이 타인과의 공유가 아닌 자신의 단독 소유에 속함을 주장하는 효력이다. | 민법 제211조 | + +## 3. 이 회차 JEV 판정에 쓰인 항목 + +17쌍 state에 실린 것은 후보 13종의 정의와, 선언 유형 `money_claim`·`succession_notice_lien_asset_defense`·E-12 5종의 정의·조문이다. 판정 결과는 `실행결과보고서_3_part_3.md` §3에 있다. diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/.py new file mode 100644 index 00000000..514ea1eb --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/.py @@ -0,0 +1 @@ +/Users/hogyujhang/Library/CloudStorage/Dropbox/Business/Eroom AI Partners/Legal POC portfolio/민사에이전트-사해행위취소및대여금청구/POC - Law-aid Agent/프롬프트/prompt_updates_sequential/.venv/bin/python diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/check.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/check.py new file mode 100644 index 00000000..d0318f8d --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/check.py @@ -0,0 +1,35 @@ +import yaml, ast, re, sys, json +def load(p): + return yaml.safe_load(open(p, encoding="utf-8")) +new = load(sys.argv[1]); base = load(sys.argv[2]) +st = new["Agent"]["Stages"][0]; bt = base["Agent"]["Stages"][0] +tasks = {t["task_name"]: t for t in st["tasks"]} +btasks = {t["task_name"]: t for t in bt["tasks"]} +print("tasks:", list(tasks)) +for n in ("Task_C_LE_L0_structure_seed_reducer", "Task_C_LE_L2_final_structure_index_writer"): + print(n, "code identical:", tasks[n]["parameters"]["code"] == btasks[n]["parameters"]["code"], + "params identical:", tasks[n] == btasks[n]) +ALLOWED = {"{{prev}}", "{{item_json}}", "{{ordinal}}", "{{__user_hash__}}", "{{__workspace_hash__}}", "{{item.state_json}}"} +for n, t in tasks.items(): + if "parameters" in t: + code = t["parameters"]["code"] + toks = set(re.findall(r"\{\{[^}]*\}\}", code)) + bad = toks - ALLOWED + stray = code.count("{{") - sum(code.count(x) for x in toks) + src = code + for k in ALLOWED: + src = src.replace(k, "0") + ast.parse(src) + print(n, "ast ok; templates", sorted(toks), "bad", sorted(bad), "stray{{", stray) +jev = tasks["Task_C_LE_L1_recommender_*"] +print("jev keys:", sorted(jev), sorted(jev["jev"])) +crit = list(jev["jev"]["questions"]["relation"]["criteria"]) +m = re.search(r"RELATION_KEYS = \((.*?)\)", tasks["Task_C_LE_L1_apply"]["parameters"]["code"]) +print("criteria", crit, "RELATION_KEYS", m.group(1), "match:", set(crit) == set(ast.literal_eval("(" + m.group(1) + ")"))) +print("procedure:", json.dumps(st["task_procedure"], ensure_ascii=False)[:1500]) +sev = set(re.findall(r'"(HARD_WARNING|SOFT_WARNING|SOFT|HARD|BLOCKING)"', "".join(t.get("parameters", {}).get("code", "") for n, t in tasks.items() if "L1" in n))) +print("severity literals in L1:", sev) +for n, t in tasks.items(): + if "L1" in n and "parameters" in t: + c = t["parameters"]["code"] + print(n, "'status':/'blocked' in review items?", bool(re.search(r'new_item\s*=\s*\{[^}]*"(status|blocked)"', c))) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/fake/httpx.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/fake/httpx.py new file mode 100644 index 00000000..229d520d --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/fake/httpx.py @@ -0,0 +1,31 @@ +import json +FS = {} +FAIL_WRITE = set() +class _R: + def __init__(self, body, headers=None): + self.text = body; self.headers = headers or {} + def raise_for_status(self): pass +class Client: + def __init__(self, timeout=None): pass + def post(self, url, json=None, headers=None): + import json as J + m = json.get("method") + if m == "initialize": + return _R(J.dumps({"jsonrpc": "2.0", "id": 1, "result": {}}), {"mcp-session-id": "s"}) + if m == "notifications/initialized": + return _R("") + name = json["params"]["name"]; args = json["params"]["arguments"] + if name == "read_docs": + p = args["doc_names"][0] + if p not in FS: + txt = J.dumps({"results": [{"content": None, "error": "not found"}]}) + else: + txt = J.dumps({"results": [{"content": FS[p]}]}) + return _R(J.dumps({"jsonrpc": "2.0", "id": json["id"], "result": {"content": [{"text": txt}]}})) + if name == "write_file": + p = args["path"] + if p in FAIL_WRITE: + return _R(J.dumps({"jsonrpc": "2.0", "id": json["id"], "result": {"content": [{"text": "Error: disk"}]}})) + FS[p] = args["content"] + return _R(J.dumps({"jsonrpc": "2.0", "id": json["id"], "result": {"content": [{"text": "ok"}]}})) + raise RuntimeError(name) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/glossary_block.txt b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/glossary_block.txt new file mode 100644 index 00000000..4ed5fb1a --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/glossary_block.txt @@ -0,0 +1,60 @@ + # L1 glossary (2026-11-05 오후) — JEV 판정 직전, 선언 유형·후보 유형마다 법적 효과 정의 한 줄과 근거 조문 초안을 만든다. + # 도구 없는 1회 호출. 읽는 것은 preflight 로 실린 seed bundle 하나뿐이다(식별자·참조 id 만 있고 사건 서술이 없다). + # 결과는 llm_result_envelope 봉투로 Task_C_LE_L1_candidate_planner 가 받아 형식 검사 후 type_glossary.json 에 쓴다. + # 사람의 law.go.kr 원문 대조·JSON 자산 봉인은 이번 단계에서 생략한다 — 모든 항목이 verified:false 이고 + # JEV state 에는 glossary_source:"llm_unverified" 가 붙는다. 조문 오인용이 판정에 섞일 수 있으므로 + # 이 판의 점수는 임계값 보정 근거로만 쓰고 수용·승격을 켜는 근거로 쓰지 않는다(SHADOW_RUN 유지). + # 3:30pm 사용자 결정으로 SHADOW_RUN 을 껐다 — 미검증 정의가 실린 판정으로 BO 가 붙는다(수용 건은 SOFT 검토 항목이 남는다). + # 이 task 가 실패해도 planner 는 돈다(백엔드는 실패한 task 뒤에도 하류를 돌린다 — Part 2 F0 실패 뒤 S0 실행 선례) — 정의 없이 식별자만 보낸다. + # 출력 상한 32000 — 대상 약 50개 × 한글 한 줄. Gemini 는 사고 토큰을 따로 세므로 low 에서 비용이 늘지 않는다. + # 모델 id·허용값은 SKILL.md §3.1(gemini-3.8-flash: low|medium|high). 사고 수준은 llm_reasoning 한 키로만 준다. + - task_name: Task_C_LE_L1_glossary + description: 선언 유형·후보 유형의 법적 효과 정의 한 줄과 근거 조문 초안(미검증)을 JSON 으로 낸다 + llm_provider: google + llm_model: gemini-3.8-flash + llm_reasoning: low + llm_token_limit: 32000 + llm_result_envelope: true + max_iterations: 1 + expose_tools: false + use_tools: + - localdocs + preflight: true + preflight_files: + - stage1_tmp/task_le/structure_seed_bundle.json + prompts: + - role: system + content: |- + + 당신은 한국 민사법 용어 사전 편집자다. 법률효과 유형 식별자마다 그 법률효과가 무엇인지 일반적인 정의 한 문장과 + 근거 조문 초안을 쓴다. 사건의 사실관계는 보지도 쓰지도 않는다. 유형 사이의 관계(포함·동의어·독립)는 판정하지 않는다 — + 그 판정은 다음 단계의 별도 모델이 한다. + + + JSON 객체 하나만 출력한다. 앞뒤 설명·마크다운 코드펜스를 쓰지 않는다. 도구를 호출하지 않는다. + {"schema_version": "stage1_part3_type_glossary.v1", + "glossary": {"": {"kind": "declared 또는 candidate", + "definition_ko": "<한 문장, 60자 이내>", + "statutes": ["<법령명> 제조"]}}} + + - role: user + content: |- + + preflight 로 실린 stage1_tmp/task_le/structure_seed_bundle.json 하나만 읽는다(structure_seed_bundle 객체). + + + 1. declared — structure_records[] 의 type_id 전부. 단 general_legal_effect 는 뺀다. + 같은 type_id 가 여러 도메인에 있어도 한 번만 쓴다. 그 레코드의 module · role_projection · domain_id 는 뜻을 좁히는 참고로만 쓴다. + 2. candidate — unattached_routes[] 의 type_id 중 영문 소문자·숫자·밑줄 식별자이면서 declared 에 없는 것 전부. 한 번씩만 쓴다. + 목록 밖의 type_id 를 만들지 않는다. 대상을 빠뜨리지 않는다. + + + - definition_ko: 한국 민사·상사법에서 그 식별자가 가리키는 법률효과(또는 법률요건 사실)를 일반론으로 정의한 한 문장. 60자 이내(80자를 넘으면 버려진다). + candidate 는 식별자 이름이 가리키는 법률 개념을 정의한다(예: *_notice_lifecycle 은 해당 통지·최고의 발송부터 도달·효력까지). + - 당사자 이름·금액·날짜·증거 번호·사건 사실을 쓰지 않는다. 값 안에 큰따옴표와 역슬래시를 쓰지 않는다. + - statutes: 근거 조문 0~3개. "민법 제390조", "민법 제168조 제3호"처럼 법령명과 조 번호로 쓴다. 판례는 쓰지 않는다. + 한 항목에 조문 하나만 쓴다. 조문 제목·괄호·「」·본문/단서·여러 조 묶음(예: 제168조 제1호, 제174조)을 쓰지 않는다. + 조 번호를 확신하지 못하면 그 조문을 빼고, 하나도 확신하지 못하면 빈 배열을 쓴다. + - kind: declared 대상은 "declared", candidate 대상은 "candidate". + + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/glossary_block_330pm.txt b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/glossary_block_330pm.txt new file mode 100644 index 00000000..19d63f83 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/glossary_block_330pm.txt @@ -0,0 +1,59 @@ + # L1 glossary (2026-11-05 오후) — JEV 판정 직전, 선언 유형·후보 유형마다 법적 효과 정의 한 줄과 근거 조문 초안을 만든다. + # 도구 없는 1회 호출. 읽는 것은 preflight 로 실린 seed bundle 하나뿐이다(식별자·참조 id 만 있고 사건 서술이 없다). + # 결과는 llm_result_envelope 봉투로 Task_C_LE_L1_candidate_planner 가 받아 형식 검사 후 type_glossary.json 에 쓴다. + # 사람의 law.go.kr 원문 대조·JSON 자산 봉인은 이번 단계에서 생략한다 — 모든 항목이 verified:false 이고 + # JEV state 에는 glossary_source:"llm_unverified" 가 붙는다. 조문 오인용이 판정에 섞일 수 있으므로 + # 이 판의 점수는 임계값 보정 근거로만 쓰고 수용·승격을 켜는 근거로 쓰지 않는다(SHADOW_RUN 유지). + # 이 task 가 실패해도 planner 는 돈다(백엔드는 실패한 task 뒤에도 하류를 돌린다 — Part 2 F0 실패 뒤 S0 실행 선례) — 정의 없이 식별자만 보낸다. + # 출력 상한 32000 — 대상 약 50개 × 한글 한 줄. Gemini 는 사고 토큰을 따로 세므로 low 에서 비용이 늘지 않는다. + # 모델 id·허용값은 SKILL.md §3.1(gemini-3.8-flash: low|medium|high). 사고 수준은 llm_reasoning 한 키로만 준다. + - task_name: Task_C_LE_L1_glossary + description: 선언 유형·후보 유형의 법적 효과 정의 한 줄과 근거 조문 초안(미검증)을 JSON 으로 낸다 + llm_provider: google + llm_model: gemini-3.8-flash + llm_reasoning: low + llm_token_limit: 32000 + llm_result_envelope: true + max_iterations: 1 + expose_tools: false + use_tools: + - localdocs + preflight: true + preflight_files: + - stage1_tmp/task_le/structure_seed_bundle.json + prompts: + - role: system + content: |- + + 당신은 한국 민사법 용어 사전 편집자다. 법률효과 유형 식별자마다 그 법률효과가 무엇인지 일반적인 정의 한 문장과 + 근거 조문 초안을 쓴다. 사건의 사실관계는 보지도 쓰지도 않는다. 유형 사이의 관계(포함·동의어·독립)는 판정하지 않는다 — + 그 판정은 다음 단계의 별도 모델이 한다. + + + JSON 객체 하나만 출력한다. 앞뒤 설명·마크다운 코드펜스를 쓰지 않는다. 도구를 호출하지 않는다. + {"schema_version": "stage1_part3_type_glossary.v1", + "glossary": {"": {"kind": "declared 또는 candidate", + "definition_ko": "<한 문장, 60자 이내>", + "statutes": ["<법령명> 제조"]}}} + + - role: user + content: |- + + preflight 로 실린 stage1_tmp/task_le/structure_seed_bundle.json 하나만 읽는다(structure_seed_bundle 객체). + + + 1. declared — structure_records[] 의 type_id 전부. 단 general_legal_effect 는 뺀다. + 같은 type_id 가 여러 도메인에 있어도 한 번만 쓴다. 그 레코드의 module · role_projection · domain_id 는 뜻을 좁히는 참고로만 쓴다. + 2. candidate — unattached_routes[] 의 type_id 중 영문 소문자·숫자·밑줄 식별자이면서 declared 에 없는 것 전부. 한 번씩만 쓴다. + 목록 밖의 type_id 를 만들지 않는다. 대상을 빠뜨리지 않는다. + + + - definition_ko: 한국 민사·상사법에서 그 식별자가 가리키는 법률효과(또는 법률요건 사실)를 일반론으로 정의한 한 문장. 60자 이내(80자를 넘으면 버려진다). + candidate 는 식별자 이름이 가리키는 법률 개념을 정의한다(예: *_notice_lifecycle 은 해당 통지·최고의 발송부터 도달·효력까지). + - 당사자 이름·금액·날짜·증거 번호·사건 사실을 쓰지 않는다. 값 안에 큰따옴표와 역슬래시를 쓰지 않는다. + - statutes: 근거 조문 0~3개. "민법 제390조", "민법 제168조 제3호"처럼 법령명과 조 번호로 쓴다. 판례는 쓰지 않는다. + 한 항목에 조문 하나만 쓴다. 조문 제목·괄호·「」·본문/단서·여러 조 묶음(예: 제168조 제1호, 제174조)을 쓰지 않는다. + 조 번호를 확신하지 못하면 그 조문을 빼고, 하나도 확신하지 못하면 빈 배열을 쓴다. + - kind: declared 대상은 "declared", candidate 대상은 "candidate". + + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/harness.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/harness.py new file mode 100644 index 00000000..b66fa612 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/harness.py @@ -0,0 +1,15 @@ +import sys, json, io, contextlib, pathlib, copy +sys.path.insert(0, str(pathlib.Path(__file__).parent / "fake")) +import httpx, yaml +Y = yaml.safe_load(open(sys.argv[1] if len(sys.argv) > 1 else "work.yml", encoding="utf-8")) +TASKS = {t["task_name"]: t for t in Y["Agent"]["Stages"][0]["tasks"]} +def code(name): return TASKS[name]["parameters"]["code"] +def run(name, subs): + src = code(name) + for k, v in subs.items(): src = src.replace(k, v) + src = src.replace("{{__user_hash__}}", "u").replace("{{__workspace_hash__}}", "w") + buf = io.StringIO(); ns = {"__name__": "__main__"} + with contextlib.redirect_stdout(buf): + exec(compile(src, name, "exec"), ns) + return json.loads(buf.getvalue().strip().splitlines()[-1]) +def jdump(o): return json.dumps(o, ensure_ascii=False, sort_keys=True, separators=(",", ":")) + "\n" diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c1.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c1.py new file mode 100644 index 00000000..ffa49816 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c1.py @@ -0,0 +1,26 @@ +import pathlib +p = pathlib.Path("splice.py"); t = p.read_text(encoding="utf-8") +pairs = [ +(''' independent_effect: "The candidate has its own legal consequences, requirements or remedies that the declared type does not cover." + part_of_declared_type: "The candidate is a component, stage or sub-case of the declared type and carries the declared type's legal consequences." +''',''' independent_effect: "Choose this only when the candidate forms a claim or defense structure separate from the declared type and therefore needs its own structure record. Having its own legal effect or its own statute is not by itself independence." + part_of_declared_type: "Choose this when the candidate is an event, requirement or defense that acts on the declared type's formation, extinction, limitation period, amount, due date or enforceability, even if the candidate has its own legal effect. For example, partial payment, a demand for performance and acknowledgement of a debt act on the limitation period and amount of a money claim." +'''), +(''' # 비교 실행에서 정의 효과와 지시문 효과는 함께 측정된다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. +''',''' # 비교 실행에서 정의 효과와 지시문 효과는 함께 측정된다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. + # criteria(11-05 2:25pm 사용자 승인) — 키 3개는 그대로, 설명 두 개만 바꿨다. 2차 실행에서 정의를 싣자 17쌍 모두 + # independent 로 기울었다(실행결과보고서_2_part_3.md §4): "고유한 효과가 있는가"를 독립의 기준으로 삼은 문장이 원인. + # part_of_declared_type 은 "고유 효과가 있어도 선언 유형의 성립·소멸·시효·금액·이행기·행사 가능성에 작용하는 사건·요건·항변"으로 넓히고, + # independent_effect 는 "별개의 청구·항변 구조라 독립 구조 레코드가 필요할 때만"으로 좁혔다. wording_variant 는 그대로. + # 키 이름이 같으므로 apply 의 RELATION_KEYS·decide·임계값·영수증은 바뀌지 않는다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. +'''), +('''# JEV 지시문 11-05 2pm 사용자 결정으로 recommender instructions 를 "Use only the information given in state" 로 바꿨다 +''','''# JEV criteria 11-05 2:25pm 사용자 승인으로 independent_effect(좁힘)·part_of_declared_type(넓힘) 설명 두 줄만 바꿨다. +# 키 3개·wording_variant·apply 는 그대로. 효과 확인: 같은 입력에서 E-02 5쌍의 part_of 상승, X1·sole_ownership_assertion 은 independent 유지. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. +# JEV 지시문 11-05 2pm 사용자 결정으로 recommender instructions 를 "Use only the information given in state" 로 바꿨다 +'''), +] +for a, c in pairs: + assert t.count(a) == 1, a[:60]; t = t.replace(a, c) +p.write_text(t, encoding="utf-8"); print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c2.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c2.py new file mode 100644 index 00000000..e4cfdba4 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c2.py @@ -0,0 +1,25 @@ +import pathlib +p = pathlib.Path("splice.py"); t = p.read_text(encoding="utf-8") +pairs = [ +("amount, due date or enforceability, even if the candidate has its own legal effect. For example, partial payment, a demand for performance and acknowledgement of a debt act on the limitation period and amount of a money claim.", + "amount, due date or exercisability, even if the candidate has its own legal effect. For example, partial payment, a demand for performance and acknowledgement of a debt are events that act on the limitation period and amount of a money claim, so they belong here."), +('''# 키 3개·wording_variant·apply 는 그대로. 효과 확인: 같은 입력에서 E-02 5쌍의 part_of 상승, X1·sole_ownership_assertion 은 independent 유지. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. +''','''# 키 3개·wording_variant·instructions·apply 는 그대로. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. +# 효과 확인(확인 예정, 미실행): E-02 5쌍의 part_of 상승, X1·sole_ownership_assertion 은 independent 유지. +# 판정 주의 ① part_of 예시가 E-02 시험 후보 셋(partial_payment·demand_notice·debt_acknowledgement)을 직접 부르므로 +# 규칙의 효과는 예시에 없는 due_date_modification·guarantor_procurement_promise 와 E-12·X1·E-15 로 본다. +# ② 두 선택지 모두 "defense" 를 담아 X1(통지 → 항변)·E-12(단독소유 주장 → 공유 성립)가 part_of 로 끌릴 수 있다 — +# 승자만이 아니라 2차 회차 대비 확률·confidence 를 쌍마다 비교한다. E-15(상속 지위 → 승계 항변)의 기대값은 사양에 없다. +# ③ glossary 는 회차마다 다시 생성되므로 "같은 입력"이 아니다 — 비교표에 glossary_sha256(2차 3cb6348f…)을 함께 적는다. +'''), +('''# (JEV 이후 구간에서 바뀐 유일한 줄. criteria·model·state 경로는 그대로). 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. +''','''# (2pm 시점에 JEV 이후 구간에서 바뀐 유일한 줄. criteria 는 2:25pm 에 따로 바뀌었다). 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. +'''), +(''' # part_of_declared_type 은 "고유 효과가 있어도 선언 유형의 성립·소멸·시효·금액·이행기·행사 가능성에 작용하는 사건·요건·항변"으로 넓히고, +''',''' # part_of_declared_type 은 "고유 효과가 있어도 선언 유형의 성립·소멸·시효·금액·이행기·행사 가능성(exercisability)에 작용하는 사건·요건·항변"으로 넓히고, +'''), +] +for a, c in pairs: + assert t.count(a) == 1, a[:60]; t = t.replace(a, c) +p.write_text(t, encoding="utf-8"); print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c3.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c3.py new file mode 100644 index 00000000..7f06fe27 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_c3.py @@ -0,0 +1,17 @@ +import pathlib +p = pathlib.Path("splice.py"); t = p.read_text(encoding="utf-8") +pairs = [ +("separate from the declared type and therefore needs its own structure record.", "separate from the declared type and needs its own structure record."), +('''# 승자만이 아니라 2차 회차 대비 확률·confidence 를 쌍마다 비교한다. E-15(상속 지위 → 승계 항변)의 기대값은 사양에 없다. +''','''# 승자만이 아니라 2차 회차 대비 확률·confidence 를 쌍마다 비교한다. E-15(상속 지위 → 승계 항변)의 기대값은 사양에 없다. +# 관계가 없는 쌍도 independent 말고 고를 곳이 없다(무관 선택지 없음). X1·E-12 의 confidence 가 떨어지면 +# 다음 수단은 SKILL.md §3.4 규칙 4 의 "무관/그 외" 키 추가다 — 키가 바뀌므로 apply·RELATION_KEYS 개정과 새 승인이 필요하다. +'''), +('''# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +''','''# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +# (2:25pm criteria 개정 이후로는 위 JEV criteria 의 판정 주의 ① 을 따른다 — 이 셋은 part_of 예시에 이름이 나온다.) +'''), +] +for a, c in pairs: + assert t.count(a) == 1, a[:60]; t = t.replace(a, c) +p.write_text(t, encoding="utf-8"); print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d1.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d1.py new file mode 100644 index 00000000..eb27cc86 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d1.py @@ -0,0 +1,85 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]); t = t.replace(a, c) + p.write_text(t, encoding="utf-8") +rep("src/apply_head.py", [ +('''# 보정(사람 라벨) 후 SHADOW_RUN = False 로 바꾼다. accept_min 을 0.5 근처까지 낮춰도 최댓값 조건은 항상 붙는다. +SHADOW_RUN = True +''','''# 보정(사람 라벨) 후 SHADOW_RUN = False 로 바꾼다. accept_min 을 0.5 근처까지 낮춰도 최댓값 조건은 항상 붙는다. +# 2026-11-05 3:30pm 사용자 결정으로 끈다 — 시작 임계값이 실제로 적용된다(실행 3 데이터 기준 수용 4건·BO 5건). +SHADOW_RUN = False +'''), +('''CODE_MISSING = "PART3_RECOMMENDER_ANSWER_MISSING" +''','''CODE_MISSING = "PART3_RECOMMENDER_ANSWER_MISSING" +# 목표 무관(3:30pm) — 수용되지 않은 후보의 모든 쌍에서 unrelated 가 네 확률 중 최댓값이면 후보마다 한 건(SOFT). +# HARD PART3_BO_UNATTACHED 는 남는다. 검토자가 "레지스트리 승격 / 다른 도메인 대상 / 버림"을 바로 판단하게 하는 안내다. +CODE_TARGET_UNRELATED = "PART3_RECOMMENDER_TARGET_UNRELATED" +'''), +]) +rep("src/apply_body.py", [ +(''' # glossary 누락 — 회차 단위 한 건.''',''' # 목표 무관 — 수용·답 누락이 아닌 후보 중 모든 쌍의 최댓값이 unrelated 인 후보마다 한 건. + # 동률이면 RELATION_KEYS 순서상 unrelated 가 지므로(마지막 키) 보수적으로 남기지 않는다. + for row in decisions: + decision = row["decision"] + scores = decision.get("pair_scores") or [] + if decision["outcome"] in ("ACCEPT", "ANSWER_MISSING", "NO_PAIRS") or not scores: + continue + if not all(max(RELATION_KEYS, key=lambda key: s["probabilities"][key]) == UNRELATED for s in scores): + continue + new_item = {"review_code": CODE_TARGET_UNRELATED, "severity": "SOFT_WARNING", + "domain_id": row["domain_id"], "candidate_type_id": row["candidate_type_id"], + "decided_by": DECIDED_BY, "pair_scores": scores} + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + # glossary 누락 — 회차 단위 한 건.'''), +]) +rep("splice.py", [ +("For example, partial payment, a demand for performance and acknowledgement of a debt are events that act on the limitation period and amount of a money claim, so they belong here.", + "For example, a set-off declaration and an agreement on default interest are events that act on the extinction and amount of a money claim, so they belong here."), +('''# JEV unrelated 11-05 2:39pm 사용자 승인으로''','''# 3:30pm 결정 ① SHADOW_RUN = False — 시작 임계값(수용 0.80·마진 0.20·승격 0.80·독립 하한 0.50)이 실제로 적용된다. +# 실행 3 데이터면 E-02 4 후보(BO 5건)가 money_claim 에 붙고 HARD 미부착 15 → 10. 정의·조문은 여전히 미검증이다. +# ② part_of 예시를 시험 후보 밖 항목(상계 의사표시·지연손해금 약정 → 금전채권의 소멸·금액)으로 바꿨다(예시 효과 제거). +# ③ 목표 무관 안내 — 수용되지 않은 후보의 모든 쌍에서 unrelated 가 최댓값이면 SOFT PART3_RECOMMENDER_TARGET_UNRELATED +# (domain_id·candidate_type_id·decided_by·pair_scores) 한 건. HARD 미부착은 남는다. +# 정의표 고정은 추후 Liti-agent 개정으로 미룬다. 되돌릴 판은 stage_1_part_3_v.8_11_05_3_30pm.yml 이다. +# JEV unrelated 11-05 2:39pm 사용자 승인으로'''), +('''# 판정 주의 ① part_of 예시가 E-02 시험 후보 셋(partial_payment·demand_notice·debt_acknowledgement)을 직접 부르므로 +''','''# 판정 주의 ① (3:30pm 에 예시를 바꿔 해소) part_of 예시가 E-02 시험 후보 셋(partial_payment·demand_notice·debt_acknowledgement)을 직접 부르므로 +'''), +("# 첫 실행은 그림자 실행(apply SHADOW_RUN=True: 수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json).\n", + "# 첫 실행은 그림자 실행(apply SHADOW_RUN=True: 수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json). 3:30pm 에 끔.\n"), +("# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. SHADOW_RUN·임계값은 그대로다.\n", + "# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. 임계값은 그대로다(SHADOW_RUN 은 3:30pm 에 끔).\n"), +("기존 임계값·SHADOW_RUN 은 그대로이고", "기존 임계값은 그대로이고(SHADOW_RUN 은 3:30pm 에 끔)"), +]) +rep("glossary_block.txt", [ +(" # 이 판의 점수는 임계값 보정 근거로만 쓰고 수용·승격을 켜는 근거로 쓰지 않는다(SHADOW_RUN 유지).\n", + " # 이 판의 점수는 임계값 보정 근거로만 쓰고 수용·승격을 켜는 근거로 쓰지 않는다(SHADOW_RUN 유지).\n # 3:30pm 사용자 결정으로 SHADOW_RUN 을 껐다 — 미검증 정의가 실린 판정으로 BO 가 붙는다(수용 건은 SOFT 검토 항목이 남는다).\n"), +]) +for f in ("t_pipeline.py", "t_pipeline_lib.py"): + p = pathlib.Path(f); t = p.read_text(encoding="utf-8") + t = t.replace('replace("SHADOW_RUN = True", "SHADOW_RUN = ', 'replace("SHADOW_RUN = False", "SHADOW_RUN = ') + t = t.replace('"SHADOW_RUN = True", "SHADOW_RUN = %s"', '"SHADOW_RUN = False", "SHADOW_RUN = %s"') + p.write_text(t, encoding="utf-8") +p = pathlib.Path("t_pipeline.py"); t = p.read_text(encoding="utf-8") +add = '''# T) target-unrelated SOFT item (3:30pm) +a, rc = run_with(lambda it: P(0.05, 0.05, 0.0, 0.90)) +h = load(H, "stage1_part3_review_handoff"); tu = [i for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED"] +print("T1 all-unrelated", a["outcome_counts"], len(tu), sorted((i["domain_id"], i["candidate_type_id"]) for i in tu)) +assert len(tu) == 4 and all(i["severity"] == "SOFT_WARNING" and "status" not in i and "blocked" not in i for i in tu) +assert sum(1 for i in h["review_items"] if i["review_code"] == "PART3_BO_UNATTACHED") == 5 and h["counts"]["review_items"] == len(h["review_items"]) +a, rc = run_with(lambda it: P(0.05, 0.05, 0.0, 0.90) if it["target_type_id"] == "coownership_partition" else P(0.60, 0.05, 0.0, 0.35)) +h = load(H, "stage1_part3_review_handoff"); tu = [i for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED"] +print("T2 mixed", a["outcome_counts"], len(tu)); assert len(tu) == 0 +a, rc = run_with(lambda it: P(0.0, 0.40, 0.0, 0.40)) +h = load(H, "stage1_part3_review_handoff"); tu = [i for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED"] +print("T3 tie", len(tu)); assert len(tu) == 0 +a, rc = run_with(lambda it: P(0.05, 0.05, 0.0, 0.90), shadow=True) +h = load(H, "stage1_part3_review_handoff"); tu = [i for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED"] +print("T4 shadow", a["outcome_counts"], len(tu)) +print("UNRELATED TESTS DONE")''' +t = t.replace('print("UNRELATED TESTS DONE")', add, 1); p.write_text(t, encoding="utf-8") +print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d2.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d2.py new file mode 100644 index 00000000..3f4c8f6c --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d2.py @@ -0,0 +1,46 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]); t = t.replace(a, c) + p.write_text(t, encoding="utf-8") +rep("splice.py", [ +("For example, a set-off declaration and an agreement on default interest are events that act on the extinction and amount of a money claim, so they belong here.", + "For example, a set-off declaration and a release of the debt are events that act on the extinction and amount of a money claim, so they belong here."), +("② part_of 예시를 시험 후보 밖 항목(상계 의사표시·지연손해금 약정 → 금전채권의 소멸·금액)으로 바꿨다(예시 효과 제거).", + "② part_of 예시를 시험 후보 밖 항목(상계 의사표시·채무면제 → 금전채권의 소멸·금액)으로 바꿨다(예시 효과 제거)."), +('''# 정의표 고정은 추후 Liti-agent 개정으로 미룬다. 되돌릴 판은 stage_1_part_3_v.8_11_05_3_30pm.yml 이다. +''','''# 정의표 고정은 추후 Liti-agent 개정으로 미룬다. 되돌릴 판은 stage_1_part_3_v.8_11_05_3_30pm.yml 이다. +# 첫 실행에서 볼 것: 붙은 BO 행에 Part 4 가 money_claim 레코드의 calculation_request_refs·domain_effects 를 복사하므로 +# 해당 행의 calculation_requests 가 청구 계산 요청을 되풀이하는지 확인한다(보존 등식은 통과한다). +'''), +("# 프로브 전략서 §7 은 별도 프로브 YAML(P-1~P-4)을 먼저 돌리라 한다. 이 판은 그림자 실행을 그 프로브로 삼는다:\n", + "# 프로브 전략서 §7 은 별도 프로브 YAML(P-1~P-4)을 먼저 돌리라 한다. 이 판은 그림자 실행을 그 프로브로 삼는다(3:30pm 부터는 실제 부착과 함께 돈다):\n"), +('''# "목표 무관" 판단은 영수증에만 남는다(handoff 에 SOFT 로 알리는 항목은 새 승인 사항). +''','''# "목표 무관" 판단은 영수증에만 남는다(handoff 에 SOFT 로 알리는 항목은 새 승인 사항 — 3:30pm 해소, 위 3:30pm 결정 ③). +'''), +]) +rep("src/apply_head.py", [ +("# 임계값 — 시작값이며 검증되지 않았다(§2.4). 첫 온라인 실행은 그림자 실행이다:\n", + "# 임계값 — 시작값이며 검증되지 않았다(§2.4). 첫 온라인 실행들은 그림자 실행이었다(11-05 실행 1~3):\n"), +('"독립 구조가 필요하고 어떤 선언 유형과는 관계가 있음"을 뜻한다. 그런 후보의 판단은 영수증 pair_scores 에만 남는다.', + '"독립 구조가 필요하고 어떤 선언 유형과는 관계가 있음"을 뜻한다. 그런 후보의 판단은 3:30pm 부터 handoff SOFT\n# PART3_RECOMMENDER_TARGET_UNRELATED 로도 남는다.'), +]) +rep("src/apply_body.py", [ +(''' # 목표 무관 — 수용·답 누락이 아닌 후보 중 모든 쌍의 최댓값이 unrelated 인 후보마다 한 건. + # 동률이면 RELATION_KEYS 순서상 unrelated 가 지므로(마지막 키) 보수적으로 남기지 않는다. + for row in decisions: + decision = row["decision"] + scores = decision.get("pair_scores") or [] + if decision["outcome"] in ("ACCEPT", "ANSWER_MISSING", "NO_PAIRS") or not scores: + continue +''',''' # 목표 무관 — UNDECIDED 후보 중 모든 쌍의 최댓값이 unrelated 인 후보마다 한 건(ACCEPT·PROMOTION 과는 구조상 겹치지 않는다). + # 동률이면 RELATION_KEYS 순서상 unrelated 가 지므로(마지막 키) 보수적으로 남기지 않는다. + for row in decisions: + decision = row["decision"] + scores = decision.get("pair_scores") or [] + if decision["outcome"] != "UNDECIDED": + continue +'''), +]) +print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d3.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d3.py new file mode 100644 index 00000000..2e1a74d0 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_d3.py @@ -0,0 +1,22 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]); t = t.replace(a, c) + p.write_text(t, encoding="utf-8") +rep("splice.py", [ +("For example, a set-off declaration and a release of the debt are events that act on the extinction and amount of a money claim, so they belong here.", + "For example, a release of the debt and a merger of the creditor's and the debtor's positions are events that act on the extinction and amount of a money claim, so they belong here."), +("(상계 의사표시·채무면제 → 금전채권의 소멸·금액)", "(채무면제·혼동 → 금전채권의 소멸·금액. 상계는 반대채권이 필요하고 레지스트리에 별도 구조로 있어 뺐다)"), +("③ 목표 무관 안내 — 수용되지 않은 후보의 모든 쌍에서", "③ 목표 무관 안내 — UNDECIDED 후보의 모든 쌍에서"), +("— 이 셋은 part_of 예시에 이름이 나온다.)", "— 3:30pm 이전에는 이 셋이 part_of 예시에 이름이 나왔다.)"), +(" 이 판은 그림자 실행을 그 프로브로 삼는다(3:30pm 부터는 실제 부착과 함께 돈다):\n", " 이 판은 그림자 실행을 그 프로브로 삼는다(3:30pm 부터는 실제 부착과 함께 돈다):\n"), +("수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json). 3:30pm 에 끔.\n", "수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json).\n"), +]) +rep("src/apply_head.py", [ +("# 보정(사람 라벨) 후 SHADOW_RUN = False 로 바꾼다. accept_min 을 0.5 근처까지 낮춰도 최댓값 조건은 항상 붙는다.\n", + "# SHADOW_RUN = True 면 두 임계값을 1.01 로 두어 수용·승격을 끈다. accept_min 을 0.5 근처까지 낮춰도 최댓값 조건은 항상 붙는다.\n"), +("2026-11-05 3:30pm 사용자 결정으로 끈다 — 시작 임계값이", "2026-11-05 3:30pm 사용자 결정으로 끈다(사람 라벨 보정 없이) — 시작 임계값이"), +("# 목표 무관(3:30pm) — 수용되지 않은 후보의 모든 쌍에서", "# 목표 무관(3:30pm) — UNDECIDED 후보의 모든 쌍에서"), +]) +print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_r1.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_r1.py new file mode 100644 index 00000000..a026fd40 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_r1.py @@ -0,0 +1,147 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]) + t = t.replace(a, c) + p.write_text(t, encoding="utf-8") + +rep("src/planner_head.py", [ +("""# 모든 항목은 verified:false 이고 state 에 glossary_source:"llm_unverified" 를 단다. glossary 가 없거나 형식이 +# 틀린 유형은 정의 없이(식별자만) 보내고 handoff 에 PART3_GLOSSARY_MISSING(SOFT) 를 한 건 남긴다. +""","""# 모든 항목은 verified:false 다. state 의 glossary_source 는 정의가 하나라도 실리면 "llm_unverified", 없으면 "none". +# glossary 가 없거나 형식이 틀린 유형은 정의 없이(식별자만) 보내고, 그 목록을 요청 파일 glossary 에 남긴다 — +# handoff 의 PART3_GLOSSARY_MISSING(SOFT) 한 건은 apply 가 쓴다(fan-out 부모는 handoff 를 쓰지 않는다). +# 조문은 "법령명 제N조(의N)( 제N항)( 제N호)" 형식만 남긴다. 표는 {"glossary": {...}} 봉투와 맨 {type_id: {...}} 둘 다 받는다. +"""), +("PAYLOAD_KEY_MAX = 20\n", "PAYLOAD_KEY_MAX = 20\nSTATUTE_PATTERN = re.compile(r\"^[가-힣A-Za-z·ㆍ ]{2,30} 제\\d+조(의\\d+)?( 제\\d+항)?( 제\\d+호)?$\")\n"), +]) + +rep("src/planner_body.py", [ +# PREV_UNPARSEABLE +("""def load_prev(raw): + # {{prev}} 전체를 한 번만 파싱한다. 치환되지 않은 템플릿이거나 JSON 이 아니면 빈 dict. + if raw.strip().startswith("{" + "{"): + return {} + try: + prev = json.loads(raw) + except Exception: + return {} + return prev if isinstance(prev, dict) else {} +""","""def load_prev(raw): + # prev 전체를 한 번만 파싱한다. 반환 (dict, 오류 코드|None). 치환되지 않은 템플릿이면 빈 dict(오류 아님 — L0_NOT_READY 로 끝난다). + if raw.strip().startswith("{" + "{"): + return {}, None + try: + prev = json.loads(raw) + except Exception as exc: + return {}, "PREV_UNPARSEABLE:%s" % str(exc)[:200] + return (prev, None) if isinstance(prev, dict) else ({}, "PREV_NOT_OBJECT") +"""), +(""" prev = load_prev(r\"\"\"{{prev}}\"\"\") + l0 = previous_state(prev, L0_TASK) +""",""" prev, prev_error = load_prev(r\"\"\"{{prev}}\"\"\") + if prev_error: + return {"code": "PREV_UNPARSEABLE", "detail": prev_error} + l0 = previous_state(prev, L0_TASK) +"""), +# bare map +(""" table = obj.get("glossary") if isinstance(obj, dict) else None +""",""" table = obj.get("glossary") if isinstance(obj, dict) else None + if table is None and isinstance(obj, dict) and obj and all( + is_type_id(k) and isinstance(v, dict) for k, v in obj.items()): + table = obj # 봉투 없이 맨 {type_id: {...}} 로 낸 경우 +"""), +# statute format +(""" statutes = [] + for statute in row.get("statutes") if isinstance(row.get("statutes"), list) else []: + if isinstance(statute, str): + statute = " ".join(statute.split()) + if statute and len(statute) <= STATUTE_MAX_CHARS and statute not in statutes: + statutes.append(statute) +""",""" statutes = [] + statutes_dropped = 0 + for statute in row.get("statutes") if isinstance(row.get("statutes"), list) else []: + statute = " ".join(statute.split()) if isinstance(statute, str) else "" + if (len(statute) <= STATUTE_MAX_CHARS and STATUTE_PATTERN.fullmatch(statute) + and statute not in statutes): + statutes.append(statute) + else: + statutes_dropped += 1 +"""), +(""" "kind": kind, "kind_corrected": row.get("kind") != kind, + "verified": False} +""",""" "kind": kind, "kind_corrected": row.get("kind") != kind, + "statutes_dropped": statutes_dropped + + max(0, len(statutes) - STATUTE_MAX_ITEMS), + "verified": False} +"""), +# payload keys by frequency +(""" bo_types = set() + payload_keys = set() +""",""" bo_types = set() + payload_keys = {} +"""), +(""" payload_keys.update(k for k in payload if is_type_id(k)) + return sorted(bo_types), sorted(payload_keys)[:PAYLOAD_KEY_MAX] +""",""" for key in payload: + if is_type_id(key): + payload_keys[key] = payload_keys.get(key, 0) + 1 + # 여러 BO 에 자주 나온 키를 먼저 남긴다(같으면 이름순). 잘렸는지는 반환값 셋째로 알린다. + ranked = sorted(payload_keys, key=lambda k: (-payload_keys[k], k)) + return sorted(bo_types), ranked[:PAYLOAD_KEY_MAX], len(ranked) > PAYLOAD_KEY_MAX +"""), +(""" bo_types, payload_keys = bo_context(bo_records, sorted(entry["bo_ids"])) +""",""" bo_types, payload_keys, payload_truncated = bo_context(bo_records, sorted(entry["bo_ids"])) +"""), +(""" candidate_state = {"type_id": k, "cooccurring_keywords": cooccur, + "bo_types": bo_types, "payload_keys": payload_keys} +""",""" candidate_state = {"type_id": k, "cooccurring_keywords": cooccur, + "bo_types": bo_types, "payload_keys": payload_keys} + if payload_truncated: + candidate_state["payload_keys_truncated"] = True +"""), +# glossary_source always + ensure_ascii False +(""" if k_gloss or t_gloss: + state["glossary_source"] = GLOSSARY_SOURCE + # ensure_ascii — 정의(한글)는 \\\\uXXXX 로 실린다. JEV 가 state 를 객체로 받으므로 의미는 같다. + state_json = json.dumps(state, ensure_ascii=True, sort_keys=True, separators=(",", ":")) +""",""" state["glossary_source"] = GLOSSARY_SOURCE if (k_gloss or t_gloss) else "none" + # ensure_ascii=False — 한글 정의를 \\\\uXXXX 로 늘리지 않는다(백엔드가 문자열을 객체로 풀지 못해도 읽힌다). + state_json = json.dumps(state, ensure_ascii=False, sort_keys=True, separators=(",", ":")) +"""), +(""" "kind_corrected_count": sum(1 for e in entries.values() if e["kind_corrected"])} +""",""" "kind_corrected_count": sum(1 for e in entries.values() if e["kind_corrected"]), + "statutes_dropped_count": sum(e["statutes_dropped"] for e in entries.values())} +"""), +]) + +rep("glossary_block.txt", [ +(" llm_token_limit: 16000\n", " llm_token_limit: 32000\n"), +(""" # 이 task 가 실패해도 planner 는 돈다(SKILL.md §3.4 규칙 9: 실패 task 뒤 하류 진행) — 정의 없이 식별자만 보낸다. +""",""" # 이 task 가 실패해도 planner 는 돈다(백엔드는 실패한 task 뒤에도 하류를 돌린다 — Part 2 F0 실패 뒤 S0 실행 선례) — 정의 없이 식별자만 보낸다. + # 출력 상한 32000 — 대상 약 50개 × 한글 한 줄. Gemini 는 사고 토큰을 따로 세므로 low 에서 비용이 늘지 않는다. +"""), +(""" "definition_ko": "<한 문장, 80자 이내>", +""",""" "definition_ko": "<한 문장, 60자 이내>", +"""), +(""" - definition_ko: 한국 민사·상사법에서 그 식별자가 가리키는 법률효과(또는 법률요건 사실)를 일반론으로 정의한 한 문장. 80자 이내. +""",""" - definition_ko: 한국 민사·상사법에서 그 식별자가 가리키는 법률효과(또는 법률요건 사실)를 일반론으로 정의한 한 문장. 60자 이내(80자를 넘으면 버려진다). +"""), +]) + +rep("splice.py", [ +(""" # state 는 planner 가 만든 정렬 JSON 문자열(영문 식별자만) — "JSON 문자열이면 객체로 전달"(§3.4) 경로를 쓴다. +""",""" # state 는 planner 가 만든 정렬 JSON 문자열 — "JSON 문자열이면 객체로 전달"(§3.4) 경로를 쓴다. + # 11-05 오후부터 식별자 외에 glossary 정의(미검증)·조문·BO 문맥(BOType·payload 키)이 실린다. 아래 instructions 의 + # "Use only the identifiers given in state" 는 JEV 이후 구간 동결 원칙에 따라 그대로 두었다 — 재실행에서 효과가 작으면 + # "Use only the information given in state" 로 바꾸는 것을 검토한다(사용자 승인 사항). +"""), +("""· 키는 백엔드 env JEV_API_KEY · state 는 영문 식별자만.""","""· 키는 백엔드 env JEV_API_KEY · state 는 식별자(11-05 오후부터 + 미검증 정의·BO 문맥).""".replace("\n","")), +("""# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +""","""# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +# 정의는 회차마다 LLM 이 새로 쓰므로 pair_id 가 매번 바뀐다 — 비교는 pair_id 앞 d|k|T 로 맞추고 glossary_sha256 을 함께 적는다. +# 그림자 실행이어도 정의 없는 유형이 있으면 apply 가 handoff 를 다시 쓴다(PART3_GLOSSARY_MISSING). 쌍 0건·apply SKIPPED 면 남기지 않는다. +"""), +]) +print("r1 patched") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_r2.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_r2.py new file mode 100644 index 00000000..669dd4ae --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_r2.py @@ -0,0 +1,99 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]); t = t.replace(a, c) + p.write_text(t, encoding="utf-8") + +rep("src/planner_head.py", [ +("STATUTE_PATTERN = re.compile(", "# 조문 정규화: 끝의 괄호 제목 · 「」 · 본문/단서/전단/후단을 떼고 나서 형식을 본다.\nSTATUTE_TRIM = re.compile(r\"\\s*(\\([^)]*\\)|본문|단서|전단|후단)\\s*$\")\nSTATUTE_PATTERN = re.compile("), +]) + +rep("src/planner_body.py", [ +# MINOR-4 prose prefix + json_output fallback +(""" raw = env.get("content") + if raw is None and "glossary" in env: + raw = env +""",""" raw = env.get("content") + if raw is None and "glossary" in env: + raw = env + if (raw is None or (isinstance(raw, str) and not raw.strip())) and isinstance(env.get("json_output"), dict): + raw = env["json_output"] # 본문이 비고 봉투가 객체를 뽑아 둔 경우 +"""), +(""" if not text.startswith("{"): + match = re.search(r"```(?:json)?\\s*(\\{[\\s\\S]*?\\})\\s*```", text) + if not match: + return None, "GLOSSARY_NOT_JSON_OBJECT" + text = match.group(1) +""",""" if not text.startswith("{"): + match = re.search(r"```(?:json)?\\s*(\\{[\\s\\S]*?\\})\\s*```", text) + if match: + text = match.group(1) + elif "{" in text: + text = text[text.find("{"):] # 펜스 없이 앞에 설명이 붙은 경우 + else: + return None, "GLOSSARY_NOT_JSON_OBJECT" +"""), +# MINOR-2 normalize statute +(""" statute = " ".join(statute.split()) if isinstance(statute, str) else "" +""",""" statute = " ".join(statute.split()) if isinstance(statute, str) else "" + statute = statute.replace("「", "").replace("」", "") + while STATUTE_TRIM.search(statute): + statute = STATUTE_TRIM.sub("", statute) +"""), +# MINOR-3 status after cleaning +(""" entries, dropped = clean_glossary(obj, declared, candidate) if obj is not None else ({}, []) + text = canonical(""",""" entries, dropped = clean_glossary(obj, declared, candidate) if obj is not None else ({}, []) + if glossary_status == "OK": + # 파싱은 됐어도 표가 없거나 일부만 통과했으면 그렇게 적는다(영수증·검토 항목이 "OK" 로 오도하지 않게). + if not entries and any(d.get("reason") == "GLOSSARY_TABLE_MISSING" for d in dropped): + glossary_status = "GLOSSARY_TABLE_MISSING" + elif not entries: + glossary_status = "GLOSSARY_EMPTY" + elif len(entries) < len(requested): + glossary_status = "OK_PARTIAL" + text = canonical("""), +# NIT-6 stub on early return +(""" if _reason is not None: + RESULT.update({"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, "reason": _reason}) +""",""" if _reason is not None: + RESULT.update({"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, "reason": _reason}) + try: # 지난 회차 정의표가 이번 회차 것으로 읽히지 않게(최선 노력). + write_doc(GLOSSARY_PATH, canonical({"schema_version": GLOSSARY_SCHEMA, "planned": False, + "reason": _reason, "entries": {}, "created_by": TASK_NAME})) + except Exception: + pass +"""), +]) + +rep("src/apply_body.py", [ +(""" "glossary_status": glossary.get("glossary_status"), +""",""" "glossary_reason": glossary.get("glossary_status"), +"""), +]) + +rep("glossary_block.txt", [ +(""" 조 번호를 확신하지 못하면 그 조문을 빼고, 하나도 확신하지 못하면 빈 배열을 쓴다. +""",""" 한 항목에 조문 하나만 쓴다. 조문 제목·괄호·「」·본문/단서·여러 조 묶음(예: 제168조 제1호, 제174조)을 쓰지 않는다. + 조 번호를 확신하지 못하면 그 조문을 빼고, 하나도 확신하지 못하면 빈 배열을 쓴다. +"""), +]) + +rep("splice.py", [ +# NIT-5 planner timeout +(""" 120, "planner_head.py", "planner_body.py")""",""" 300, "planner_head.py", "planner_body.py")"""), +# NIT-3 header edges +("""# Task_C_LE_L1_glossary gemini-3.8-flash · llm_reasoning low · 도구 없는 1회 호출 · seed bundle 하나만 preflight. +""","""# 간선 L0 nexts 에 glossary 추가 · glossary 노드 신설(L0 대기) · planner wait_until 에 glossary 추가. +# L0→planner 간선은 남긴다(planner 가 prev 로 L0 반환을 받는 경로 — 오전 판과 같다). 10:30 판 대비 L0·L2 코드는 여전히 바이트 그대로다. +# Task_C_LE_L1_glossary gemini-3.8-flash · llm_reasoning low · 도구 없는 1회 호출 · seed bundle 하나만 preflight. +# 출력은 {"schema_version", "glossary": {type_id: {...}}} 봉투다(planner 는 맨 {type_id: {...}} 도 받는다). +"""), +("""# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. SHADOW_RUN·임계값은 그대로다. +""","""# planner timeout 120 → 300초(BO.json 읽기·정의표 쓰기가 늘었다 — fan-out 부모가 시간 초과로 죽으면 장벽이 멈춘다). +# 남은 결정 JEV instructions 의 "Use only the identifiers given in state" 는 그대로다(JEV 이후 동결). 비교 실행 전에 +# "information" 으로 바꿀지 사용자가 정한다 — 그대로 두면 JEV 가 새 정의를 덜 쓸 수 있다. +# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. SHADOW_RUN·임계값은 그대로다. +"""), +]) +print("r2 patched") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_splice.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_splice.py new file mode 100644 index 00000000..0b2ae34a --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_splice.py @@ -0,0 +1,60 @@ +import pathlib +p=pathlib.Path("splice.py"); t=p.read_text() +anchor = 'block = (code_task("Task_C_LE_L1_candidate_planner",' +assert t.count(anchor)==1 +t=t.replace(anchor, 'GLOSSARY = (HERE / "glossary_block.txt").read_text(encoding="utf-8")\n\nblock = (GLOSSARY + code_task("Task_C_LE_L1_candidate_planner",') +old_desc='"미부착 BO 를 만든 registered:false 후보 유형과 선언 유형의 쌍을 계획하고 jev dynamic_fanout 을 낸다. raise 하지 않는다."' +assert t.count(old_desc)==1 +t=t.replace(old_desc,'"glossary 를 검사·기록하고, 미부착 BO 를 만든 후보 유형과 선언 유형의 쌍(정의·BO 문맥 포함 state)을 계획해 jev dynamic_fanout 을 낸다. raise 하지 않는다."') +reps=[ +(''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L1_candidate_planner"] + wait_until: ["IN"] +''',''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L1_glossary", "Task_C_LE_L1_candidate_planner"] + wait_until: ["IN"] +'''), +(''' Task_C_LE_L1_candidate_planner: + nexts: ["Task_C_LE_L1_recommender_*", "Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] +''',''' # glossary(11-05 오후) — L0 번들을 읽어 정의표 초안을 낸다. planner 는 L0 와 glossary 를 함께 기다려 + # prev 에 두 결과를 받는다. glossary 가 실패해도 planner 는 돈다(정의 없이 식별자만). + Task_C_LE_L1_glossary: + nexts: ["Task_C_LE_L1_candidate_planner"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] + + Task_C_LE_L1_candidate_planner: + nexts: ["Task_C_LE_L1_recommender_*", "Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer", "Task_C_LE_L1_glossary"] +'''), +('''# [신설] Task_C_LE_L1_candidate_planner 후보·쌍 계획 · jev dynamic_fanout (raise 금지) +''','''# [신설] Task_C_LE_L1_glossary gemini-3.8-flash low: 유형 정의·조문 초안(미검증, 11-05 오후) +# [신설] Task_C_LE_L1_candidate_planner glossary 검사 · 후보·쌍 계획 · jev dynamic_fanout (raise 금지) +'''), +("# 구성 — task 6종 (L1 = 후보 유형 추천기(JEV), 2026-11-05 신설)\n","# 구성 — task 7종 (L1 = 후보 유형 추천기(JEV), 2026-11-05 신설 · glossary 11-05 오후)\n"), +("# L0 → L1(planner → recommender_*", "# L0 → L1(glossary → planner → recommender_*"), +('''# 되돌릴 판은 stage_1_part_3_v.8_11_05_10_30am.yml 이다. +# +''','''# 되돌릴 판은 stage_1_part_3_v.8_11_05_10_30am.yml 이다. +# +# 2026-11-05 오후 L1 glossary 신설 — JEV 입력에 "뜻"을 싣는다 (첫 실행: JEV 가 17쌍 중 16쌍을 independent_effect 로 기울임) +# Task_C_LE_L1_glossary gemini-3.8-flash · llm_reasoning low · 도구 없는 1회 호출 · seed bundle 하나만 preflight. +# 선언 유형(general_legal_effect 제외)과 후보 유형마다 definition_ko(80자 이내 한 줄)·statutes(조문 0~3) 초안. +# planner prev 의 glossary 봉투를 검사(식별자 정규식 · 요청 집합 밖 제거 · 정의 길이 · 조문 개수·길이 · kind 재판정)해 +# stage1_tmp/task_le/type_glossary.json 에 쓰고, 쌍 state 에 T 의 정의·조문 · k 의 정의 · BO 문맥 +# (함께 달린 Legal_Keywords · BOType · payload 키 이름 — 식별자 정규식 통과값만) · glossary_source:"llm_unverified" 를 싣는다. +# BO 에는 요건 행 칸이 없어 payload 키 이름을 가장 가까운 추상 구조로 쓴다. 한글 키워드·payload 값·본문은 싣지 않는다. +# 생략 사람의 law.go.kr 원문 대조 · JSON 자산 봉인(이번 단계 범위 밖). 모든 정의는 verified:false 다. +# 실패 glossary 가 없거나 틀린 유형은 정의 없이 보낸다. apply 가 handoff 에 PART3_GLOSSARY_MISSING(SOFT_WARNING) 한 건을 남긴다 +# (planner 는 fan-out 부모라 handoff 를 쓰지 않는다 — handoff sha 신선도 검사와 되돌림은 apply 한 곳에 둔다). +# 영수증 part3_recommender_receipt.json 의 glossary 에 sha·미검증 항목 수·정의 없이 보낸 유형을 남긴다. +# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. SHADOW_RUN·임계값은 그대로다. +# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +# 되돌릴 판은 stage_1_part_3_v.8_11_05_1_30pm.yml 이다. +# +'''), +] +for a,c in reps: + assert t.count(a)==1,a[:60] + t=t.replace(a,c) +p.write_text(t); print("splice updated") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u1.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u1.py new file mode 100644 index 00000000..2ed217dc --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u1.py @@ -0,0 +1,70 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]); t = t.replace(a, c) + p.write_text(t, encoding="utf-8") + +rep("src/apply_head.py", [ +('''# Task_C_LE_L1_recommender_* 의 jev criteria 키와 같아야 한다(2벌 — 오프라인 검사가 대조한다). +RELATION_KEYS = ("independent_effect", "part_of_declared_type", "wording_variant") +INDEPENDENT = "independent_effect" +''','''# Task_C_LE_L1_recommender_* 의 jev criteria 키와 같아야 한다(2벌 — 오프라인 검사가 대조한다). +# unrelated(11-05 2:39pm 사용자 승인) — 선언 유형과 법적 관계가 없는 쌍의 자리(SKILL.md §3.4 규칙 4 "그 외/해당 없음"). +# 부착 질량 = part_of + wording · 비부착 질량 = independent + unrelated. +# 수용: 부착 질량 ≥ ACCEPT_MIN · 마진 · part_of 또는 wording 이 네 확률 중 최댓값(independent·unrelated 가 최댓값이면 막는다). +# 승격 제안: 모든 쌍에서 비부착 질량 ≥ INDEPENDENT_MIN 이고, 적어도 한 쌍에서 independent 가 unrelated 이상 +# (모든 쌍이 "무관"이면 독립 구조라는 근거가 없으므로 UNDECIDED 로 둔다). +RELATION_KEYS = ("independent_effect", "part_of_declared_type", "wording_variant", "unrelated") +INDEPENDENT = "independent_effect" +UNRELATED = "unrelated" +'''), +]) +rep("src/apply_body.py", [ +(''' # 유효 답이면 세 확률을 합으로 나눈 dict, 아니면 None(= 답 누락).''',''' # 유효 답이면 네 확률을 합으로 나눈 dict, 아니면 None(= 답 누락). 키 집합이 다르면(옛 3키 답 포함) 누락이다.'''), +(''' "attach_score": norm[PART_OF] + norm[WORDING], + "probabilities": norm}) + pair_scores = [{"pair_id": row["pair_id"], "target_type_id": row["target_type_id"], + "attach_score": round(row["attach_score"], 6), +''',''' "attach_score": norm[PART_OF] + norm[WORDING], + "non_attach_score": norm[INDEPENDENT] + norm[UNRELATED], + "probabilities": norm}) + pair_scores = [{"pair_id": row["pair_id"], "target_type_id": row["target_type_id"], + "attach_score": round(row["attach_score"], 6), + "non_attach_score": round(row["non_attach_score"], 6), +'''), +(''' independent_is_max = norm[INDEPENDENT] >= max(norm[PART_OF], norm[WORDING]) + if (best["attach_score"] + EPS >= ACCEPT_MIN and (margin is None or margin + EPS >= MARGIN_MIN) + and not independent_is_max): +''',''' non_attach_is_max = max(norm[INDEPENDENT], norm[UNRELATED]) >= max(norm[PART_OF], norm[WORDING]) + if (best["attach_score"] + EPS >= ACCEPT_MIN and (margin is None or margin + EPS >= MARGIN_MIN) + and not non_attach_is_max): +'''), +(''' if all(row["probabilities"][INDEPENDENT] + EPS >= INDEPENDENT_MIN for row in scored): + return {"outcome": "PROMOTION", "pair_scores": pair_scores} +''',''' if (all(row["non_attach_score"] + EPS >= INDEPENDENT_MIN for row in scored) + and any(row["probabilities"][INDEPENDENT] >= row["probabilities"][UNRELATED] for row in scored)): + return {"outcome": "PROMOTION", "pair_scores": pair_scores} +'''), +]) +rep("splice.py", [ +(''' wording_variant: "The candidate is another name for the same legal effect as the declared type; the legal meaning is identical." +''',''' wording_variant: "The candidate is another name for the same legal effect as the declared type; the legal meaning is identical." + unrelated: "Choose this when the candidate has no legal relationship with the declared type: it does not act on the declared type in any of the ways described for part_of_declared_type, it is not another name for it, and it does not form a claim or defense structure that competes with or responds to it. The declared type is simply the wrong target for this candidate." +'''), +(''' # 키 이름이 같으므로 apply 의 RELATION_KEYS·decide·임계값·영수증은 바뀌지 않는다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. +''',''' # 키 이름이 같으므로 apply 의 RELATION_KEYS·decide·임계값·영수증은 바뀌지 않는다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. + # unrelated(11-05 2:39pm 사용자 승인) — 넷째 키. 관계없는 쌍이 independent 로 몰리지 않게 하는 "해당 없음" 자리(§3.4 규칙 4). + # 키가 바뀌었으므로 apply 의 RELATION_KEYS(4키)·decide(수용 차단·승격 기준)를 함께 고쳤다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_39pm.yml 이다. +'''), +('''# JEV criteria 11-05 2:25pm 사용자 승인으로''','''# JEV unrelated 11-05 2:39pm 사용자 승인으로 넷째 선택지 unrelated("선언 유형과 법적 관계 없음 — 목표가 틀림")를 더했다. +# apply: RELATION_KEYS 4키(옛 3키 답은 형식 불일치로 답 누락 처리) · 수용은 part_of 또는 wording 이 네 확률 중 최댓값일 때만 · +# 승격 제안은 모든 쌍의 비부착 질량(independent + unrelated) ≥ INDEPENDENT_MIN 이고 한 쌍 이상에서 independent ≥ unrelated. +# 영수증 pair_scores 에 non_attach_score 를 더했다. 임계값·SHADOW_RUN 은 그대로. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_39pm.yml 이다. +# JEV criteria 11-05 2:25pm 사용자 승인으로'''), +('''# 관계가 없는 쌍도 independent 말고 고를 곳이 없다(무관 선택지 없음). X1·E-12 의 confidence 가 떨어지면 +# 다음 수단은 SKILL.md §3.4 규칙 4 의 "무관/그 외" 키 추가다 — 키가 바뀌므로 apply·RELATION_KEYS 개정과 새 승인이 필요하다. +''','''# (2:39pm 에 "무관" 키 unrelated 를 더했다 — 아래 JEV unrelated 참조. X1·E-12 는 unrelated 로 가는지 본다.) +'''), +]) +print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u2.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u2.py new file mode 100644 index 00000000..2f783d33 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u2.py @@ -0,0 +1,43 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]); t = t.replace(a, c) + p.write_text(t, encoding="utf-8") +rep("splice.py", [ +(''' unrelated: "Choose this when the candidate has no legal relationship with the declared type: it does not act on the declared type in any of the ways described for part_of_declared_type, it is not another name for it, and it does not form a claim or defense structure that competes with or responds to it. The declared type is simply the wrong target for this candidate." +''',''' unrelated: "Choose this when the candidate has no legal relationship with the declared type, whether or not the candidate forms its own structure: it does not act on the declared type's formation, extinction, limitation period, amount, due date or exercisability, it is not another name for it, and it is not a claim or defense that competes with or responds to it. When the candidate is unrelated to the declared type, choose this rather than independent_effect even if the candidate would need its own structure record. The declared type is simply the wrong target for this candidate." +'''), +(" # criteria 키 3개는 Task_C_LE_L1_apply 의 RELATION_KEYS 와 같아야 한다.\n", + " # criteria 키 집합(2:39pm 부터 4개)은 Task_C_LE_L1_apply 의 RELATION_KEYS 와 같아야 한다.\n"), +(" # 키 이름이 같으므로 apply 의 RELATION_KEYS·decide·임계값·영수증은 바뀌지 않는다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다.\n", + " # (2:25pm 기준) 키 이름이 같으므로 apply 의 RELATION_KEYS·decide·임계값·영수증은 바뀌지 않는다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다.\n"), +("# 키 3개·wording_variant·instructions·apply 는 그대로. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다.\n", + "# (2:25pm 기준) 키 3개·wording_variant·instructions·apply 는 그대로. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다.\n"), +('''# 승격 제안은 모든 쌍의 비부착 질량(independent + unrelated) ≥ INDEPENDENT_MIN 이고 한 쌍 이상에서 independent ≥ unrelated. +''','''# 승격 제안은 모든 쌍의 비부착 질량(independent + unrelated) ≥ INDEPENDENT_MIN 이고, 한 쌍 이상에서 +# independent ≥ unrelated 이면서 independent ≥ INDEPENDENT_MIN/2. 모든 쌍이 "무관"이면 UNDECIDED(HARD 미부착을 사람에게 남긴다 — 보수적 선택). +# unrelated 설명은 "관계가 없으면 독립 구조여도 independent 대신 이것"이라고 우선순위를 적어 둘의 경계를 정했다(independent 설명은 2:25pm 그대로). +'''), +]) +rep("src/apply_head.py", [ +('''# 승격 제안: 모든 쌍에서 비부착 질량 ≥ INDEPENDENT_MIN 이고, 적어도 한 쌍에서 independent 가 unrelated 이상 +# (모든 쌍이 "무관"이면 독립 구조라는 근거가 없으므로 UNDECIDED 로 둔다). +''','''# 승격 제안: 모든 쌍에서 비부착 질량 ≥ INDEPENDENT_MIN 이고, 적어도 한 쌍에서 independent ≥ unrelated 이면서 +# independent ≥ INDEPENDENT_MIN/2(독립 구조라는 최소 근거). 모든 쌍이 "무관"이면 독립 구조라는 근거가 없으므로 +# UNDECIDED 로 두어 HARD 미부착 항목을 사람 검토에 남긴다(보수적 선택). +'''), +]) +rep("src/apply_body.py", [ +(''' and any(row["probabilities"][INDEPENDENT] >= row["probabilities"][UNRELATED] for row in scored)): +''',''' and any(row["probabilities"][INDEPENDENT] + EPS >= row["probabilities"][UNRELATED] + and row["probabilities"][INDEPENDENT] + EPS >= INDEPENDENT_MIN / 2 for row in scored)): +'''), +]) +p = pathlib.Path("t_pipeline.py"); t = p.read_text(encoding="utf-8") +add = '''# U6 weak independent (0.41 vs unrelated 0.40) no longer promotes; strong independent does +a, rc = run_with(lambda it: P(0.41, 0.10, 0.09, 0.40)); print("U6 weak", a["outcome_counts"]); assert "PROMOTION" not in a["outcome_counts"] +a, rc = run_with(lambda it: P(0.45, 0.05, 0.0, 0.50) if it["target_type_id"] != "money_claim" else P(0.60, 0.0, 0.0, 0.40)); print("U6 mixed", a["outcome_counts"]) +print("UNRELATED TESTS DONE")''' +t = t.replace('print("UNRELATED TESTS DONE")', add, 1); p.write_text(t, encoding="utf-8") +print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u3.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u3.py new file mode 100644 index 00000000..ed5d08ee --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u3.py @@ -0,0 +1,36 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]); t = t.replace(a, c) + p.write_text(t, encoding="utf-8") +rep("src/apply_head.py", [ +('''# 승격 제안: 모든 쌍에서 비부착 질량 ≥ INDEPENDENT_MIN 이고, 적어도 한 쌍에서 independent ≥ unrelated 이면서 +# independent ≥ INDEPENDENT_MIN/2(독립 구조라는 최소 근거). 모든 쌍이 "무관"이면 독립 구조라는 근거가 없으므로 +# UNDECIDED 로 두어 HARD 미부착 항목을 사람 검토에 남긴다(보수적 선택). +''','''# 승격 제안: 모든 쌍에서 비부착 질량 ≥ INDEPENDENT_MIN 이고, 적어도 한 쌍에서 independent ≥ INDEPENDENT_FLOOR(과반). +# (independent ≥ unrelated 만으로는 0.41 대 0.40 같은 약한 근거도 통과한다 — 과반 하한이 독립 구조라는 최소 근거다.) +# 모든 쌍이 "무관" 우세면 독립 구조라는 근거가 없으므로 UNDECIDED 로 두어 HARD 미부착 항목을 사람 검토에 남긴다(보수적 선택). +'''), +("UNRELATED = \"unrelated\"\n", "UNRELATED = \"unrelated\"\nINDEPENDENT_FLOOR = 0.50\n"), +]) +rep("src/apply_body.py", [ +(''' and any(row["probabilities"][INDEPENDENT] + EPS >= row["probabilities"][UNRELATED] + and row["probabilities"][INDEPENDENT] + EPS >= INDEPENDENT_MIN / 2 for row in scored)): +''',''' and any(row["probabilities"][INDEPENDENT] + EPS >= INDEPENDENT_FLOOR for row in scored)): +'''), +]) +rep("splice.py", [ +('''# 승격 제안은 모든 쌍의 비부착 질량(independent + unrelated) ≥ INDEPENDENT_MIN 이고, 한 쌍 이상에서 +# independent ≥ unrelated 이면서 independent ≥ INDEPENDENT_MIN/2. 모든 쌍이 "무관"이면 UNDECIDED(HARD 미부착을 사람에게 남긴다 — 보수적 선택). +''','''# 승격 제안은 모든 쌍의 비부착 질량(independent + unrelated) ≥ INDEPENDENT_MIN 이고, 한 쌍 이상에서 +# independent ≥ 0.50(INDEPENDENT_FLOOR, 과반). 모든 쌍이 "무관" 우세면 UNDECIDED(HARD 미부착을 사람에게 남긴다 — 보수적 선택). +'''), +]) +p = pathlib.Path("t_pipeline.py"); t = p.read_text(encoding="utf-8") +a = '''a, rc = run_with(lambda it: P(0.45, 0.05, 0.0, 0.50) if it["target_type_id"] != "money_claim" else P(0.60, 0.0, 0.0, 0.40)); print("U6 mixed", a["outcome_counts"])''' +b = '''a, rc = run_with(lambda it: P(0.55, 0.05, 0.0, 0.40)); print("U6 strong", a["outcome_counts"]); assert set(a["outcome_counts"]) == {"PROMOTION"} +a, rc = run_with(lambda it: P(0.50, 0.05, 0.0, 0.45)); print("U6 floor-edge", a["outcome_counts"]); assert set(a["outcome_counts"]) == {"PROMOTION"}''' +assert t.count(a) == 1; t = t.replace(a, b) +t = t.replace('U3 independent-dominant -> PROMOTION', 'U3 independent 0.50 (floor) -> PROMOTION') +p.write_text(t, encoding="utf-8"); print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u4.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u4.py new file mode 100644 index 00000000..8ee7ccc4 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/patch_u4.py @@ -0,0 +1,41 @@ +import pathlib +def rep(path, pairs): + p = pathlib.Path(path); t = p.read_text(encoding="utf-8") + for a, c in pairs: + assert t.count(a) == 1, (path, a[:70]); t = t.replace(a, c) + p.write_text(t, encoding="utf-8") +rep("src/apply_head.py", [ +("INDEPENDENT_MIN = 1.01 if SHADOW_RUN else INDEPENDENT_MIN_START\n", + "INDEPENDENT_MIN = 1.01 if SHADOW_RUN else INDEPENDENT_MIN_START\n# 2:39pm 신설 — 승격 제안에 필요한 independent 의 쌍별 하한(절반 이상). 그림자 실행에서는 INDEPENDENT_MIN 이 먼저 막는다.\nINDEPENDENT_FLOOR = 0.50\n"), +("UNRELATED = \"unrelated\"\nINDEPENDENT_FLOOR = 0.50\n", "UNRELATED = \"unrelated\"\n"), +("적어도 한 쌍에서 independent ≥ INDEPENDENT_FLOOR(과반).", "적어도 한 쌍에서 independent ≥ INDEPENDENT_FLOOR(절반 이상)."), +("— 과반 하한이 독립 구조라는 최소 근거다.)", "— 절반 이상 하한이 독립 구조라는 최소 근거다.)\n# 결과: 선언 목표가 모두 \"무관\"인 후보(X1 처럼 쌍이 하나뿐인 후보 포함)는 승격 제안에 오르지 않는다 — 승격은 이제\n# \"독립 구조가 필요하고 어떤 선언 유형과는 관계가 있음\"을 뜻한다. 그런 후보의 판단은 영수증 pair_scores 에만 남는다."), +]) +rep("src/apply_body.py", [ +('receipt = {"schema_version": "stage1_part3_recommender_receipt.v1",', 'receipt = {"schema_version": "stage1_part3_recommender_receipt.v2",'), +(''' "thresholds": {"accept_min": ACCEPT_MIN, "margin_min": MARGIN_MIN,''',''' # v2(2:39pm): 4키 · pair_scores.non_attach_score · independent_min 은 비부착 질량 하한 · independent_floor 신설. + "relation_keys": list(RELATION_KEYS), + "thresholds": {"accept_min": ACCEPT_MIN, "margin_min": MARGIN_MIN, + "independent_floor": INDEPENDENT_FLOOR,'''), +]) +rep("splice.py", [ +('"Choose this when the candidate has no legal relationship with the declared type, whether or not the candidate forms its own structure: it does not act', + '"Choose this when the candidate has no legal relationship with the declared type: it does not act'), +('''# "독립 효과 / 선언 유형의 일부 / 표현 차이" 중 하나로 판정해, 일부·표현 차이면 선언 유형 레코드에 BO 를 붙인다. +''','''# "독립 효과 / 선언 유형의 일부 / 표현 차이" 중 하나로 판정해, 일부·표현 차이면 선언 유형 레코드에 BO 를 붙인다(2:39pm 부터 넷째 "무관" unrelated). +'''), +("independent ≥ 0.50(INDEPENDENT_FLOOR, 과반).", "independent ≥ 0.50(INDEPENDENT_FLOOR, 절반 이상)."), +('''# 영수증 pair_scores 에 non_attach_score 를 더했다. 임계값·SHADOW_RUN 은 그대로. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_39pm.yml 이다. +''','''# 영수증 v2: relation_keys · pair_scores.non_attach_score · thresholds.independent_floor. 기존 임계값·SHADOW_RUN 은 그대로이고 +# INDEPENDENT_FLOOR(0.50)만 새로 생겼다(independent_min 은 이제 비부착 질량의 하한). +# 결과: 선언 목표가 모두 "무관"인 후보(X1 6종은 쌍이 하나씩)는 승격 제안에 오르지 않고 HARD 미부착으로 남는다 — +# "목표 무관" 판단은 영수증에만 남는다(handoff 에 SOFT 로 알리는 항목은 새 승인 사항). +# 기대값(확인 예정): X1 → unrelated · E-12 공유 유형 쌍 → independent 또는 part_of(단독소유 주장은 공유와 경합하므로 무관 아님) · +# E-12 경계 쌍 → unrelated 또는 independent · E-02 → unrelated 질량이 part_of 가 아니라 independent 에서 빠져야 한다 · E-15 → 기록만. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_2_39pm.yml 이다. +'''), +("# 효과 확인(확인 예정, 미실행): E-02 5쌍의 part_of 상승, X1·sole_ownership_assertion 은 independent 유지.\n", + "# 효과 확인(확인 예정, 미실행): E-02 5쌍의 part_of 상승, X1·sole_ownership_assertion 은 independent 유지(2:39pm 이후 기대값은 위 JEV unrelated).\n"), +("X1·E-12 는 unrelated 로 가는지 본다.)", "X1 은 unrelated, E-12 는 위 기대값을 본다.)"), +]) +print("ok") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice.py new file mode 100644 index 00000000..6c8f08fc --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice.py @@ -0,0 +1,222 @@ +import pathlib, sys, hashlib +HERE = pathlib.Path(__file__).parent +SRC = HERE / "src" +Y = pathlib.Path(sys.argv[1]) +text = Y.read_text(encoding="utf-8") +boiler = (SRC / "_boiler.py").read_text() + +def code_block(head, body): + code = (SRC / head).read_text() + boiler + (SRC / body).read_text() + code = code.rstrip("\n") + return "\n".join((" " + l) if l.strip() else "" for l in code.split("\n")) + +def code_task(name, desc, timeout, head, body): + return (f" - task_name: {name}\n" + f" description: {desc}\n" + f" mcp: code-executor\n" + f" tool_name: run_code\n" + f" parameters:\n" + f" language: python\n" + f" requirements: \"httpx\"\n" + f" network: \"agent-network\"\n" + f" timeout: {timeout}\n" + f" code: |-\n" + code_block(head, body) + "\n\n") + +JEV = ''' # L1 추천기 — 후보×선언 유형 쌍마다 JEV choice 질문 1개(SKILL.md §3.4). 프롬프트·도구·preflight 없음. + # 키는 백엔드 env JEV_API_KEY(api_keys["jev"])에서 읽는다. YAML 에 api_key 를 쓰지 않는다. + # provider 는 jev 로 명시한다(스테이지 llm_provider: openai 가 새어 gpt-6-luna 로 바뀌는 일을 막는다). + # model 은 고정한다(jev-latest 는 표류). 전략서는 jev-1.13.0 이었으나 SKILL.md §3.4(11-05 갱신)의 실호출 확인판·고정 권고인 + # jev-1.14.0 으로 고정한다(보정된 임계값이 아직 없어 잃는 것이 없다). 판을 바꾸면 임계값을 다시 보정한다. 응답의 model 은 capture·영수증에 남는다. + # criteria 키 집합(2:39pm 부터 4개)은 Task_C_LE_L1_apply 의 RELATION_KEYS 와 같아야 한다. + # state 는 planner 가 만든 정렬 JSON 문자열 — "JSON 문자열이면 객체로 전달"(§3.4) 경로를 쓴다. + # 11-05 오후부터 식별자 외에 glossary 정의(미검증)·조문·BO 문맥(BOType·payload 키)이 실린다. + # instructions 는 11-05 2pm 사용자 결정으로 "identifiers" → "information" 으로 바꿨다(JEV 가 새 정의를 쓰게). + # 비교 실행에서 정의 효과와 지시문 효과는 함께 측정된다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. + # criteria(11-05 2:25pm 사용자 승인) — 키 3개는 그대로, 설명 두 개만 바꿨다. 2차 실행에서 정의를 싣자 17쌍 모두 + # independent 로 기울었다(실행결과보고서_2_part_3.md §4): "고유한 효과가 있는가"를 독립의 기준으로 삼은 문장이 원인. + # part_of_declared_type 은 "고유 효과가 있어도 선언 유형의 성립·소멸·시효·금액·이행기·행사 가능성(exercisability)에 작용하는 사건·요건·항변"으로 넓히고, + # independent_effect 는 "별개의 청구·항변 구조라 독립 구조 레코드가 필요할 때만"으로 좁혔다. wording_variant 는 그대로. + # (2:25pm 기준) 키 이름이 같으므로 apply 의 RELATION_KEYS·decide·임계값·영수증은 바뀌지 않는다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. + # unrelated(11-05 2:39pm 사용자 승인) — 넷째 키. 관계없는 쌍이 independent 로 몰리지 않게 하는 "해당 없음" 자리(§3.4 규칙 4). + # 키가 바뀌었으므로 apply 의 RELATION_KEYS(4키)·decide(수용 차단·승격 기준)를 함께 고쳤다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_39pm.yml 이다. + - task_name: Task_C_LE_L1_recommender_* + description: 후보×선언 유형 쌍마다 관계 하나를 고르는 JEV choice 질문 + jev: + provider: jev + model: jev-1.14.0 + state: "{{item.state_json}}" + questions: + relation: + type: choice + instructions: >- + Decide how the candidate legal-effect type relates to the declared type. + Use only the information given in state. + criteria: + independent_effect: "Choose this only when the candidate forms a claim or defense structure separate from the declared type and needs its own structure record. Having its own legal effect or its own statute is not by itself independence." + part_of_declared_type: "Choose this when the candidate is an event, requirement or defense that acts on the declared type's formation, extinction, limitation period, amount, due date or exercisability, even if the candidate has its own legal effect. For example, a release of the debt and a merger of the creditor's and the debtor's positions are events that act on the extinction and amount of a money claim, so they belong here." + wording_variant: "The candidate is another name for the same legal effect as the declared type; the legal meaning is identical." + unrelated: "Choose this when the candidate has no legal relationship with the declared type: it does not act on the declared type's formation, extinction, limitation period, amount, due date or exercisability, it is not another name for it, and it is not a claim or defense that competes with or responds to it. When the candidate is unrelated to the declared type, choose this rather than independent_effect even if the candidate would need its own structure record. The declared type is simply the wrong target for this candidate." + retry: {max_attempts: 2, backoff_sec: 5} + +''' + +GLOSSARY = (HERE / "glossary_block.txt").read_text(encoding="utf-8") + +block = (GLOSSARY + code_task("Task_C_LE_L1_candidate_planner", + "glossary 를 검사·기록하고, 미부착 BO 를 만든 후보 유형과 선언 유형의 쌍(정의·BO 문맥 포함 state)을 계획해 jev dynamic_fanout 을 낸다. raise 하지 않는다.", + 300, "planner_head.py", "planner_body.py") + + JEV + + code_task("Task_C_LE_L1_capture_*", + "같은 ordinal 의 jev 응답에서 answers.relation 을 꺼내 item.answer_path 에 쓴다. 응답 문제는 FAILED 표식.", + 120, "capture_head.py", "capture_body.py") + + code_task("Task_C_LE_L1_apply", + "쌍 답을 결정론적으로 판정(decide)해 번들·handoff 에 반영하고 영수증을 쓴다.", + 180, "apply_head.py", "apply_body.py")) + +anchor = " - task_name: Task_C_LE_L2_final_structure_index_writer\n" +assert text.count(anchor) == 1 +text = text.replace(anchor, block + anchor) + +old_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["IN"] + + # L1 자리는 비워 둔다 — 판정 부류가 생기면 이 사이에 끼운다(신전략서 §4.1). + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] +''' +new_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L1_glossary", "Task_C_LE_L1_candidate_planner"] + wait_until: ["IN"] + + # L1 = 후보 유형 추천기(JEV) — 2026-11-05 개정전략서_part_3_v2_with_part_1_2.md §2.1. + # planner 는 fan-out 부모이고 raise 하지 않는다. planner→apply 직접 간선은 wildcard 확장 전에 + # all capture_* 가 공집합으로 풀려 apply 가 planner 보다 먼저 서는 일을 막는다(Part 1 B1 quality gate 선례, 프로브 P-3). + # 빈 fan-out 이면 all 장벽이 바로 풀리고 apply 는 요청 파일을 보고 통과만 한다. + # glossary(11-05 오후) — L0 번들을 읽어 정의표 초안을 낸다. planner 는 L0 와 glossary 를 함께 기다려 + # prev 에 두 결과를 받는다. glossary 가 실패해도 planner 는 돈다(정의 없이 식별자만). + Task_C_LE_L1_glossary: + nexts: ["Task_C_LE_L1_candidate_planner"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] + + Task_C_LE_L1_candidate_planner: + nexts: ["Task_C_LE_L1_recommender_*", "Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer", "Task_C_LE_L1_glossary"] + + Task_C_LE_L1_recommender_*: + nexts: ["Task_C_LE_L1_capture_{same_ordinal}"] + wait_until: ["Task_C_LE_L1_candidate_planner"] + + # jev 인스턴스가 실패해도 이벤트는 set 되어 capture 가 FAILED 표식을 쓰고 이어진다(프로브 P-2). + Task_C_LE_L1_capture_*: + nexts: ["Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L1_recommender_{same_ordinal}"] + + Task_C_LE_L1_apply: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["Task_C_LE_L1_candidate_planner", "all Task_C_LE_L1_capture_*"] + + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L1_apply"] +''' +assert text.count(old_proc) == 1 +text = text.replace(old_proc, new_proc) +old_c = " # L0 가 seed bundle 과 handoff 를 내고서야 L2 가 선다. 완전 직렬이다.\n" +assert text.count(old_c) == 1 +text = text.replace(old_c, " # L0 → L1(glossary → planner → recommender_* → capture_* → apply) → L2. L0 가 seed bundle 과 handoff 를 내고서야 L1 이 선다.\n") + +old_h = '''# 구성 — task 2종 (L1 은 두지 않는다 — LLM 이 판정할 예외 부류가 없다. 신전략서 §4.1) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +new_h = '''# 구성 — task 7종 (L1 = 후보 유형 추천기(JEV), 2026-11-05 신설 · glossary 11-05 오후) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L1_glossary gemini-3.8-flash low: 유형 정의·조문 초안(미검증, 11-05 오후) +# [신설] Task_C_LE_L1_candidate_planner glossary 검사 · 후보·쌍 계획 · jev dynamic_fanout (raise 금지) +# [신설] Task_C_LE_L1_recommender_* jev: 쌍마다 choice 질문 1개 +# [신설] Task_C_LE_L1_capture_* jev 응답 → 답 파일 +# [신설] Task_C_LE_L1_apply decide(결정론) · 번들·handoff 반영 · 영수증 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +assert text.count(old_h) == 1 +text = text.replace(old_h, new_h) + +old_t = "# 제약 1 — v.7/Claude_YAML 의 어떤 파일도 읽지 않는다. 구 Part 3 명세에 의존하지 않는다.\n" +new_t = '''# 2026-11-05 L1 후보 유형 추천기(JEV) 신설 (개정전략서_part_3_v2_with_part_1_2.md, YAML 한 파일 대안) +# 목적 4차 실행 BO 78건 중 15건 미부착(P3-02). worker 의 registered:false 유형 id 를 JEV choice 로 +# "독립 효과 / 선언 유형의 일부 / 표현 차이" 중 하나로 판정해, 일부·표현 차이면 선언 유형 레코드에 BO 를 붙인다(2:39pm 부터 넷째 "무관" unrelated). +# 범위 이 파일만 바꾼다. 정책·컴파일러·manifest·스키마·레지스트리·사이드카·Part 1·2·4 변경 없음, 서버 자산 재배포 불필요. +# L0·L2 코드는 바이트 그대로다. task_procedure 간선 두 곳(L0 nexts, L2 wait_until)만 바뀐다. +# JEV jev: task(SKILL.md §3.4) · model jev-1.14.0 고정(전략서 1.13.0 → SKILL 11-05 실호출 확인판) · 키는 백엔드 env JEV_API_KEY · state 는 식별자(11-05 오후부터 + 미검증 정의·BO 문맥). +# 수용 대상 T 에서 포괄 유형 general_legal_effect 를 뺀다(침묵 일반화 금지). 독립 효과는 레코드를 만들지 않고 +# PART3_PROMOTION_PROPOSED 로만 넘긴다. 수용 건은 decided_by:"recommender" SOFT 검토 + 레코드 review_required. +# 첫 실행은 그림자 실행(apply SHADOW_RUN=True: 수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json). +# 주의 이 부착 경로는 정책 structure_index_policy.v1.json 의 bo_attachment.join 서술과 다르다(판정 규칙이 봉인 자산이 아니라 YAML 코드). +# 프로브 전략서 §7 은 별도 프로브 YAML(P-1~P-4)을 먼저 돌리라 한다. 이 판은 그림자 실행을 그 프로브로 삼는다(3:30pm 부터는 실제 부착과 함께 돈다): +# P-1 jev wildcard·state_json 전달·retry/description 키·JEV_API_KEY · P-2 실패 인스턴스 뒤 capture/apply/L2 진행 · +# P-3 빈 fan-out 장벽·planner→apply 간선 · P-4 capture 의 prev 형태. 결과를 보고 capture 제거(P-4)·state 방식(P-1)을 정한다. +# SKILL.md §2.3·§3.4 규칙 9(11-05)가 P-2·P-4 를 문서로 답하지만 실측 전까지 capture 를 유지한다. +# 한계: 4차 데이터의 그림자 실행은 빈 fan-out 장벽(P-3 절반)과 실패한 jev 인스턴스(P-2)를 시험하지 못한다. +# 장벽이 멈추면 L2·Part 4 가 막히므로, 배포 전 작은 프로브(0 건 fan-out · 2 건 중 1 건 잘못된 state)를 권한다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_10_30am.yml 이다. +# +# 2026-11-05 오후 L1 glossary 신설 — JEV 입력에 "뜻"을 싣는다 (첫 실행: JEV 가 17쌍 중 16쌍을 independent_effect 로 기울임) +# 간선 L0 nexts 에 glossary 추가 · glossary 노드 신설(L0 대기) · planner wait_until 에 glossary 추가. +# L0→planner 간선은 남긴다(planner 가 prev 로 L0 반환을 받는 경로 — 오전 판과 같다). 10:30 판 대비 L0·L2 코드는 여전히 바이트 그대로다. +# Task_C_LE_L1_glossary gemini-3.8-flash · llm_reasoning low · 도구 없는 1회 호출 · seed bundle 하나만 preflight. +# 출력은 {"schema_version", "glossary": {type_id: {...}}} 봉투다(planner 는 맨 {type_id: {...}} 도 받는다). +# 선언 유형(general_legal_effect 제외)과 후보 유형마다 definition_ko(80자 이내 한 줄)·statutes(조문 0~3) 초안. +# planner prev 의 glossary 봉투를 검사(식별자 정규식 · 요청 집합 밖 제거 · 정의 길이 · 조문 개수·길이 · kind 재판정)해 +# stage1_tmp/task_le/type_glossary.json 에 쓰고, 쌍 state 에 T 의 정의·조문 · k 의 정의 · BO 문맥 +# (함께 달린 Legal_Keywords · BOType · payload 키 이름 — 식별자 정규식 통과값만) · glossary_source:"llm_unverified" 를 싣는다. +# BO 에는 요건 행 칸이 없어 payload 키 이름을 가장 가까운 추상 구조로 쓴다. 한글 키워드·payload 값·본문은 싣지 않는다. +# 생략 사람의 law.go.kr 원문 대조 · JSON 자산 봉인(이번 단계 범위 밖). 모든 정의는 verified:false 다. +# 실패 glossary 가 없거나 틀린 유형은 정의 없이 보낸다. apply 가 handoff 에 PART3_GLOSSARY_MISSING(SOFT_WARNING) 한 건을 남긴다 +# (planner 는 fan-out 부모라 handoff 를 쓰지 않는다 — handoff sha 신선도 검사와 되돌림은 apply 한 곳에 둔다). +# 영수증 part3_recommender_receipt.json 의 glossary 에 sha·미검증 항목 수·정의 없이 보낸 유형을 남긴다. +# planner timeout 120 → 300초(BO.json 읽기·정의표 쓰기가 늘었다 — fan-out 부모가 시간 초과로 죽으면 장벽이 멈춘다). +# 3:30pm 결정 ① SHADOW_RUN = False — 시작 임계값(수용 0.80·마진 0.20·승격 0.80·독립 하한 0.50)이 실제로 적용된다. +# 실행 3 데이터면 E-02 4 후보(BO 5건)가 money_claim 에 붙고 HARD 미부착 15 → 10. 정의·조문은 여전히 미검증이다. +# ② part_of 예시를 시험 후보 밖 항목(채무면제·혼동 → 금전채권의 소멸·금액. 상계는 반대채권이 필요하고 레지스트리에 별도 구조로 있어 뺐다)으로 바꿨다(예시 효과 제거). +# ③ 목표 무관 안내 — UNDECIDED 후보의 모든 쌍에서 unrelated 가 최댓값이면 SOFT PART3_RECOMMENDER_TARGET_UNRELATED +# (domain_id·candidate_type_id·decided_by·pair_scores) 한 건. HARD 미부착은 남는다. +# 정의표 고정은 추후 Liti-agent 개정으로 미룬다. 되돌릴 판은 stage_1_part_3_v.8_11_05_3_30pm.yml 이다. +# 첫 실행에서 볼 것: 붙은 BO 행에 Part 4 가 money_claim 레코드의 calculation_request_refs·domain_effects 를 복사하므로 +# 해당 행의 calculation_requests 가 청구 계산 요청을 되풀이하는지 확인한다(보존 등식은 통과한다). +# JEV unrelated 11-05 2:39pm 사용자 승인으로 넷째 선택지 unrelated("선언 유형과 법적 관계 없음 — 목표가 틀림")를 더했다. +# apply: RELATION_KEYS 4키(옛 3키 답은 형식 불일치로 답 누락 처리) · 수용은 part_of 또는 wording 이 네 확률 중 최댓값일 때만 · +# 승격 제안은 모든 쌍의 비부착 질량(independent + unrelated) ≥ INDEPENDENT_MIN 이고, 한 쌍 이상에서 +# independent ≥ 0.50(INDEPENDENT_FLOOR, 절반 이상). 모든 쌍이 "무관" 우세면 UNDECIDED(HARD 미부착을 사람에게 남긴다 — 보수적 선택). +# unrelated 설명은 "관계가 없으면 독립 구조여도 independent 대신 이것"이라고 우선순위를 적어 둘의 경계를 정했다(independent 설명은 2:25pm 그대로). +# 영수증 v2: relation_keys · pair_scores.non_attach_score · thresholds.independent_floor. 기존 임계값은 그대로이고(SHADOW_RUN 은 3:30pm 에 끔) +# INDEPENDENT_FLOOR(0.50)만 새로 생겼다(independent_min 은 이제 비부착 질량의 하한). +# 결과: 선언 목표가 모두 "무관"인 후보(X1 6종은 쌍이 하나씩)는 승격 제안에 오르지 않고 HARD 미부착으로 남는다 — +# "목표 무관" 판단은 영수증에만 남는다(handoff 에 SOFT 로 알리는 항목은 새 승인 사항 — 3:30pm 해소, 위 3:30pm 결정 ③). +# 기대값(확인 예정): X1 → unrelated · E-12 공유 유형 쌍 → independent 또는 part_of(단독소유 주장은 공유와 경합하므로 무관 아님) · +# E-12 경계 쌍 → unrelated 또는 independent · E-02 → unrelated 질량이 part_of 가 아니라 independent 에서 빠져야 한다 · E-15 → 기록만. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_2_39pm.yml 이다. +# JEV criteria 11-05 2:25pm 사용자 승인으로 independent_effect(좁힘)·part_of_declared_type(넓힘) 설명 두 줄만 바꿨다. +# (2:25pm 기준) 키 3개·wording_variant·instructions·apply 는 그대로. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. +# 효과 확인(확인 예정, 미실행): E-02 5쌍의 part_of 상승, X1·sole_ownership_assertion 은 independent 유지(2:39pm 이후 기대값은 위 JEV unrelated). +# 판정 주의 ① (3:30pm 에 예시를 바꿔 해소) part_of 예시가 E-02 시험 후보 셋(partial_payment·demand_notice·debt_acknowledgement)을 직접 부르므로 +# 규칙의 효과는 예시에 없는 due_date_modification·guarantor_procurement_promise 와 E-12·X1·E-15 로 본다. +# ② 두 선택지 모두 "defense" 를 담아 X1(통지 → 항변)·E-12(단독소유 주장 → 공유 성립)가 part_of 로 끌릴 수 있다 — +# 승자만이 아니라 2차 회차 대비 확률·confidence 를 쌍마다 비교한다. E-15(상속 지위 → 승계 항변)의 기대값은 사양에 없다. +# (2:39pm 에 "무관" 키 unrelated 를 더했다 — 위 JEV unrelated 참조. X1 은 unrelated, E-12 는 위 기대값을 본다.) +# ③ glossary 는 회차마다 다시 생성되므로 "같은 입력"이 아니다 — 비교표에 glossary_sha256(2차 3cb6348f…)을 함께 적는다. +# JEV 지시문 11-05 2pm 사용자 결정으로 recommender instructions 를 "Use only the information given in state" 로 바꿨다 +# (2pm 시점에 JEV 이후 구간에서 바뀐 유일한 줄. criteria 는 2:25pm 에 따로 바뀌었다). 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. +# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. 임계값은 그대로다(SHADOW_RUN 은 3:30pm 에 끔). +# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +# (2:25pm criteria 개정 이후로는 위 JEV criteria 의 판정 주의 ① 을 따른다 — 3:30pm 이전에는 이 셋이 part_of 예시에 이름이 나왔다.) +# 정의는 회차마다 LLM 이 새로 쓰므로 pair_id 가 매번 바뀐다 — 비교는 pair_id 앞 d|k|T 로 맞추고 glossary_sha256 을 함께 적는다. +# 그림자 실행이어도 정의 없는 유형이 있으면 apply 가 handoff 를 다시 쓴다(PART3_GLOSSARY_MISSING). 쌍 0건·apply SKIPPED 면 남기지 않는다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_1_30pm.yml 이다. +# +''' +assert text.count(old_t) == 1 +text = text.replace(old_t, new_t + old_t) +Y.write_text(text, encoding="utf-8") +print("written", hashlib.sha256(text.encode()).hexdigest()[:12], text.count("\n")) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_1030.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_1030.py new file mode 100644 index 00000000..e525b732 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_1030.py @@ -0,0 +1,149 @@ +import pathlib, sys, hashlib +HERE = pathlib.Path(__file__).parent +SRC = HERE / "src" +Y = pathlib.Path(sys.argv[1]) +text = Y.read_text(encoding="utf-8") +boiler = (SRC / "_boiler.py").read_text() + +def code_block(head, body): + code = (SRC / head).read_text() + boiler + (SRC / body).read_text() + code = code.rstrip("\n") + return "\n".join((" " + l) if l.strip() else "" for l in code.split("\n")) + +def code_task(name, desc, timeout, head, body): + return (f" - task_name: {name}\n" + f" description: {desc}\n" + f" mcp: code-executor\n" + f" tool_name: run_code\n" + f" parameters:\n" + f" language: python\n" + f" requirements: \"httpx\"\n" + f" network: \"agent-network\"\n" + f" timeout: {timeout}\n" + f" code: |-\n" + code_block(head, body) + "\n\n") + +JEV = ''' # L1 추천기 — 후보×선언 유형 쌍마다 JEV choice 질문 1개(SKILL.md §3.4). 프롬프트·도구·preflight 없음. + # 키는 백엔드 env JEV_API_KEY(api_keys["jev"])에서 읽는다. YAML 에 api_key 를 쓰지 않는다. + # provider 는 jev 로 명시한다(스테이지 llm_provider: openai 가 새어 gpt-6-luna 로 바뀌는 일을 막는다). + # model 은 고정한다(jev-latest 는 표류). 전략서는 jev-1.13.0 이었으나 SKILL.md §3.4(11-05 갱신)의 실호출 확인판·고정 권고인 + # jev-1.14.0 으로 고정한다(보정된 임계값이 아직 없어 잃는 것이 없다). 판을 바꾸면 임계값을 다시 보정한다. 응답의 model 은 capture·영수증에 남는다. + # criteria 키 3개는 Task_C_LE_L1_apply 의 RELATION_KEYS 와 같아야 한다. + # state 는 planner 가 만든 정렬 JSON 문자열(영문 식별자만) — "JSON 문자열이면 객체로 전달"(§3.4) 경로를 쓴다. + - task_name: Task_C_LE_L1_recommender_* + description: 후보×선언 유형 쌍마다 관계 하나를 고르는 JEV choice 질문 + jev: + provider: jev + model: jev-1.14.0 + state: "{{item.state_json}}" + questions: + relation: + type: choice + instructions: >- + Decide how the candidate legal-effect type relates to the declared type. + Use only the identifiers given in state. + criteria: + independent_effect: "The candidate has its own legal consequences, requirements or remedies that the declared type does not cover." + part_of_declared_type: "The candidate is a component, stage or sub-case of the declared type and carries the declared type's legal consequences." + wording_variant: "The candidate is another name for the same legal effect as the declared type; the legal meaning is identical." + retry: {max_attempts: 2, backoff_sec: 5} + +''' + +block = (code_task("Task_C_LE_L1_candidate_planner", + "미부착 BO 를 만든 registered:false 후보 유형과 선언 유형의 쌍을 계획하고 jev dynamic_fanout 을 낸다. raise 하지 않는다.", + 120, "planner_head.py", "planner_body.py") + + JEV + + code_task("Task_C_LE_L1_capture_*", + "같은 ordinal 의 jev 응답에서 answers.relation 을 꺼내 item.answer_path 에 쓴다. 응답 문제는 FAILED 표식.", + 120, "capture_head.py", "capture_body.py") + + code_task("Task_C_LE_L1_apply", + "쌍 답을 결정론적으로 판정(decide)해 번들·handoff 에 반영하고 영수증을 쓴다.", + 180, "apply_head.py", "apply_body.py")) + +anchor = " - task_name: Task_C_LE_L2_final_structure_index_writer\n" +assert text.count(anchor) == 1 +text = text.replace(anchor, block + anchor) + +old_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["IN"] + + # L1 자리는 비워 둔다 — 판정 부류가 생기면 이 사이에 끼운다(신전략서 §4.1). + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] +''' +new_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L1_candidate_planner"] + wait_until: ["IN"] + + # L1 = 후보 유형 추천기(JEV) — 2026-11-05 개정전략서_part_3_v2_with_part_1_2.md §2.1. + # planner 는 fan-out 부모이고 raise 하지 않는다. planner→apply 직접 간선은 wildcard 확장 전에 + # all capture_* 가 공집합으로 풀려 apply 가 planner 보다 먼저 서는 일을 막는다(Part 1 B1 quality gate 선례, 프로브 P-3). + # 빈 fan-out 이면 all 장벽이 바로 풀리고 apply 는 요청 파일을 보고 통과만 한다. + Task_C_LE_L1_candidate_planner: + nexts: ["Task_C_LE_L1_recommender_*", "Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] + + Task_C_LE_L1_recommender_*: + nexts: ["Task_C_LE_L1_capture_{same_ordinal}"] + wait_until: ["Task_C_LE_L1_candidate_planner"] + + # jev 인스턴스가 실패해도 이벤트는 set 되어 capture 가 FAILED 표식을 쓰고 이어진다(프로브 P-2). + Task_C_LE_L1_capture_*: + nexts: ["Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L1_recommender_{same_ordinal}"] + + Task_C_LE_L1_apply: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["Task_C_LE_L1_candidate_planner", "all Task_C_LE_L1_capture_*"] + + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L1_apply"] +''' +assert text.count(old_proc) == 1 +text = text.replace(old_proc, new_proc) +old_c = " # L0 가 seed bundle 과 handoff 를 내고서야 L2 가 선다. 완전 직렬이다.\n" +assert text.count(old_c) == 1 +text = text.replace(old_c, " # L0 → L1(planner → recommender_* → capture_* → apply) → L2. L0 가 seed bundle 과 handoff 를 내고서야 L1 이 선다.\n") + +old_h = '''# 구성 — task 2종 (L1 은 두지 않는다 — LLM 이 판정할 예외 부류가 없다. 신전략서 §4.1) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +new_h = '''# 구성 — task 6종 (L1 = 후보 유형 추천기(JEV), 2026-11-05 신설) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L1_candidate_planner 후보·쌍 계획 · jev dynamic_fanout (raise 금지) +# [신설] Task_C_LE_L1_recommender_* jev: 쌍마다 choice 질문 1개 +# [신설] Task_C_LE_L1_capture_* jev 응답 → 답 파일 +# [신설] Task_C_LE_L1_apply decide(결정론) · 번들·handoff 반영 · 영수증 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +assert text.count(old_h) == 1 +text = text.replace(old_h, new_h) + +old_t = "# 제약 1 — v.7/Claude_YAML 의 어떤 파일도 읽지 않는다. 구 Part 3 명세에 의존하지 않는다.\n" +new_t = '''# 2026-11-05 L1 후보 유형 추천기(JEV) 신설 (개정전략서_part_3_v2_with_part_1_2.md, YAML 한 파일 대안) +# 목적 4차 실행 BO 78건 중 15건 미부착(P3-02). worker 의 registered:false 유형 id 를 JEV choice 로 +# "독립 효과 / 선언 유형의 일부 / 표현 차이" 중 하나로 판정해, 일부·표현 차이면 선언 유형 레코드에 BO 를 붙인다. +# 범위 이 파일만 바꾼다. 정책·컴파일러·manifest·스키마·레지스트리·사이드카·Part 1·2·4 변경 없음, 서버 자산 재배포 불필요. +# L0·L2 코드는 바이트 그대로다. task_procedure 간선 두 곳(L0 nexts, L2 wait_until)만 바뀐다. +# JEV jev: task(SKILL.md §3.4) · model jev-1.14.0 고정(전략서 1.13.0 → SKILL 11-05 실호출 확인판) · 키는 백엔드 env JEV_API_KEY · state 는 영문 식별자만. +# 수용 대상 T 에서 포괄 유형 general_legal_effect 를 뺀다(침묵 일반화 금지). 독립 효과는 레코드를 만들지 않고 +# PART3_PROMOTION_PROPOSED 로만 넘긴다. 수용 건은 decided_by:"recommender" SOFT 검토 + 레코드 review_required. +# 첫 실행은 그림자 실행(apply SHADOW_RUN=True: 수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json). +# 주의 이 부착 경로는 정책 structure_index_policy.v1.json 의 bo_attachment.join 서술과 다르다(판정 규칙이 봉인 자산이 아니라 YAML 코드). +# 프로브 전략서 §7 은 별도 프로브 YAML(P-1~P-4)을 먼저 돌리라 한다. 이 판은 그림자 실행을 그 프로브로 삼는다: +# P-1 jev wildcard·state_json 전달·retry/description 키·JEV_API_KEY · P-2 실패 인스턴스 뒤 capture/apply/L2 진행 · +# P-3 빈 fan-out 장벽·planner→apply 간선 · P-4 capture 의 prev 형태. 결과를 보고 capture 제거(P-4)·state 방식(P-1)을 정한다. +# SKILL.md §2.3·§3.4 규칙 9(11-05)가 P-2·P-4 를 문서로 답하지만 실측 전까지 capture 를 유지한다. +# 한계: 4차 데이터의 그림자 실행은 빈 fan-out 장벽(P-3 절반)과 실패한 jev 인스턴스(P-2)를 시험하지 못한다. +# 장벽이 멈추면 L2·Part 4 가 막히므로, 배포 전 작은 프로브(0 건 fan-out · 2 건 중 1 건 잘못된 state)를 권한다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_10_30am.yml 이다. +# +''' +assert text.count(old_t) == 1 +text = text.replace(old_t, new_t + old_t) +Y.write_text(text, encoding="utf-8") +print("written", hashlib.sha256(text.encode()).hexdigest()[:12], text.count("\n")) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_239pm.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_239pm.py new file mode 100644 index 00000000..68caceff --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_239pm.py @@ -0,0 +1,200 @@ +import pathlib, sys, hashlib +HERE = pathlib.Path(__file__).parent +SRC = HERE / "src" +Y = pathlib.Path(sys.argv[1]) +text = Y.read_text(encoding="utf-8") +boiler = (SRC / "_boiler.py").read_text() + +def code_block(head, body): + code = (SRC / head).read_text() + boiler + (SRC / body).read_text() + code = code.rstrip("\n") + return "\n".join((" " + l) if l.strip() else "" for l in code.split("\n")) + +def code_task(name, desc, timeout, head, body): + return (f" - task_name: {name}\n" + f" description: {desc}\n" + f" mcp: code-executor\n" + f" tool_name: run_code\n" + f" parameters:\n" + f" language: python\n" + f" requirements: \"httpx\"\n" + f" network: \"agent-network\"\n" + f" timeout: {timeout}\n" + f" code: |-\n" + code_block(head, body) + "\n\n") + +JEV = ''' # L1 추천기 — 후보×선언 유형 쌍마다 JEV choice 질문 1개(SKILL.md §3.4). 프롬프트·도구·preflight 없음. + # 키는 백엔드 env JEV_API_KEY(api_keys["jev"])에서 읽는다. YAML 에 api_key 를 쓰지 않는다. + # provider 는 jev 로 명시한다(스테이지 llm_provider: openai 가 새어 gpt-6-luna 로 바뀌는 일을 막는다). + # model 은 고정한다(jev-latest 는 표류). 전략서는 jev-1.13.0 이었으나 SKILL.md §3.4(11-05 갱신)의 실호출 확인판·고정 권고인 + # jev-1.14.0 으로 고정한다(보정된 임계값이 아직 없어 잃는 것이 없다). 판을 바꾸면 임계값을 다시 보정한다. 응답의 model 은 capture·영수증에 남는다. + # criteria 키 3개는 Task_C_LE_L1_apply 의 RELATION_KEYS 와 같아야 한다. + # state 는 planner 가 만든 정렬 JSON 문자열 — "JSON 문자열이면 객체로 전달"(§3.4) 경로를 쓴다. + # 11-05 오후부터 식별자 외에 glossary 정의(미검증)·조문·BO 문맥(BOType·payload 키)이 실린다. + # instructions 는 11-05 2pm 사용자 결정으로 "identifiers" → "information" 으로 바꿨다(JEV 가 새 정의를 쓰게). + # 비교 실행에서 정의 효과와 지시문 효과는 함께 측정된다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. + # criteria(11-05 2:25pm 사용자 승인) — 키 3개는 그대로, 설명 두 개만 바꿨다. 2차 실행에서 정의를 싣자 17쌍 모두 + # independent 로 기울었다(실행결과보고서_2_part_3.md §4): "고유한 효과가 있는가"를 독립의 기준으로 삼은 문장이 원인. + # part_of_declared_type 은 "고유 효과가 있어도 선언 유형의 성립·소멸·시효·금액·이행기·행사 가능성(exercisability)에 작용하는 사건·요건·항변"으로 넓히고, + # independent_effect 는 "별개의 청구·항변 구조라 독립 구조 레코드가 필요할 때만"으로 좁혔다. wording_variant 는 그대로. + # 키 이름이 같으므로 apply 의 RELATION_KEYS·decide·임계값·영수증은 바뀌지 않는다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. + - task_name: Task_C_LE_L1_recommender_* + description: 후보×선언 유형 쌍마다 관계 하나를 고르는 JEV choice 질문 + jev: + provider: jev + model: jev-1.14.0 + state: "{{item.state_json}}" + questions: + relation: + type: choice + instructions: >- + Decide how the candidate legal-effect type relates to the declared type. + Use only the information given in state. + criteria: + independent_effect: "Choose this only when the candidate forms a claim or defense structure separate from the declared type and needs its own structure record. Having its own legal effect or its own statute is not by itself independence." + part_of_declared_type: "Choose this when the candidate is an event, requirement or defense that acts on the declared type's formation, extinction, limitation period, amount, due date or exercisability, even if the candidate has its own legal effect. For example, partial payment, a demand for performance and acknowledgement of a debt are events that act on the limitation period and amount of a money claim, so they belong here." + wording_variant: "The candidate is another name for the same legal effect as the declared type; the legal meaning is identical." + retry: {max_attempts: 2, backoff_sec: 5} + +''' + +GLOSSARY = (HERE / "glossary_block.txt").read_text(encoding="utf-8") + +block = (GLOSSARY + code_task("Task_C_LE_L1_candidate_planner", + "glossary 를 검사·기록하고, 미부착 BO 를 만든 후보 유형과 선언 유형의 쌍(정의·BO 문맥 포함 state)을 계획해 jev dynamic_fanout 을 낸다. raise 하지 않는다.", + 300, "planner_head.py", "planner_body.py") + + JEV + + code_task("Task_C_LE_L1_capture_*", + "같은 ordinal 의 jev 응답에서 answers.relation 을 꺼내 item.answer_path 에 쓴다. 응답 문제는 FAILED 표식.", + 120, "capture_head.py", "capture_body.py") + + code_task("Task_C_LE_L1_apply", + "쌍 답을 결정론적으로 판정(decide)해 번들·handoff 에 반영하고 영수증을 쓴다.", + 180, "apply_head.py", "apply_body.py")) + +anchor = " - task_name: Task_C_LE_L2_final_structure_index_writer\n" +assert text.count(anchor) == 1 +text = text.replace(anchor, block + anchor) + +old_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["IN"] + + # L1 자리는 비워 둔다 — 판정 부류가 생기면 이 사이에 끼운다(신전략서 §4.1). + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] +''' +new_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L1_glossary", "Task_C_LE_L1_candidate_planner"] + wait_until: ["IN"] + + # L1 = 후보 유형 추천기(JEV) — 2026-11-05 개정전략서_part_3_v2_with_part_1_2.md §2.1. + # planner 는 fan-out 부모이고 raise 하지 않는다. planner→apply 직접 간선은 wildcard 확장 전에 + # all capture_* 가 공집합으로 풀려 apply 가 planner 보다 먼저 서는 일을 막는다(Part 1 B1 quality gate 선례, 프로브 P-3). + # 빈 fan-out 이면 all 장벽이 바로 풀리고 apply 는 요청 파일을 보고 통과만 한다. + # glossary(11-05 오후) — L0 번들을 읽어 정의표 초안을 낸다. planner 는 L0 와 glossary 를 함께 기다려 + # prev 에 두 결과를 받는다. glossary 가 실패해도 planner 는 돈다(정의 없이 식별자만). + Task_C_LE_L1_glossary: + nexts: ["Task_C_LE_L1_candidate_planner"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] + + Task_C_LE_L1_candidate_planner: + nexts: ["Task_C_LE_L1_recommender_*", "Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer", "Task_C_LE_L1_glossary"] + + Task_C_LE_L1_recommender_*: + nexts: ["Task_C_LE_L1_capture_{same_ordinal}"] + wait_until: ["Task_C_LE_L1_candidate_planner"] + + # jev 인스턴스가 실패해도 이벤트는 set 되어 capture 가 FAILED 표식을 쓰고 이어진다(프로브 P-2). + Task_C_LE_L1_capture_*: + nexts: ["Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L1_recommender_{same_ordinal}"] + + Task_C_LE_L1_apply: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["Task_C_LE_L1_candidate_planner", "all Task_C_LE_L1_capture_*"] + + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L1_apply"] +''' +assert text.count(old_proc) == 1 +text = text.replace(old_proc, new_proc) +old_c = " # L0 가 seed bundle 과 handoff 를 내고서야 L2 가 선다. 완전 직렬이다.\n" +assert text.count(old_c) == 1 +text = text.replace(old_c, " # L0 → L1(glossary → planner → recommender_* → capture_* → apply) → L2. L0 가 seed bundle 과 handoff 를 내고서야 L1 이 선다.\n") + +old_h = '''# 구성 — task 2종 (L1 은 두지 않는다 — LLM 이 판정할 예외 부류가 없다. 신전략서 §4.1) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +new_h = '''# 구성 — task 7종 (L1 = 후보 유형 추천기(JEV), 2026-11-05 신설 · glossary 11-05 오후) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L1_glossary gemini-3.8-flash low: 유형 정의·조문 초안(미검증, 11-05 오후) +# [신설] Task_C_LE_L1_candidate_planner glossary 검사 · 후보·쌍 계획 · jev dynamic_fanout (raise 금지) +# [신설] Task_C_LE_L1_recommender_* jev: 쌍마다 choice 질문 1개 +# [신설] Task_C_LE_L1_capture_* jev 응답 → 답 파일 +# [신설] Task_C_LE_L1_apply decide(결정론) · 번들·handoff 반영 · 영수증 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +assert text.count(old_h) == 1 +text = text.replace(old_h, new_h) + +old_t = "# 제약 1 — v.7/Claude_YAML 의 어떤 파일도 읽지 않는다. 구 Part 3 명세에 의존하지 않는다.\n" +new_t = '''# 2026-11-05 L1 후보 유형 추천기(JEV) 신설 (개정전략서_part_3_v2_with_part_1_2.md, YAML 한 파일 대안) +# 목적 4차 실행 BO 78건 중 15건 미부착(P3-02). worker 의 registered:false 유형 id 를 JEV choice 로 +# "독립 효과 / 선언 유형의 일부 / 표현 차이" 중 하나로 판정해, 일부·표현 차이면 선언 유형 레코드에 BO 를 붙인다. +# 범위 이 파일만 바꾼다. 정책·컴파일러·manifest·스키마·레지스트리·사이드카·Part 1·2·4 변경 없음, 서버 자산 재배포 불필요. +# L0·L2 코드는 바이트 그대로다. task_procedure 간선 두 곳(L0 nexts, L2 wait_until)만 바뀐다. +# JEV jev: task(SKILL.md §3.4) · model jev-1.14.0 고정(전략서 1.13.0 → SKILL 11-05 실호출 확인판) · 키는 백엔드 env JEV_API_KEY · state 는 식별자(11-05 오후부터 + 미검증 정의·BO 문맥). +# 수용 대상 T 에서 포괄 유형 general_legal_effect 를 뺀다(침묵 일반화 금지). 독립 효과는 레코드를 만들지 않고 +# PART3_PROMOTION_PROPOSED 로만 넘긴다. 수용 건은 decided_by:"recommender" SOFT 검토 + 레코드 review_required. +# 첫 실행은 그림자 실행(apply SHADOW_RUN=True: 수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json). +# 주의 이 부착 경로는 정책 structure_index_policy.v1.json 의 bo_attachment.join 서술과 다르다(판정 규칙이 봉인 자산이 아니라 YAML 코드). +# 프로브 전략서 §7 은 별도 프로브 YAML(P-1~P-4)을 먼저 돌리라 한다. 이 판은 그림자 실행을 그 프로브로 삼는다: +# P-1 jev wildcard·state_json 전달·retry/description 키·JEV_API_KEY · P-2 실패 인스턴스 뒤 capture/apply/L2 진행 · +# P-3 빈 fan-out 장벽·planner→apply 간선 · P-4 capture 의 prev 형태. 결과를 보고 capture 제거(P-4)·state 방식(P-1)을 정한다. +# SKILL.md §2.3·§3.4 규칙 9(11-05)가 P-2·P-4 를 문서로 답하지만 실측 전까지 capture 를 유지한다. +# 한계: 4차 데이터의 그림자 실행은 빈 fan-out 장벽(P-3 절반)과 실패한 jev 인스턴스(P-2)를 시험하지 못한다. +# 장벽이 멈추면 L2·Part 4 가 막히므로, 배포 전 작은 프로브(0 건 fan-out · 2 건 중 1 건 잘못된 state)를 권한다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_10_30am.yml 이다. +# +# 2026-11-05 오후 L1 glossary 신설 — JEV 입력에 "뜻"을 싣는다 (첫 실행: JEV 가 17쌍 중 16쌍을 independent_effect 로 기울임) +# 간선 L0 nexts 에 glossary 추가 · glossary 노드 신설(L0 대기) · planner wait_until 에 glossary 추가. +# L0→planner 간선은 남긴다(planner 가 prev 로 L0 반환을 받는 경로 — 오전 판과 같다). 10:30 판 대비 L0·L2 코드는 여전히 바이트 그대로다. +# Task_C_LE_L1_glossary gemini-3.8-flash · llm_reasoning low · 도구 없는 1회 호출 · seed bundle 하나만 preflight. +# 출력은 {"schema_version", "glossary": {type_id: {...}}} 봉투다(planner 는 맨 {type_id: {...}} 도 받는다). +# 선언 유형(general_legal_effect 제외)과 후보 유형마다 definition_ko(80자 이내 한 줄)·statutes(조문 0~3) 초안. +# planner prev 의 glossary 봉투를 검사(식별자 정규식 · 요청 집합 밖 제거 · 정의 길이 · 조문 개수·길이 · kind 재판정)해 +# stage1_tmp/task_le/type_glossary.json 에 쓰고, 쌍 state 에 T 의 정의·조문 · k 의 정의 · BO 문맥 +# (함께 달린 Legal_Keywords · BOType · payload 키 이름 — 식별자 정규식 통과값만) · glossary_source:"llm_unverified" 를 싣는다. +# BO 에는 요건 행 칸이 없어 payload 키 이름을 가장 가까운 추상 구조로 쓴다. 한글 키워드·payload 값·본문은 싣지 않는다. +# 생략 사람의 law.go.kr 원문 대조 · JSON 자산 봉인(이번 단계 범위 밖). 모든 정의는 verified:false 다. +# 실패 glossary 가 없거나 틀린 유형은 정의 없이 보낸다. apply 가 handoff 에 PART3_GLOSSARY_MISSING(SOFT_WARNING) 한 건을 남긴다 +# (planner 는 fan-out 부모라 handoff 를 쓰지 않는다 — handoff sha 신선도 검사와 되돌림은 apply 한 곳에 둔다). +# 영수증 part3_recommender_receipt.json 의 glossary 에 sha·미검증 항목 수·정의 없이 보낸 유형을 남긴다. +# planner timeout 120 → 300초(BO.json 읽기·정의표 쓰기가 늘었다 — fan-out 부모가 시간 초과로 죽으면 장벽이 멈춘다). +# JEV criteria 11-05 2:25pm 사용자 승인으로 independent_effect(좁힘)·part_of_declared_type(넓힘) 설명 두 줄만 바꿨다. +# 키 3개·wording_variant·instructions·apply 는 그대로. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. +# 효과 확인(확인 예정, 미실행): E-02 5쌍의 part_of 상승, X1·sole_ownership_assertion 은 independent 유지. +# 판정 주의 ① part_of 예시가 E-02 시험 후보 셋(partial_payment·demand_notice·debt_acknowledgement)을 직접 부르므로 +# 규칙의 효과는 예시에 없는 due_date_modification·guarantor_procurement_promise 와 E-12·X1·E-15 로 본다. +# ② 두 선택지 모두 "defense" 를 담아 X1(통지 → 항변)·E-12(단독소유 주장 → 공유 성립)가 part_of 로 끌릴 수 있다 — +# 승자만이 아니라 2차 회차 대비 확률·confidence 를 쌍마다 비교한다. E-15(상속 지위 → 승계 항변)의 기대값은 사양에 없다. +# 관계가 없는 쌍도 independent 말고 고를 곳이 없다(무관 선택지 없음). X1·E-12 의 confidence 가 떨어지면 +# 다음 수단은 SKILL.md §3.4 규칙 4 의 "무관/그 외" 키 추가다 — 키가 바뀌므로 apply·RELATION_KEYS 개정과 새 승인이 필요하다. +# ③ glossary 는 회차마다 다시 생성되므로 "같은 입력"이 아니다 — 비교표에 glossary_sha256(2차 3cb6348f…)을 함께 적는다. +# JEV 지시문 11-05 2pm 사용자 결정으로 recommender instructions 를 "Use only the information given in state" 로 바꿨다 +# (2pm 시점에 JEV 이후 구간에서 바뀐 유일한 줄. criteria 는 2:25pm 에 따로 바뀌었다). 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. +# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. SHADOW_RUN·임계값은 그대로다. +# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +# (2:25pm criteria 개정 이후로는 위 JEV criteria 의 판정 주의 ① 을 따른다 — 이 셋은 part_of 예시에 이름이 나온다.) +# 정의는 회차마다 LLM 이 새로 쓰므로 pair_id 가 매번 바뀐다 — 비교는 pair_id 앞 d|k|T 로 맞추고 glossary_sha256 을 함께 적는다. +# 그림자 실행이어도 정의 없는 유형이 있으면 apply 가 handoff 를 다시 쓴다(PART3_GLOSSARY_MISSING). 쌍 0건·apply SKIPPED 면 남기지 않는다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_1_30pm.yml 이다. +# +''' +assert text.count(old_t) == 1 +text = text.replace(old_t, new_t + old_t) +Y.write_text(text, encoding="utf-8") +print("written", hashlib.sha256(text.encode()).hexdigest()[:12], text.count("\n")) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_2pm.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_2pm.py new file mode 100644 index 00000000..341e6081 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_2pm.py @@ -0,0 +1,184 @@ +import pathlib, sys, hashlib +HERE = pathlib.Path(__file__).parent +SRC = HERE / "src" +Y = pathlib.Path(sys.argv[1]) +text = Y.read_text(encoding="utf-8") +boiler = (SRC / "_boiler.py").read_text() + +def code_block(head, body): + code = (SRC / head).read_text() + boiler + (SRC / body).read_text() + code = code.rstrip("\n") + return "\n".join((" " + l) if l.strip() else "" for l in code.split("\n")) + +def code_task(name, desc, timeout, head, body): + return (f" - task_name: {name}\n" + f" description: {desc}\n" + f" mcp: code-executor\n" + f" tool_name: run_code\n" + f" parameters:\n" + f" language: python\n" + f" requirements: \"httpx\"\n" + f" network: \"agent-network\"\n" + f" timeout: {timeout}\n" + f" code: |-\n" + code_block(head, body) + "\n\n") + +JEV = ''' # L1 추천기 — 후보×선언 유형 쌍마다 JEV choice 질문 1개(SKILL.md §3.4). 프롬프트·도구·preflight 없음. + # 키는 백엔드 env JEV_API_KEY(api_keys["jev"])에서 읽는다. YAML 에 api_key 를 쓰지 않는다. + # provider 는 jev 로 명시한다(스테이지 llm_provider: openai 가 새어 gpt-6-luna 로 바뀌는 일을 막는다). + # model 은 고정한다(jev-latest 는 표류). 전략서는 jev-1.13.0 이었으나 SKILL.md §3.4(11-05 갱신)의 실호출 확인판·고정 권고인 + # jev-1.14.0 으로 고정한다(보정된 임계값이 아직 없어 잃는 것이 없다). 판을 바꾸면 임계값을 다시 보정한다. 응답의 model 은 capture·영수증에 남는다. + # criteria 키 3개는 Task_C_LE_L1_apply 의 RELATION_KEYS 와 같아야 한다. + # state 는 planner 가 만든 정렬 JSON 문자열 — "JSON 문자열이면 객체로 전달"(§3.4) 경로를 쓴다. + # 11-05 오후부터 식별자 외에 glossary 정의(미검증)·조문·BO 문맥(BOType·payload 키)이 실린다. + # instructions 는 11-05 2pm 사용자 결정으로 "identifiers" → "information" 으로 바꿨다(JEV 가 새 정의를 쓰게). + # 비교 실행에서 정의 효과와 지시문 효과는 함께 측정된다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. + - task_name: Task_C_LE_L1_recommender_* + description: 후보×선언 유형 쌍마다 관계 하나를 고르는 JEV choice 질문 + jev: + provider: jev + model: jev-1.14.0 + state: "{{item.state_json}}" + questions: + relation: + type: choice + instructions: >- + Decide how the candidate legal-effect type relates to the declared type. + Use only the information given in state. + criteria: + independent_effect: "The candidate has its own legal consequences, requirements or remedies that the declared type does not cover." + part_of_declared_type: "The candidate is a component, stage or sub-case of the declared type and carries the declared type's legal consequences." + wording_variant: "The candidate is another name for the same legal effect as the declared type; the legal meaning is identical." + retry: {max_attempts: 2, backoff_sec: 5} + +''' + +GLOSSARY = (HERE / "glossary_block.txt").read_text(encoding="utf-8") + +block = (GLOSSARY + code_task("Task_C_LE_L1_candidate_planner", + "glossary 를 검사·기록하고, 미부착 BO 를 만든 후보 유형과 선언 유형의 쌍(정의·BO 문맥 포함 state)을 계획해 jev dynamic_fanout 을 낸다. raise 하지 않는다.", + 300, "planner_head.py", "planner_body.py") + + JEV + + code_task("Task_C_LE_L1_capture_*", + "같은 ordinal 의 jev 응답에서 answers.relation 을 꺼내 item.answer_path 에 쓴다. 응답 문제는 FAILED 표식.", + 120, "capture_head.py", "capture_body.py") + + code_task("Task_C_LE_L1_apply", + "쌍 답을 결정론적으로 판정(decide)해 번들·handoff 에 반영하고 영수증을 쓴다.", + 180, "apply_head.py", "apply_body.py")) + +anchor = " - task_name: Task_C_LE_L2_final_structure_index_writer\n" +assert text.count(anchor) == 1 +text = text.replace(anchor, block + anchor) + +old_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["IN"] + + # L1 자리는 비워 둔다 — 판정 부류가 생기면 이 사이에 끼운다(신전략서 §4.1). + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] +''' +new_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L1_glossary", "Task_C_LE_L1_candidate_planner"] + wait_until: ["IN"] + + # L1 = 후보 유형 추천기(JEV) — 2026-11-05 개정전략서_part_3_v2_with_part_1_2.md §2.1. + # planner 는 fan-out 부모이고 raise 하지 않는다. planner→apply 직접 간선은 wildcard 확장 전에 + # all capture_* 가 공집합으로 풀려 apply 가 planner 보다 먼저 서는 일을 막는다(Part 1 B1 quality gate 선례, 프로브 P-3). + # 빈 fan-out 이면 all 장벽이 바로 풀리고 apply 는 요청 파일을 보고 통과만 한다. + # glossary(11-05 오후) — L0 번들을 읽어 정의표 초안을 낸다. planner 는 L0 와 glossary 를 함께 기다려 + # prev 에 두 결과를 받는다. glossary 가 실패해도 planner 는 돈다(정의 없이 식별자만). + Task_C_LE_L1_glossary: + nexts: ["Task_C_LE_L1_candidate_planner"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] + + Task_C_LE_L1_candidate_planner: + nexts: ["Task_C_LE_L1_recommender_*", "Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer", "Task_C_LE_L1_glossary"] + + Task_C_LE_L1_recommender_*: + nexts: ["Task_C_LE_L1_capture_{same_ordinal}"] + wait_until: ["Task_C_LE_L1_candidate_planner"] + + # jev 인스턴스가 실패해도 이벤트는 set 되어 capture 가 FAILED 표식을 쓰고 이어진다(프로브 P-2). + Task_C_LE_L1_capture_*: + nexts: ["Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L1_recommender_{same_ordinal}"] + + Task_C_LE_L1_apply: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["Task_C_LE_L1_candidate_planner", "all Task_C_LE_L1_capture_*"] + + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L1_apply"] +''' +assert text.count(old_proc) == 1 +text = text.replace(old_proc, new_proc) +old_c = " # L0 가 seed bundle 과 handoff 를 내고서야 L2 가 선다. 완전 직렬이다.\n" +assert text.count(old_c) == 1 +text = text.replace(old_c, " # L0 → L1(glossary → planner → recommender_* → capture_* → apply) → L2. L0 가 seed bundle 과 handoff 를 내고서야 L1 이 선다.\n") + +old_h = '''# 구성 — task 2종 (L1 은 두지 않는다 — LLM 이 판정할 예외 부류가 없다. 신전략서 §4.1) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +new_h = '''# 구성 — task 7종 (L1 = 후보 유형 추천기(JEV), 2026-11-05 신설 · glossary 11-05 오후) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L1_glossary gemini-3.8-flash low: 유형 정의·조문 초안(미검증, 11-05 오후) +# [신설] Task_C_LE_L1_candidate_planner glossary 검사 · 후보·쌍 계획 · jev dynamic_fanout (raise 금지) +# [신설] Task_C_LE_L1_recommender_* jev: 쌍마다 choice 질문 1개 +# [신설] Task_C_LE_L1_capture_* jev 응답 → 답 파일 +# [신설] Task_C_LE_L1_apply decide(결정론) · 번들·handoff 반영 · 영수증 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +assert text.count(old_h) == 1 +text = text.replace(old_h, new_h) + +old_t = "# 제약 1 — v.7/Claude_YAML 의 어떤 파일도 읽지 않는다. 구 Part 3 명세에 의존하지 않는다.\n" +new_t = '''# 2026-11-05 L1 후보 유형 추천기(JEV) 신설 (개정전략서_part_3_v2_with_part_1_2.md, YAML 한 파일 대안) +# 목적 4차 실행 BO 78건 중 15건 미부착(P3-02). worker 의 registered:false 유형 id 를 JEV choice 로 +# "독립 효과 / 선언 유형의 일부 / 표현 차이" 중 하나로 판정해, 일부·표현 차이면 선언 유형 레코드에 BO 를 붙인다. +# 범위 이 파일만 바꾼다. 정책·컴파일러·manifest·스키마·레지스트리·사이드카·Part 1·2·4 변경 없음, 서버 자산 재배포 불필요. +# L0·L2 코드는 바이트 그대로다. task_procedure 간선 두 곳(L0 nexts, L2 wait_until)만 바뀐다. +# JEV jev: task(SKILL.md §3.4) · model jev-1.14.0 고정(전략서 1.13.0 → SKILL 11-05 실호출 확인판) · 키는 백엔드 env JEV_API_KEY · state 는 식별자(11-05 오후부터 + 미검증 정의·BO 문맥). +# 수용 대상 T 에서 포괄 유형 general_legal_effect 를 뺀다(침묵 일반화 금지). 독립 효과는 레코드를 만들지 않고 +# PART3_PROMOTION_PROPOSED 로만 넘긴다. 수용 건은 decided_by:"recommender" SOFT 검토 + 레코드 review_required. +# 첫 실행은 그림자 실행(apply SHADOW_RUN=True: 수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json). +# 주의 이 부착 경로는 정책 structure_index_policy.v1.json 의 bo_attachment.join 서술과 다르다(판정 규칙이 봉인 자산이 아니라 YAML 코드). +# 프로브 전략서 §7 은 별도 프로브 YAML(P-1~P-4)을 먼저 돌리라 한다. 이 판은 그림자 실행을 그 프로브로 삼는다: +# P-1 jev wildcard·state_json 전달·retry/description 키·JEV_API_KEY · P-2 실패 인스턴스 뒤 capture/apply/L2 진행 · +# P-3 빈 fan-out 장벽·planner→apply 간선 · P-4 capture 의 prev 형태. 결과를 보고 capture 제거(P-4)·state 방식(P-1)을 정한다. +# SKILL.md §2.3·§3.4 규칙 9(11-05)가 P-2·P-4 를 문서로 답하지만 실측 전까지 capture 를 유지한다. +# 한계: 4차 데이터의 그림자 실행은 빈 fan-out 장벽(P-3 절반)과 실패한 jev 인스턴스(P-2)를 시험하지 못한다. +# 장벽이 멈추면 L2·Part 4 가 막히므로, 배포 전 작은 프로브(0 건 fan-out · 2 건 중 1 건 잘못된 state)를 권한다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_10_30am.yml 이다. +# +# 2026-11-05 오후 L1 glossary 신설 — JEV 입력에 "뜻"을 싣는다 (첫 실행: JEV 가 17쌍 중 16쌍을 independent_effect 로 기울임) +# 간선 L0 nexts 에 glossary 추가 · glossary 노드 신설(L0 대기) · planner wait_until 에 glossary 추가. +# L0→planner 간선은 남긴다(planner 가 prev 로 L0 반환을 받는 경로 — 오전 판과 같다). 10:30 판 대비 L0·L2 코드는 여전히 바이트 그대로다. +# Task_C_LE_L1_glossary gemini-3.8-flash · llm_reasoning low · 도구 없는 1회 호출 · seed bundle 하나만 preflight. +# 출력은 {"schema_version", "glossary": {type_id: {...}}} 봉투다(planner 는 맨 {type_id: {...}} 도 받는다). +# 선언 유형(general_legal_effect 제외)과 후보 유형마다 definition_ko(80자 이내 한 줄)·statutes(조문 0~3) 초안. +# planner prev 의 glossary 봉투를 검사(식별자 정규식 · 요청 집합 밖 제거 · 정의 길이 · 조문 개수·길이 · kind 재판정)해 +# stage1_tmp/task_le/type_glossary.json 에 쓰고, 쌍 state 에 T 의 정의·조문 · k 의 정의 · BO 문맥 +# (함께 달린 Legal_Keywords · BOType · payload 키 이름 — 식별자 정규식 통과값만) · glossary_source:"llm_unverified" 를 싣는다. +# BO 에는 요건 행 칸이 없어 payload 키 이름을 가장 가까운 추상 구조로 쓴다. 한글 키워드·payload 값·본문은 싣지 않는다. +# 생략 사람의 law.go.kr 원문 대조 · JSON 자산 봉인(이번 단계 범위 밖). 모든 정의는 verified:false 다. +# 실패 glossary 가 없거나 틀린 유형은 정의 없이 보낸다. apply 가 handoff 에 PART3_GLOSSARY_MISSING(SOFT_WARNING) 한 건을 남긴다 +# (planner 는 fan-out 부모라 handoff 를 쓰지 않는다 — handoff sha 신선도 검사와 되돌림은 apply 한 곳에 둔다). +# 영수증 part3_recommender_receipt.json 의 glossary 에 sha·미검증 항목 수·정의 없이 보낸 유형을 남긴다. +# planner timeout 120 → 300초(BO.json 읽기·정의표 쓰기가 늘었다 — fan-out 부모가 시간 초과로 죽으면 장벽이 멈춘다). +# JEV 지시문 11-05 2pm 사용자 결정으로 recommender instructions 를 "Use only the information given in state" 로 바꿨다 +# (JEV 이후 구간에서 바뀐 유일한 줄. criteria·model·state 경로는 그대로). 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. +# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. SHADOW_RUN·임계값은 그대로다. +# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +# 정의는 회차마다 LLM 이 새로 쓰므로 pair_id 가 매번 바뀐다 — 비교는 pair_id 앞 d|k|T 로 맞추고 glossary_sha256 을 함께 적는다. +# 그림자 실행이어도 정의 없는 유형이 있으면 apply 가 handoff 를 다시 쓴다(PART3_GLOSSARY_MISSING). 쌍 0건·apply SKIPPED 면 남기지 않는다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_1_30pm.yml 이다. +# +''' +assert text.count(old_t) == 1 +text = text.replace(old_t, new_t + old_t) +Y.write_text(text, encoding="utf-8") +print("written", hashlib.sha256(text.encode()).hexdigest()[:12], text.count("\n")) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_330pm.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_330pm.py new file mode 100644 index 00000000..1a689cc2 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/splice_330pm.py @@ -0,0 +1,214 @@ +import pathlib, sys, hashlib +HERE = pathlib.Path(__file__).parent +SRC = HERE / "src" +Y = pathlib.Path(sys.argv[1]) +text = Y.read_text(encoding="utf-8") +boiler = (SRC / "_boiler.py").read_text() + +def code_block(head, body): + code = (SRC / head).read_text() + boiler + (SRC / body).read_text() + code = code.rstrip("\n") + return "\n".join((" " + l) if l.strip() else "" for l in code.split("\n")) + +def code_task(name, desc, timeout, head, body): + return (f" - task_name: {name}\n" + f" description: {desc}\n" + f" mcp: code-executor\n" + f" tool_name: run_code\n" + f" parameters:\n" + f" language: python\n" + f" requirements: \"httpx\"\n" + f" network: \"agent-network\"\n" + f" timeout: {timeout}\n" + f" code: |-\n" + code_block(head, body) + "\n\n") + +JEV = ''' # L1 추천기 — 후보×선언 유형 쌍마다 JEV choice 질문 1개(SKILL.md §3.4). 프롬프트·도구·preflight 없음. + # 키는 백엔드 env JEV_API_KEY(api_keys["jev"])에서 읽는다. YAML 에 api_key 를 쓰지 않는다. + # provider 는 jev 로 명시한다(스테이지 llm_provider: openai 가 새어 gpt-6-luna 로 바뀌는 일을 막는다). + # model 은 고정한다(jev-latest 는 표류). 전략서는 jev-1.13.0 이었으나 SKILL.md §3.4(11-05 갱신)의 실호출 확인판·고정 권고인 + # jev-1.14.0 으로 고정한다(보정된 임계값이 아직 없어 잃는 것이 없다). 판을 바꾸면 임계값을 다시 보정한다. 응답의 model 은 capture·영수증에 남는다. + # criteria 키 집합(2:39pm 부터 4개)은 Task_C_LE_L1_apply 의 RELATION_KEYS 와 같아야 한다. + # state 는 planner 가 만든 정렬 JSON 문자열 — "JSON 문자열이면 객체로 전달"(§3.4) 경로를 쓴다. + # 11-05 오후부터 식별자 외에 glossary 정의(미검증)·조문·BO 문맥(BOType·payload 키)이 실린다. + # instructions 는 11-05 2pm 사용자 결정으로 "identifiers" → "information" 으로 바꿨다(JEV 가 새 정의를 쓰게). + # 비교 실행에서 정의 효과와 지시문 효과는 함께 측정된다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. + # criteria(11-05 2:25pm 사용자 승인) — 키 3개는 그대로, 설명 두 개만 바꿨다. 2차 실행에서 정의를 싣자 17쌍 모두 + # independent 로 기울었다(실행결과보고서_2_part_3.md §4): "고유한 효과가 있는가"를 독립의 기준으로 삼은 문장이 원인. + # part_of_declared_type 은 "고유 효과가 있어도 선언 유형의 성립·소멸·시효·금액·이행기·행사 가능성(exercisability)에 작용하는 사건·요건·항변"으로 넓히고, + # independent_effect 는 "별개의 청구·항변 구조라 독립 구조 레코드가 필요할 때만"으로 좁혔다. wording_variant 는 그대로. + # (2:25pm 기준) 키 이름이 같으므로 apply 의 RELATION_KEYS·decide·임계값·영수증은 바뀌지 않는다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. + # unrelated(11-05 2:39pm 사용자 승인) — 넷째 키. 관계없는 쌍이 independent 로 몰리지 않게 하는 "해당 없음" 자리(§3.4 규칙 4). + # 키가 바뀌었으므로 apply 의 RELATION_KEYS(4키)·decide(수용 차단·승격 기준)를 함께 고쳤다. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_39pm.yml 이다. + - task_name: Task_C_LE_L1_recommender_* + description: 후보×선언 유형 쌍마다 관계 하나를 고르는 JEV choice 질문 + jev: + provider: jev + model: jev-1.14.0 + state: "{{item.state_json}}" + questions: + relation: + type: choice + instructions: >- + Decide how the candidate legal-effect type relates to the declared type. + Use only the information given in state. + criteria: + independent_effect: "Choose this only when the candidate forms a claim or defense structure separate from the declared type and needs its own structure record. Having its own legal effect or its own statute is not by itself independence." + part_of_declared_type: "Choose this when the candidate is an event, requirement or defense that acts on the declared type's formation, extinction, limitation period, amount, due date or exercisability, even if the candidate has its own legal effect. For example, partial payment, a demand for performance and acknowledgement of a debt are events that act on the limitation period and amount of a money claim, so they belong here." + wording_variant: "The candidate is another name for the same legal effect as the declared type; the legal meaning is identical." + unrelated: "Choose this when the candidate has no legal relationship with the declared type: it does not act on the declared type's formation, extinction, limitation period, amount, due date or exercisability, it is not another name for it, and it is not a claim or defense that competes with or responds to it. When the candidate is unrelated to the declared type, choose this rather than independent_effect even if the candidate would need its own structure record. The declared type is simply the wrong target for this candidate." + retry: {max_attempts: 2, backoff_sec: 5} + +''' + +GLOSSARY = (HERE / "glossary_block.txt").read_text(encoding="utf-8") + +block = (GLOSSARY + code_task("Task_C_LE_L1_candidate_planner", + "glossary 를 검사·기록하고, 미부착 BO 를 만든 후보 유형과 선언 유형의 쌍(정의·BO 문맥 포함 state)을 계획해 jev dynamic_fanout 을 낸다. raise 하지 않는다.", + 300, "planner_head.py", "planner_body.py") + + JEV + + code_task("Task_C_LE_L1_capture_*", + "같은 ordinal 의 jev 응답에서 answers.relation 을 꺼내 item.answer_path 에 쓴다. 응답 문제는 FAILED 표식.", + 120, "capture_head.py", "capture_body.py") + + code_task("Task_C_LE_L1_apply", + "쌍 답을 결정론적으로 판정(decide)해 번들·handoff 에 반영하고 영수증을 쓴다.", + 180, "apply_head.py", "apply_body.py")) + +anchor = " - task_name: Task_C_LE_L2_final_structure_index_writer\n" +assert text.count(anchor) == 1 +text = text.replace(anchor, block + anchor) + +old_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["IN"] + + # L1 자리는 비워 둔다 — 판정 부류가 생기면 이 사이에 끼운다(신전략서 §4.1). + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] +''' +new_proc = ''' Task_C_LE_L0_structure_seed_reducer: + nexts: ["Task_C_LE_L1_glossary", "Task_C_LE_L1_candidate_planner"] + wait_until: ["IN"] + + # L1 = 후보 유형 추천기(JEV) — 2026-11-05 개정전략서_part_3_v2_with_part_1_2.md §2.1. + # planner 는 fan-out 부모이고 raise 하지 않는다. planner→apply 직접 간선은 wildcard 확장 전에 + # all capture_* 가 공집합으로 풀려 apply 가 planner 보다 먼저 서는 일을 막는다(Part 1 B1 quality gate 선례, 프로브 P-3). + # 빈 fan-out 이면 all 장벽이 바로 풀리고 apply 는 요청 파일을 보고 통과만 한다. + # glossary(11-05 오후) — L0 번들을 읽어 정의표 초안을 낸다. planner 는 L0 와 glossary 를 함께 기다려 + # prev 에 두 결과를 받는다. glossary 가 실패해도 planner 는 돈다(정의 없이 식별자만). + Task_C_LE_L1_glossary: + nexts: ["Task_C_LE_L1_candidate_planner"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer"] + + Task_C_LE_L1_candidate_planner: + nexts: ["Task_C_LE_L1_recommender_*", "Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L0_structure_seed_reducer", "Task_C_LE_L1_glossary"] + + Task_C_LE_L1_recommender_*: + nexts: ["Task_C_LE_L1_capture_{same_ordinal}"] + wait_until: ["Task_C_LE_L1_candidate_planner"] + + # jev 인스턴스가 실패해도 이벤트는 set 되어 capture 가 FAILED 표식을 쓰고 이어진다(프로브 P-2). + Task_C_LE_L1_capture_*: + nexts: ["Task_C_LE_L1_apply"] + wait_until: ["Task_C_LE_L1_recommender_{same_ordinal}"] + + Task_C_LE_L1_apply: + nexts: ["Task_C_LE_L2_final_structure_index_writer"] + wait_until: ["Task_C_LE_L1_candidate_planner", "all Task_C_LE_L1_capture_*"] + + Task_C_LE_L2_final_structure_index_writer: + nexts: ["OUT"] + wait_until: ["Task_C_LE_L1_apply"] +''' +assert text.count(old_proc) == 1 +text = text.replace(old_proc, new_proc) +old_c = " # L0 가 seed bundle 과 handoff 를 내고서야 L2 가 선다. 완전 직렬이다.\n" +assert text.count(old_c) == 1 +text = text.replace(old_c, " # L0 → L1(glossary → planner → recommender_* → capture_* → apply) → L2. L0 가 seed bundle 과 handoff 를 내고서야 L1 이 선다.\n") + +old_h = '''# 구성 — task 2종 (L1 은 두지 않는다 — LLM 이 판정할 예외 부류가 없다. 신전략서 §4.1) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +new_h = '''# 구성 — task 7종 (L1 = 후보 유형 추천기(JEV), 2026-11-05 신설 · glossary 11-05 오후) +# [신설] Task_C_LE_L0_structure_seed_reducer Θ 조립 · 구조 seed · 조인 · 검토 +# [신설] Task_C_LE_L1_glossary gemini-3.8-flash low: 유형 정의·조문 초안(미검증, 11-05 오후) +# [신설] Task_C_LE_L1_candidate_planner glossary 검사 · 후보·쌍 계획 · jev dynamic_fanout (raise 금지) +# [신설] Task_C_LE_L1_recommender_* jev: 쌍마다 choice 질문 1개 +# [신설] Task_C_LE_L1_capture_* jev 응답 → 답 파일 +# [신설] Task_C_LE_L1_apply decide(결정론) · 번들·handoff 반영 · 영수증 +# [신설] Task_C_LE_L2_final_structure_index_writer 보존 등식 셋 · 역인덱스 셋 · 최종 기록 +''' +assert text.count(old_h) == 1 +text = text.replace(old_h, new_h) + +old_t = "# 제약 1 — v.7/Claude_YAML 의 어떤 파일도 읽지 않는다. 구 Part 3 명세에 의존하지 않는다.\n" +new_t = '''# 2026-11-05 L1 후보 유형 추천기(JEV) 신설 (개정전략서_part_3_v2_with_part_1_2.md, YAML 한 파일 대안) +# 목적 4차 실행 BO 78건 중 15건 미부착(P3-02). worker 의 registered:false 유형 id 를 JEV choice 로 +# "독립 효과 / 선언 유형의 일부 / 표현 차이" 중 하나로 판정해, 일부·표현 차이면 선언 유형 레코드에 BO 를 붙인다(2:39pm 부터 넷째 "무관" unrelated). +# 범위 이 파일만 바꾼다. 정책·컴파일러·manifest·스키마·레지스트리·사이드카·Part 1·2·4 변경 없음, 서버 자산 재배포 불필요. +# L0·L2 코드는 바이트 그대로다. task_procedure 간선 두 곳(L0 nexts, L2 wait_until)만 바뀐다. +# JEV jev: task(SKILL.md §3.4) · model jev-1.14.0 고정(전략서 1.13.0 → SKILL 11-05 실호출 확인판) · 키는 백엔드 env JEV_API_KEY · state 는 식별자(11-05 오후부터 + 미검증 정의·BO 문맥). +# 수용 대상 T 에서 포괄 유형 general_legal_effect 를 뺀다(침묵 일반화 금지). 독립 효과는 레코드를 만들지 않고 +# PART3_PROMOTION_PROPOSED 로만 넘긴다. 수용 건은 decided_by:"recommender" SOFT 검토 + 레코드 review_required. +# 첫 실행은 그림자 실행(apply SHADOW_RUN=True: 수용·승격 비활성, 점수만 영수증 part3_recommender_receipt.json). +# 주의 이 부착 경로는 정책 structure_index_policy.v1.json 의 bo_attachment.join 서술과 다르다(판정 규칙이 봉인 자산이 아니라 YAML 코드). +# 프로브 전략서 §7 은 별도 프로브 YAML(P-1~P-4)을 먼저 돌리라 한다. 이 판은 그림자 실행을 그 프로브로 삼는다: +# P-1 jev wildcard·state_json 전달·retry/description 키·JEV_API_KEY · P-2 실패 인스턴스 뒤 capture/apply/L2 진행 · +# P-3 빈 fan-out 장벽·planner→apply 간선 · P-4 capture 의 prev 형태. 결과를 보고 capture 제거(P-4)·state 방식(P-1)을 정한다. +# SKILL.md §2.3·§3.4 규칙 9(11-05)가 P-2·P-4 를 문서로 답하지만 실측 전까지 capture 를 유지한다. +# 한계: 4차 데이터의 그림자 실행은 빈 fan-out 장벽(P-3 절반)과 실패한 jev 인스턴스(P-2)를 시험하지 못한다. +# 장벽이 멈추면 L2·Part 4 가 막히므로, 배포 전 작은 프로브(0 건 fan-out · 2 건 중 1 건 잘못된 state)를 권한다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_10_30am.yml 이다. +# +# 2026-11-05 오후 L1 glossary 신설 — JEV 입력에 "뜻"을 싣는다 (첫 실행: JEV 가 17쌍 중 16쌍을 independent_effect 로 기울임) +# 간선 L0 nexts 에 glossary 추가 · glossary 노드 신설(L0 대기) · planner wait_until 에 glossary 추가. +# L0→planner 간선은 남긴다(planner 가 prev 로 L0 반환을 받는 경로 — 오전 판과 같다). 10:30 판 대비 L0·L2 코드는 여전히 바이트 그대로다. +# Task_C_LE_L1_glossary gemini-3.8-flash · llm_reasoning low · 도구 없는 1회 호출 · seed bundle 하나만 preflight. +# 출력은 {"schema_version", "glossary": {type_id: {...}}} 봉투다(planner 는 맨 {type_id: {...}} 도 받는다). +# 선언 유형(general_legal_effect 제외)과 후보 유형마다 definition_ko(80자 이내 한 줄)·statutes(조문 0~3) 초안. +# planner prev 의 glossary 봉투를 검사(식별자 정규식 · 요청 집합 밖 제거 · 정의 길이 · 조문 개수·길이 · kind 재판정)해 +# stage1_tmp/task_le/type_glossary.json 에 쓰고, 쌍 state 에 T 의 정의·조문 · k 의 정의 · BO 문맥 +# (함께 달린 Legal_Keywords · BOType · payload 키 이름 — 식별자 정규식 통과값만) · glossary_source:"llm_unverified" 를 싣는다. +# BO 에는 요건 행 칸이 없어 payload 키 이름을 가장 가까운 추상 구조로 쓴다. 한글 키워드·payload 값·본문은 싣지 않는다. +# 생략 사람의 law.go.kr 원문 대조 · JSON 자산 봉인(이번 단계 범위 밖). 모든 정의는 verified:false 다. +# 실패 glossary 가 없거나 틀린 유형은 정의 없이 보낸다. apply 가 handoff 에 PART3_GLOSSARY_MISSING(SOFT_WARNING) 한 건을 남긴다 +# (planner 는 fan-out 부모라 handoff 를 쓰지 않는다 — handoff sha 신선도 검사와 되돌림은 apply 한 곳에 둔다). +# 영수증 part3_recommender_receipt.json 의 glossary 에 sha·미검증 항목 수·정의 없이 보낸 유형을 남긴다. +# planner timeout 120 → 300초(BO.json 읽기·정의표 쓰기가 늘었다 — fan-out 부모가 시간 초과로 죽으면 장벽이 멈춘다). +# JEV unrelated 11-05 2:39pm 사용자 승인으로 넷째 선택지 unrelated("선언 유형과 법적 관계 없음 — 목표가 틀림")를 더했다. +# apply: RELATION_KEYS 4키(옛 3키 답은 형식 불일치로 답 누락 처리) · 수용은 part_of 또는 wording 이 네 확률 중 최댓값일 때만 · +# 승격 제안은 모든 쌍의 비부착 질량(independent + unrelated) ≥ INDEPENDENT_MIN 이고, 한 쌍 이상에서 +# independent ≥ 0.50(INDEPENDENT_FLOOR, 절반 이상). 모든 쌍이 "무관" 우세면 UNDECIDED(HARD 미부착을 사람에게 남긴다 — 보수적 선택). +# unrelated 설명은 "관계가 없으면 독립 구조여도 independent 대신 이것"이라고 우선순위를 적어 둘의 경계를 정했다(independent 설명은 2:25pm 그대로). +# 영수증 v2: relation_keys · pair_scores.non_attach_score · thresholds.independent_floor. 기존 임계값·SHADOW_RUN 은 그대로이고 +# INDEPENDENT_FLOOR(0.50)만 새로 생겼다(independent_min 은 이제 비부착 질량의 하한). +# 결과: 선언 목표가 모두 "무관"인 후보(X1 6종은 쌍이 하나씩)는 승격 제안에 오르지 않고 HARD 미부착으로 남는다 — +# "목표 무관" 판단은 영수증에만 남는다(handoff 에 SOFT 로 알리는 항목은 새 승인 사항). +# 기대값(확인 예정): X1 → unrelated · E-12 공유 유형 쌍 → independent 또는 part_of(단독소유 주장은 공유와 경합하므로 무관 아님) · +# E-12 경계 쌍 → unrelated 또는 independent · E-02 → unrelated 질량이 part_of 가 아니라 independent 에서 빠져야 한다 · E-15 → 기록만. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_2_39pm.yml 이다. +# JEV criteria 11-05 2:25pm 사용자 승인으로 independent_effect(좁힘)·part_of_declared_type(넓힘) 설명 두 줄만 바꿨다. +# (2:25pm 기준) 키 3개·wording_variant·instructions·apply 는 그대로. 되돌릴 판은 stage_1_part_3_v.8_11_05_2_25pm.yml 이다. +# 효과 확인(확인 예정, 미실행): E-02 5쌍의 part_of 상승, X1·sole_ownership_assertion 은 independent 유지(2:39pm 이후 기대값은 위 JEV unrelated). +# 판정 주의 ① part_of 예시가 E-02 시험 후보 셋(partial_payment·demand_notice·debt_acknowledgement)을 직접 부르므로 +# 규칙의 효과는 예시에 없는 due_date_modification·guarantor_procurement_promise 와 E-12·X1·E-15 로 본다. +# ② 두 선택지 모두 "defense" 를 담아 X1(통지 → 항변)·E-12(단독소유 주장 → 공유 성립)가 part_of 로 끌릴 수 있다 — +# 승자만이 아니라 2차 회차 대비 확률·confidence 를 쌍마다 비교한다. E-15(상속 지위 → 승계 항변)의 기대값은 사양에 없다. +# (2:39pm 에 "무관" 키 unrelated 를 더했다 — 위 JEV unrelated 참조. X1 은 unrelated, E-12 는 위 기대값을 본다.) +# ③ glossary 는 회차마다 다시 생성되므로 "같은 입력"이 아니다 — 비교표에 glossary_sha256(2차 3cb6348f…)을 함께 적는다. +# JEV 지시문 11-05 2pm 사용자 결정으로 recommender instructions 를 "Use only the information given in state" 로 바꿨다 +# (2pm 시점에 JEV 이후 구간에서 바뀐 유일한 줄. criteria 는 2:25pm 에 따로 바뀌었다). 되돌릴 판은 stage_1_part_3_v.8_11_05_2pm.yml 이다. +# 주의 pair_id 가 state sha 를 품으므로 이전 회차와 pair_id 가 달라진다. SHADOW_RUN·임계값은 그대로다. +# 효과 확인: 같은 입력으로 다시 돌려 17쌍 확률을 비교한다(partial_payment·demand_notice·debt_acknowledgement → money_claim 의 part_of 상승). +# (2:25pm criteria 개정 이후로는 위 JEV criteria 의 판정 주의 ① 을 따른다 — 이 셋은 part_of 예시에 이름이 나온다.) +# 정의는 회차마다 LLM 이 새로 쓰므로 pair_id 가 매번 바뀐다 — 비교는 pair_id 앞 d|k|T 로 맞추고 glossary_sha256 을 함께 적는다. +# 그림자 실행이어도 정의 없는 유형이 있으면 apply 가 handoff 를 다시 쓴다(PART3_GLOSSARY_MISSING). 쌍 0건·apply SKIPPED 면 남기지 않는다. +# 되돌릴 판은 stage_1_part_3_v.8_11_05_1_30pm.yml 이다. +# +''' +assert text.count(old_t) == 1 +text = text.replace(old_t, new_t + old_t) +Y.write_text(text, encoding="utf-8") +print("written", hashlib.sha256(text.encode()).hexdigest()[:12], text.count("\n")) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/_boiler.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/_boiler.py new file mode 100644 index 00000000..8fe5b48c --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/_boiler.py @@ -0,0 +1,108 @@ +# ------------------------------------------------------------------ +# localdocs 보일러플레이트 (SKILL.md 5장 / 5.2장) — L2 사본에 Part 2 capture 의 write_doc(오류 검사)를 붙였다. +# clientInfo 에 {{__user_hash__}} / {{__workspace_hash__}} 를 반드시 넣는다. +# ------------------------------------------------------------------ +LOCALDOCS_URL = "http://mcp-localdocs:8012/mcp" +MCP_HEADERS = {"Content-Type": "application/json", + "Accept": "application/json, text/event-stream"} +CLIENT = httpx.Client(timeout=120) +MSG_ID_COUNTER = itertools.count(10) + + +def next_msg_id(): + return next(MSG_ID_COUNTER) + + +def _init(): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": 1, "method": "initialize", + "params": {"protocolVersion": "2025-03-26", "capabilities": {}, + "clientInfo": {"name": TASK_NAME, "version": "1.0", + "user_id": "{{__user_hash__}}", + "workspace_id": "{{__workspace_hash__}}"}} + }, headers=MCP_HEADERS) + r.raise_for_status() + sid = r.headers.get("mcp-session-id") + if sid: + MCP_HEADERS["mcp-session-id"] = sid + CLIENT.post(LOCALDOCS_URL, + json={"jsonrpc": "2.0", "method": "notifications/initialized"}, + headers=MCP_HEADERS).raise_for_status() + + +def _parse_mcp(text): + for line in text.strip().split("\n"): + if line.startswith("data: "): + try: + return json.loads(line[6:]) + except Exception: + return None + try: + return json.loads(text) + except Exception: + return None + + +def _call(name, args, mid): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": mid, "method": "tools/call", + "params": {"name": name, "arguments": args} + }, headers=MCP_HEADERS) + r.raise_for_status() + p = _parse_mcp(r.text) + if not p or "result" not in p: + raise RuntimeError("MCP_CALL_FAILED:%s" % name) + return p + + +def read_raw(name): + p = _call("read_docs", {"doc_names": [name]}, next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if not text: + raise RuntimeError("EMPTY_RESPONSE:%s" % name) + try: + outer = json.loads(text) + except Exception: + return text + if isinstance(outer, str): + return outer + if isinstance(outer, dict) and "results" in outer: + r0 = (outer.get("results") or [{}])[0] + inner = r0.get("content") + if inner is None: + inner = r0.get("text") + if not isinstance(inner, str) or not inner: + raise RuntimeError("EMPTY_CONTENT:%s" % name) + return inner + raise RuntimeError("UNEXPECTED_READ_DOCS_ENVELOPE:%s" % name) + + +def parse_json_text(raw): + s = raw.strip() + try: + return json.loads(s) + except json.JSONDecodeError: + obj, _ = json.JSONDecoder().raw_decode(s) + return obj + + +def read_json(name): + return parse_json_text(read_raw(name)) + + +def write_doc(path, content): + # localdocs 는 실패도 정상 응답 본문의 "Error: ..." 로 돌려준다(Part 2 capture 와 같은 검사). + p = _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if text.startswith("Error"): + raise RuntimeError("WRITE_FAILED:%s:%s" % (path, text[:200])) + + +def sha_text(text): + return hashlib.sha256(text.encode("utf-8")).hexdigest() + + +def canonical(value): + return json.dumps(value, ensure_ascii=False, sort_keys=True, + separators=(",", ":")) + "\n" diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/apply_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/apply_body.py new file mode 100644 index 00000000..e970dfa2 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/apply_body.py @@ -0,0 +1,348 @@ + + +def write_checked(path, text): + write_doc(path, text) + if sha_text(read_raw(path)) != sha_text(text): + raise RuntimeError("PART3_L1_WRITE_REREAD_MISMATCH:%s" % path) + + +# ------------------------------------------------------------------ +# 순수 함수 — 외부 호출 없음. 입력은 요청 파일의 쌍과 답 파일뿐이다. +# ------------------------------------------------------------------ +def normalized_probabilities(pair, answer): + # 유효 답이면 네 확률을 합으로 나눈 dict, 아니면 None(= 답 누락). 키 집합이 다르면(옛 3키 답 포함) 누락이다. + if not isinstance(answer, dict) or answer.get("status") != "ANSWERED": + return None + if answer.get("pair_id") != pair.get("pair_id"): + return None + relation = answer.get("relation") + if not isinstance(relation, dict) or relation.get("type") != "choice": + return None + probs = relation.get("probabilities") + if not isinstance(probs, dict) or set(probs) != set(RELATION_KEYS): + return None + values = {} + for key in RELATION_KEYS: + value = probs[key] + if isinstance(value, bool) or not isinstance(value, (int, float)): + return None + value = float(value) + if not math.isfinite(value) or value < 0.0 or value > 1.0: + return None + values[key] = value + total = sum(values.values()) + if total <= 0.0: + return None + return {key: values[key] / total for key in RELATION_KEYS} + + +def decide(pairs, answers): + # pairs: [{pair_id, target_type_id}] · answers: {pair_id: 답 파일 dict 또는 None} + if not pairs: + return {"outcome": "NO_PAIRS"} + scored = [] + missing = [] + for pair in pairs: + norm = normalized_probabilities(pair, answers.get(pair.get("pair_id"))) + if norm is None: + missing.append(pair.get("pair_id")) + continue + scored.append({"pair_id": pair.get("pair_id"), "target_type_id": pair.get("target_type_id"), + "attach_score": norm[PART_OF] + norm[WORDING], + "non_attach_score": norm[INDEPENDENT] + norm[UNRELATED], + "probabilities": norm}) + pair_scores = [{"pair_id": row["pair_id"], "target_type_id": row["target_type_id"], + "attach_score": round(row["attach_score"], 6), + "non_attach_score": round(row["non_attach_score"], 6), + "probabilities": {k: round(v, 6) for k, v in row["probabilities"].items()}} + for row in scored] + if missing: + return {"outcome": "ANSWER_MISSING", "missing_pair_ids": missing, "pair_scores": pair_scores} + ranked = sorted(scored, key=lambda row: (-row["attach_score"], str(row["target_type_id"]))) + best = ranked[0] + margin = None if len(ranked) == 1 else best["attach_score"] - ranked[1]["attach_score"] + norm = best["probabilities"] + non_attach_is_max = max(norm[INDEPENDENT], norm[UNRELATED]) >= max(norm[PART_OF], norm[WORDING]) + if (best["attach_score"] + EPS >= ACCEPT_MIN and (margin is None or margin + EPS >= MARGIN_MIN) + and not non_attach_is_max): + relation = WORDING if norm[WORDING] >= norm[PART_OF] else PART_OF + return {"outcome": "ACCEPT", "attached_type_id": best["target_type_id"], + "pair_id": best["pair_id"], "relation": relation, + "accept_score": round(best["attach_score"], 6), + "margin": None if margin is None else round(margin, 6), + "pair_scores": pair_scores} + if (all(row["non_attach_score"] + EPS >= INDEPENDENT_MIN for row in scored) + and any(row["probabilities"][INDEPENDENT] + EPS >= INDEPENDENT_FLOOR for row in scored)): + return {"outcome": "PROMOTION", "pair_scores": pair_scores} + return {"outcome": "UNDECIDED", "pair_scores": pair_scores} + + +def bo_counts(bundle): + # 영수증용. 전후 모두 같은 방식(레코드 source_bo_ids 고유 id · unattached_bo 길이)으로 센다. + attached = set() + for record in bundle.get("structure_records") or []: + if isinstance(record, dict): + attached.update(b for b in (record.get("source_bo_ids") or []) if isinstance(b, str)) + return {"bo_attached": len(attached), "bo_unattached": len(bundle.get("unattached_bo") or [])} + + +def item_key(item): + return (item.get("review_code"), item.get("domain_id"), item.get("candidate_type_id"), + item.get("bo_id")) + + +def apply_decisions(bundle, handoff, decisions, models, glossary=None): + # 번들·handoff 를 제자리에서 고친다. 반환: (번들 변경 여부, handoff 변경 여부, 수용 BO 목록) + records = {(r.get("domain_id"), r.get("type_id")): r + for r in (bundle.get("structure_records") or []) if isinstance(r, dict)} + accepted = {(row["domain_id"], row["candidate_type_id"]): row for row in decisions + if row["decision"]["outcome"] == "ACCEPT"} + items = [i for i in (handoff.get("review_items") or [])] + existing = {item_key(i) for i in items if isinstance(i, dict)} + kept = [] + added = [] + attached_bo = [] + bundle_changed = False + removed_bo_ids = set() + for item in items: + if not isinstance(item, dict) or item.get("review_code") != UNATTACHED_CODE: + kept.append(item) + continue + keywords = [k for k in (item.get("legal_keywords") or []) if isinstance(k, str)] + domains = [d for d in (item.get("resolved_domains") or []) if isinstance(d, str)] + bo_id = item.get("bo_id") + matches = sorted({(d, k) for d in domains for k in keywords if (d, k) in accepted}) + if not matches or not isinstance(bo_id, str): + kept.append(item) + continue + for (d, k) in matches: + row = accepted[(d, k)] + decision = row["decision"] + record = records.get((d, decision["attached_type_id"])) + if record is None: + continue + if bo_id not in record.get("source_bo_ids", []): + record["source_bo_ids"] = sorted(set(record.get("source_bo_ids") or []) | {bo_id}) + bundle_changed = True + if CODE_ATTACHED not in (record.get("review_codes") or []): + record["review_codes"] = sorted(set(record.get("review_codes") or []) | {CODE_ATTACHED}) + bundle_changed = True + if record.get("review_required") is not True: + record["review_required"] = True + bundle_changed = True + new_item = {"review_code": CODE_ATTACHED, "severity": "SOFT_WARNING", + "domain_id": d, "bo_id": bo_id, "candidate_type_id": k, + "attached_type_id": decision["attached_type_id"], + "relation": decision["relation"], "decided_by": DECIDED_BY, + "accept_score": decision["accept_score"], "margin": decision["margin"], + "model": models.get(decision["pair_id"])} + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + attached_bo.append({"bo_id": bo_id, "domain_id": d, "candidate_type_id": k, + "attached_type_id": decision["attached_type_id"]}) + if any(records.get((d, accepted[(d, k)]["decision"]["attached_type_id"])) is not None + for (d, k) in matches): + removed_bo_ids.add(bo_id) + else: + kept.append(item) + unattached = [row for row in (bundle.get("unattached_bo") or []) if isinstance(row, dict)] + remaining = [row for row in unattached if row.get("bo_id") not in removed_bo_ids] + if len(remaining) != len(unattached): + bundle["unattached_bo"] = remaining + bundle_changed = True + if bundle_changed: + # 차감하지 않고 배열에서 다시 센다(L2 가 원본 BO.json 으로 같은 등식을 잰다). + counts = bundle.setdefault("counts", {}) + attached_ids = set() + for record in records.values(): + attached_ids.update(b for b in (record.get("source_bo_ids") or []) if isinstance(b, str)) + counts["bo_attached"] = len(attached_ids) + counts["bo_unattached"] = len(bundle["unattached_bo"]) + # 승격 제안 · 답 누락 — 후보 단위. 기존 PART3_BO_UNATTACHED 는 남긴다. + for row in decisions: + outcome = row["decision"]["outcome"] + if outcome not in ("PROMOTION", "ANSWER_MISSING"): + continue + new_item = {"review_code": CODE_PROMOTION if outcome == "PROMOTION" else CODE_MISSING, + "severity": "SOFT_WARNING", "domain_id": row["domain_id"], + "candidate_type_id": row["candidate_type_id"], "decided_by": DECIDED_BY} + if outcome == "PROMOTION": + new_item["pair_scores"] = row["decision"]["pair_scores"] + else: + new_item["missing_pair_ids"] = row["decision"]["missing_pair_ids"] + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + # 목표 무관 — UNDECIDED 후보 중 모든 쌍의 최댓값이 unrelated 인 후보마다 한 건(ACCEPT·PROMOTION 과는 구조상 겹치지 않는다). + # 동률이면 RELATION_KEYS 순서상 unrelated 가 지므로(마지막 키) 보수적으로 남기지 않는다. + for row in decisions: + decision = row["decision"] + scores = decision.get("pair_scores") or [] + if decision["outcome"] != "UNDECIDED": + continue + if not all(max(RELATION_KEYS, key=lambda key: s["probabilities"][key]) == UNRELATED for s in scores): + continue + new_item = {"review_code": CODE_TARGET_UNRELATED, "severity": "SOFT_WARNING", + "domain_id": row["domain_id"], "candidate_type_id": row["candidate_type_id"], + "decided_by": DECIDED_BY, "pair_scores": scores} + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + # glossary 누락 — 회차 단위 한 건. 정의 없이 보낸 유형이 없으면 남기지 않는다. 그림자 실행에서도 남긴다. + glossary = glossary if isinstance(glossary, dict) else {} + without = [t for t in (glossary.get("pair_types_without_definition") or []) if isinstance(t, str)] + if without: + new_item = {"review_code": CODE_GLOSSARY_MISSING, "severity": "SOFT_WARNING", + "type_ids_without_definition": sorted(without), + "glossary_reason": glossary.get("glossary_status"), + "detected_by": PLANNER_TASK} + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + new_items = kept + added + handoff_changed = len(new_items) != len(items) or any(a is not b for a, b in zip(new_items, items)) + if handoff_changed: + handoff["review_items"] = new_items + handoff.setdefault("counts", {})["review_items"] = len(new_items) + return bundle_changed, handoff_changed, attached_bo + + +def fail_receipt(receipt, reason): + # raise 경로에서도 지난 회차 영수증이 남지 않게 실패 사유를 남긴다(최선 노력 — 실패해도 원래 오류를 올린다). + receipt.update({"applied": False, "reason": reason}) + try: + write_doc(RECEIPT_PATH, canonical(receipt)) + except Exception: + pass + + +def main(): + receipt = {"schema_version": "stage1_part3_recommender_receipt.v2", "stage": "P3-L1", + "shadow_run": SHADOW_RUN, + # v2(2:39pm): 4키 · pair_scores.non_attach_score · independent_min 은 비부착 질량 하한 · independent_floor 신설. + "relation_keys": list(RELATION_KEYS), + "thresholds": {"accept_min": ACCEPT_MIN, "margin_min": MARGIN_MIN, + "independent_floor": INDEPENDENT_FLOOR, + "independent_min": INDEPENDENT_MIN, + "accept_min_start": ACCEPT_MIN_START, + "independent_min_start": INDEPENDENT_MIN_START}, + "decided_by": DECIDED_BY, "applied": False, "reason": None, + "created_by": TASK_NAME} + request_raw = None + try: + request_raw = read_raw(REQUEST_PATH) + request = parse_json_text(request_raw) + except Exception as exc: + request = None + receipt["reason"] = {"code": "REQUEST_UNREADABLE", "detail": str(exc)[:200]} + if request is not None: + receipt["request_sha256"] = sha_text(request_raw) + if isinstance(request, dict) and request.get("planned") is not True: + receipt["reason"] = {"code": "NOT_PLANNED", "planner_reason": request.get("reason")} + if receipt["reason"] is None and not isinstance(request, dict): + receipt["reason"] = {"code": "REQUEST_INVALID"} + try: + handoff_raw = read_raw(HANDOFF_PATH) + except Exception as exc: + fail_receipt(receipt, {"code": "HANDOFF_UNREADABLE", "detail": str(exc)[:200]}) + raise + if receipt["reason"] is None and request.get("handoff_sha256") != sha_text(handoff_raw): + receipt["reason"] = {"code": "HANDOFF_CHANGED_OR_ALREADY_APPLIED", + "expected": request.get("handoff_sha256"), + "actual": sha_text(handoff_raw)} + if receipt["reason"] is not None: + write_checked(RECEIPT_PATH, canonical(receipt)) + return {"status": "SKIPPED", "reason": receipt["reason"]} + + candidates = [c for c in (request.get("candidates") or []) if isinstance(c, dict)] + answer_files = {} + answers = {} + models = {} + input_tokens = 0 + model_names = set() + for candidate in candidates: + for pair in candidate.get("pairs") or []: + if not isinstance(pair, dict): + continue + path = pair.get("answer_path") + raw = None + try: + raw = read_raw(path) + answer = parse_json_text(raw) + except Exception: + answer = None + answer_files[pair.get("pair_id")] = sha_text(raw) if raw else None + answers[pair.get("pair_id")] = answer + if isinstance(answer, dict) and answer.get("status") == "ANSWERED": + models[pair.get("pair_id")] = answer.get("model") + if isinstance(answer.get("model"), str): + model_names.add(answer["model"]) + usage = answer.get("usage") if isinstance(answer.get("usage"), dict) else {} + if isinstance(usage.get("input_tokens"), int): + input_tokens += usage["input_tokens"] + decisions = [] + for candidate in candidates: + decisions.append({"domain_id": candidate.get("domain_id"), + "candidate_type_id": candidate.get("candidate_type_id"), + "decision": decide([p for p in (candidate.get("pairs") or []) + if isinstance(p, dict)], answers)}) + + bundle_raw = read_raw(BUNDLE_PATH) + bundle_doc = parse_json_text(bundle_raw) + bundle = bundle_doc.get("structure_seed_bundle", bundle_doc) + handoff_doc = parse_json_text(handoff_raw) + handoff = handoff_doc.get("stage1_part3_review_handoff", handoff_doc) + before = bo_counts(bundle) + bundle_changed, handoff_changed, attached_bo = apply_decisions(bundle, handoff, decisions, models, + request.get("glossary")) + # 쓰기 순서: 번들 -> handoff -> 영수증. created_by·schema_version·status 는 덮어쓰지 않는다. + try: + if bundle_changed: + write_checked(BUNDLE_PATH, canonical({"structure_seed_bundle": bundle})) + if handoff_changed: + write_checked(HANDOFF_PATH, canonical({"stage1_part3_review_handoff": handoff})) + except Exception as exc: + # code task 는 백엔드 재시도가 없고 apply 실패 뒤에도 L2 가 돈다. 반쪽 상태(번들에는 붙었는데 + # handoff 에 HARD 가 남거나, 그 반대)가 L2 로 가지 않도록 바꾼 파일을 각각 읽은 원본으로 되돌린다. + restore = {} + for path, raw, changed in ((BUNDLE_PATH, bundle_raw, bundle_changed), + (HANDOFF_PATH, handoff_raw, handoff_changed)): + if not changed: + continue + try: + write_checked(path, raw) + restore[path] = "RESTORED" + except Exception as restore_exc: + restore[path] = "RESTORE_FAILED:%s" % str(restore_exc)[:150] + fail_receipt(receipt, {"code": "WRITE_FAILED", "detail": str(exc)[:200], "restore": restore}) + raise + outcome_counts = {} + for row in decisions: + outcome_counts[row["decision"]["outcome"]] = outcome_counts.get(row["decision"]["outcome"], 0) + 1 + receipt.update({ + "applied": True, + "models": sorted(model_names), + "usage_input_tokens": input_tokens, + "candidate_count": len(candidates), + "pair_count": sum(len(c.get("pairs") or []) for c in candidates), + "answer_file_sha256": answer_files, + # glossary 는 LLM 초안(미검증)이다. sha·미검증 항목 수로 회차 간 점수 비교의 전제를 남긴다. + "glossary": request.get("glossary"), + "decisions": decisions, + "outcome_counts": outcome_counts, + "attached_bo": attached_bo, + "bo_counts": {"before": before, "after": bo_counts(bundle)}, + "bundle_rewritten": bundle_changed, + "handoff_rewritten": handoff_changed, + "note": "L0 영수증 part3_receipt.json 의 join_counts 는 L1 이전 값이다.", + }) + write_checked(RECEIPT_PATH, canonical(receipt)) + return {"status": "APPLIED", "candidate_count": len(candidates), + "outcome_counts": outcome_counts, "attached_bo_count": len(attached_bo), + "bundle_rewritten": bundle_changed, "handoff_rewritten": handoff_changed} + + +_init() +RESULT = main() +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/apply_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/apply_head.py new file mode 100644 index 00000000..9679a13b --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/apply_head.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_apply (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §2.4·§2.5·§3.1) +# 번들·handoff 쓰기가 실패하면 바꾼 파일을 각각 읽은 원본으로 되돌리고 실패 영수증을 남긴 뒤 raise 한다(반쪽 상태 차단). +# 1) 요청 파일 확인(planned · handoff_sha256 신선도) -> 2) 답 파일 적재·유효성 -> +# 3) decide(순수 함수) -> 4) 반영: 번들 -> handoff -> 영수증(각 쓰기 재읽기 sha 대조) +# 모듈·정적 자산·시드 스키마를 읽지 않는다. 고친 structure_records 는 L2 가 최종 색인 스키마로, +# unattached_bo·counts 는 L2 의 BO 보존 등식이 다시 잡는다. +# 대상 BO 는 handoff 의 PART3_BO_UNATTACHED 항목에서 고른다(번들 unattached_bo 아님 — 부분 실패 재실행 대비). +# 후보가 0 이거나 바뀐 BO 가 없으면 번들·handoff 를 다시 쓰지 않는다. 영수증은 항상 쓴다. +# 검토 항목에 status·blocked 키를 쓰지 않는다(S2_00 이 멈춘다). 심각도 리터럴은 HARD_WARNING/SOFT_WARNING 뿐. +# 이 경로는 정책 structure_index_policy.v1.json 의 bo_attachment.join 서술과 다른 부착 경로다. +import hashlib +import itertools +import json +import math + +import httpx + +TASK_NAME = "Task_C_LE_L1_apply" +BUNDLE_PATH = "stage1_tmp/task_le/structure_seed_bundle.json" +HANDOFF_PATH = "quality_gates/stage1_part3_review_handoff.json" +REQUEST_PATH = "stage1_tmp/task_le/recommender_requests.json" +RECEIPT_PATH = "validation_assets/routing/part3_recommender_receipt.json" +UNATTACHED_CODE = "PART3_BO_UNATTACHED" + +# 임계값 — 시작값이며 검증되지 않았다(§2.4). 첫 온라인 실행들은 그림자 실행이었다(11-05 실행 1~3): +# ACCEPT_MIN·INDEPENDENT_MIN 을 1.01 로 두어 수용·승격 제안을 끄고 점수만 영수증에 남긴다. +# SHADOW_RUN = True 면 두 임계값을 1.01 로 두어 수용·승격을 끈다. accept_min 을 0.5 근처까지 낮춰도 최댓값 조건은 항상 붙는다. +# 2026-11-05 3:30pm 사용자 결정으로 끈다(사람 라벨 보정 없이) — 시작 임계값이 실제로 적용된다(실행 3 데이터 기준 수용 4건·BO 5건). +SHADOW_RUN = False +ACCEPT_MIN_START = 0.80 +MARGIN_MIN = 0.20 +INDEPENDENT_MIN_START = 0.80 +ACCEPT_MIN = 1.01 if SHADOW_RUN else ACCEPT_MIN_START +INDEPENDENT_MIN = 1.01 if SHADOW_RUN else INDEPENDENT_MIN_START +# 2:39pm 신설 — 승격 제안에 필요한 independent 의 쌍별 하한(절반 이상). 그림자 실행에서는 INDEPENDENT_MIN 이 먼저 막는다. +INDEPENDENT_FLOOR = 0.50 +# 부동소수 비교 허용오차(0.7-0.5 = 0.19999… 가 마진 0.20 에 떨어지지 않게). +EPS = 1e-9 + +DECIDED_BY = "recommender" +CODE_ATTACHED = "PART3_BO_ATTACHED_BY_RECOMMENDER" +CODE_PROMOTION = "PART3_PROMOTION_PROPOSED" +CODE_MISSING = "PART3_RECOMMENDER_ANSWER_MISSING" +# 목표 무관(3:30pm) — UNDECIDED 후보의 모든 쌍에서 unrelated 가 네 확률 중 최댓값이면 후보마다 한 건(SOFT). +# HARD PART3_BO_UNATTACHED 는 남는다. 검토자가 "레지스트리 승격 / 다른 도메인 대상 / 버림"을 바로 판단하게 하는 안내다. +CODE_TARGET_UNRELATED = "PART3_RECOMMENDER_TARGET_UNRELATED" +# planner 가 정의 없이(식별자만) 보낸 유형이 있으면 한 건 남긴다(11-05 오후 glossary 개정). +CODE_GLOSSARY_MISSING = "PART3_GLOSSARY_MISSING" +PLANNER_TASK = "Task_C_LE_L1_candidate_planner" +# Task_C_LE_L1_recommender_* 의 jev criteria 키와 같아야 한다(2벌 — 오프라인 검사가 대조한다). +# unrelated(11-05 2:39pm 사용자 승인) — 선언 유형과 법적 관계가 없는 쌍의 자리(SKILL.md §3.4 규칙 4 "그 외/해당 없음"). +# 부착 질량 = part_of + wording · 비부착 질량 = independent + unrelated. +# 수용: 부착 질량 ≥ ACCEPT_MIN · 마진 · part_of 또는 wording 이 네 확률 중 최댓값(independent·unrelated 가 최댓값이면 막는다). +# 승격 제안: 모든 쌍에서 비부착 질량 ≥ INDEPENDENT_MIN 이고, 적어도 한 쌍에서 independent ≥ INDEPENDENT_FLOOR(절반 이상). +# (independent ≥ unrelated 만으로는 0.41 대 0.40 같은 약한 근거도 통과한다 — 절반 이상 하한이 독립 구조라는 최소 근거다.) +# 결과: 선언 목표가 모두 "무관"인 후보(X1 처럼 쌍이 하나뿐인 후보 포함)는 승격 제안에 오르지 않는다 — 승격은 이제 +# "독립 구조가 필요하고 어떤 선언 유형과는 관계가 있음"을 뜻한다. 그런 후보의 판단은 3:30pm 부터 handoff SOFT +# PART3_RECOMMENDER_TARGET_UNRELATED 로도 남는다. +# 모든 쌍이 "무관" 우세면 독립 구조라는 근거가 없으므로 UNDECIDED 로 두어 HARD 미부착 항목을 사람 검토에 남긴다(보수적 선택). +RELATION_KEYS = ("independent_effect", "part_of_declared_type", "wording_variant", "unrelated") +INDEPENDENT = "independent_effect" +UNRELATED = "unrelated" +PART_OF = "part_of_declared_type" +WORDING = "wording_variant" + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/capture_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/capture_body.py new file mode 100644 index 00000000..73519fd1 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/capture_body.py @@ -0,0 +1,65 @@ + + +class CaptureError(Exception): + def __init__(self, code, detail=""): + super().__init__("%s:%s" % (code, detail)) + self.code = code + self.detail = detail + + +def _as_dict(value): + if isinstance(value, str): + try: + value = json.loads(value) + except Exception: + return None + return value if isinstance(value, dict) else None + + +def extract(prev_text, jev_task): + # jev task 의 결과는 응답 JSON 전체다(SKILL.md §3.4). 봉투(json_output·content·output)로 오면 한 겹 벗긴다. + if prev_text.strip().startswith("{" + "{"): + raise CaptureError("PREV_NOT_RENDERED") + try: + prev = json.loads(prev_text) + except Exception as exc: + raise CaptureError("PREV_PARSE_FAILED", str(exc)[:200]) + resp = _as_dict(prev.get(jev_task)) if isinstance(prev, dict) else None + if resp is None: + raise CaptureError("MISSING_TASK_OUTPUT", jev_task) + if "answers" not in resp: + for key in ("json_output", "content", "output"): + inner = _as_dict(resp.get(key)) + if inner is not None and "answers" in inner: + resp = inner + break + answers = resp.get("answers") + relation = answers.get("relation") if isinstance(answers, dict) else None + if not isinstance(relation, dict): + raise CaptureError("ANSWER_RELATION_MISSING", str(resp)[:200]) + if not isinstance(relation.get("probabilities"), dict): + raise CaptureError("ANSWER_PROBABILITIES_MISSING", str(relation)[:200]) + return {"type": relation.get("type"), "choice": relation.get("choice"), + "probabilities": relation.get("probabilities"), + "confidence": relation.get("confidence")}, resp.get("model"), resp.get("usage") + + +ITEM = json.loads(r"""{{item_json}}""") +ORDINAL = int(r"""{{ordinal}}""") +JEV_TASK = "Task_C_LE_L1_recommender_%d" % ORDINAL +OUTPUT_PATH = ITEM["answer_path"] +RESULT = {"status": "ANSWERED", "answer_path": OUTPUT_PATH, "jev_task": JEV_TASK, + "pair_id": ITEM.get("pair_id")} +try: + _relation, _model, _usage = extract(r"""{{prev}}""", JEV_TASK) + DOC = {"pair_id": ITEM.get("pair_id"), "status": "ANSWERED", "model": _model, + "usage": _usage if isinstance(_usage, dict) else None, + "relation": _relation, "created_by": TASK_NAME} + RESULT["choice"] = _relation.get("choice") +except CaptureError as exc: + DOC = {"pair_id": ITEM.get("pair_id"), "status": "FAILED", "code": exc.code, + "detail": exc.detail, "created_by": TASK_NAME} + RESULT.update({"status": "FAILED", "code": exc.code}) +_init() +write_doc(OUTPUT_PATH, canonical(DOC)) +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/capture_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/capture_head.py new file mode 100644 index 00000000..cd9f4165 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/capture_head.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_capture (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §3.1 · Part 2 Task_C_B_domain_capture 를 따른다) +# 같은 ordinal 의 Task_C_LE_L1_recommender_(jev) 응답 JSON 에서 answers.relation 을 꺼내 +# item.answer_path 에 {pair_id, status, model, usage, relation} 으로 쓴다. 판정은 apply 가 한다. +# 응답 문제(인스턴스 실패로 prev 에 없음 · answers.relation 없음 · 형식 이탈)로는 raise 하지 않고 +# status:"FAILED" 표식을 쓴다 — 지난 회차 답 파일이 남아 apply 를 통과하지 못하게 한다. +# 쓰기 실패만 raise 한다(code task 에는 백엔드 재시도가 없다 — 답 파일이 없거나 지난 회차 것이면 +# apply 의 pair_id 대조가 ANSWER_MISSING 으로 처리한다). +import hashlib +import itertools +import json + +import httpx + +TASK_NAME = "Task_C_LE_L1_capture" + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/planner_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/planner_body.py new file mode 100644 index 00000000..a14ecf5b --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/planner_body.py @@ -0,0 +1,346 @@ + + + +def is_type_id(value): + return isinstance(value, str) and TYPE_ID_PATTERN.fullmatch(value) is not None + + +def load_prev(raw): + # prev 전체를 한 번만 파싱한다. 반환 (dict, 오류 코드|None). 치환되지 않은 템플릿이면 빈 dict(오류 아님 — L0_NOT_READY 로 끝난다). + if raw.strip().startswith("{" + "{"): + return {}, None + try: + prev = json.loads(raw) + except Exception as exc: + return {}, "PREV_UNPARSEABLE:%s" % str(exc)[:200] + return (prev, None) if isinstance(prev, dict) else ({}, "PREV_NOT_OBJECT") + + +def previous_state(prev, parent): + # Part 2 load_fanout 과 같은 관용. + row = prev.get(parent, {}) + if isinstance(row, str): + try: + row = json.loads(row) + except Exception: + return {} + if isinstance(row, dict) and "status" not in row and isinstance(row.get("json_output"), dict): + row = row["json_output"] + return row if isinstance(row, dict) else {} + + +def glossary_object(prev): + # Task_C_LE_L1_glossary 응답 봉투(llm_result_envelope)에서 JSON 객체를 꺼낸다. 반환 (객체 | None, 상태 코드). + # Part 2 Task_C_B_domain_capture 의 parse_model 과 같은 규칙: 완료 상태만 · json_output 대신 본문 전체. + env = prev.get(GLOSSARY_TASK) + if env is None: + return None, "GLOSSARY_TASK_OUTPUT_MISSING" + if isinstance(env, str): + try: + env = json.loads(env) + except Exception: + env = {"content": env, "status": "completed"} + if not isinstance(env, dict): + return None, "GLOSSARY_ENVELOPE_INVALID" + status = str(env.get("status", "completed")).lower() + finish = str(env.get("finish_reason") or "").lower() + if status not in ("completed", "success", "ok", "stop"): + return None, "GLOSSARY_MODEL_INCOMPLETE:%s" % status + if finish in ("length", "max_tokens", "max_output_tokens"): + return None, "GLOSSARY_MODEL_INCOMPLETE:%s" % finish + raw = env.get("content") + if raw is None and "glossary" in env: + raw = env + if (raw is None or (isinstance(raw, str) and not raw.strip())) and isinstance(env.get("json_output"), dict): + raw = env["json_output"] # 본문이 비고 봉투가 객체를 뽑아 둔 경우 + if isinstance(raw, dict): + return raw, "OK" + if not isinstance(raw, str) or not raw.strip(): + return None, "GLOSSARY_OUTPUT_MISSING" + text = raw.strip() + if not text.startswith("{"): + match = re.search(r"```(?:json)?\s*(\{[\s\S]*?\})\s*```", text) + if match: + text = match.group(1) + elif "{" in text: + text = text[text.find("{"):] # 펜스 없이 앞에 설명이 붙은 경우 + else: + return None, "GLOSSARY_NOT_JSON_OBJECT" + try: + obj, _ = json.JSONDecoder(strict=False).raw_decode(text) + except Exception: + return None, "GLOSSARY_PARSE_FAILED" + if not isinstance(obj, dict): + return None, "GLOSSARY_NOT_JSON_OBJECT" + return obj, "OK" + + +def requested_type_ids(bundle): + # glossary 프롬프트가 요청한 집합과 같은 규칙. declared ∩ candidate 는 비어야 한다(k 는 Θ 밖). + declared = {r.get("type_id") for r in (bundle.get("structure_records") or []) + if isinstance(r, dict) and is_type_id(r.get("type_id")) + and r.get("type_id") not in EXCLUDED_TARGET_TYPE_IDS} + candidate = {row.get("type_id") for row in (bundle.get("unattached_routes") or []) + if isinstance(row, dict) and is_type_id(row.get("type_id"))} - declared + return declared, candidate + + +def clean_glossary(obj, declared, candidate): + # 순수 함수. 형식 검사를 통과한 항목만 남긴다. 반환 (entries, dropped). + # kind 는 모델 값을 믿지 않고 요청 집합에서 다시 정한다(어긋나면 dropped 에 남기지 않고 kind_corrected 로 센다). + table = obj.get("glossary") if isinstance(obj, dict) else None + if table is None and isinstance(obj, dict) and obj and all( + is_type_id(k) and isinstance(v, dict) for k, v in obj.items()): + table = obj # 봉투 없이 맨 {type_id: {...}} 로 낸 경우 + entries = {} + dropped = [] + if not isinstance(table, dict): + return entries, [{"type_id": None, "reason": "GLOSSARY_TABLE_MISSING"}] + for type_id in sorted(table, key=str): + row = table[type_id] + if not is_type_id(type_id): + dropped.append({"type_id": str(type_id)[:128], "reason": "TYPE_ID_PATTERN"}) + continue + if type_id not in declared and type_id not in candidate: + dropped.append({"type_id": type_id, "reason": "NOT_REQUESTED"}) + continue + if not isinstance(row, dict): + dropped.append({"type_id": type_id, "reason": "ROW_NOT_OBJECT"}) + continue + definition = row.get("definition_ko") + definition = " ".join(definition.split()) if isinstance(definition, str) else "" + if not definition or len(definition) > DEFINITION_MAX_CHARS: + dropped.append({"type_id": type_id, "reason": "DEFINITION_LENGTH"}) + continue + statutes = [] + statutes_dropped = 0 + for statute in row.get("statutes") if isinstance(row.get("statutes"), list) else []: + statute = " ".join(statute.split()) if isinstance(statute, str) else "" + statute = statute.replace("「", "").replace("」", "") + while STATUTE_TRIM.search(statute): + statute = STATUTE_TRIM.sub("", statute) + if (len(statute) <= STATUTE_MAX_CHARS and STATUTE_PATTERN.fullmatch(statute) + and statute not in statutes): + statutes.append(statute) + else: + statutes_dropped += 1 + kind = "declared" if type_id in declared else "candidate" + entries[type_id] = {"definition_ko": definition, "statutes": statutes[:STATUTE_MAX_ITEMS], + "kind": kind, "kind_corrected": row.get("kind") != kind, + "statutes_dropped": statutes_dropped + + max(0, len(statutes) - STATUTE_MAX_ITEMS), + "verified": False} + return entries, dropped + + +def bo_context(bo_records, bo_ids): + # BO 들의 추상 구조만 모은다(식별자 정규식 통과값만). BOType 은 소문자로 맞춰 검사한다. + bo_types = set() + payload_keys = {} + for bo_id in bo_ids: + record = bo_records.get(bo_id) + if not isinstance(record, dict): + continue + bo_type = record.get("BOType") + if isinstance(bo_type, str) and is_type_id(bo_type.lower()): + bo_types.add(bo_type.lower()) + extensions = record.get("extensions") if isinstance(record.get("extensions"), dict) else {} + domain_payload = (extensions.get("domain_payload") + if isinstance(extensions.get("domain_payload"), dict) else {}) + payload = domain_payload.get("payload") if isinstance(domain_payload.get("payload"), dict) else {} + for key in payload: + if is_type_id(key): + payload_keys[key] = payload_keys.get(key, 0) + 1 + # 여러 BO 에 자주 나온 키를 먼저 남긴다(같으면 이름순). 잘렸는지는 반환값 셋째로 알린다. + ranked = sorted(payload_keys, key=lambda k: (-payload_keys[k], k)) + return sorted(bo_types), ranked[:PAYLOAD_KEY_MAX], len(ranked) > PAYLOAD_KEY_MAX + + +def build_plan(bundle, handoff, glossary, bo_records): + # 순수 함수. 후보와 쌍, fan-out item 을 만든다. 반환 (candidates, fanout, 정의 없이 보낸 유형 목록). + records = [r for r in (bundle.get("structure_records") or []) if isinstance(r, dict)] + unattached_type_ids = {row.get("type_id") for row in (bundle.get("unattached_routes") or []) + if isinstance(row, dict) and isinstance(row.get("type_id"), str)} + targets_by_domain = {} + for record in records: + if is_type_id(record.get("type_id")) and record["type_id"] not in EXCLUDED_TARGET_TYPE_IDS: + targets_by_domain.setdefault(record.get("domain_id"), []).append(record) + found = {} + for item in handoff.get("review_items") or []: + if not isinstance(item, dict) or item.get("review_code") != UNATTACHED_CODE: + continue + keywords = sorted({k for k in (item.get("legal_keywords") or []) if is_type_id(k)}) + domains = sorted({d for d in (item.get("resolved_domains") or []) if isinstance(d, str)}) + for k in keywords: + if k not in unattached_type_ids: + continue + for d in domains: + entry = found.setdefault((d, k), {"cooccur": set(), "bo_count": 0, "bo_ids": set()}) + entry["cooccur"].update(x for x in keywords if x != k) + entry["bo_count"] += 1 + if isinstance(item.get("bo_id"), str): + entry["bo_ids"].add(item["bo_id"]) + candidates = [] + fanout = [] + without_definition = set() + for (d, k) in sorted(found): + entry = found[(d, k)] + cooccur = sorted(entry["cooccur"])[:COOCCUR_MAX] + bo_types, payload_keys, payload_truncated = bo_context(bo_records, sorted(entry["bo_ids"])) + k_gloss = glossary.get(k) + pairs = [] + for record in sorted(targets_by_domain.get(d, []), key=lambda r: r["type_id"]): + target = record["type_id"] + if target == k: + continue + t_gloss = glossary.get(target) + candidate_state = {"type_id": k, "cooccurring_keywords": cooccur, + "bo_types": bo_types, "payload_keys": payload_keys} + if payload_truncated: + candidate_state["payload_keys_truncated"] = True + declared_state = { + "type_id": target, + "module": record.get("module") if is_type_id(record.get("module")) else None, + "role_projection": (record.get("role_projection") + if is_type_id(record.get("role_projection")) else None)} + if k_gloss: + candidate_state["definition_ko"] = k_gloss["definition_ko"] + else: + without_definition.add(k) + if t_gloss: + declared_state["definition_ko"] = t_gloss["definition_ko"] + declared_state["statutes"] = t_gloss["statutes"] + else: + without_definition.add(target) + state = {"domain_id": d, "candidate": candidate_state, "declared_type": declared_state} + state["glossary_source"] = GLOSSARY_SOURCE if (k_gloss or t_gloss) else "none" + # ensure_ascii=False — 한글 정의를 \\uXXXX 로 늘리지 않는다(백엔드가 문자열을 객체로 풀지 못해도 읽힌다). + state_json = json.dumps(state, ensure_ascii=False, sort_keys=True, separators=(",", ":")) + # pair_id 에 state sha 를 넣는다 — 같은 쌍이라도 질문 자료가 바뀌면 지난 회차 답 파일이 맞지 않는다. + pair_id = "%s|%s|%s|%s" % (d, k, target, sha_text(state_json)[:12]) + answer_path = "%s/pair_%04d.json" % (ANSWER_DIR, len(fanout)) + pairs.append({"pair_id": pair_id, "target_type_id": target, "answer_path": answer_path}) + fanout.append({"pair_id": pair_id, "domain_id": d, "candidate_type_id": k, + "target_type_id": target, "answer_path": answer_path, + "state_json": state_json}) + candidates.append({"domain_id": d, "candidate_type_id": k, + "unattached_bo_item_count": entry["bo_count"], "pairs": pairs}) + return candidates, fanout, sorted(without_definition) + + +def glossary_doc(entries, dropped, glossary_status, obj, requested): + return {"schema_version": GLOSSARY_SCHEMA, "glossary_source": GLOSSARY_SOURCE, + "verified": False, "glossary_status": glossary_status, + "model_schema_version": obj.get("schema_version") if isinstance(obj, dict) else None, + "requested_count": len(requested), "accepted_count": len(entries), + "unverified_count": len(entries), "entries": entries, "dropped": dropped, + "missing_type_ids": sorted(requested - set(entries)), "created_by": TASK_NAME, + "note": "LLM 초안이다. law.go.kr 원문 대조·봉인 전이므로 조문·정의를 사실로 쓰지 않는다."} + + +def load_glossary(prev, bundle): + # glossary 를 꺼내 검사하고 type_glossary.json 에 쓴다. 쓰기에 실패하면 정의를 쓰지 않는다 + # (state 에 실은 정의와 파일이 어긋나지 않게) — 식별자만으로 계획을 이어 간다. + declared, candidate = requested_type_ids(bundle) + requested = declared | candidate + obj, glossary_status = glossary_object(prev) + entries, dropped = clean_glossary(obj, declared, candidate) if obj is not None else ({}, []) + if glossary_status == "OK": + # 파싱은 됐어도 표가 없거나 일부만 통과했으면 그렇게 적는다(영수증·검토 항목이 "OK" 로 오도하지 않게). + if not entries and any(d.get("reason") == "GLOSSARY_TABLE_MISSING" for d in dropped): + glossary_status = "GLOSSARY_TABLE_MISSING" + elif not entries: + glossary_status = "GLOSSARY_EMPTY" + elif len(entries) < len(requested): + glossary_status = "OK_PARTIAL" + text = canonical(glossary_doc(entries, dropped, glossary_status, obj, requested)) + try: + write_doc(GLOSSARY_PATH, text) + except Exception as exc: + glossary_status = "GLOSSARY_WRITE_FAILED:%s" % str(exc)[:120] + entries = {} + text = None + return entries, {"glossary_status": glossary_status, + "glossary_sha256": sha_text(text) if text else None, + "requested_count": len(requested), "accepted_count": len(entries), + "unverified_count": len(entries), "dropped_count": len(dropped), + "kind_corrected_count": sum(1 for e in entries.values() if e["kind_corrected"]), + "statutes_dropped_count": sum(e["statutes_dropped"] for e in entries.values())} + + +def load_bo_records(): + # BO.json 은 무봉인 입력이다. 읽지 못하면 BO 문맥 없이 계획한다(정의·식별자만). + try: + doc = read_json(BO_PATH) + except Exception: + return {}, "BO_UNREADABLE" + rows = doc if isinstance(doc, list) else (doc.get("BO") if isinstance(doc, dict) else None) + if not isinstance(rows, list): + return {}, "BO_INVALID" + out = {} + for row in rows: + if isinstance(row, dict): + bo_id = row.get("BO_ID") if isinstance(row.get("BO_ID"), str) else row.get("id") + if isinstance(bo_id, str): + out[bo_id] = row + return out, "OK" + + +def main(): + prev, prev_error = load_prev(r"""{{prev}}""") + if prev_error: + return {"code": "PREV_UNPARSEABLE", "detail": prev_error} + l0 = previous_state(prev, L0_TASK) + count = l0.get("structure_record_count") + if l0.get("status") not in ("READY", "READY_WITH_REVIEW") or not isinstance(count, int): + return {"code": "L0_NOT_READY", "l0_status": l0.get("status")} + bundle_doc = read_json(BUNDLE_PATH) + bundle = bundle_doc.get("structure_seed_bundle", bundle_doc) if isinstance(bundle_doc, dict) else {} + records = [r for r in (bundle.get("structure_records") or []) if isinstance(r, dict)] + if len(records) != count: + return {"code": "BUNDLE_STALE", "l0_structure_record_count": count, + "bundle_structure_record_count": len(records)} + handoff_raw = read_raw(HANDOFF_PATH) + handoff_doc = parse_json_text(handoff_raw) + handoff = (handoff_doc.get("stage1_part3_review_handoff", handoff_doc) + if isinstance(handoff_doc, dict) else {}) + glossary, glossary_summary = load_glossary(prev, bundle) + bo_records, bo_status = load_bo_records() + candidates, fanout, without_definition = build_plan(bundle, handoff, glossary, bo_records) + glossary_summary["pair_types_without_definition"] = without_definition + write_doc(REQUEST_PATH, canonical({ + "schema_version": REQUEST_SCHEMA, "planned": True, "reason": None, + "handoff_sha256": sha_text(handoff_raw), + "structure_record_count": count, + "excluded_target_type_ids": list(EXCLUDED_TARGET_TYPE_IDS), + "glossary": glossary_summary, "bo_context_status": bo_status, + "candidate_count": len(candidates), "pair_count": len(fanout), + "candidates": candidates, "created_by": TASK_NAME})) + RESULT.update({"status": "PLANNED", "dynamic_fanout": fanout, "count": len(fanout), + "candidate_count": len(candidates), + "glossary_status": glossary_summary["glossary_status"], + "glossary_accepted": glossary_summary["accepted_count"], + "pair_types_without_definition": len(without_definition)}) + return None + + +try: + _init() + try: + _reason = main() + except BaseException as exc: # raise 하지 않는다. + _reason = {"code": "PLANNER_EXCEPTION", "detail": str(exc)[:300]} + if _reason is not None: + RESULT.update({"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, "reason": _reason}) + try: # 지난 회차 정의표가 이번 회차 것으로 읽히지 않게(최선 노력). + write_doc(GLOSSARY_PATH, canonical({"schema_version": GLOSSARY_SCHEMA, "planned": False, + "reason": _reason, "entries": {}, "created_by": TASK_NAME})) + except Exception: + pass + write_doc(REQUEST_PATH, canonical({ + "schema_version": REQUEST_SCHEMA, "planned": False, "reason": _reason, + "candidates": [], "created_by": TASK_NAME})) +except BaseException as exc: + RESULT.update({"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, + "reason": {"code": "LOCALDOCS_UNAVAILABLE", "detail": str(exc)[:300]}}) +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/planner_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/planner_head.py new file mode 100644 index 00000000..7d56a7b4 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src/planner_head.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_candidate_planner (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §2.1·§2.3·§3.1; 11-05 오후 glossary 개정) +# fan-out 부모다. 어떤 실패도 raise 하지 않는다 — 부모가 raise 하면 wildcard 확장이 없어 +# all Task_C_LE_L1_capture_* 가 영원히 기다린다(Part 2 load_fanout 과 같은 규칙). 실패하면 빈 dynamic_fanout 과 +# planned:false 요청 파일로 끝낸다. when 을 쓰지 않는다(S2_10 V0: when-SKIPPED 부모 뒤 all 대기가 멈췄다). +# prev(L0 반환)가 READY 계열이고 structure_record_count 가 번들의 레코드 수와 같을 때만 계획한다 +# (지난 회차 번들을 외부 JEV 로 보내지 않는다). 모듈·정적 자산을 읽지 않는다. +# 후보 (d, k): k 가 type_id 패턴에 맞고 · 번들 unattached_routes[].type_id 에 있고 · +# handoff PART3_BO_UNATTACHED 항목의 legal_keywords 에 있으며 d 가 그 항목의 resolved_domains 에 있다. +# 쌍 (d, k, T): T 는 도메인 d 의 선언 유형 중 EXCLUDED_TARGET_TYPE_IDS(포괄 유형) 밖. 쌍마다 jev 요청 1건. +# glossary(11-05 오후): prev 의 Task_C_LE_L1_glossary 응답 봉투에서 유형 정의표를 꺼내 형식을 검사하고 +# type_glossary.json 에 쓴 뒤, 쌍 state 에 T 의 정의·조문과 k 의 정의를 싣는다. 사람 대조·봉인 전이므로 +# 모든 항목은 verified:false 다. state 의 glossary_source 는 정의가 하나라도 실리면 "llm_unverified", 없으면 "none". +# glossary 가 없거나 형식이 틀린 유형은 정의 없이(식별자만) 보내고, 그 목록을 요청 파일 glossary 에 남긴다 — +# handoff 의 PART3_GLOSSARY_MISSING(SOFT) 한 건은 apply 가 쓴다(fan-out 부모는 handoff 를 쓰지 않는다). +# 조문은 "법령명 제N조(의N)( 제N항)( 제N호)" 형식만 남긴다. 표는 {"glossary": {...}} 봉투와 맨 {type_id: {...}} 둘 다 받는다. +# state 의 BO 문맥은 식별자 정규식을 통과한 값만 싣는다 — 함께 달린 Legal_Keywords · BOType · +# extensions.domain_payload.payload 의 키 이름(BO 에 요건 행 칸이 없어 가장 가까운 추상 구조다). +# BO 본문·당사자·금액·날짜·payload 값·한글 키워드는 싣지 않는다(외부 JEV 로 사건 서술을 보내지 않는다). +import hashlib +import itertools +import json +import re + +import httpx + +TASK_NAME = "Task_C_LE_L1_candidate_planner" +L0_TASK = "Task_C_LE_L0_structure_seed_reducer" +GLOSSARY_TASK = "Task_C_LE_L1_glossary" +BUNDLE_PATH = "stage1_tmp/task_le/structure_seed_bundle.json" +HANDOFF_PATH = "quality_gates/stage1_part3_review_handoff.json" +BO_PATH = "BO.json" +REQUEST_PATH = "stage1_tmp/task_le/recommender_requests.json" +GLOSSARY_PATH = "stage1_tmp/task_le/type_glossary.json" +ANSWER_DIR = "stage1_tmp/task_le/recommender_answers" +REQUEST_SCHEMA = "stage1_part3_recommender_requests.v1" +GLOSSARY_SCHEMA = "stage1_part3_type_glossary.v1" +GLOSSARY_SOURCE = "llm_unverified" +UNATTACHED_CODE = "PART3_BO_UNATTACHED" +GLOSSARY_MISSING_CODE = "PART3_GLOSSARY_MISSING" +TYPE_ID_PATTERN = re.compile(r"^[a-z][a-z0-9_]{1,127}$") +EXCLUDED_TARGET_TYPE_IDS = ("general_legal_effect",) +COOCCUR_MAX = 20 +PAYLOAD_KEY_MAX = 20 +# 조문 정규화: 끝의 괄호 제목 · 「」 · 본문/단서/전단/후단을 떼고 나서 형식을 본다. +STATUTE_TRIM = re.compile(r"\s*(\([^)]*\)|본문|단서|전단|후단)\s*$") +STATUTE_PATTERN = re.compile(r"^[가-힣A-Za-z·ㆍ ]{2,30} 제\d+조(의\d+)?( 제\d+항)?( 제\d+호)?$") +DEFINITION_MAX_CHARS = 80 +STATUTE_MAX_ITEMS = 3 +STATUTE_MAX_CHARS = 40 +RESULT = {"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, "reason": None} diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/_boiler.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/_boiler.py new file mode 100644 index 00000000..8fe5b48c --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/_boiler.py @@ -0,0 +1,108 @@ +# ------------------------------------------------------------------ +# localdocs 보일러플레이트 (SKILL.md 5장 / 5.2장) — L2 사본에 Part 2 capture 의 write_doc(오류 검사)를 붙였다. +# clientInfo 에 {{__user_hash__}} / {{__workspace_hash__}} 를 반드시 넣는다. +# ------------------------------------------------------------------ +LOCALDOCS_URL = "http://mcp-localdocs:8012/mcp" +MCP_HEADERS = {"Content-Type": "application/json", + "Accept": "application/json, text/event-stream"} +CLIENT = httpx.Client(timeout=120) +MSG_ID_COUNTER = itertools.count(10) + + +def next_msg_id(): + return next(MSG_ID_COUNTER) + + +def _init(): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": 1, "method": "initialize", + "params": {"protocolVersion": "2025-03-26", "capabilities": {}, + "clientInfo": {"name": TASK_NAME, "version": "1.0", + "user_id": "{{__user_hash__}}", + "workspace_id": "{{__workspace_hash__}}"}} + }, headers=MCP_HEADERS) + r.raise_for_status() + sid = r.headers.get("mcp-session-id") + if sid: + MCP_HEADERS["mcp-session-id"] = sid + CLIENT.post(LOCALDOCS_URL, + json={"jsonrpc": "2.0", "method": "notifications/initialized"}, + headers=MCP_HEADERS).raise_for_status() + + +def _parse_mcp(text): + for line in text.strip().split("\n"): + if line.startswith("data: "): + try: + return json.loads(line[6:]) + except Exception: + return None + try: + return json.loads(text) + except Exception: + return None + + +def _call(name, args, mid): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": mid, "method": "tools/call", + "params": {"name": name, "arguments": args} + }, headers=MCP_HEADERS) + r.raise_for_status() + p = _parse_mcp(r.text) + if not p or "result" not in p: + raise RuntimeError("MCP_CALL_FAILED:%s" % name) + return p + + +def read_raw(name): + p = _call("read_docs", {"doc_names": [name]}, next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if not text: + raise RuntimeError("EMPTY_RESPONSE:%s" % name) + try: + outer = json.loads(text) + except Exception: + return text + if isinstance(outer, str): + return outer + if isinstance(outer, dict) and "results" in outer: + r0 = (outer.get("results") or [{}])[0] + inner = r0.get("content") + if inner is None: + inner = r0.get("text") + if not isinstance(inner, str) or not inner: + raise RuntimeError("EMPTY_CONTENT:%s" % name) + return inner + raise RuntimeError("UNEXPECTED_READ_DOCS_ENVELOPE:%s" % name) + + +def parse_json_text(raw): + s = raw.strip() + try: + return json.loads(s) + except json.JSONDecodeError: + obj, _ = json.JSONDecoder().raw_decode(s) + return obj + + +def read_json(name): + return parse_json_text(read_raw(name)) + + +def write_doc(path, content): + # localdocs 는 실패도 정상 응답 본문의 "Error: ..." 로 돌려준다(Part 2 capture 와 같은 검사). + p = _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if text.startswith("Error"): + raise RuntimeError("WRITE_FAILED:%s:%s" % (path, text[:200])) + + +def sha_text(text): + return hashlib.sha256(text.encode("utf-8")).hexdigest() + + +def canonical(value): + return json.dumps(value, ensure_ascii=False, sort_keys=True, + separators=(",", ":")) + "\n" diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/apply_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/apply_body.py new file mode 100644 index 00000000..4fae72de --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/apply_body.py @@ -0,0 +1,327 @@ + + +def write_checked(path, text): + write_doc(path, text) + if sha_text(read_raw(path)) != sha_text(text): + raise RuntimeError("PART3_L1_WRITE_REREAD_MISMATCH:%s" % path) + + +# ------------------------------------------------------------------ +# 순수 함수 — 외부 호출 없음. 입력은 요청 파일의 쌍과 답 파일뿐이다. +# ------------------------------------------------------------------ +def normalized_probabilities(pair, answer): + # 유효 답이면 세 확률을 합으로 나눈 dict, 아니면 None(= 답 누락). + if not isinstance(answer, dict) or answer.get("status") != "ANSWERED": + return None + if answer.get("pair_id") != pair.get("pair_id"): + return None + relation = answer.get("relation") + if not isinstance(relation, dict) or relation.get("type") != "choice": + return None + probs = relation.get("probabilities") + if not isinstance(probs, dict) or set(probs) != set(RELATION_KEYS): + return None + values = {} + for key in RELATION_KEYS: + value = probs[key] + if isinstance(value, bool) or not isinstance(value, (int, float)): + return None + value = float(value) + if not math.isfinite(value) or value < 0.0 or value > 1.0: + return None + values[key] = value + total = sum(values.values()) + if total <= 0.0: + return None + return {key: values[key] / total for key in RELATION_KEYS} + + +def decide(pairs, answers): + # pairs: [{pair_id, target_type_id}] · answers: {pair_id: 답 파일 dict 또는 None} + if not pairs: + return {"outcome": "NO_PAIRS"} + scored = [] + missing = [] + for pair in pairs: + norm = normalized_probabilities(pair, answers.get(pair.get("pair_id"))) + if norm is None: + missing.append(pair.get("pair_id")) + continue + scored.append({"pair_id": pair.get("pair_id"), "target_type_id": pair.get("target_type_id"), + "attach_score": norm[PART_OF] + norm[WORDING], + "probabilities": norm}) + pair_scores = [{"pair_id": row["pair_id"], "target_type_id": row["target_type_id"], + "attach_score": round(row["attach_score"], 6), + "probabilities": {k: round(v, 6) for k, v in row["probabilities"].items()}} + for row in scored] + if missing: + return {"outcome": "ANSWER_MISSING", "missing_pair_ids": missing, "pair_scores": pair_scores} + ranked = sorted(scored, key=lambda row: (-row["attach_score"], str(row["target_type_id"]))) + best = ranked[0] + margin = None if len(ranked) == 1 else best["attach_score"] - ranked[1]["attach_score"] + norm = best["probabilities"] + independent_is_max = norm[INDEPENDENT] >= max(norm[PART_OF], norm[WORDING]) + if (best["attach_score"] + EPS >= ACCEPT_MIN and (margin is None or margin + EPS >= MARGIN_MIN) + and not independent_is_max): + relation = WORDING if norm[WORDING] >= norm[PART_OF] else PART_OF + return {"outcome": "ACCEPT", "attached_type_id": best["target_type_id"], + "pair_id": best["pair_id"], "relation": relation, + "accept_score": round(best["attach_score"], 6), + "margin": None if margin is None else round(margin, 6), + "pair_scores": pair_scores} + if all(row["probabilities"][INDEPENDENT] + EPS >= INDEPENDENT_MIN for row in scored): + return {"outcome": "PROMOTION", "pair_scores": pair_scores} + return {"outcome": "UNDECIDED", "pair_scores": pair_scores} + + +def bo_counts(bundle): + # 영수증용. 전후 모두 같은 방식(레코드 source_bo_ids 고유 id · unattached_bo 길이)으로 센다. + attached = set() + for record in bundle.get("structure_records") or []: + if isinstance(record, dict): + attached.update(b for b in (record.get("source_bo_ids") or []) if isinstance(b, str)) + return {"bo_attached": len(attached), "bo_unattached": len(bundle.get("unattached_bo") or [])} + + +def item_key(item): + return (item.get("review_code"), item.get("domain_id"), item.get("candidate_type_id"), + item.get("bo_id")) + + +def apply_decisions(bundle, handoff, decisions, models, glossary=None): + # 번들·handoff 를 제자리에서 고친다. 반환: (번들 변경 여부, handoff 변경 여부, 수용 BO 목록) + records = {(r.get("domain_id"), r.get("type_id")): r + for r in (bundle.get("structure_records") or []) if isinstance(r, dict)} + accepted = {(row["domain_id"], row["candidate_type_id"]): row for row in decisions + if row["decision"]["outcome"] == "ACCEPT"} + items = [i for i in (handoff.get("review_items") or [])] + existing = {item_key(i) for i in items if isinstance(i, dict)} + kept = [] + added = [] + attached_bo = [] + bundle_changed = False + removed_bo_ids = set() + for item in items: + if not isinstance(item, dict) or item.get("review_code") != UNATTACHED_CODE: + kept.append(item) + continue + keywords = [k for k in (item.get("legal_keywords") or []) if isinstance(k, str)] + domains = [d for d in (item.get("resolved_domains") or []) if isinstance(d, str)] + bo_id = item.get("bo_id") + matches = sorted({(d, k) for d in domains for k in keywords if (d, k) in accepted}) + if not matches or not isinstance(bo_id, str): + kept.append(item) + continue + for (d, k) in matches: + row = accepted[(d, k)] + decision = row["decision"] + record = records.get((d, decision["attached_type_id"])) + if record is None: + continue + if bo_id not in record.get("source_bo_ids", []): + record["source_bo_ids"] = sorted(set(record.get("source_bo_ids") or []) | {bo_id}) + bundle_changed = True + if CODE_ATTACHED not in (record.get("review_codes") or []): + record["review_codes"] = sorted(set(record.get("review_codes") or []) | {CODE_ATTACHED}) + bundle_changed = True + if record.get("review_required") is not True: + record["review_required"] = True + bundle_changed = True + new_item = {"review_code": CODE_ATTACHED, "severity": "SOFT_WARNING", + "domain_id": d, "bo_id": bo_id, "candidate_type_id": k, + "attached_type_id": decision["attached_type_id"], + "relation": decision["relation"], "decided_by": DECIDED_BY, + "accept_score": decision["accept_score"], "margin": decision["margin"], + "model": models.get(decision["pair_id"])} + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + attached_bo.append({"bo_id": bo_id, "domain_id": d, "candidate_type_id": k, + "attached_type_id": decision["attached_type_id"]}) + if any(records.get((d, accepted[(d, k)]["decision"]["attached_type_id"])) is not None + for (d, k) in matches): + removed_bo_ids.add(bo_id) + else: + kept.append(item) + unattached = [row for row in (bundle.get("unattached_bo") or []) if isinstance(row, dict)] + remaining = [row for row in unattached if row.get("bo_id") not in removed_bo_ids] + if len(remaining) != len(unattached): + bundle["unattached_bo"] = remaining + bundle_changed = True + if bundle_changed: + # 차감하지 않고 배열에서 다시 센다(L2 가 원본 BO.json 으로 같은 등식을 잰다). + counts = bundle.setdefault("counts", {}) + attached_ids = set() + for record in records.values(): + attached_ids.update(b for b in (record.get("source_bo_ids") or []) if isinstance(b, str)) + counts["bo_attached"] = len(attached_ids) + counts["bo_unattached"] = len(bundle["unattached_bo"]) + # 승격 제안 · 답 누락 — 후보 단위. 기존 PART3_BO_UNATTACHED 는 남긴다. + for row in decisions: + outcome = row["decision"]["outcome"] + if outcome not in ("PROMOTION", "ANSWER_MISSING"): + continue + new_item = {"review_code": CODE_PROMOTION if outcome == "PROMOTION" else CODE_MISSING, + "severity": "SOFT_WARNING", "domain_id": row["domain_id"], + "candidate_type_id": row["candidate_type_id"], "decided_by": DECIDED_BY} + if outcome == "PROMOTION": + new_item["pair_scores"] = row["decision"]["pair_scores"] + else: + new_item["missing_pair_ids"] = row["decision"]["missing_pair_ids"] + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + # glossary 누락 — 회차 단위 한 건. 정의 없이 보낸 유형이 없으면 남기지 않는다. 그림자 실행에서도 남긴다. + glossary = glossary if isinstance(glossary, dict) else {} + without = [t for t in (glossary.get("pair_types_without_definition") or []) if isinstance(t, str)] + if without: + new_item = {"review_code": CODE_GLOSSARY_MISSING, "severity": "SOFT_WARNING", + "type_ids_without_definition": sorted(without), + "glossary_reason": glossary.get("glossary_status"), + "detected_by": PLANNER_TASK} + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + new_items = kept + added + handoff_changed = len(new_items) != len(items) or any(a is not b for a, b in zip(new_items, items)) + if handoff_changed: + handoff["review_items"] = new_items + handoff.setdefault("counts", {})["review_items"] = len(new_items) + return bundle_changed, handoff_changed, attached_bo + + +def fail_receipt(receipt, reason): + # raise 경로에서도 지난 회차 영수증이 남지 않게 실패 사유를 남긴다(최선 노력 — 실패해도 원래 오류를 올린다). + receipt.update({"applied": False, "reason": reason}) + try: + write_doc(RECEIPT_PATH, canonical(receipt)) + except Exception: + pass + + +def main(): + receipt = {"schema_version": "stage1_part3_recommender_receipt.v1", "stage": "P3-L1", + "shadow_run": SHADOW_RUN, + "thresholds": {"accept_min": ACCEPT_MIN, "margin_min": MARGIN_MIN, + "independent_min": INDEPENDENT_MIN, + "accept_min_start": ACCEPT_MIN_START, + "independent_min_start": INDEPENDENT_MIN_START}, + "decided_by": DECIDED_BY, "applied": False, "reason": None, + "created_by": TASK_NAME} + request_raw = None + try: + request_raw = read_raw(REQUEST_PATH) + request = parse_json_text(request_raw) + except Exception as exc: + request = None + receipt["reason"] = {"code": "REQUEST_UNREADABLE", "detail": str(exc)[:200]} + if request is not None: + receipt["request_sha256"] = sha_text(request_raw) + if isinstance(request, dict) and request.get("planned") is not True: + receipt["reason"] = {"code": "NOT_PLANNED", "planner_reason": request.get("reason")} + if receipt["reason"] is None and not isinstance(request, dict): + receipt["reason"] = {"code": "REQUEST_INVALID"} + try: + handoff_raw = read_raw(HANDOFF_PATH) + except Exception as exc: + fail_receipt(receipt, {"code": "HANDOFF_UNREADABLE", "detail": str(exc)[:200]}) + raise + if receipt["reason"] is None and request.get("handoff_sha256") != sha_text(handoff_raw): + receipt["reason"] = {"code": "HANDOFF_CHANGED_OR_ALREADY_APPLIED", + "expected": request.get("handoff_sha256"), + "actual": sha_text(handoff_raw)} + if receipt["reason"] is not None: + write_checked(RECEIPT_PATH, canonical(receipt)) + return {"status": "SKIPPED", "reason": receipt["reason"]} + + candidates = [c for c in (request.get("candidates") or []) if isinstance(c, dict)] + answer_files = {} + answers = {} + models = {} + input_tokens = 0 + model_names = set() + for candidate in candidates: + for pair in candidate.get("pairs") or []: + if not isinstance(pair, dict): + continue + path = pair.get("answer_path") + raw = None + try: + raw = read_raw(path) + answer = parse_json_text(raw) + except Exception: + answer = None + answer_files[pair.get("pair_id")] = sha_text(raw) if raw else None + answers[pair.get("pair_id")] = answer + if isinstance(answer, dict) and answer.get("status") == "ANSWERED": + models[pair.get("pair_id")] = answer.get("model") + if isinstance(answer.get("model"), str): + model_names.add(answer["model"]) + usage = answer.get("usage") if isinstance(answer.get("usage"), dict) else {} + if isinstance(usage.get("input_tokens"), int): + input_tokens += usage["input_tokens"] + decisions = [] + for candidate in candidates: + decisions.append({"domain_id": candidate.get("domain_id"), + "candidate_type_id": candidate.get("candidate_type_id"), + "decision": decide([p for p in (candidate.get("pairs") or []) + if isinstance(p, dict)], answers)}) + + bundle_raw = read_raw(BUNDLE_PATH) + bundle_doc = parse_json_text(bundle_raw) + bundle = bundle_doc.get("structure_seed_bundle", bundle_doc) + handoff_doc = parse_json_text(handoff_raw) + handoff = handoff_doc.get("stage1_part3_review_handoff", handoff_doc) + before = bo_counts(bundle) + bundle_changed, handoff_changed, attached_bo = apply_decisions(bundle, handoff, decisions, models, + request.get("glossary")) + # 쓰기 순서: 번들 -> handoff -> 영수증. created_by·schema_version·status 는 덮어쓰지 않는다. + try: + if bundle_changed: + write_checked(BUNDLE_PATH, canonical({"structure_seed_bundle": bundle})) + if handoff_changed: + write_checked(HANDOFF_PATH, canonical({"stage1_part3_review_handoff": handoff})) + except Exception as exc: + # code task 는 백엔드 재시도가 없고 apply 실패 뒤에도 L2 가 돈다. 반쪽 상태(번들에는 붙었는데 + # handoff 에 HARD 가 남거나, 그 반대)가 L2 로 가지 않도록 바꾼 파일을 각각 읽은 원본으로 되돌린다. + restore = {} + for path, raw, changed in ((BUNDLE_PATH, bundle_raw, bundle_changed), + (HANDOFF_PATH, handoff_raw, handoff_changed)): + if not changed: + continue + try: + write_checked(path, raw) + restore[path] = "RESTORED" + except Exception as restore_exc: + restore[path] = "RESTORE_FAILED:%s" % str(restore_exc)[:150] + fail_receipt(receipt, {"code": "WRITE_FAILED", "detail": str(exc)[:200], "restore": restore}) + raise + outcome_counts = {} + for row in decisions: + outcome_counts[row["decision"]["outcome"]] = outcome_counts.get(row["decision"]["outcome"], 0) + 1 + receipt.update({ + "applied": True, + "models": sorted(model_names), + "usage_input_tokens": input_tokens, + "candidate_count": len(candidates), + "pair_count": sum(len(c.get("pairs") or []) for c in candidates), + "answer_file_sha256": answer_files, + # glossary 는 LLM 초안(미검증)이다. sha·미검증 항목 수로 회차 간 점수 비교의 전제를 남긴다. + "glossary": request.get("glossary"), + "decisions": decisions, + "outcome_counts": outcome_counts, + "attached_bo": attached_bo, + "bo_counts": {"before": before, "after": bo_counts(bundle)}, + "bundle_rewritten": bundle_changed, + "handoff_rewritten": handoff_changed, + "note": "L0 영수증 part3_receipt.json 의 join_counts 는 L1 이전 값이다.", + }) + write_checked(RECEIPT_PATH, canonical(receipt)) + return {"status": "APPLIED", "candidate_count": len(candidates), + "outcome_counts": outcome_counts, "attached_bo_count": len(attached_bo), + "bundle_rewritten": bundle_changed, "handoff_rewritten": handoff_changed} + + +_init() +RESULT = main() +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/apply_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/apply_head.py new file mode 100644 index 00000000..25d1e818 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/apply_head.py @@ -0,0 +1,50 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_apply (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §2.4·§2.5·§3.1) +# 번들·handoff 쓰기가 실패하면 바꾼 파일을 각각 읽은 원본으로 되돌리고 실패 영수증을 남긴 뒤 raise 한다(반쪽 상태 차단). +# 1) 요청 파일 확인(planned · handoff_sha256 신선도) -> 2) 답 파일 적재·유효성 -> +# 3) decide(순수 함수) -> 4) 반영: 번들 -> handoff -> 영수증(각 쓰기 재읽기 sha 대조) +# 모듈·정적 자산·시드 스키마를 읽지 않는다. 고친 structure_records 는 L2 가 최종 색인 스키마로, +# unattached_bo·counts 는 L2 의 BO 보존 등식이 다시 잡는다. +# 대상 BO 는 handoff 의 PART3_BO_UNATTACHED 항목에서 고른다(번들 unattached_bo 아님 — 부분 실패 재실행 대비). +# 후보가 0 이거나 바뀐 BO 가 없으면 번들·handoff 를 다시 쓰지 않는다. 영수증은 항상 쓴다. +# 검토 항목에 status·blocked 키를 쓰지 않는다(S2_00 이 멈춘다). 심각도 리터럴은 HARD_WARNING/SOFT_WARNING 뿐. +# 이 경로는 정책 structure_index_policy.v1.json 의 bo_attachment.join 서술과 다른 부착 경로다. +import hashlib +import itertools +import json +import math + +import httpx + +TASK_NAME = "Task_C_LE_L1_apply" +BUNDLE_PATH = "stage1_tmp/task_le/structure_seed_bundle.json" +HANDOFF_PATH = "quality_gates/stage1_part3_review_handoff.json" +REQUEST_PATH = "stage1_tmp/task_le/recommender_requests.json" +RECEIPT_PATH = "validation_assets/routing/part3_recommender_receipt.json" +UNATTACHED_CODE = "PART3_BO_UNATTACHED" + +# 임계값 — 시작값이며 검증되지 않았다(§2.4). 첫 온라인 실행은 그림자 실행이다: +# ACCEPT_MIN·INDEPENDENT_MIN 을 1.01 로 두어 수용·승격 제안을 끄고 점수만 영수증에 남긴다. +# 보정(사람 라벨) 후 SHADOW_RUN = False 로 바꾼다. accept_min 을 0.5 근처까지 낮춰도 최댓값 조건은 항상 붙는다. +SHADOW_RUN = True +ACCEPT_MIN_START = 0.80 +MARGIN_MIN = 0.20 +INDEPENDENT_MIN_START = 0.80 +ACCEPT_MIN = 1.01 if SHADOW_RUN else ACCEPT_MIN_START +INDEPENDENT_MIN = 1.01 if SHADOW_RUN else INDEPENDENT_MIN_START +# 부동소수 비교 허용오차(0.7-0.5 = 0.19999… 가 마진 0.20 에 떨어지지 않게). +EPS = 1e-9 + +DECIDED_BY = "recommender" +CODE_ATTACHED = "PART3_BO_ATTACHED_BY_RECOMMENDER" +CODE_PROMOTION = "PART3_PROMOTION_PROPOSED" +CODE_MISSING = "PART3_RECOMMENDER_ANSWER_MISSING" +# planner 가 정의 없이(식별자만) 보낸 유형이 있으면 한 건 남긴다(11-05 오후 glossary 개정). +CODE_GLOSSARY_MISSING = "PART3_GLOSSARY_MISSING" +PLANNER_TASK = "Task_C_LE_L1_candidate_planner" +# Task_C_LE_L1_recommender_* 의 jev criteria 키와 같아야 한다(2벌 — 오프라인 검사가 대조한다). +RELATION_KEYS = ("independent_effect", "part_of_declared_type", "wording_variant") +INDEPENDENT = "independent_effect" +PART_OF = "part_of_declared_type" +WORDING = "wording_variant" + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/capture_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/capture_body.py new file mode 100644 index 00000000..73519fd1 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/capture_body.py @@ -0,0 +1,65 @@ + + +class CaptureError(Exception): + def __init__(self, code, detail=""): + super().__init__("%s:%s" % (code, detail)) + self.code = code + self.detail = detail + + +def _as_dict(value): + if isinstance(value, str): + try: + value = json.loads(value) + except Exception: + return None + return value if isinstance(value, dict) else None + + +def extract(prev_text, jev_task): + # jev task 의 결과는 응답 JSON 전체다(SKILL.md §3.4). 봉투(json_output·content·output)로 오면 한 겹 벗긴다. + if prev_text.strip().startswith("{" + "{"): + raise CaptureError("PREV_NOT_RENDERED") + try: + prev = json.loads(prev_text) + except Exception as exc: + raise CaptureError("PREV_PARSE_FAILED", str(exc)[:200]) + resp = _as_dict(prev.get(jev_task)) if isinstance(prev, dict) else None + if resp is None: + raise CaptureError("MISSING_TASK_OUTPUT", jev_task) + if "answers" not in resp: + for key in ("json_output", "content", "output"): + inner = _as_dict(resp.get(key)) + if inner is not None and "answers" in inner: + resp = inner + break + answers = resp.get("answers") + relation = answers.get("relation") if isinstance(answers, dict) else None + if not isinstance(relation, dict): + raise CaptureError("ANSWER_RELATION_MISSING", str(resp)[:200]) + if not isinstance(relation.get("probabilities"), dict): + raise CaptureError("ANSWER_PROBABILITIES_MISSING", str(relation)[:200]) + return {"type": relation.get("type"), "choice": relation.get("choice"), + "probabilities": relation.get("probabilities"), + "confidence": relation.get("confidence")}, resp.get("model"), resp.get("usage") + + +ITEM = json.loads(r"""{{item_json}}""") +ORDINAL = int(r"""{{ordinal}}""") +JEV_TASK = "Task_C_LE_L1_recommender_%d" % ORDINAL +OUTPUT_PATH = ITEM["answer_path"] +RESULT = {"status": "ANSWERED", "answer_path": OUTPUT_PATH, "jev_task": JEV_TASK, + "pair_id": ITEM.get("pair_id")} +try: + _relation, _model, _usage = extract(r"""{{prev}}""", JEV_TASK) + DOC = {"pair_id": ITEM.get("pair_id"), "status": "ANSWERED", "model": _model, + "usage": _usage if isinstance(_usage, dict) else None, + "relation": _relation, "created_by": TASK_NAME} + RESULT["choice"] = _relation.get("choice") +except CaptureError as exc: + DOC = {"pair_id": ITEM.get("pair_id"), "status": "FAILED", "code": exc.code, + "detail": exc.detail, "created_by": TASK_NAME} + RESULT.update({"status": "FAILED", "code": exc.code}) +_init() +write_doc(OUTPUT_PATH, canonical(DOC)) +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/capture_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/capture_head.py new file mode 100644 index 00000000..cd9f4165 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/capture_head.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_capture (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §3.1 · Part 2 Task_C_B_domain_capture 를 따른다) +# 같은 ordinal 의 Task_C_LE_L1_recommender_(jev) 응답 JSON 에서 answers.relation 을 꺼내 +# item.answer_path 에 {pair_id, status, model, usage, relation} 으로 쓴다. 판정은 apply 가 한다. +# 응답 문제(인스턴스 실패로 prev 에 없음 · answers.relation 없음 · 형식 이탈)로는 raise 하지 않고 +# status:"FAILED" 표식을 쓴다 — 지난 회차 답 파일이 남아 apply 를 통과하지 못하게 한다. +# 쓰기 실패만 raise 한다(code task 에는 백엔드 재시도가 없다 — 답 파일이 없거나 지난 회차 것이면 +# apply 의 pair_id 대조가 ANSWER_MISSING 으로 처리한다). +import hashlib +import itertools +import json + +import httpx + +TASK_NAME = "Task_C_LE_L1_capture" + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/planner_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/planner_body.py new file mode 100644 index 00000000..a14ecf5b --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/planner_body.py @@ -0,0 +1,346 @@ + + + +def is_type_id(value): + return isinstance(value, str) and TYPE_ID_PATTERN.fullmatch(value) is not None + + +def load_prev(raw): + # prev 전체를 한 번만 파싱한다. 반환 (dict, 오류 코드|None). 치환되지 않은 템플릿이면 빈 dict(오류 아님 — L0_NOT_READY 로 끝난다). + if raw.strip().startswith("{" + "{"): + return {}, None + try: + prev = json.loads(raw) + except Exception as exc: + return {}, "PREV_UNPARSEABLE:%s" % str(exc)[:200] + return (prev, None) if isinstance(prev, dict) else ({}, "PREV_NOT_OBJECT") + + +def previous_state(prev, parent): + # Part 2 load_fanout 과 같은 관용. + row = prev.get(parent, {}) + if isinstance(row, str): + try: + row = json.loads(row) + except Exception: + return {} + if isinstance(row, dict) and "status" not in row and isinstance(row.get("json_output"), dict): + row = row["json_output"] + return row if isinstance(row, dict) else {} + + +def glossary_object(prev): + # Task_C_LE_L1_glossary 응답 봉투(llm_result_envelope)에서 JSON 객체를 꺼낸다. 반환 (객체 | None, 상태 코드). + # Part 2 Task_C_B_domain_capture 의 parse_model 과 같은 규칙: 완료 상태만 · json_output 대신 본문 전체. + env = prev.get(GLOSSARY_TASK) + if env is None: + return None, "GLOSSARY_TASK_OUTPUT_MISSING" + if isinstance(env, str): + try: + env = json.loads(env) + except Exception: + env = {"content": env, "status": "completed"} + if not isinstance(env, dict): + return None, "GLOSSARY_ENVELOPE_INVALID" + status = str(env.get("status", "completed")).lower() + finish = str(env.get("finish_reason") or "").lower() + if status not in ("completed", "success", "ok", "stop"): + return None, "GLOSSARY_MODEL_INCOMPLETE:%s" % status + if finish in ("length", "max_tokens", "max_output_tokens"): + return None, "GLOSSARY_MODEL_INCOMPLETE:%s" % finish + raw = env.get("content") + if raw is None and "glossary" in env: + raw = env + if (raw is None or (isinstance(raw, str) and not raw.strip())) and isinstance(env.get("json_output"), dict): + raw = env["json_output"] # 본문이 비고 봉투가 객체를 뽑아 둔 경우 + if isinstance(raw, dict): + return raw, "OK" + if not isinstance(raw, str) or not raw.strip(): + return None, "GLOSSARY_OUTPUT_MISSING" + text = raw.strip() + if not text.startswith("{"): + match = re.search(r"```(?:json)?\s*(\{[\s\S]*?\})\s*```", text) + if match: + text = match.group(1) + elif "{" in text: + text = text[text.find("{"):] # 펜스 없이 앞에 설명이 붙은 경우 + else: + return None, "GLOSSARY_NOT_JSON_OBJECT" + try: + obj, _ = json.JSONDecoder(strict=False).raw_decode(text) + except Exception: + return None, "GLOSSARY_PARSE_FAILED" + if not isinstance(obj, dict): + return None, "GLOSSARY_NOT_JSON_OBJECT" + return obj, "OK" + + +def requested_type_ids(bundle): + # glossary 프롬프트가 요청한 집합과 같은 규칙. declared ∩ candidate 는 비어야 한다(k 는 Θ 밖). + declared = {r.get("type_id") for r in (bundle.get("structure_records") or []) + if isinstance(r, dict) and is_type_id(r.get("type_id")) + and r.get("type_id") not in EXCLUDED_TARGET_TYPE_IDS} + candidate = {row.get("type_id") for row in (bundle.get("unattached_routes") or []) + if isinstance(row, dict) and is_type_id(row.get("type_id"))} - declared + return declared, candidate + + +def clean_glossary(obj, declared, candidate): + # 순수 함수. 형식 검사를 통과한 항목만 남긴다. 반환 (entries, dropped). + # kind 는 모델 값을 믿지 않고 요청 집합에서 다시 정한다(어긋나면 dropped 에 남기지 않고 kind_corrected 로 센다). + table = obj.get("glossary") if isinstance(obj, dict) else None + if table is None and isinstance(obj, dict) and obj and all( + is_type_id(k) and isinstance(v, dict) for k, v in obj.items()): + table = obj # 봉투 없이 맨 {type_id: {...}} 로 낸 경우 + entries = {} + dropped = [] + if not isinstance(table, dict): + return entries, [{"type_id": None, "reason": "GLOSSARY_TABLE_MISSING"}] + for type_id in sorted(table, key=str): + row = table[type_id] + if not is_type_id(type_id): + dropped.append({"type_id": str(type_id)[:128], "reason": "TYPE_ID_PATTERN"}) + continue + if type_id not in declared and type_id not in candidate: + dropped.append({"type_id": type_id, "reason": "NOT_REQUESTED"}) + continue + if not isinstance(row, dict): + dropped.append({"type_id": type_id, "reason": "ROW_NOT_OBJECT"}) + continue + definition = row.get("definition_ko") + definition = " ".join(definition.split()) if isinstance(definition, str) else "" + if not definition or len(definition) > DEFINITION_MAX_CHARS: + dropped.append({"type_id": type_id, "reason": "DEFINITION_LENGTH"}) + continue + statutes = [] + statutes_dropped = 0 + for statute in row.get("statutes") if isinstance(row.get("statutes"), list) else []: + statute = " ".join(statute.split()) if isinstance(statute, str) else "" + statute = statute.replace("「", "").replace("」", "") + while STATUTE_TRIM.search(statute): + statute = STATUTE_TRIM.sub("", statute) + if (len(statute) <= STATUTE_MAX_CHARS and STATUTE_PATTERN.fullmatch(statute) + and statute not in statutes): + statutes.append(statute) + else: + statutes_dropped += 1 + kind = "declared" if type_id in declared else "candidate" + entries[type_id] = {"definition_ko": definition, "statutes": statutes[:STATUTE_MAX_ITEMS], + "kind": kind, "kind_corrected": row.get("kind") != kind, + "statutes_dropped": statutes_dropped + + max(0, len(statutes) - STATUTE_MAX_ITEMS), + "verified": False} + return entries, dropped + + +def bo_context(bo_records, bo_ids): + # BO 들의 추상 구조만 모은다(식별자 정규식 통과값만). BOType 은 소문자로 맞춰 검사한다. + bo_types = set() + payload_keys = {} + for bo_id in bo_ids: + record = bo_records.get(bo_id) + if not isinstance(record, dict): + continue + bo_type = record.get("BOType") + if isinstance(bo_type, str) and is_type_id(bo_type.lower()): + bo_types.add(bo_type.lower()) + extensions = record.get("extensions") if isinstance(record.get("extensions"), dict) else {} + domain_payload = (extensions.get("domain_payload") + if isinstance(extensions.get("domain_payload"), dict) else {}) + payload = domain_payload.get("payload") if isinstance(domain_payload.get("payload"), dict) else {} + for key in payload: + if is_type_id(key): + payload_keys[key] = payload_keys.get(key, 0) + 1 + # 여러 BO 에 자주 나온 키를 먼저 남긴다(같으면 이름순). 잘렸는지는 반환값 셋째로 알린다. + ranked = sorted(payload_keys, key=lambda k: (-payload_keys[k], k)) + return sorted(bo_types), ranked[:PAYLOAD_KEY_MAX], len(ranked) > PAYLOAD_KEY_MAX + + +def build_plan(bundle, handoff, glossary, bo_records): + # 순수 함수. 후보와 쌍, fan-out item 을 만든다. 반환 (candidates, fanout, 정의 없이 보낸 유형 목록). + records = [r for r in (bundle.get("structure_records") or []) if isinstance(r, dict)] + unattached_type_ids = {row.get("type_id") for row in (bundle.get("unattached_routes") or []) + if isinstance(row, dict) and isinstance(row.get("type_id"), str)} + targets_by_domain = {} + for record in records: + if is_type_id(record.get("type_id")) and record["type_id"] not in EXCLUDED_TARGET_TYPE_IDS: + targets_by_domain.setdefault(record.get("domain_id"), []).append(record) + found = {} + for item in handoff.get("review_items") or []: + if not isinstance(item, dict) or item.get("review_code") != UNATTACHED_CODE: + continue + keywords = sorted({k for k in (item.get("legal_keywords") or []) if is_type_id(k)}) + domains = sorted({d for d in (item.get("resolved_domains") or []) if isinstance(d, str)}) + for k in keywords: + if k not in unattached_type_ids: + continue + for d in domains: + entry = found.setdefault((d, k), {"cooccur": set(), "bo_count": 0, "bo_ids": set()}) + entry["cooccur"].update(x for x in keywords if x != k) + entry["bo_count"] += 1 + if isinstance(item.get("bo_id"), str): + entry["bo_ids"].add(item["bo_id"]) + candidates = [] + fanout = [] + without_definition = set() + for (d, k) in sorted(found): + entry = found[(d, k)] + cooccur = sorted(entry["cooccur"])[:COOCCUR_MAX] + bo_types, payload_keys, payload_truncated = bo_context(bo_records, sorted(entry["bo_ids"])) + k_gloss = glossary.get(k) + pairs = [] + for record in sorted(targets_by_domain.get(d, []), key=lambda r: r["type_id"]): + target = record["type_id"] + if target == k: + continue + t_gloss = glossary.get(target) + candidate_state = {"type_id": k, "cooccurring_keywords": cooccur, + "bo_types": bo_types, "payload_keys": payload_keys} + if payload_truncated: + candidate_state["payload_keys_truncated"] = True + declared_state = { + "type_id": target, + "module": record.get("module") if is_type_id(record.get("module")) else None, + "role_projection": (record.get("role_projection") + if is_type_id(record.get("role_projection")) else None)} + if k_gloss: + candidate_state["definition_ko"] = k_gloss["definition_ko"] + else: + without_definition.add(k) + if t_gloss: + declared_state["definition_ko"] = t_gloss["definition_ko"] + declared_state["statutes"] = t_gloss["statutes"] + else: + without_definition.add(target) + state = {"domain_id": d, "candidate": candidate_state, "declared_type": declared_state} + state["glossary_source"] = GLOSSARY_SOURCE if (k_gloss or t_gloss) else "none" + # ensure_ascii=False — 한글 정의를 \\uXXXX 로 늘리지 않는다(백엔드가 문자열을 객체로 풀지 못해도 읽힌다). + state_json = json.dumps(state, ensure_ascii=False, sort_keys=True, separators=(",", ":")) + # pair_id 에 state sha 를 넣는다 — 같은 쌍이라도 질문 자료가 바뀌면 지난 회차 답 파일이 맞지 않는다. + pair_id = "%s|%s|%s|%s" % (d, k, target, sha_text(state_json)[:12]) + answer_path = "%s/pair_%04d.json" % (ANSWER_DIR, len(fanout)) + pairs.append({"pair_id": pair_id, "target_type_id": target, "answer_path": answer_path}) + fanout.append({"pair_id": pair_id, "domain_id": d, "candidate_type_id": k, + "target_type_id": target, "answer_path": answer_path, + "state_json": state_json}) + candidates.append({"domain_id": d, "candidate_type_id": k, + "unattached_bo_item_count": entry["bo_count"], "pairs": pairs}) + return candidates, fanout, sorted(without_definition) + + +def glossary_doc(entries, dropped, glossary_status, obj, requested): + return {"schema_version": GLOSSARY_SCHEMA, "glossary_source": GLOSSARY_SOURCE, + "verified": False, "glossary_status": glossary_status, + "model_schema_version": obj.get("schema_version") if isinstance(obj, dict) else None, + "requested_count": len(requested), "accepted_count": len(entries), + "unverified_count": len(entries), "entries": entries, "dropped": dropped, + "missing_type_ids": sorted(requested - set(entries)), "created_by": TASK_NAME, + "note": "LLM 초안이다. law.go.kr 원문 대조·봉인 전이므로 조문·정의를 사실로 쓰지 않는다."} + + +def load_glossary(prev, bundle): + # glossary 를 꺼내 검사하고 type_glossary.json 에 쓴다. 쓰기에 실패하면 정의를 쓰지 않는다 + # (state 에 실은 정의와 파일이 어긋나지 않게) — 식별자만으로 계획을 이어 간다. + declared, candidate = requested_type_ids(bundle) + requested = declared | candidate + obj, glossary_status = glossary_object(prev) + entries, dropped = clean_glossary(obj, declared, candidate) if obj is not None else ({}, []) + if glossary_status == "OK": + # 파싱은 됐어도 표가 없거나 일부만 통과했으면 그렇게 적는다(영수증·검토 항목이 "OK" 로 오도하지 않게). + if not entries and any(d.get("reason") == "GLOSSARY_TABLE_MISSING" for d in dropped): + glossary_status = "GLOSSARY_TABLE_MISSING" + elif not entries: + glossary_status = "GLOSSARY_EMPTY" + elif len(entries) < len(requested): + glossary_status = "OK_PARTIAL" + text = canonical(glossary_doc(entries, dropped, glossary_status, obj, requested)) + try: + write_doc(GLOSSARY_PATH, text) + except Exception as exc: + glossary_status = "GLOSSARY_WRITE_FAILED:%s" % str(exc)[:120] + entries = {} + text = None + return entries, {"glossary_status": glossary_status, + "glossary_sha256": sha_text(text) if text else None, + "requested_count": len(requested), "accepted_count": len(entries), + "unverified_count": len(entries), "dropped_count": len(dropped), + "kind_corrected_count": sum(1 for e in entries.values() if e["kind_corrected"]), + "statutes_dropped_count": sum(e["statutes_dropped"] for e in entries.values())} + + +def load_bo_records(): + # BO.json 은 무봉인 입력이다. 읽지 못하면 BO 문맥 없이 계획한다(정의·식별자만). + try: + doc = read_json(BO_PATH) + except Exception: + return {}, "BO_UNREADABLE" + rows = doc if isinstance(doc, list) else (doc.get("BO") if isinstance(doc, dict) else None) + if not isinstance(rows, list): + return {}, "BO_INVALID" + out = {} + for row in rows: + if isinstance(row, dict): + bo_id = row.get("BO_ID") if isinstance(row.get("BO_ID"), str) else row.get("id") + if isinstance(bo_id, str): + out[bo_id] = row + return out, "OK" + + +def main(): + prev, prev_error = load_prev(r"""{{prev}}""") + if prev_error: + return {"code": "PREV_UNPARSEABLE", "detail": prev_error} + l0 = previous_state(prev, L0_TASK) + count = l0.get("structure_record_count") + if l0.get("status") not in ("READY", "READY_WITH_REVIEW") or not isinstance(count, int): + return {"code": "L0_NOT_READY", "l0_status": l0.get("status")} + bundle_doc = read_json(BUNDLE_PATH) + bundle = bundle_doc.get("structure_seed_bundle", bundle_doc) if isinstance(bundle_doc, dict) else {} + records = [r for r in (bundle.get("structure_records") or []) if isinstance(r, dict)] + if len(records) != count: + return {"code": "BUNDLE_STALE", "l0_structure_record_count": count, + "bundle_structure_record_count": len(records)} + handoff_raw = read_raw(HANDOFF_PATH) + handoff_doc = parse_json_text(handoff_raw) + handoff = (handoff_doc.get("stage1_part3_review_handoff", handoff_doc) + if isinstance(handoff_doc, dict) else {}) + glossary, glossary_summary = load_glossary(prev, bundle) + bo_records, bo_status = load_bo_records() + candidates, fanout, without_definition = build_plan(bundle, handoff, glossary, bo_records) + glossary_summary["pair_types_without_definition"] = without_definition + write_doc(REQUEST_PATH, canonical({ + "schema_version": REQUEST_SCHEMA, "planned": True, "reason": None, + "handoff_sha256": sha_text(handoff_raw), + "structure_record_count": count, + "excluded_target_type_ids": list(EXCLUDED_TARGET_TYPE_IDS), + "glossary": glossary_summary, "bo_context_status": bo_status, + "candidate_count": len(candidates), "pair_count": len(fanout), + "candidates": candidates, "created_by": TASK_NAME})) + RESULT.update({"status": "PLANNED", "dynamic_fanout": fanout, "count": len(fanout), + "candidate_count": len(candidates), + "glossary_status": glossary_summary["glossary_status"], + "glossary_accepted": glossary_summary["accepted_count"], + "pair_types_without_definition": len(without_definition)}) + return None + + +try: + _init() + try: + _reason = main() + except BaseException as exc: # raise 하지 않는다. + _reason = {"code": "PLANNER_EXCEPTION", "detail": str(exc)[:300]} + if _reason is not None: + RESULT.update({"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, "reason": _reason}) + try: # 지난 회차 정의표가 이번 회차 것으로 읽히지 않게(최선 노력). + write_doc(GLOSSARY_PATH, canonical({"schema_version": GLOSSARY_SCHEMA, "planned": False, + "reason": _reason, "entries": {}, "created_by": TASK_NAME})) + except Exception: + pass + write_doc(REQUEST_PATH, canonical({ + "schema_version": REQUEST_SCHEMA, "planned": False, "reason": _reason, + "candidates": [], "created_by": TASK_NAME})) +except BaseException as exc: + RESULT.update({"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, + "reason": {"code": "LOCALDOCS_UNAVAILABLE", "detail": str(exc)[:300]}}) +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/planner_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/planner_head.py new file mode 100644 index 00000000..7d56a7b4 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_239pm/planner_head.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_candidate_planner (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §2.1·§2.3·§3.1; 11-05 오후 glossary 개정) +# fan-out 부모다. 어떤 실패도 raise 하지 않는다 — 부모가 raise 하면 wildcard 확장이 없어 +# all Task_C_LE_L1_capture_* 가 영원히 기다린다(Part 2 load_fanout 과 같은 규칙). 실패하면 빈 dynamic_fanout 과 +# planned:false 요청 파일로 끝낸다. when 을 쓰지 않는다(S2_10 V0: when-SKIPPED 부모 뒤 all 대기가 멈췄다). +# prev(L0 반환)가 READY 계열이고 structure_record_count 가 번들의 레코드 수와 같을 때만 계획한다 +# (지난 회차 번들을 외부 JEV 로 보내지 않는다). 모듈·정적 자산을 읽지 않는다. +# 후보 (d, k): k 가 type_id 패턴에 맞고 · 번들 unattached_routes[].type_id 에 있고 · +# handoff PART3_BO_UNATTACHED 항목의 legal_keywords 에 있으며 d 가 그 항목의 resolved_domains 에 있다. +# 쌍 (d, k, T): T 는 도메인 d 의 선언 유형 중 EXCLUDED_TARGET_TYPE_IDS(포괄 유형) 밖. 쌍마다 jev 요청 1건. +# glossary(11-05 오후): prev 의 Task_C_LE_L1_glossary 응답 봉투에서 유형 정의표를 꺼내 형식을 검사하고 +# type_glossary.json 에 쓴 뒤, 쌍 state 에 T 의 정의·조문과 k 의 정의를 싣는다. 사람 대조·봉인 전이므로 +# 모든 항목은 verified:false 다. state 의 glossary_source 는 정의가 하나라도 실리면 "llm_unverified", 없으면 "none". +# glossary 가 없거나 형식이 틀린 유형은 정의 없이(식별자만) 보내고, 그 목록을 요청 파일 glossary 에 남긴다 — +# handoff 의 PART3_GLOSSARY_MISSING(SOFT) 한 건은 apply 가 쓴다(fan-out 부모는 handoff 를 쓰지 않는다). +# 조문은 "법령명 제N조(의N)( 제N항)( 제N호)" 형식만 남긴다. 표는 {"glossary": {...}} 봉투와 맨 {type_id: {...}} 둘 다 받는다. +# state 의 BO 문맥은 식별자 정규식을 통과한 값만 싣는다 — 함께 달린 Legal_Keywords · BOType · +# extensions.domain_payload.payload 의 키 이름(BO 에 요건 행 칸이 없어 가장 가까운 추상 구조다). +# BO 본문·당사자·금액·날짜·payload 값·한글 키워드는 싣지 않는다(외부 JEV 로 사건 서술을 보내지 않는다). +import hashlib +import itertools +import json +import re + +import httpx + +TASK_NAME = "Task_C_LE_L1_candidate_planner" +L0_TASK = "Task_C_LE_L0_structure_seed_reducer" +GLOSSARY_TASK = "Task_C_LE_L1_glossary" +BUNDLE_PATH = "stage1_tmp/task_le/structure_seed_bundle.json" +HANDOFF_PATH = "quality_gates/stage1_part3_review_handoff.json" +BO_PATH = "BO.json" +REQUEST_PATH = "stage1_tmp/task_le/recommender_requests.json" +GLOSSARY_PATH = "stage1_tmp/task_le/type_glossary.json" +ANSWER_DIR = "stage1_tmp/task_le/recommender_answers" +REQUEST_SCHEMA = "stage1_part3_recommender_requests.v1" +GLOSSARY_SCHEMA = "stage1_part3_type_glossary.v1" +GLOSSARY_SOURCE = "llm_unverified" +UNATTACHED_CODE = "PART3_BO_UNATTACHED" +GLOSSARY_MISSING_CODE = "PART3_GLOSSARY_MISSING" +TYPE_ID_PATTERN = re.compile(r"^[a-z][a-z0-9_]{1,127}$") +EXCLUDED_TARGET_TYPE_IDS = ("general_legal_effect",) +COOCCUR_MAX = 20 +PAYLOAD_KEY_MAX = 20 +# 조문 정규화: 끝의 괄호 제목 · 「」 · 본문/단서/전단/후단을 떼고 나서 형식을 본다. +STATUTE_TRIM = re.compile(r"\s*(\([^)]*\)|본문|단서|전단|후단)\s*$") +STATUTE_PATTERN = re.compile(r"^[가-힣A-Za-z·ㆍ ]{2,30} 제\d+조(의\d+)?( 제\d+항)?( 제\d+호)?$") +DEFINITION_MAX_CHARS = 80 +STATUTE_MAX_ITEMS = 3 +STATUTE_MAX_CHARS = 40 +RESULT = {"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, "reason": None} diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/_boiler.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/_boiler.py new file mode 100644 index 00000000..8fe5b48c --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/_boiler.py @@ -0,0 +1,108 @@ +# ------------------------------------------------------------------ +# localdocs 보일러플레이트 (SKILL.md 5장 / 5.2장) — L2 사본에 Part 2 capture 의 write_doc(오류 검사)를 붙였다. +# clientInfo 에 {{__user_hash__}} / {{__workspace_hash__}} 를 반드시 넣는다. +# ------------------------------------------------------------------ +LOCALDOCS_URL = "http://mcp-localdocs:8012/mcp" +MCP_HEADERS = {"Content-Type": "application/json", + "Accept": "application/json, text/event-stream"} +CLIENT = httpx.Client(timeout=120) +MSG_ID_COUNTER = itertools.count(10) + + +def next_msg_id(): + return next(MSG_ID_COUNTER) + + +def _init(): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": 1, "method": "initialize", + "params": {"protocolVersion": "2025-03-26", "capabilities": {}, + "clientInfo": {"name": TASK_NAME, "version": "1.0", + "user_id": "{{__user_hash__}}", + "workspace_id": "{{__workspace_hash__}}"}} + }, headers=MCP_HEADERS) + r.raise_for_status() + sid = r.headers.get("mcp-session-id") + if sid: + MCP_HEADERS["mcp-session-id"] = sid + CLIENT.post(LOCALDOCS_URL, + json={"jsonrpc": "2.0", "method": "notifications/initialized"}, + headers=MCP_HEADERS).raise_for_status() + + +def _parse_mcp(text): + for line in text.strip().split("\n"): + if line.startswith("data: "): + try: + return json.loads(line[6:]) + except Exception: + return None + try: + return json.loads(text) + except Exception: + return None + + +def _call(name, args, mid): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": mid, "method": "tools/call", + "params": {"name": name, "arguments": args} + }, headers=MCP_HEADERS) + r.raise_for_status() + p = _parse_mcp(r.text) + if not p or "result" not in p: + raise RuntimeError("MCP_CALL_FAILED:%s" % name) + return p + + +def read_raw(name): + p = _call("read_docs", {"doc_names": [name]}, next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if not text: + raise RuntimeError("EMPTY_RESPONSE:%s" % name) + try: + outer = json.loads(text) + except Exception: + return text + if isinstance(outer, str): + return outer + if isinstance(outer, dict) and "results" in outer: + r0 = (outer.get("results") or [{}])[0] + inner = r0.get("content") + if inner is None: + inner = r0.get("text") + if not isinstance(inner, str) or not inner: + raise RuntimeError("EMPTY_CONTENT:%s" % name) + return inner + raise RuntimeError("UNEXPECTED_READ_DOCS_ENVELOPE:%s" % name) + + +def parse_json_text(raw): + s = raw.strip() + try: + return json.loads(s) + except json.JSONDecodeError: + obj, _ = json.JSONDecoder().raw_decode(s) + return obj + + +def read_json(name): + return parse_json_text(read_raw(name)) + + +def write_doc(path, content): + # localdocs 는 실패도 정상 응답 본문의 "Error: ..." 로 돌려준다(Part 2 capture 와 같은 검사). + p = _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if text.startswith("Error"): + raise RuntimeError("WRITE_FAILED:%s:%s" % (path, text[:200])) + + +def sha_text(text): + return hashlib.sha256(text.encode("utf-8")).hexdigest() + + +def canonical(value): + return json.dumps(value, ensure_ascii=False, sort_keys=True, + separators=(",", ":")) + "\n" diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/apply_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/apply_body.py new file mode 100644 index 00000000..dc8f757d --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/apply_body.py @@ -0,0 +1,333 @@ + + +def write_checked(path, text): + write_doc(path, text) + if sha_text(read_raw(path)) != sha_text(text): + raise RuntimeError("PART3_L1_WRITE_REREAD_MISMATCH:%s" % path) + + +# ------------------------------------------------------------------ +# 순수 함수 — 외부 호출 없음. 입력은 요청 파일의 쌍과 답 파일뿐이다. +# ------------------------------------------------------------------ +def normalized_probabilities(pair, answer): + # 유효 답이면 네 확률을 합으로 나눈 dict, 아니면 None(= 답 누락). 키 집합이 다르면(옛 3키 답 포함) 누락이다. + if not isinstance(answer, dict) or answer.get("status") != "ANSWERED": + return None + if answer.get("pair_id") != pair.get("pair_id"): + return None + relation = answer.get("relation") + if not isinstance(relation, dict) or relation.get("type") != "choice": + return None + probs = relation.get("probabilities") + if not isinstance(probs, dict) or set(probs) != set(RELATION_KEYS): + return None + values = {} + for key in RELATION_KEYS: + value = probs[key] + if isinstance(value, bool) or not isinstance(value, (int, float)): + return None + value = float(value) + if not math.isfinite(value) or value < 0.0 or value > 1.0: + return None + values[key] = value + total = sum(values.values()) + if total <= 0.0: + return None + return {key: values[key] / total for key in RELATION_KEYS} + + +def decide(pairs, answers): + # pairs: [{pair_id, target_type_id}] · answers: {pair_id: 답 파일 dict 또는 None} + if not pairs: + return {"outcome": "NO_PAIRS"} + scored = [] + missing = [] + for pair in pairs: + norm = normalized_probabilities(pair, answers.get(pair.get("pair_id"))) + if norm is None: + missing.append(pair.get("pair_id")) + continue + scored.append({"pair_id": pair.get("pair_id"), "target_type_id": pair.get("target_type_id"), + "attach_score": norm[PART_OF] + norm[WORDING], + "non_attach_score": norm[INDEPENDENT] + norm[UNRELATED], + "probabilities": norm}) + pair_scores = [{"pair_id": row["pair_id"], "target_type_id": row["target_type_id"], + "attach_score": round(row["attach_score"], 6), + "non_attach_score": round(row["non_attach_score"], 6), + "probabilities": {k: round(v, 6) for k, v in row["probabilities"].items()}} + for row in scored] + if missing: + return {"outcome": "ANSWER_MISSING", "missing_pair_ids": missing, "pair_scores": pair_scores} + ranked = sorted(scored, key=lambda row: (-row["attach_score"], str(row["target_type_id"]))) + best = ranked[0] + margin = None if len(ranked) == 1 else best["attach_score"] - ranked[1]["attach_score"] + norm = best["probabilities"] + non_attach_is_max = max(norm[INDEPENDENT], norm[UNRELATED]) >= max(norm[PART_OF], norm[WORDING]) + if (best["attach_score"] + EPS >= ACCEPT_MIN and (margin is None or margin + EPS >= MARGIN_MIN) + and not non_attach_is_max): + relation = WORDING if norm[WORDING] >= norm[PART_OF] else PART_OF + return {"outcome": "ACCEPT", "attached_type_id": best["target_type_id"], + "pair_id": best["pair_id"], "relation": relation, + "accept_score": round(best["attach_score"], 6), + "margin": None if margin is None else round(margin, 6), + "pair_scores": pair_scores} + if (all(row["non_attach_score"] + EPS >= INDEPENDENT_MIN for row in scored) + and any(row["probabilities"][INDEPENDENT] + EPS >= INDEPENDENT_FLOOR for row in scored)): + return {"outcome": "PROMOTION", "pair_scores": pair_scores} + return {"outcome": "UNDECIDED", "pair_scores": pair_scores} + + +def bo_counts(bundle): + # 영수증용. 전후 모두 같은 방식(레코드 source_bo_ids 고유 id · unattached_bo 길이)으로 센다. + attached = set() + for record in bundle.get("structure_records") or []: + if isinstance(record, dict): + attached.update(b for b in (record.get("source_bo_ids") or []) if isinstance(b, str)) + return {"bo_attached": len(attached), "bo_unattached": len(bundle.get("unattached_bo") or [])} + + +def item_key(item): + return (item.get("review_code"), item.get("domain_id"), item.get("candidate_type_id"), + item.get("bo_id")) + + +def apply_decisions(bundle, handoff, decisions, models, glossary=None): + # 번들·handoff 를 제자리에서 고친다. 반환: (번들 변경 여부, handoff 변경 여부, 수용 BO 목록) + records = {(r.get("domain_id"), r.get("type_id")): r + for r in (bundle.get("structure_records") or []) if isinstance(r, dict)} + accepted = {(row["domain_id"], row["candidate_type_id"]): row for row in decisions + if row["decision"]["outcome"] == "ACCEPT"} + items = [i for i in (handoff.get("review_items") or [])] + existing = {item_key(i) for i in items if isinstance(i, dict)} + kept = [] + added = [] + attached_bo = [] + bundle_changed = False + removed_bo_ids = set() + for item in items: + if not isinstance(item, dict) or item.get("review_code") != UNATTACHED_CODE: + kept.append(item) + continue + keywords = [k for k in (item.get("legal_keywords") or []) if isinstance(k, str)] + domains = [d for d in (item.get("resolved_domains") or []) if isinstance(d, str)] + bo_id = item.get("bo_id") + matches = sorted({(d, k) for d in domains for k in keywords if (d, k) in accepted}) + if not matches or not isinstance(bo_id, str): + kept.append(item) + continue + for (d, k) in matches: + row = accepted[(d, k)] + decision = row["decision"] + record = records.get((d, decision["attached_type_id"])) + if record is None: + continue + if bo_id not in record.get("source_bo_ids", []): + record["source_bo_ids"] = sorted(set(record.get("source_bo_ids") or []) | {bo_id}) + bundle_changed = True + if CODE_ATTACHED not in (record.get("review_codes") or []): + record["review_codes"] = sorted(set(record.get("review_codes") or []) | {CODE_ATTACHED}) + bundle_changed = True + if record.get("review_required") is not True: + record["review_required"] = True + bundle_changed = True + new_item = {"review_code": CODE_ATTACHED, "severity": "SOFT_WARNING", + "domain_id": d, "bo_id": bo_id, "candidate_type_id": k, + "attached_type_id": decision["attached_type_id"], + "relation": decision["relation"], "decided_by": DECIDED_BY, + "accept_score": decision["accept_score"], "margin": decision["margin"], + "model": models.get(decision["pair_id"])} + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + attached_bo.append({"bo_id": bo_id, "domain_id": d, "candidate_type_id": k, + "attached_type_id": decision["attached_type_id"]}) + if any(records.get((d, accepted[(d, k)]["decision"]["attached_type_id"])) is not None + for (d, k) in matches): + removed_bo_ids.add(bo_id) + else: + kept.append(item) + unattached = [row for row in (bundle.get("unattached_bo") or []) if isinstance(row, dict)] + remaining = [row for row in unattached if row.get("bo_id") not in removed_bo_ids] + if len(remaining) != len(unattached): + bundle["unattached_bo"] = remaining + bundle_changed = True + if bundle_changed: + # 차감하지 않고 배열에서 다시 센다(L2 가 원본 BO.json 으로 같은 등식을 잰다). + counts = bundle.setdefault("counts", {}) + attached_ids = set() + for record in records.values(): + attached_ids.update(b for b in (record.get("source_bo_ids") or []) if isinstance(b, str)) + counts["bo_attached"] = len(attached_ids) + counts["bo_unattached"] = len(bundle["unattached_bo"]) + # 승격 제안 · 답 누락 — 후보 단위. 기존 PART3_BO_UNATTACHED 는 남긴다. + for row in decisions: + outcome = row["decision"]["outcome"] + if outcome not in ("PROMOTION", "ANSWER_MISSING"): + continue + new_item = {"review_code": CODE_PROMOTION if outcome == "PROMOTION" else CODE_MISSING, + "severity": "SOFT_WARNING", "domain_id": row["domain_id"], + "candidate_type_id": row["candidate_type_id"], "decided_by": DECIDED_BY} + if outcome == "PROMOTION": + new_item["pair_scores"] = row["decision"]["pair_scores"] + else: + new_item["missing_pair_ids"] = row["decision"]["missing_pair_ids"] + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + # glossary 누락 — 회차 단위 한 건. 정의 없이 보낸 유형이 없으면 남기지 않는다. 그림자 실행에서도 남긴다. + glossary = glossary if isinstance(glossary, dict) else {} + without = [t for t in (glossary.get("pair_types_without_definition") or []) if isinstance(t, str)] + if without: + new_item = {"review_code": CODE_GLOSSARY_MISSING, "severity": "SOFT_WARNING", + "type_ids_without_definition": sorted(without), + "glossary_reason": glossary.get("glossary_status"), + "detected_by": PLANNER_TASK} + if item_key(new_item) not in existing: + existing.add(item_key(new_item)) + added.append(new_item) + new_items = kept + added + handoff_changed = len(new_items) != len(items) or any(a is not b for a, b in zip(new_items, items)) + if handoff_changed: + handoff["review_items"] = new_items + handoff.setdefault("counts", {})["review_items"] = len(new_items) + return bundle_changed, handoff_changed, attached_bo + + +def fail_receipt(receipt, reason): + # raise 경로에서도 지난 회차 영수증이 남지 않게 실패 사유를 남긴다(최선 노력 — 실패해도 원래 오류를 올린다). + receipt.update({"applied": False, "reason": reason}) + try: + write_doc(RECEIPT_PATH, canonical(receipt)) + except Exception: + pass + + +def main(): + receipt = {"schema_version": "stage1_part3_recommender_receipt.v2", "stage": "P3-L1", + "shadow_run": SHADOW_RUN, + # v2(2:39pm): 4키 · pair_scores.non_attach_score · independent_min 은 비부착 질량 하한 · independent_floor 신설. + "relation_keys": list(RELATION_KEYS), + "thresholds": {"accept_min": ACCEPT_MIN, "margin_min": MARGIN_MIN, + "independent_floor": INDEPENDENT_FLOOR, + "independent_min": INDEPENDENT_MIN, + "accept_min_start": ACCEPT_MIN_START, + "independent_min_start": INDEPENDENT_MIN_START}, + "decided_by": DECIDED_BY, "applied": False, "reason": None, + "created_by": TASK_NAME} + request_raw = None + try: + request_raw = read_raw(REQUEST_PATH) + request = parse_json_text(request_raw) + except Exception as exc: + request = None + receipt["reason"] = {"code": "REQUEST_UNREADABLE", "detail": str(exc)[:200]} + if request is not None: + receipt["request_sha256"] = sha_text(request_raw) + if isinstance(request, dict) and request.get("planned") is not True: + receipt["reason"] = {"code": "NOT_PLANNED", "planner_reason": request.get("reason")} + if receipt["reason"] is None and not isinstance(request, dict): + receipt["reason"] = {"code": "REQUEST_INVALID"} + try: + handoff_raw = read_raw(HANDOFF_PATH) + except Exception as exc: + fail_receipt(receipt, {"code": "HANDOFF_UNREADABLE", "detail": str(exc)[:200]}) + raise + if receipt["reason"] is None and request.get("handoff_sha256") != sha_text(handoff_raw): + receipt["reason"] = {"code": "HANDOFF_CHANGED_OR_ALREADY_APPLIED", + "expected": request.get("handoff_sha256"), + "actual": sha_text(handoff_raw)} + if receipt["reason"] is not None: + write_checked(RECEIPT_PATH, canonical(receipt)) + return {"status": "SKIPPED", "reason": receipt["reason"]} + + candidates = [c for c in (request.get("candidates") or []) if isinstance(c, dict)] + answer_files = {} + answers = {} + models = {} + input_tokens = 0 + model_names = set() + for candidate in candidates: + for pair in candidate.get("pairs") or []: + if not isinstance(pair, dict): + continue + path = pair.get("answer_path") + raw = None + try: + raw = read_raw(path) + answer = parse_json_text(raw) + except Exception: + answer = None + answer_files[pair.get("pair_id")] = sha_text(raw) if raw else None + answers[pair.get("pair_id")] = answer + if isinstance(answer, dict) and answer.get("status") == "ANSWERED": + models[pair.get("pair_id")] = answer.get("model") + if isinstance(answer.get("model"), str): + model_names.add(answer["model"]) + usage = answer.get("usage") if isinstance(answer.get("usage"), dict) else {} + if isinstance(usage.get("input_tokens"), int): + input_tokens += usage["input_tokens"] + decisions = [] + for candidate in candidates: + decisions.append({"domain_id": candidate.get("domain_id"), + "candidate_type_id": candidate.get("candidate_type_id"), + "decision": decide([p for p in (candidate.get("pairs") or []) + if isinstance(p, dict)], answers)}) + + bundle_raw = read_raw(BUNDLE_PATH) + bundle_doc = parse_json_text(bundle_raw) + bundle = bundle_doc.get("structure_seed_bundle", bundle_doc) + handoff_doc = parse_json_text(handoff_raw) + handoff = handoff_doc.get("stage1_part3_review_handoff", handoff_doc) + before = bo_counts(bundle) + bundle_changed, handoff_changed, attached_bo = apply_decisions(bundle, handoff, decisions, models, + request.get("glossary")) + # 쓰기 순서: 번들 -> handoff -> 영수증. created_by·schema_version·status 는 덮어쓰지 않는다. + try: + if bundle_changed: + write_checked(BUNDLE_PATH, canonical({"structure_seed_bundle": bundle})) + if handoff_changed: + write_checked(HANDOFF_PATH, canonical({"stage1_part3_review_handoff": handoff})) + except Exception as exc: + # code task 는 백엔드 재시도가 없고 apply 실패 뒤에도 L2 가 돈다. 반쪽 상태(번들에는 붙었는데 + # handoff 에 HARD 가 남거나, 그 반대)가 L2 로 가지 않도록 바꾼 파일을 각각 읽은 원본으로 되돌린다. + restore = {} + for path, raw, changed in ((BUNDLE_PATH, bundle_raw, bundle_changed), + (HANDOFF_PATH, handoff_raw, handoff_changed)): + if not changed: + continue + try: + write_checked(path, raw) + restore[path] = "RESTORED" + except Exception as restore_exc: + restore[path] = "RESTORE_FAILED:%s" % str(restore_exc)[:150] + fail_receipt(receipt, {"code": "WRITE_FAILED", "detail": str(exc)[:200], "restore": restore}) + raise + outcome_counts = {} + for row in decisions: + outcome_counts[row["decision"]["outcome"]] = outcome_counts.get(row["decision"]["outcome"], 0) + 1 + receipt.update({ + "applied": True, + "models": sorted(model_names), + "usage_input_tokens": input_tokens, + "candidate_count": len(candidates), + "pair_count": sum(len(c.get("pairs") or []) for c in candidates), + "answer_file_sha256": answer_files, + # glossary 는 LLM 초안(미검증)이다. sha·미검증 항목 수로 회차 간 점수 비교의 전제를 남긴다. + "glossary": request.get("glossary"), + "decisions": decisions, + "outcome_counts": outcome_counts, + "attached_bo": attached_bo, + "bo_counts": {"before": before, "after": bo_counts(bundle)}, + "bundle_rewritten": bundle_changed, + "handoff_rewritten": handoff_changed, + "note": "L0 영수증 part3_receipt.json 의 join_counts 는 L1 이전 값이다.", + }) + write_checked(RECEIPT_PATH, canonical(receipt)) + return {"status": "APPLIED", "candidate_count": len(candidates), + "outcome_counts": outcome_counts, "attached_bo_count": len(attached_bo), + "bundle_rewritten": bundle_changed, "handoff_rewritten": handoff_changed} + + +_init() +RESULT = main() +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/apply_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/apply_head.py new file mode 100644 index 00000000..ac24d87f --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/apply_head.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_apply (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §2.4·§2.5·§3.1) +# 번들·handoff 쓰기가 실패하면 바꾼 파일을 각각 읽은 원본으로 되돌리고 실패 영수증을 남긴 뒤 raise 한다(반쪽 상태 차단). +# 1) 요청 파일 확인(planned · handoff_sha256 신선도) -> 2) 답 파일 적재·유효성 -> +# 3) decide(순수 함수) -> 4) 반영: 번들 -> handoff -> 영수증(각 쓰기 재읽기 sha 대조) +# 모듈·정적 자산·시드 스키마를 읽지 않는다. 고친 structure_records 는 L2 가 최종 색인 스키마로, +# unattached_bo·counts 는 L2 의 BO 보존 등식이 다시 잡는다. +# 대상 BO 는 handoff 의 PART3_BO_UNATTACHED 항목에서 고른다(번들 unattached_bo 아님 — 부분 실패 재실행 대비). +# 후보가 0 이거나 바뀐 BO 가 없으면 번들·handoff 를 다시 쓰지 않는다. 영수증은 항상 쓴다. +# 검토 항목에 status·blocked 키를 쓰지 않는다(S2_00 이 멈춘다). 심각도 리터럴은 HARD_WARNING/SOFT_WARNING 뿐. +# 이 경로는 정책 structure_index_policy.v1.json 의 bo_attachment.join 서술과 다른 부착 경로다. +import hashlib +import itertools +import json +import math + +import httpx + +TASK_NAME = "Task_C_LE_L1_apply" +BUNDLE_PATH = "stage1_tmp/task_le/structure_seed_bundle.json" +HANDOFF_PATH = "quality_gates/stage1_part3_review_handoff.json" +REQUEST_PATH = "stage1_tmp/task_le/recommender_requests.json" +RECEIPT_PATH = "validation_assets/routing/part3_recommender_receipt.json" +UNATTACHED_CODE = "PART3_BO_UNATTACHED" + +# 임계값 — 시작값이며 검증되지 않았다(§2.4). 첫 온라인 실행은 그림자 실행이다: +# ACCEPT_MIN·INDEPENDENT_MIN 을 1.01 로 두어 수용·승격 제안을 끄고 점수만 영수증에 남긴다. +# 보정(사람 라벨) 후 SHADOW_RUN = False 로 바꾼다. accept_min 을 0.5 근처까지 낮춰도 최댓값 조건은 항상 붙는다. +SHADOW_RUN = True +ACCEPT_MIN_START = 0.80 +MARGIN_MIN = 0.20 +INDEPENDENT_MIN_START = 0.80 +ACCEPT_MIN = 1.01 if SHADOW_RUN else ACCEPT_MIN_START +INDEPENDENT_MIN = 1.01 if SHADOW_RUN else INDEPENDENT_MIN_START +# 2:39pm 신설 — 승격 제안에 필요한 independent 의 쌍별 하한(절반 이상). 그림자 실행에서는 INDEPENDENT_MIN 이 먼저 막는다. +INDEPENDENT_FLOOR = 0.50 +# 부동소수 비교 허용오차(0.7-0.5 = 0.19999… 가 마진 0.20 에 떨어지지 않게). +EPS = 1e-9 + +DECIDED_BY = "recommender" +CODE_ATTACHED = "PART3_BO_ATTACHED_BY_RECOMMENDER" +CODE_PROMOTION = "PART3_PROMOTION_PROPOSED" +CODE_MISSING = "PART3_RECOMMENDER_ANSWER_MISSING" +# planner 가 정의 없이(식별자만) 보낸 유형이 있으면 한 건 남긴다(11-05 오후 glossary 개정). +CODE_GLOSSARY_MISSING = "PART3_GLOSSARY_MISSING" +PLANNER_TASK = "Task_C_LE_L1_candidate_planner" +# Task_C_LE_L1_recommender_* 의 jev criteria 키와 같아야 한다(2벌 — 오프라인 검사가 대조한다). +# unrelated(11-05 2:39pm 사용자 승인) — 선언 유형과 법적 관계가 없는 쌍의 자리(SKILL.md §3.4 규칙 4 "그 외/해당 없음"). +# 부착 질량 = part_of + wording · 비부착 질량 = independent + unrelated. +# 수용: 부착 질량 ≥ ACCEPT_MIN · 마진 · part_of 또는 wording 이 네 확률 중 최댓값(independent·unrelated 가 최댓값이면 막는다). +# 승격 제안: 모든 쌍에서 비부착 질량 ≥ INDEPENDENT_MIN 이고, 적어도 한 쌍에서 independent ≥ INDEPENDENT_FLOOR(절반 이상). +# (independent ≥ unrelated 만으로는 0.41 대 0.40 같은 약한 근거도 통과한다 — 절반 이상 하한이 독립 구조라는 최소 근거다.) +# 결과: 선언 목표가 모두 "무관"인 후보(X1 처럼 쌍이 하나뿐인 후보 포함)는 승격 제안에 오르지 않는다 — 승격은 이제 +# "독립 구조가 필요하고 어떤 선언 유형과는 관계가 있음"을 뜻한다. 그런 후보의 판단은 영수증 pair_scores 에만 남는다. +# 모든 쌍이 "무관" 우세면 독립 구조라는 근거가 없으므로 UNDECIDED 로 두어 HARD 미부착 항목을 사람 검토에 남긴다(보수적 선택). +RELATION_KEYS = ("independent_effect", "part_of_declared_type", "wording_variant", "unrelated") +INDEPENDENT = "independent_effect" +UNRELATED = "unrelated" +PART_OF = "part_of_declared_type" +WORDING = "wording_variant" + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/capture_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/capture_body.py new file mode 100644 index 00000000..73519fd1 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/capture_body.py @@ -0,0 +1,65 @@ + + +class CaptureError(Exception): + def __init__(self, code, detail=""): + super().__init__("%s:%s" % (code, detail)) + self.code = code + self.detail = detail + + +def _as_dict(value): + if isinstance(value, str): + try: + value = json.loads(value) + except Exception: + return None + return value if isinstance(value, dict) else None + + +def extract(prev_text, jev_task): + # jev task 의 결과는 응답 JSON 전체다(SKILL.md §3.4). 봉투(json_output·content·output)로 오면 한 겹 벗긴다. + if prev_text.strip().startswith("{" + "{"): + raise CaptureError("PREV_NOT_RENDERED") + try: + prev = json.loads(prev_text) + except Exception as exc: + raise CaptureError("PREV_PARSE_FAILED", str(exc)[:200]) + resp = _as_dict(prev.get(jev_task)) if isinstance(prev, dict) else None + if resp is None: + raise CaptureError("MISSING_TASK_OUTPUT", jev_task) + if "answers" not in resp: + for key in ("json_output", "content", "output"): + inner = _as_dict(resp.get(key)) + if inner is not None and "answers" in inner: + resp = inner + break + answers = resp.get("answers") + relation = answers.get("relation") if isinstance(answers, dict) else None + if not isinstance(relation, dict): + raise CaptureError("ANSWER_RELATION_MISSING", str(resp)[:200]) + if not isinstance(relation.get("probabilities"), dict): + raise CaptureError("ANSWER_PROBABILITIES_MISSING", str(relation)[:200]) + return {"type": relation.get("type"), "choice": relation.get("choice"), + "probabilities": relation.get("probabilities"), + "confidence": relation.get("confidence")}, resp.get("model"), resp.get("usage") + + +ITEM = json.loads(r"""{{item_json}}""") +ORDINAL = int(r"""{{ordinal}}""") +JEV_TASK = "Task_C_LE_L1_recommender_%d" % ORDINAL +OUTPUT_PATH = ITEM["answer_path"] +RESULT = {"status": "ANSWERED", "answer_path": OUTPUT_PATH, "jev_task": JEV_TASK, + "pair_id": ITEM.get("pair_id")} +try: + _relation, _model, _usage = extract(r"""{{prev}}""", JEV_TASK) + DOC = {"pair_id": ITEM.get("pair_id"), "status": "ANSWERED", "model": _model, + "usage": _usage if isinstance(_usage, dict) else None, + "relation": _relation, "created_by": TASK_NAME} + RESULT["choice"] = _relation.get("choice") +except CaptureError as exc: + DOC = {"pair_id": ITEM.get("pair_id"), "status": "FAILED", "code": exc.code, + "detail": exc.detail, "created_by": TASK_NAME} + RESULT.update({"status": "FAILED", "code": exc.code}) +_init() +write_doc(OUTPUT_PATH, canonical(DOC)) +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/capture_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/capture_head.py new file mode 100644 index 00000000..cd9f4165 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/capture_head.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_capture (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §3.1 · Part 2 Task_C_B_domain_capture 를 따른다) +# 같은 ordinal 의 Task_C_LE_L1_recommender_(jev) 응답 JSON 에서 answers.relation 을 꺼내 +# item.answer_path 에 {pair_id, status, model, usage, relation} 으로 쓴다. 판정은 apply 가 한다. +# 응답 문제(인스턴스 실패로 prev 에 없음 · answers.relation 없음 · 형식 이탈)로는 raise 하지 않고 +# status:"FAILED" 표식을 쓴다 — 지난 회차 답 파일이 남아 apply 를 통과하지 못하게 한다. +# 쓰기 실패만 raise 한다(code task 에는 백엔드 재시도가 없다 — 답 파일이 없거나 지난 회차 것이면 +# apply 의 pair_id 대조가 ANSWER_MISSING 으로 처리한다). +import hashlib +import itertools +import json + +import httpx + +TASK_NAME = "Task_C_LE_L1_capture" + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/planner_body.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/planner_body.py new file mode 100644 index 00000000..a14ecf5b --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/planner_body.py @@ -0,0 +1,346 @@ + + + +def is_type_id(value): + return isinstance(value, str) and TYPE_ID_PATTERN.fullmatch(value) is not None + + +def load_prev(raw): + # prev 전체를 한 번만 파싱한다. 반환 (dict, 오류 코드|None). 치환되지 않은 템플릿이면 빈 dict(오류 아님 — L0_NOT_READY 로 끝난다). + if raw.strip().startswith("{" + "{"): + return {}, None + try: + prev = json.loads(raw) + except Exception as exc: + return {}, "PREV_UNPARSEABLE:%s" % str(exc)[:200] + return (prev, None) if isinstance(prev, dict) else ({}, "PREV_NOT_OBJECT") + + +def previous_state(prev, parent): + # Part 2 load_fanout 과 같은 관용. + row = prev.get(parent, {}) + if isinstance(row, str): + try: + row = json.loads(row) + except Exception: + return {} + if isinstance(row, dict) and "status" not in row and isinstance(row.get("json_output"), dict): + row = row["json_output"] + return row if isinstance(row, dict) else {} + + +def glossary_object(prev): + # Task_C_LE_L1_glossary 응답 봉투(llm_result_envelope)에서 JSON 객체를 꺼낸다. 반환 (객체 | None, 상태 코드). + # Part 2 Task_C_B_domain_capture 의 parse_model 과 같은 규칙: 완료 상태만 · json_output 대신 본문 전체. + env = prev.get(GLOSSARY_TASK) + if env is None: + return None, "GLOSSARY_TASK_OUTPUT_MISSING" + if isinstance(env, str): + try: + env = json.loads(env) + except Exception: + env = {"content": env, "status": "completed"} + if not isinstance(env, dict): + return None, "GLOSSARY_ENVELOPE_INVALID" + status = str(env.get("status", "completed")).lower() + finish = str(env.get("finish_reason") or "").lower() + if status not in ("completed", "success", "ok", "stop"): + return None, "GLOSSARY_MODEL_INCOMPLETE:%s" % status + if finish in ("length", "max_tokens", "max_output_tokens"): + return None, "GLOSSARY_MODEL_INCOMPLETE:%s" % finish + raw = env.get("content") + if raw is None and "glossary" in env: + raw = env + if (raw is None or (isinstance(raw, str) and not raw.strip())) and isinstance(env.get("json_output"), dict): + raw = env["json_output"] # 본문이 비고 봉투가 객체를 뽑아 둔 경우 + if isinstance(raw, dict): + return raw, "OK" + if not isinstance(raw, str) or not raw.strip(): + return None, "GLOSSARY_OUTPUT_MISSING" + text = raw.strip() + if not text.startswith("{"): + match = re.search(r"```(?:json)?\s*(\{[\s\S]*?\})\s*```", text) + if match: + text = match.group(1) + elif "{" in text: + text = text[text.find("{"):] # 펜스 없이 앞에 설명이 붙은 경우 + else: + return None, "GLOSSARY_NOT_JSON_OBJECT" + try: + obj, _ = json.JSONDecoder(strict=False).raw_decode(text) + except Exception: + return None, "GLOSSARY_PARSE_FAILED" + if not isinstance(obj, dict): + return None, "GLOSSARY_NOT_JSON_OBJECT" + return obj, "OK" + + +def requested_type_ids(bundle): + # glossary 프롬프트가 요청한 집합과 같은 규칙. declared ∩ candidate 는 비어야 한다(k 는 Θ 밖). + declared = {r.get("type_id") for r in (bundle.get("structure_records") or []) + if isinstance(r, dict) and is_type_id(r.get("type_id")) + and r.get("type_id") not in EXCLUDED_TARGET_TYPE_IDS} + candidate = {row.get("type_id") for row in (bundle.get("unattached_routes") or []) + if isinstance(row, dict) and is_type_id(row.get("type_id"))} - declared + return declared, candidate + + +def clean_glossary(obj, declared, candidate): + # 순수 함수. 형식 검사를 통과한 항목만 남긴다. 반환 (entries, dropped). + # kind 는 모델 값을 믿지 않고 요청 집합에서 다시 정한다(어긋나면 dropped 에 남기지 않고 kind_corrected 로 센다). + table = obj.get("glossary") if isinstance(obj, dict) else None + if table is None and isinstance(obj, dict) and obj and all( + is_type_id(k) and isinstance(v, dict) for k, v in obj.items()): + table = obj # 봉투 없이 맨 {type_id: {...}} 로 낸 경우 + entries = {} + dropped = [] + if not isinstance(table, dict): + return entries, [{"type_id": None, "reason": "GLOSSARY_TABLE_MISSING"}] + for type_id in sorted(table, key=str): + row = table[type_id] + if not is_type_id(type_id): + dropped.append({"type_id": str(type_id)[:128], "reason": "TYPE_ID_PATTERN"}) + continue + if type_id not in declared and type_id not in candidate: + dropped.append({"type_id": type_id, "reason": "NOT_REQUESTED"}) + continue + if not isinstance(row, dict): + dropped.append({"type_id": type_id, "reason": "ROW_NOT_OBJECT"}) + continue + definition = row.get("definition_ko") + definition = " ".join(definition.split()) if isinstance(definition, str) else "" + if not definition or len(definition) > DEFINITION_MAX_CHARS: + dropped.append({"type_id": type_id, "reason": "DEFINITION_LENGTH"}) + continue + statutes = [] + statutes_dropped = 0 + for statute in row.get("statutes") if isinstance(row.get("statutes"), list) else []: + statute = " ".join(statute.split()) if isinstance(statute, str) else "" + statute = statute.replace("「", "").replace("」", "") + while STATUTE_TRIM.search(statute): + statute = STATUTE_TRIM.sub("", statute) + if (len(statute) <= STATUTE_MAX_CHARS and STATUTE_PATTERN.fullmatch(statute) + and statute not in statutes): + statutes.append(statute) + else: + statutes_dropped += 1 + kind = "declared" if type_id in declared else "candidate" + entries[type_id] = {"definition_ko": definition, "statutes": statutes[:STATUTE_MAX_ITEMS], + "kind": kind, "kind_corrected": row.get("kind") != kind, + "statutes_dropped": statutes_dropped + + max(0, len(statutes) - STATUTE_MAX_ITEMS), + "verified": False} + return entries, dropped + + +def bo_context(bo_records, bo_ids): + # BO 들의 추상 구조만 모은다(식별자 정규식 통과값만). BOType 은 소문자로 맞춰 검사한다. + bo_types = set() + payload_keys = {} + for bo_id in bo_ids: + record = bo_records.get(bo_id) + if not isinstance(record, dict): + continue + bo_type = record.get("BOType") + if isinstance(bo_type, str) and is_type_id(bo_type.lower()): + bo_types.add(bo_type.lower()) + extensions = record.get("extensions") if isinstance(record.get("extensions"), dict) else {} + domain_payload = (extensions.get("domain_payload") + if isinstance(extensions.get("domain_payload"), dict) else {}) + payload = domain_payload.get("payload") if isinstance(domain_payload.get("payload"), dict) else {} + for key in payload: + if is_type_id(key): + payload_keys[key] = payload_keys.get(key, 0) + 1 + # 여러 BO 에 자주 나온 키를 먼저 남긴다(같으면 이름순). 잘렸는지는 반환값 셋째로 알린다. + ranked = sorted(payload_keys, key=lambda k: (-payload_keys[k], k)) + return sorted(bo_types), ranked[:PAYLOAD_KEY_MAX], len(ranked) > PAYLOAD_KEY_MAX + + +def build_plan(bundle, handoff, glossary, bo_records): + # 순수 함수. 후보와 쌍, fan-out item 을 만든다. 반환 (candidates, fanout, 정의 없이 보낸 유형 목록). + records = [r for r in (bundle.get("structure_records") or []) if isinstance(r, dict)] + unattached_type_ids = {row.get("type_id") for row in (bundle.get("unattached_routes") or []) + if isinstance(row, dict) and isinstance(row.get("type_id"), str)} + targets_by_domain = {} + for record in records: + if is_type_id(record.get("type_id")) and record["type_id"] not in EXCLUDED_TARGET_TYPE_IDS: + targets_by_domain.setdefault(record.get("domain_id"), []).append(record) + found = {} + for item in handoff.get("review_items") or []: + if not isinstance(item, dict) or item.get("review_code") != UNATTACHED_CODE: + continue + keywords = sorted({k for k in (item.get("legal_keywords") or []) if is_type_id(k)}) + domains = sorted({d for d in (item.get("resolved_domains") or []) if isinstance(d, str)}) + for k in keywords: + if k not in unattached_type_ids: + continue + for d in domains: + entry = found.setdefault((d, k), {"cooccur": set(), "bo_count": 0, "bo_ids": set()}) + entry["cooccur"].update(x for x in keywords if x != k) + entry["bo_count"] += 1 + if isinstance(item.get("bo_id"), str): + entry["bo_ids"].add(item["bo_id"]) + candidates = [] + fanout = [] + without_definition = set() + for (d, k) in sorted(found): + entry = found[(d, k)] + cooccur = sorted(entry["cooccur"])[:COOCCUR_MAX] + bo_types, payload_keys, payload_truncated = bo_context(bo_records, sorted(entry["bo_ids"])) + k_gloss = glossary.get(k) + pairs = [] + for record in sorted(targets_by_domain.get(d, []), key=lambda r: r["type_id"]): + target = record["type_id"] + if target == k: + continue + t_gloss = glossary.get(target) + candidate_state = {"type_id": k, "cooccurring_keywords": cooccur, + "bo_types": bo_types, "payload_keys": payload_keys} + if payload_truncated: + candidate_state["payload_keys_truncated"] = True + declared_state = { + "type_id": target, + "module": record.get("module") if is_type_id(record.get("module")) else None, + "role_projection": (record.get("role_projection") + if is_type_id(record.get("role_projection")) else None)} + if k_gloss: + candidate_state["definition_ko"] = k_gloss["definition_ko"] + else: + without_definition.add(k) + if t_gloss: + declared_state["definition_ko"] = t_gloss["definition_ko"] + declared_state["statutes"] = t_gloss["statutes"] + else: + without_definition.add(target) + state = {"domain_id": d, "candidate": candidate_state, "declared_type": declared_state} + state["glossary_source"] = GLOSSARY_SOURCE if (k_gloss or t_gloss) else "none" + # ensure_ascii=False — 한글 정의를 \\uXXXX 로 늘리지 않는다(백엔드가 문자열을 객체로 풀지 못해도 읽힌다). + state_json = json.dumps(state, ensure_ascii=False, sort_keys=True, separators=(",", ":")) + # pair_id 에 state sha 를 넣는다 — 같은 쌍이라도 질문 자료가 바뀌면 지난 회차 답 파일이 맞지 않는다. + pair_id = "%s|%s|%s|%s" % (d, k, target, sha_text(state_json)[:12]) + answer_path = "%s/pair_%04d.json" % (ANSWER_DIR, len(fanout)) + pairs.append({"pair_id": pair_id, "target_type_id": target, "answer_path": answer_path}) + fanout.append({"pair_id": pair_id, "domain_id": d, "candidate_type_id": k, + "target_type_id": target, "answer_path": answer_path, + "state_json": state_json}) + candidates.append({"domain_id": d, "candidate_type_id": k, + "unattached_bo_item_count": entry["bo_count"], "pairs": pairs}) + return candidates, fanout, sorted(without_definition) + + +def glossary_doc(entries, dropped, glossary_status, obj, requested): + return {"schema_version": GLOSSARY_SCHEMA, "glossary_source": GLOSSARY_SOURCE, + "verified": False, "glossary_status": glossary_status, + "model_schema_version": obj.get("schema_version") if isinstance(obj, dict) else None, + "requested_count": len(requested), "accepted_count": len(entries), + "unverified_count": len(entries), "entries": entries, "dropped": dropped, + "missing_type_ids": sorted(requested - set(entries)), "created_by": TASK_NAME, + "note": "LLM 초안이다. law.go.kr 원문 대조·봉인 전이므로 조문·정의를 사실로 쓰지 않는다."} + + +def load_glossary(prev, bundle): + # glossary 를 꺼내 검사하고 type_glossary.json 에 쓴다. 쓰기에 실패하면 정의를 쓰지 않는다 + # (state 에 실은 정의와 파일이 어긋나지 않게) — 식별자만으로 계획을 이어 간다. + declared, candidate = requested_type_ids(bundle) + requested = declared | candidate + obj, glossary_status = glossary_object(prev) + entries, dropped = clean_glossary(obj, declared, candidate) if obj is not None else ({}, []) + if glossary_status == "OK": + # 파싱은 됐어도 표가 없거나 일부만 통과했으면 그렇게 적는다(영수증·검토 항목이 "OK" 로 오도하지 않게). + if not entries and any(d.get("reason") == "GLOSSARY_TABLE_MISSING" for d in dropped): + glossary_status = "GLOSSARY_TABLE_MISSING" + elif not entries: + glossary_status = "GLOSSARY_EMPTY" + elif len(entries) < len(requested): + glossary_status = "OK_PARTIAL" + text = canonical(glossary_doc(entries, dropped, glossary_status, obj, requested)) + try: + write_doc(GLOSSARY_PATH, text) + except Exception as exc: + glossary_status = "GLOSSARY_WRITE_FAILED:%s" % str(exc)[:120] + entries = {} + text = None + return entries, {"glossary_status": glossary_status, + "glossary_sha256": sha_text(text) if text else None, + "requested_count": len(requested), "accepted_count": len(entries), + "unverified_count": len(entries), "dropped_count": len(dropped), + "kind_corrected_count": sum(1 for e in entries.values() if e["kind_corrected"]), + "statutes_dropped_count": sum(e["statutes_dropped"] for e in entries.values())} + + +def load_bo_records(): + # BO.json 은 무봉인 입력이다. 읽지 못하면 BO 문맥 없이 계획한다(정의·식별자만). + try: + doc = read_json(BO_PATH) + except Exception: + return {}, "BO_UNREADABLE" + rows = doc if isinstance(doc, list) else (doc.get("BO") if isinstance(doc, dict) else None) + if not isinstance(rows, list): + return {}, "BO_INVALID" + out = {} + for row in rows: + if isinstance(row, dict): + bo_id = row.get("BO_ID") if isinstance(row.get("BO_ID"), str) else row.get("id") + if isinstance(bo_id, str): + out[bo_id] = row + return out, "OK" + + +def main(): + prev, prev_error = load_prev(r"""{{prev}}""") + if prev_error: + return {"code": "PREV_UNPARSEABLE", "detail": prev_error} + l0 = previous_state(prev, L0_TASK) + count = l0.get("structure_record_count") + if l0.get("status") not in ("READY", "READY_WITH_REVIEW") or not isinstance(count, int): + return {"code": "L0_NOT_READY", "l0_status": l0.get("status")} + bundle_doc = read_json(BUNDLE_PATH) + bundle = bundle_doc.get("structure_seed_bundle", bundle_doc) if isinstance(bundle_doc, dict) else {} + records = [r for r in (bundle.get("structure_records") or []) if isinstance(r, dict)] + if len(records) != count: + return {"code": "BUNDLE_STALE", "l0_structure_record_count": count, + "bundle_structure_record_count": len(records)} + handoff_raw = read_raw(HANDOFF_PATH) + handoff_doc = parse_json_text(handoff_raw) + handoff = (handoff_doc.get("stage1_part3_review_handoff", handoff_doc) + if isinstance(handoff_doc, dict) else {}) + glossary, glossary_summary = load_glossary(prev, bundle) + bo_records, bo_status = load_bo_records() + candidates, fanout, without_definition = build_plan(bundle, handoff, glossary, bo_records) + glossary_summary["pair_types_without_definition"] = without_definition + write_doc(REQUEST_PATH, canonical({ + "schema_version": REQUEST_SCHEMA, "planned": True, "reason": None, + "handoff_sha256": sha_text(handoff_raw), + "structure_record_count": count, + "excluded_target_type_ids": list(EXCLUDED_TARGET_TYPE_IDS), + "glossary": glossary_summary, "bo_context_status": bo_status, + "candidate_count": len(candidates), "pair_count": len(fanout), + "candidates": candidates, "created_by": TASK_NAME})) + RESULT.update({"status": "PLANNED", "dynamic_fanout": fanout, "count": len(fanout), + "candidate_count": len(candidates), + "glossary_status": glossary_summary["glossary_status"], + "glossary_accepted": glossary_summary["accepted_count"], + "pair_types_without_definition": len(without_definition)}) + return None + + +try: + _init() + try: + _reason = main() + except BaseException as exc: # raise 하지 않는다. + _reason = {"code": "PLANNER_EXCEPTION", "detail": str(exc)[:300]} + if _reason is not None: + RESULT.update({"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, "reason": _reason}) + try: # 지난 회차 정의표가 이번 회차 것으로 읽히지 않게(최선 노력). + write_doc(GLOSSARY_PATH, canonical({"schema_version": GLOSSARY_SCHEMA, "planned": False, + "reason": _reason, "entries": {}, "created_by": TASK_NAME})) + except Exception: + pass + write_doc(REQUEST_PATH, canonical({ + "schema_version": REQUEST_SCHEMA, "planned": False, "reason": _reason, + "candidates": [], "created_by": TASK_NAME})) +except BaseException as exc: + RESULT.update({"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, + "reason": {"code": "LOCALDOCS_UNAVAILABLE", "detail": str(exc)[:300]}}) +print(json.dumps(RESULT, ensure_ascii=False)) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/planner_head.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/planner_head.py new file mode 100644 index 00000000..7d56a7b4 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/src_330pm/planner_head.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python3 +# Task_C_LE_L1_candidate_planner (2026-11-05, 개정전략서_part_3_v2_with_part_1_2.md §2.1·§2.3·§3.1; 11-05 오후 glossary 개정) +# fan-out 부모다. 어떤 실패도 raise 하지 않는다 — 부모가 raise 하면 wildcard 확장이 없어 +# all Task_C_LE_L1_capture_* 가 영원히 기다린다(Part 2 load_fanout 과 같은 규칙). 실패하면 빈 dynamic_fanout 과 +# planned:false 요청 파일로 끝낸다. when 을 쓰지 않는다(S2_10 V0: when-SKIPPED 부모 뒤 all 대기가 멈췄다). +# prev(L0 반환)가 READY 계열이고 structure_record_count 가 번들의 레코드 수와 같을 때만 계획한다 +# (지난 회차 번들을 외부 JEV 로 보내지 않는다). 모듈·정적 자산을 읽지 않는다. +# 후보 (d, k): k 가 type_id 패턴에 맞고 · 번들 unattached_routes[].type_id 에 있고 · +# handoff PART3_BO_UNATTACHED 항목의 legal_keywords 에 있으며 d 가 그 항목의 resolved_domains 에 있다. +# 쌍 (d, k, T): T 는 도메인 d 의 선언 유형 중 EXCLUDED_TARGET_TYPE_IDS(포괄 유형) 밖. 쌍마다 jev 요청 1건. +# glossary(11-05 오후): prev 의 Task_C_LE_L1_glossary 응답 봉투에서 유형 정의표를 꺼내 형식을 검사하고 +# type_glossary.json 에 쓴 뒤, 쌍 state 에 T 의 정의·조문과 k 의 정의를 싣는다. 사람 대조·봉인 전이므로 +# 모든 항목은 verified:false 다. state 의 glossary_source 는 정의가 하나라도 실리면 "llm_unverified", 없으면 "none". +# glossary 가 없거나 형식이 틀린 유형은 정의 없이(식별자만) 보내고, 그 목록을 요청 파일 glossary 에 남긴다 — +# handoff 의 PART3_GLOSSARY_MISSING(SOFT) 한 건은 apply 가 쓴다(fan-out 부모는 handoff 를 쓰지 않는다). +# 조문은 "법령명 제N조(의N)( 제N항)( 제N호)" 형식만 남긴다. 표는 {"glossary": {...}} 봉투와 맨 {type_id: {...}} 둘 다 받는다. +# state 의 BO 문맥은 식별자 정규식을 통과한 값만 싣는다 — 함께 달린 Legal_Keywords · BOType · +# extensions.domain_payload.payload 의 키 이름(BO 에 요건 행 칸이 없어 가장 가까운 추상 구조다). +# BO 본문·당사자·금액·날짜·payload 값·한글 키워드는 싣지 않는다(외부 JEV 로 사건 서술을 보내지 않는다). +import hashlib +import itertools +import json +import re + +import httpx + +TASK_NAME = "Task_C_LE_L1_candidate_planner" +L0_TASK = "Task_C_LE_L0_structure_seed_reducer" +GLOSSARY_TASK = "Task_C_LE_L1_glossary" +BUNDLE_PATH = "stage1_tmp/task_le/structure_seed_bundle.json" +HANDOFF_PATH = "quality_gates/stage1_part3_review_handoff.json" +BO_PATH = "BO.json" +REQUEST_PATH = "stage1_tmp/task_le/recommender_requests.json" +GLOSSARY_PATH = "stage1_tmp/task_le/type_glossary.json" +ANSWER_DIR = "stage1_tmp/task_le/recommender_answers" +REQUEST_SCHEMA = "stage1_part3_recommender_requests.v1" +GLOSSARY_SCHEMA = "stage1_part3_type_glossary.v1" +GLOSSARY_SOURCE = "llm_unverified" +UNATTACHED_CODE = "PART3_BO_UNATTACHED" +GLOSSARY_MISSING_CODE = "PART3_GLOSSARY_MISSING" +TYPE_ID_PATTERN = re.compile(r"^[a-z][a-z0-9_]{1,127}$") +EXCLUDED_TARGET_TYPE_IDS = ("general_legal_effect",) +COOCCUR_MAX = 20 +PAYLOAD_KEY_MAX = 20 +# 조문 정규화: 끝의 괄호 제목 · 「」 · 본문/단서/전단/후단을 떼고 나서 형식을 본다. +STATUTE_TRIM = re.compile(r"\s*(\([^)]*\)|본문|단서|전단|후단)\s*$") +STATUTE_PATTERN = re.compile(r"^[가-힣A-Za-z·ㆍ ]{2,30} 제\d+조(의\d+)?( 제\d+항)?( 제\d+호)?$") +DEFINITION_MAX_CHARS = 80 +STATUTE_MAX_ITEMS = 3 +STATUTE_MAX_CHARS = 40 +RESULT = {"status": "NOT_PLANNED", "dynamic_fanout": [], "count": 0, "reason": None} diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_glossary.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_glossary.py new file mode 100644 index 00000000..22780a81 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_glossary.py @@ -0,0 +1,107 @@ +import os, re +exec(open(os.path.join(os.path.dirname(__file__), "t_pipeline_lib.py"), encoding="utf-8").read()) +G = "stage1_tmp/task_le/type_glossary.json" +PLAN = "Task_C_LE_L1_candidate_planner" +def codes(h): + out = {} + for it in h["review_items"]: + out[it["review_code"]] = out.get(it["review_code"], 0) + 1 + return out + +# A) glossary task output missing -> identifiers only, glossary file written, apply adds one SOFT item even in shadow run +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=None)}) +st = [json.loads(x["state_json"]) for x in p["dynamic_fanout"]] +assert all("definition_ko" not in s["candidate"] and "definition_ko" not in s["declared_type"] and s["glossary_source"] == "none" for s in st) +g = json.loads(FS[G]); print("A glossary", g["glossary_status"], g["accepted_count"], g["requested_count"], g["missing_type_ids"][:3]) +for i, item in enumerate(p["dynamic_fanout"]): + run("Task_C_LE_L1_capture_*", {"{{item_json}}": json.dumps(item), "{{ordinal}}": str(i), + "{{prev}}": json.dumps({"Task_C_LE_L1_recommender_%d" % i: answer(item, P(0.6, 0.3, 0.1))})}) +a = run("Task_C_LE_L1_apply", {}); h = load(H, "stage1_part3_review_handoff") +gm = [it for it in h["review_items"] if it["review_code"] == "PART3_GLOSSARY_MISSING"] +print("A apply", a["handoff_rewritten"], codes(h), gm[0]["type_ids_without_definition"], gm[0]["glossary_reason"]) +assert len(gm) == 1 and gm[0]["severity"] == "SOFT_WARNING" and "status" not in gm[0] and "blocked" not in gm[0] +assert h["counts"]["review_items"] == len(h["review_items"]) +rc = json.loads(FS[REC]); print("A receipt glossary", rc["glossary"]["glossary_status"], rc["glossary"]["unverified_count"], rc["glossary"]["glossary_sha256"][:12]) +a2 = run("Task_C_LE_L1_apply", {}); print("A rerun", a2["status"]) + +# B) incomplete / refusal / empty content +for env in (GENV(status="incomplete"), {"content": "", "status": "completed"}, {"status": "failed", "content": None}, + {"content": "죄송합니다", "status": "completed"}): + n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=env)}) + print("B", p["status"], p["glossary_status"], p["glossary_accepted"], p["count"]) + assert p["status"] == "PLANNED" and p["glossary_accepted"] == 0 + +# C) fenced json, envelope as string, bare object +for env in (GENV(fence=True), json.dumps(GENV()), {"schema_version": "x", "glossary": GENV()["json_output"]["glossary"]}): + n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=env)}) + print("C", p["glossary_status"], p["glossary_accepted"], p["pair_types_without_definition"]) + assert p["glossary_accepted"] == 8 + +# C2) bare map (no "glossary" wrapper) is accepted +bare = GENV()["json_output"]["glossary"] +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv={"content": json.dumps(bare, ensure_ascii=False), "status": "completed"})}) +print("C2 bare", p["glossary_status"], p["glossary_accepted"]); assert p["glossary_accepted"] == 8 +# C3) statute format filter +junk = {"money_claim": {"kind": "declared", "definition_ko": "금전채권", "statutes": ["민법 제750조의2", "대법원 2005다51495 판결", "Civil Act 390", "money_claim", "민사소송법 제249조 제1항", "민법 제168조 제3호"]}} +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=GENV(extra=junk))}); g = json.loads(FS[G]) +print("C3", g["entries"]["money_claim"]["statutes"], g["entries"]["money_claim"]["statutes_dropped"]) +assert g["entries"]["money_claim"]["statutes"] == ["민법 제750조의2", "민사소송법 제249조 제1항", "민법 제168조 제3호"] +assert g["entries"]["money_claim"]["statutes_dropped"] == 3 +# C4) malformed prev +seed(); p = run(PLAN, {"{{prev}}": "{not json"}); print("C4", p["reason"]["code"]); assert p["reason"]["code"] == "PREV_UNPARSEABLE" +# D) dirty entries +extra = {"Bad-Key": {"kind": "declared", "definition_ko": "x", "statutes": []}, + "unknown_type": {"kind": "candidate", "definition_ko": "x", "statutes": []}, + "money_claim": {"kind": "candidate", "definition_ko": " 금전 채권의\n성립과 이행청구 ", "statutes": ["민법 제390조", 3, "", "x" * 41, "민법 제390조", "민법 제598조", "민법 제387조", "민법 제397조"]}, + "partial_payment": {"kind": "candidate", "definition_ko": "가" * 81, "statutes": []}, + "interest_rate_term": "not an object"} +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=GENV(extra=extra))}) +g = json.loads(FS[G]) +print("D dropped", sorted((d["type_id"], d["reason"]) for d in g["dropped"])) +print("D money_claim", g["entries"]["money_claim"]); print("D missing", g["missing_type_ids"], "accepted", g["accepted_count"]) +mc = g["entries"]["money_claim"] +assert mc["definition_ko"] == "금전 채권의 성립과 이행청구" and mc["statutes"] == ["민법 제390조", "민법 제598조", "민법 제387조"] +assert mc["kind"] == "declared" and mc["kind_corrected"] is True and mc["verified"] is False +assert "partial_payment" in g["missing_type_ids"] and "interest_rate_term" in g["missing_type_ids"] +req = json.loads(FS[REQ]); print("D req glossary", req["glossary"]) + +# E) glossary file write fails -> no definitions, plan proceeds +n = seed(); httpx.FAIL_WRITE.add(G); p = run(PLAN, {"{{prev}}": L0OK(n)}); httpx.FAIL_WRITE.clear() +print("E", p["status"], p["glossary_status"][:22], p["glossary_accepted"], p["count"]) +assert p["status"] == "PLANNED" and p["glossary_accepted"] == 0 +assert all("definition_ko" not in json.loads(x["state_json"])["declared_type"] for x in p["dynamic_fanout"]) + +# F) template safety: content with triple quotes / backslashes / braces inside the glossary text +tricky = GENV(); tricky["content"] = tricky["content"].replace("일반 정의", 'x""" \\ {{y}} \\') +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=tricky)}) +print("F", p["status"], p["glossary_status"], p["glossary_accepted"]) + +# G) BO context: BO.json present +seed() +FS["BO.json"] = jdump([{"BO_ID": "BO-1", "BOType": "event", "Legal_Keywords": ["partial_payment"], + "extensions": {"domain_payload": {"payload": {"payment_kind": "계약금", "지급 상태": "x", "Bad": 1}}}}, + {"BO_ID": "BO-4", "BOType": "State", "extensions": {"domain_payload": {"payload": {"payment_status": "y"}}}}, + {"id": "BO-5", "BOType": "event", "extensions": {}}]) +p = run(PLAN, {"{{prev}}": L0OK(6)}) +s = [json.loads(x["state_json"]) for x in p["dynamic_fanout"] if x["candidate_type_id"] == "partial_payment"][0] +print("G candidate", s["candidate"]); req = json.loads(FS[REQ]); print("G bo status", req["bo_context_status"]) +assert s["candidate"]["bo_types"] == ["event", "state"] and s["candidate"]["payload_keys"] == ["payment_kind", "payment_status"] +assert "계약금" not in json.dumps(s, ensure_ascii=False).replace(s["candidate"].get("definition_ko", ""), "") +FS["BO.json"] = "not json"; p = run(PLAN, {"{{prev}}": L0OK(6)}); print("G bad BO", p["status"], json.loads(FS[REQ])["bo_context_status"]) +print("GLOSSARY TESTS DONE") +# R2) statute normalisation, status after cleaning, prose prefix, json_output fallback, stub on early return +junk = {"money_claim": {"kind": "declared", "definition_ko": "금전채권", "statutes": ["민법 제390조(채무불이행과 손해배상)", "「민법」 제750조", "민법 제2조 제1항 본문", "민법 제168조 제1호, 제174조"]}} +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=GENV(extra=junk))}); g = json.loads(FS[G]) +print("R2 statutes", g["entries"]["money_claim"]["statutes"], g["entries"]["money_claim"]["statutes_dropped"], g["glossary_status"]) +assert g["entries"]["money_claim"]["statutes"] == ["민법 제390조", "민법 제750조", "민법 제2조 제1항"] +part = dict(list(GTYPES.items())[:3]) +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=GENV(types=part))}); print("R2 partial", p["glossary_status"]); assert p["glossary_status"] == "OK_PARTIAL" +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv={"content": json.dumps({"glossary": []}), "status": "completed"})}); print("R2 listtable", p["glossary_status"]); assert p["glossary_status"] == "GLOSSARY_TABLE_MISSING" +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv={"content": json.dumps({"table": {}}), "status": "completed"})}); print("R2 wrongkey", p["glossary_status"]); assert p["glossary_status"] == "GLOSSARY_EMPTY" +env = GENV(); env["content"] = "다음은 결과입니다.\n" + env["content"] +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=env)}); print("R2 prose", p["glossary_status"], p["glossary_accepted"]); assert p["glossary_accepted"] == 8 +env = GENV(); env["content"] = "" +n = seed(); p = run(PLAN, {"{{prev}}": L0OK(n, genv=env)}); print("R2 json_output", p["glossary_status"], p["glossary_accepted"]); assert p["glossary_accepted"] == 8 +seed(); FS[G] = "old"; p = run(PLAN, {"{{prev}}": L0OK(5)}); print("R2 stub", p["reason"]["code"], json.loads(FS[G])["planned"]) +print("R2 DONE") + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_pipeline.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_pipeline.py new file mode 100644 index 00000000..971870f6 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_pipeline.py @@ -0,0 +1,203 @@ +from harness import * +import harness, hashlib +FS = httpx.FS +B, H, REQ, REC = ("stage1_tmp/task_le/structure_seed_bundle.json", "quality_gates/stage1_part3_review_handoff.json", + "stage1_tmp/task_le/recommender_requests.json", "validation_assets/routing/part3_recommender_receipt.json") +def rec(d, t, mod, rp, bos=()): + return {"structure_id": "LES-%s-%s" % (d, t), "domain_id": d, "type_id": t, "module": mod, "role_projection": rp, + "source_bo_ids": sorted(bos), "review_codes": [], "review_required": False, "routes": []} +def seed(): + FS.clear(); httpx.FAIL_WRITE.clear() + records = [rec("E-02", "money_claim", "money_claim", "claim_chain_ref", ["BO-6"]), + rec("E-02", "general_legal_effect", "legal_effect", "legal_effect_roles"), + rec("X1", "succession_notice_lien_asset_defense", "succession_notice_lien_asset_defense", "linked_structures"), + rec("X1", "general_legal_effect", "legal_effect", "legal_effect_roles"), + rec("E-12", "coownership_governance", "coownership", "coowner_act_consent_roles"), + rec("E-12", "coownership_partition", "partition", "partitioner_coowner_object_roles")] + unb = [{"bo_id": b, "reason": "no_matching_structure"} for b in ("BO-1", "BO-2", "BO-3", "BO-4", "BO-5")] + bundle = {"schema_version": "stage1_structure_seed_bundle.v1", "status": "READY_WITH_REVIEW", "structure_records": records, + "unattached_routes": [{"signal_id": "S1", "type_id": t, "reason": "type_outside_theta"} for t in + ("partial_payment", "inheritance_notice_lifecycle", "co_owner_consent_act", "interest_rate_term")] + + [{"signal_id": "S9", "type_id": None, "reason": "type_outside_theta"}], + "unattached_bo": unb, "counts": {"bo_total": 6, "bo_attached": 1, "bo_unattached": 5}, + "created_by": "Task_C_LE_L0_structure_seed_reducer"} + def u(b, kws, doms): return {"review_code": "PART3_BO_UNATTACHED", "severity": "HARD_WARNING", "bo_id": b, + "source_domain": doms[0], "legal_keywords": kws, "resolved_domains": doms} + items = [{"review_code": "PART3_UNREGISTERED_TYPE", "severity": "HARD_WARNING", "type_id": "partial_payment"}, + u("BO-1", ["partial_payment", "loan_contract", "부분변제 사실"], ["E-02"]), + u("BO-2", ["inheritance_notice_lifecycle"], ["X1"]), + u("BO-3", ["co_owner_consent_act", "asset_state"], ["E-12"]), + u("BO-4", ["partial_payment"], ["E-02"]), + u("BO-5", ["partial_payment", "interest_rate_term"], ["E-02"])] + FS[B] = jdump({"structure_seed_bundle": bundle}) + FS[H] = jdump({"stage1_part3_review_handoff": {"schema_version": "stage1_part3_review_handoff.v1", "status": "OPEN", + "review_items": items, "counts": {"review_items": len(items)}, "created_by": "L0"}}) + return len(records) +GTYPES = {"money_claim": "declared", "succession_notice_lien_asset_defense": "declared", "coownership_governance": "declared", + "coownership_partition": "declared", "partial_payment": "candidate", "inheritance_notice_lifecycle": "candidate", + "co_owner_consent_act": "candidate", "interest_rate_term": "candidate"} +def GENV(types=GTYPES, status="completed", fence=False, extra=None): + g = {"schema_version": "stage1_part3_type_glossary.v1", + "glossary": {t: {"kind": k, "definition_ko": "%s 의 일반 정의" % t, "statutes": ["민법 제390조"]} for t, k in types.items()}} + if extra: g["glossary"].update(extra) + body = json.dumps(g, ensure_ascii=False) + if fence: body = "```json\n" + body + "\n```" + return {"content": body, "json_output": g, "status": status, "finish_reason": "stop"} +def L0OK(n, genv="full"): + prev = {"Task_C_LE_L0_structure_seed_reducer": {"status": "READY_WITH_REVIEW", "structure_record_count": n}} + if genv == "full": prev["Task_C_LE_L1_glossary"] = GENV() + elif genv is not None: prev["Task_C_LE_L1_glossary"] = genv + return json.dumps(prev, ensure_ascii=False) +def answer(item, probs, wrap=None, ok=True): + resp = {"model": "jev-1.13.0", "answers": {"relation": {"type": "choice", "choice": max(probs, key=probs.get), + "probabilities": probs, "confidence": max(probs.values())}}, "usage": {"input_tokens": 50, "output_tokens": 3}} + if wrap == "str": resp = json.dumps(resp) + if wrap == "env": resp = {"status": "completed", "json_output": resp} + return resp +def pipeline(probs_for, shadow=False, wrap=None, fail_ord=()): + n = seed() + p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(n)}) + for i, item in enumerate(p["dynamic_fanout"]): + prev = {} if i in fail_ord else {"Task_C_LE_L1_recommender_%d" % i: answer(item, probs_for(item), wrap)} + run("Task_C_LE_L1_capture_*", {"{{item_json}}": json.dumps(item), "{{ordinal}}": str(i), "{{prev}}": json.dumps(prev)}) + harness.TASKS["Task_C_LE_L1_apply"]["parameters"]["code"] = code_apply_base.replace( + "SHADOW_RUN = False", "SHADOW_RUN = %s" % shadow) + a = run("Task_C_LE_L1_apply", {}) + return p, a +code_apply_base = code("Task_C_LE_L1_apply") +def load(p, k): return json.loads(FS[p])[k] +def l2_eq(): + b = load(B, "structure_seed_bundle"); att = set() + for r in b["structure_records"]: att.update(r["source_bo_ids"]) + return len(att) + len(b["unattached_bo"]) == 6, len(att), len(b["unattached_bo"]) +P = lambda i, p, w, u=0.0: {"independent_effect": i, "part_of_declared_type": p, "wording_variant": w, "unrelated": u} + +# 1) plan shape +n = seed(); p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(n)}) +print("PLAN", p["status"], p["count"], [ (x["domain_id"], x["candidate_type_id"], x["target_type_id"]) for x in p["dynamic_fanout"]]) +for x in p["dynamic_fanout"]: + st = json.loads(x["state_json"]); assert "부분" not in x["state_json"]; assert st["glossary_source"] == "llm_unverified" +print("state sample", p["dynamic_fanout"][0]["state_json"]) +req = json.loads(FS[REQ]); print("REQ planned", req["planned"], "cands", [(c["domain_id"], c["candidate_type_id"], len(c["pairs"])) for c in req["candidates"]]) +assert all(x["target_type_id"] != "general_legal_effect" for x in p["dynamic_fanout"]) + +# 2) shadow run: no attach, bundle/handoff bytes unchanged +n = seed(); b0, h0 = FS[B], FS[H] +p, a = pipeline(lambda it: P(0.05, 0.15, 0.80), shadow=True) +print("SHADOW", a, "bundle same", FS[B] == b0, "handoff same", FS[H] == h0) +assert FS[B] == b0 and FS[H] == h0 + +# 3) accept: E-02 partial_payment -> money_claim (single T), E-12 co_owner_consent_act: governance high vs partition low +def pf(it): + if it["candidate_type_id"] == "partial_payment": return P(0.05, 0.85, 0.10) + if it["candidate_type_id"] == "interest_rate_term": return P(0.10, 0.70, 0.20) + if it["candidate_type_id"] == "co_owner_consent_act": + return P(0.05, 0.90, 0.05) if it["target_type_id"] == "coownership_governance" else P(0.80, 0.15, 0.05) + return P(0.90, 0.05, 0.05) # X1 -> promotion +p, a = pipeline(pf) +print("ACCEPT", a); print("L2 eq", l2_eq()) +b = load(B, "structure_seed_bundle"); h = load(H, "stage1_part3_review_handoff") +mc = [r for r in b["structure_records"] if r["type_id"] == "money_claim"][0] +print("money_claim bos", mc["source_bo_ids"], mc["review_codes"], mc["review_required"]) +codes = {} +for it in h["review_items"]: codes[(it["review_code"], it["severity"])] = codes.get((it["review_code"], it["severity"]), 0) + 1 +print("handoff codes", codes, "counts", h["counts"], "status", h["status"], "created_by", h["created_by"]) +assert h["counts"]["review_items"] == len(h["review_items"]) +assert l2_eq()[0] +assert not any("status" in it or "blocked" in it for it in h["review_items"]) +rc = json.loads(FS[REC]); print("receipt outcome", rc["outcome_counts"], "tokens", rc["usage_input_tokens"], "attached", len(rc["attached_bo"]), rc["bo_counts"]) + +# 3b) rerun apply immediately -> handoff sha changed -> skip +a2 = run("Task_C_LE_L1_apply", {}); print("RERUN", a2["status"], a2["reason"]["code"]) + +# 4) partial failure: bundle written, handoff write fails -> rerun converts handoff only +seed(); n = 6 +p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(n)}) +for i, item in enumerate(p["dynamic_fanout"]): + run("Task_C_LE_L1_capture_*", {"{{item_json}}": json.dumps(item), "{{ordinal}}": str(i), + "{{prev}}": json.dumps({"Task_C_LE_L1_recommender_%d" % i: answer(item, pf(item))})}) +harness.TASKS["Task_C_LE_L1_apply"]["parameters"]["code"] = code_apply_base.replace("SHADOW_RUN = False", "SHADOW_RUN = False") +httpx.FAIL_WRITE.add(H) +try: run("Task_C_LE_L1_apply", {}); print("expected raise!") +except RuntimeError as e: print("partial raise", str(e)[:60]) +bmid = FS[B]; httpx.FAIL_WRITE.clear() +a3 = run("Task_C_LE_L1_apply", {}); print("PARTIAL RERUN", a3, "bundle unchanged", FS[B] == bmid, "eq", l2_eq()) +h = load(H, "stage1_part3_review_handoff") +print("hard left", sum(1 for it in h["review_items"] if it["review_code"] == "PART3_BO_UNATTACHED"), + "attached items", sum(1 for it in h["review_items"] if it["review_code"] == "PART3_BO_ATTACHED_BY_RECOMMENDER")) + +# 5) envelope variants + failed instance +for w in ("str", "env"): + p, a = pipeline(pf, wrap=w); print("WRAP", w, a["outcome_counts"]) +p, a = pipeline(pf, fail_ord=(0,)); print("FAILED ord0", a["outcome_counts"], json.loads(FS[p["dynamic_fanout"][0]["answer_path"]])["status"]) + +# 6) independent max but score >= accept : 0.45/0.30/0.25 single T, accept_min lowered to 0.5 +harness.TASKS["Task_C_LE_L1_apply"]["parameters"]["code"] = code_apply_base.replace("SHADOW_RUN = False", "SHADOW_RUN = False").replace("ACCEPT_MIN_START = 0.80", "ACCEPT_MIN_START = 0.50") +code_apply_base2 = harness.TASKS["Task_C_LE_L1_apply"]["parameters"]["code"] +n = seed(); p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(n)}) +for i, item in enumerate(p["dynamic_fanout"]): + run("Task_C_LE_L1_capture_*", {"{{item_json}}": json.dumps(item), "{{ordinal}}": str(i), + "{{prev}}": json.dumps({"Task_C_LE_L1_recommender_%d" % i: answer(item, P(0.45, 0.30, 0.25))})}) +harness.TASKS["Task_C_LE_L1_apply"]["parameters"]["code"] = code_apply_base2 +a = run("Task_C_LE_L1_apply", {}); print("IND-MAX", a["outcome_counts"]) +assert "ACCEPT" not in a["outcome_counts"] + +# 7) L0 not ready / bundle stale / no {{prev}} +seed(); p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": json.dumps({})}); print("L0 missing", p["status"], p["reason"]["code"], json.loads(FS[REQ])["planned"]) +a = run("Task_C_LE_L1_apply", {}); print(" apply", a) +seed(); p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(5)}); print("stale", p["reason"]["code"]) +seed(); p = run("Task_C_LE_L1_candidate_planner", {}); print("unrendered", p["reason"]["code"]) +# 8) zero candidates +seed(); h = json.loads(FS[H]); h["stage1_part3_review_handoff"]["review_items"] = h["stage1_part3_review_handoff"]["review_items"][:1]; FS[H] = jdump(h) +b0, h0 = FS[B], FS[H] +p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(6)}); a = run("Task_C_LE_L1_apply", {}) +print("ZERO", p["count"], a, FS[B] == b0, FS[H] == h0) +# 9) write error raises in capture +seed(); p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(6)}); it = p["dynamic_fanout"][0]; httpx.FAIL_WRITE.add(it["answer_path"]) +try: run("Task_C_LE_L1_capture_*", {"{{item_json}}": json.dumps(it), "{{ordinal}}": "0", "{{prev}}": "{}"}); print("no raise!") +except RuntimeError as e: print("capture write raise", str(e)[:40]) +# 10) planner request write fails -> no raise +seed(); httpx.FAIL_WRITE.add(REQ); p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(6)}); print("planner write fail", p["status"], p["reason"]["code"], p["count"]) + +# U) unrelated key (2:39pm) +def run_with(probs_fn, shadow=False, accept_start=None): + n = seed(); p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(n)}) + for i, item in enumerate(p["dynamic_fanout"]): + run("Task_C_LE_L1_capture_*", {"{{item_json}}": json.dumps(item), "{{ordinal}}": str(i), + "{{prev}}": json.dumps({"Task_C_LE_L1_recommender_%d" % i: answer(item, probs_fn(item))})}) + code = code_apply_base.replace("SHADOW_RUN = False", "SHADOW_RUN = %s" % shadow) + if accept_start: code = code.replace("ACCEPT_MIN_START = 0.80", "ACCEPT_MIN_START = %s" % accept_start) + harness.TASKS["Task_C_LE_L1_apply"]["parameters"]["code"] = code + a = run("Task_C_LE_L1_apply", {}); return a, json.loads(FS[REC]) +# U1 unrelated max blocks accept even with attach >= 0.5 +a, rc = run_with(lambda it: P(0.0, 0.30, 0.25, 0.45), accept_start="0.50"); print("U1", a["outcome_counts"]); assert "ACCEPT" not in a["outcome_counts"] +# U2 all pairs unrelated-dominant -> no PROMOTION (UNDECIDED) +a, rc = run_with(lambda it: P(0.05, 0.05, 0.0, 0.90)); print("U2", a["outcome_counts"]); assert set(a["outcome_counts"]) == {"UNDECIDED"} +# U3 independent 0.50 (floor) -> PROMOTION; mixed indep+unrelated non-attach mass counts +a, rc = run_with(lambda it: P(0.50, 0.05, 0.0, 0.45)); print("U3", a["outcome_counts"]); assert set(a["outcome_counts"]) == {"PROMOTION"} +ps = rc["decisions"][0]["decision"]["pair_scores"][0]; print("U3 pair", ps); assert "non_attach_score" in ps and set(ps["probabilities"]) == {"independent_effect","part_of_declared_type","wording_variant","unrelated"} +# U4 old 3-key answer -> ANSWER_MISSING +a, rc = run_with(lambda it: {"independent_effect": 0.2, "part_of_declared_type": 0.7, "wording_variant": 0.1}); print("U4", a["outcome_counts"]); assert set(a["outcome_counts"]) == {"ANSWER_MISSING"} +# U5 part_of max, unrelated second -> ACCEPT +a, rc = run_with(lambda it: P(0.0, 0.85, 0.05, 0.10)); print("U5", a["outcome_counts"]) +# U6 weak independent (0.41 vs unrelated 0.40) no longer promotes; strong independent does +a, rc = run_with(lambda it: P(0.41, 0.10, 0.09, 0.40)); print("U6 weak", a["outcome_counts"]); assert "PROMOTION" not in a["outcome_counts"] +a, rc = run_with(lambda it: P(0.55, 0.05, 0.0, 0.40)); print("U6 strong", a["outcome_counts"]); assert set(a["outcome_counts"]) == {"PROMOTION"} +a, rc = run_with(lambda it: P(0.50, 0.05, 0.0, 0.45)); print("U6 floor-edge", a["outcome_counts"]); assert set(a["outcome_counts"]) == {"PROMOTION"} +# T) target-unrelated SOFT item (3:30pm) +a, rc = run_with(lambda it: P(0.05, 0.05, 0.0, 0.90)) +h = load(H, "stage1_part3_review_handoff"); tu = [i for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED"] +print("T1 all-unrelated", a["outcome_counts"], len(tu), sorted((i["domain_id"], i["candidate_type_id"]) for i in tu)) +assert len(tu) == 4 and all(i["severity"] == "SOFT_WARNING" and "status" not in i and "blocked" not in i for i in tu) +assert sum(1 for i in h["review_items"] if i["review_code"] == "PART3_BO_UNATTACHED") == 5 and h["counts"]["review_items"] == len(h["review_items"]) +a, rc = run_with(lambda it: P(0.05, 0.05, 0.0, 0.90) if it["target_type_id"] == "coownership_partition" else P(0.60, 0.05, 0.0, 0.35)) +h = load(H, "stage1_part3_review_handoff"); tu = [i for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED"] +print("T2 mixed", a["outcome_counts"], len(tu)); assert len(tu) == 0 +a, rc = run_with(lambda it: P(0.0, 0.40, 0.0, 0.40)) +h = load(H, "stage1_part3_review_handoff"); tu = [i for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED"] +print("T3 tie", len(tu)); assert len(tu) == 0 +a, rc = run_with(lambda it: P(0.05, 0.05, 0.0, 0.90), shadow=True) +h = load(H, "stage1_part3_review_handoff"); tu = [i for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED"] +print("T4 shadow", a["outcome_counts"], len(tu)) +print("UNRELATED TESTS DONE") +print("ALL DONE") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_pipeline_lib.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_pipeline_lib.py new file mode 100644 index 00000000..cea58552 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_pipeline_lib.py @@ -0,0 +1,74 @@ +from harness import * +import harness, hashlib +FS = httpx.FS +B, H, REQ, REC = ("stage1_tmp/task_le/structure_seed_bundle.json", "quality_gates/stage1_part3_review_handoff.json", + "stage1_tmp/task_le/recommender_requests.json", "validation_assets/routing/part3_recommender_receipt.json") +def rec(d, t, mod, rp, bos=()): + return {"structure_id": "LES-%s-%s" % (d, t), "domain_id": d, "type_id": t, "module": mod, "role_projection": rp, + "source_bo_ids": sorted(bos), "review_codes": [], "review_required": False, "routes": []} +def seed(): + FS.clear(); httpx.FAIL_WRITE.clear() + records = [rec("E-02", "money_claim", "money_claim", "claim_chain_ref", ["BO-6"]), + rec("E-02", "general_legal_effect", "legal_effect", "legal_effect_roles"), + rec("X1", "succession_notice_lien_asset_defense", "succession_notice_lien_asset_defense", "linked_structures"), + rec("X1", "general_legal_effect", "legal_effect", "legal_effect_roles"), + rec("E-12", "coownership_governance", "coownership", "coowner_act_consent_roles"), + rec("E-12", "coownership_partition", "partition", "partitioner_coowner_object_roles")] + unb = [{"bo_id": b, "reason": "no_matching_structure"} for b in ("BO-1", "BO-2", "BO-3", "BO-4", "BO-5")] + bundle = {"schema_version": "stage1_structure_seed_bundle.v1", "status": "READY_WITH_REVIEW", "structure_records": records, + "unattached_routes": [{"signal_id": "S1", "type_id": t, "reason": "type_outside_theta"} for t in + ("partial_payment", "inheritance_notice_lifecycle", "co_owner_consent_act", "interest_rate_term")] + + [{"signal_id": "S9", "type_id": None, "reason": "type_outside_theta"}], + "unattached_bo": unb, "counts": {"bo_total": 6, "bo_attached": 1, "bo_unattached": 5}, + "created_by": "Task_C_LE_L0_structure_seed_reducer"} + def u(b, kws, doms): return {"review_code": "PART3_BO_UNATTACHED", "severity": "HARD_WARNING", "bo_id": b, + "source_domain": doms[0], "legal_keywords": kws, "resolved_domains": doms} + items = [{"review_code": "PART3_UNREGISTERED_TYPE", "severity": "HARD_WARNING", "type_id": "partial_payment"}, + u("BO-1", ["partial_payment", "loan_contract", "부분변제 사실"], ["E-02"]), + u("BO-2", ["inheritance_notice_lifecycle"], ["X1"]), + u("BO-3", ["co_owner_consent_act", "asset_state"], ["E-12"]), + u("BO-4", ["partial_payment"], ["E-02"]), + u("BO-5", ["partial_payment", "interest_rate_term"], ["E-02"])] + FS[B] = jdump({"structure_seed_bundle": bundle}) + FS[H] = jdump({"stage1_part3_review_handoff": {"schema_version": "stage1_part3_review_handoff.v1", "status": "OPEN", + "review_items": items, "counts": {"review_items": len(items)}, "created_by": "L0"}}) + return len(records) +GTYPES = {"money_claim": "declared", "succession_notice_lien_asset_defense": "declared", "coownership_governance": "declared", + "coownership_partition": "declared", "partial_payment": "candidate", "inheritance_notice_lifecycle": "candidate", + "co_owner_consent_act": "candidate", "interest_rate_term": "candidate"} +def GENV(types=GTYPES, status="completed", fence=False, extra=None): + g = {"schema_version": "stage1_part3_type_glossary.v1", + "glossary": {t: {"kind": k, "definition_ko": "%s 의 일반 정의" % t, "statutes": ["민법 제390조"]} for t, k in types.items()}} + if extra: g["glossary"].update(extra) + body = json.dumps(g, ensure_ascii=False) + if fence: body = "```json\n" + body + "\n```" + return {"content": body, "json_output": g, "status": status, "finish_reason": "stop"} +def L0OK(n, genv="full"): + prev = {"Task_C_LE_L0_structure_seed_reducer": {"status": "READY_WITH_REVIEW", "structure_record_count": n}} + if genv == "full": prev["Task_C_LE_L1_glossary"] = GENV() + elif genv is not None: prev["Task_C_LE_L1_glossary"] = genv + return json.dumps(prev, ensure_ascii=False) +def answer(item, probs, wrap=None, ok=True): + resp = {"model": "jev-1.13.0", "answers": {"relation": {"type": "choice", "choice": max(probs, key=probs.get), + "probabilities": probs, "confidence": max(probs.values())}}, "usage": {"input_tokens": 50, "output_tokens": 3}} + if wrap == "str": resp = json.dumps(resp) + if wrap == "env": resp = {"status": "completed", "json_output": resp} + return resp +def pipeline(probs_for, shadow=False, wrap=None, fail_ord=()): + n = seed() + p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(n)}) + for i, item in enumerate(p["dynamic_fanout"]): + prev = {} if i in fail_ord else {"Task_C_LE_L1_recommender_%d" % i: answer(item, probs_for(item), wrap)} + run("Task_C_LE_L1_capture_*", {"{{item_json}}": json.dumps(item), "{{ordinal}}": str(i), "{{prev}}": json.dumps(prev)}) + harness.TASKS["Task_C_LE_L1_apply"]["parameters"]["code"] = code_apply_base.replace( + "SHADOW_RUN = False", "SHADOW_RUN = %s" % shadow) + a = run("Task_C_LE_L1_apply", {}) + return p, a +code_apply_base = code("Task_C_LE_L1_apply") +def load(p, k): return json.loads(FS[p])[k] +def l2_eq(): + b = load(B, "structure_seed_bundle"); att = set() + for r in b["structure_records"]: att.update(r["source_bo_ids"]) + return len(att) + len(b["unattached_bo"]) == 6, len(att), len(b["unattached_bo"]) +P = lambda i, p, w, u=0.0: {"independent_effect": i, "part_of_declared_type": p, "wording_variant": w, "unrelated": u} + diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_real.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_real.py new file mode 100644 index 00000000..6d884dc7 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_real.py @@ -0,0 +1,32 @@ +import os, sys, re +exec(open(os.path.join(os.path.dirname(__file__), "t_pipeline_lib.py"), encoding="utf-8").read()) +ws = json.load(open(sys.argv[2])) +def real_seed(): + FS.clear() + for k in ("stage1_tmp/task_le/structure_seed_bundle.json", "quality_gates/stage1_part3_review_handoff.json", "BO.json"): + FS[k] = ws[k] +real_seed() +b = json.loads(FS[B]); b = b.get("structure_seed_bundle", b) +old_req = json.loads(ws["stage1_tmp/task_le/recommender_requests.json"]) +declared = {r["type_id"] for r in b["structure_records"] if r["type_id"] != "general_legal_effect"} +cand = {r["type_id"] for r in b["unattached_routes"] if isinstance(r.get("type_id"), str) and re.fullmatch(r"[a-z][a-z0-9_]{1,127}", r["type_id"])} - declared +types = {t: "declared" for t in declared}; types.update({t: "candidate" for t in cand}) +print("requested declared", len(declared), "candidate", len(cand)) +g = GENV(types=types); [v.update(definition_ko=("가" * 70)) for v in g["json_output"]["glossary"].values()] +g["content"] = json.dumps(g["json_output"], ensure_ascii=False) +print("glossary content chars", len(g["content"])) +p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(len(b["structure_records"]), genv=g)}) +print("plan", p["status"], p["count"], p["candidate_count"], p["glossary_accepted"], p["pair_types_without_definition"]) +oldc = sorted((c["domain_id"], c["candidate_type_id"], len(c["pairs"])) for c in old_req["candidates"]) +newr = json.loads(FS[REQ]); newc = sorted((c["domain_id"], c["candidate_type_id"], len(c["pairs"])) for c in newr["candidates"]) +print("same candidates/pairs as 11-05 run:", oldc == newc) +sizes = [len(x["state_json"]) for x in p["dynamic_fanout"]] +print("state_json chars min/max", min(sizes), max(sizes), "(old max", max(len(json.dumps(json.loads(x), separators=(",", ":"))) for x in []) if False else "") +for x in p["dynamic_fanout"][:3] + p["dynamic_fanout"][-2:]: + s = json.loads(x["state_json"]); c = s["candidate"] + print(x["candidate_type_id"], "->", x["target_type_id"], "bo_types", c["bo_types"], "payload", c["payload_keys"], "cooccur", c["cooccurring_keywords"]) +ids = re.compile(r"^[a-z][a-z0-9_]{1,127}$") +for x in p["dynamic_fanout"]: + s = json.loads(x["state_json"]); c = s["candidate"] + assert all(ids.fullmatch(v) for v in c["cooccurring_keywords"] + c["bo_types"] + c["payload_keys"]) +print("all BO context values identifier-shaped") diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_replay.py b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_replay.py new file mode 100644 index 00000000..c104806b --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/scratchpad/p3l1/t_replay.py @@ -0,0 +1,21 @@ +import os, sys, re, collections +exec(open(os.path.join(os.path.dirname(__file__), "t_pipeline_lib.py"), encoding="utf-8").read()) +ws = json.load(open(sys.argv[2])); pairs3 = json.load(open(sys.argv[3])) +FS.clear() +for k in ("stage1_tmp/task_le/structure_seed_bundle.json", "quality_gates/stage1_part3_review_handoff.json", "BO.json"): + FS[k] = ws[k] +b = json.loads(FS[B]); b = b.get("structure_seed_bundle", b) +p = run("Task_C_LE_L1_candidate_planner", {"{{prev}}": L0OK(len(b["structure_records"]), genv=None)}) +for i, item in enumerate(p["dynamic_fanout"]): + key = "%s|%s|%s" % (item["domain_id"], item["candidate_type_id"], item["target_type_id"]) + probs = pairs3[key]["probabilities"] + run("Task_C_LE_L1_capture_*", {"{{item_json}}": json.dumps(item), "{{ordinal}}": str(i), + "{{prev}}": json.dumps({"Task_C_LE_L1_recommender_%d" % i: answer(item, probs)})}) +harness.TASKS["Task_C_LE_L1_apply"]["parameters"]["code"] = code_apply_base +a = run("Task_C_LE_L1_apply", {}); print("apply", a) +h = load(H, "stage1_part3_review_handoff"); print("handoff codes", collections.Counter((i["review_code"], i["severity"]) for i in h["review_items"])) +print("target unrelated", sorted((i["domain_id"], i["candidate_type_id"]) for i in h["review_items"] if i["review_code"] == "PART3_RECOMMENDER_TARGET_UNRELATED")) +bb = load(B, "structure_seed_bundle"); att = set() +for r in bb["structure_records"]: att.update(r["source_bo_ids"]) +print("BO eq", len(att) + len(bb["unattached_bo"]), "attached", len(att), "unattached", len(bb["unattached_bo"])) +mc = [r for r in bb["structure_records"] if r["type_id"] == "money_claim"][0]; print("money_claim review", mc["review_codes"], mc["review_required"]) diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8.yml b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8.yml index 40060286..ee96647a 100644 --- a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8.yml +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8.yml @@ -11,11 +11,11 @@ # 구성 — task 29종 (v3 대비 +20 신설 · 9 개정 · 0 무변경). 2026-10-30 V 사슬 5종 신설, 기존 13종 코드 무변경. # 2026-11-02 A0·B1·B2 를 V1 구조(도구 없는 1회 호출 + 코드 저장)로 전환, capture 3종 신설. 게이트 코드 무변경. # 2026-11-03 캐시 경계 개정·Task_A·B12 1회 호출 전환·복구 경로 추가(복구 6종, capture 2종 신설, 게이트·T9 수정). -# [신설] Task_A0_domain_screener_01 / 02 / 03 ver_8 후보본 +# [신설] Task_A0_domain_screener_01 / 02 / 03 ver_8 후보본 + 2026-11-03 4pm 실패 조건·표식·연동 검사 # [신설] Task_A0c_domain_screener_capture 2026-11-02 V1c 패턴 -# [개정] Task_A_client_goal Task_A_client_goal_v4.yml + 2026-11-03 구조 전환 +# [개정] Task_A_client_goal Task_A_client_goal_v4.yml + 2026-11-03 구조 전환 + 4pm FAILURE_POLICY # [신설] Task_Ac_client_goal_capture 2026-11-03 A0c 복제 -# [개정] Task_Evidence_shard_planner v3 622-945 + 2026-11-03 오후 part 표식 +# [개정] Task_Evidence_shard_planner v3 622-945 + 2026-11-03 오후 part 표식 + 4pm handoff 표식 # [개정] Task_B1_map_doc_* T3_Task_B1_map_doc_v4.yml # [신설] Task_B1c_map_doc_capture_* 2026-11-02 V1c 패턴 # [개정] Task_B2_map_events_* v3 1540-2204 + 2026-11-02 구조 전환 @@ -27,8 +27,8 @@ # [개정] Task_B12_gate_llm_adjudicator v3 3520-3679 + 2026-11-03 구조 전환 # [신설] Task_B12c_gate_adjudication_capture 2026-11-03 A0c 복제 # [개정] Task_B12_gate_audit_finalizer v3 3680-4041 + 2026-11-03 no_suspects 표시 -# [신설] Task_D0_domain_activation_gate ver_8 후보본 (정정본) -# [개정] Task_B2_SHA256_soft_gate_handoff_writer T9_..._v4.yml (2026-10-30: nexts 에 V3 추가, 2026-11-03: 게이트 미통과 시 BLOCKED) +# [신설] Task_D0_domain_activation_gate ver_8 후보본 (정정본) + 2026-11-03 4pm manifest 표식 +# [개정] Task_B2_SHA256_soft_gate_handoff_writer T9_..._v4.yml (2026-10-30: nexts 에 V3 추가, 2026-11-03: 게이트 미통과 시 BLOCKED, 4pm: A0·D0 산출물 게이트) # [신설] Task_V0_value_facts_input_planner 가액금액_포함_작업구조도개정_계획서.md §2 # [신설] Task_V1_value_facts_* 가액금액_정보추출_프롬프트.md [SYSTEM] (full 모드) # [신설] Task_V1c_value_facts_capture_* S2_10 capture 패턴 @@ -36,6 +36,20 @@ # [신설] Task_V3_value_facts_party_linker T9 norm_name 복사 # # 개정 요지 +# 2026-11-03 7:25pm 추론 수준·verbosity 조정 (LLM_추론수준_개정된_stage_1.md, 보존본 _11_03_7_25pm.yml) +# (reasoning, verbosity): Task_A (high, 기본) -> (medium, low), B1·B2 (high, medium) -> (medium, low), +# B1r·B2r (high, medium) -> (high, low), V1 (medium, 없음) -> (medium, low). A0_01 (medium, low)·B12 (low, low) 그대로. +# Gemini 브리지는 llm_verbosity 를 쓰지 않는다(_apply_verbosity 는 openai 전용). Gemini task 에서는 표시값이다. +# 2026-11-03 4pm 지난 실행 파일 차단 (Testrun/Nov_03/추가개정전략_for_part_1.md M1~M6) +# A0_01: 사전 머리말·26개 검사를 지우고 '내용 없음'만 FAILED 로 둔다. 배포 사전에는 머리말이 없어 +# 헛 FAILED 가 났고 A0_01 은 재시도가 없다. 구조 검사는 A0_02 코드가 한다. +# 표식: planner 가 handoff 에 HANDOFF_PENDING, A0_02·A0_03·D0 가 시작할 때 자기 산출물에 *_PENDING 을 쓴다. +# 실패·취소·미실행이면 표식이 남아 지난 실행 파일이 하류로 흐르지 않는다. 표식 쓰기는 try 밖이라 실패하면 raise 한다. +# A0_03: {{prev}} 로 A0_02 의 written 을 보고, 쓴 sha 와 읽은 sha 가 다르면 경고한다(쓰기·읽기 동일성 미실측). +# Task_A FAILURE_POLICY: screening 규칙에 SCREENING_PENDING 조건을 더하고, vocabulary 규칙은 존재·표식 검사로 줄였다. +# 절 수는 A0_02(중복 후보 실패)·A0_03(if ERRORS) 코드가 보장한다. +# T9: screening·vocabulary·manifest 를 게이트로 본다. vocabulary 머리말의 screening_sha256 이 다르면 VOCABULARY_STALE. +# 남은 것: when 으로 Task_A 를 건너뛰는 안은 probe 전까지 보류(Task_A 는 S1~S3 에서도 1회 호출된다). # 2026-11-03 오후 실행 실패 수정 (Testrun/Nov_03/실패분석서_part_1.md §5 의 1~3) # Task_A: llm_verbosity 삭제. 브리지가 chat.completions 에도 text 인자를 넣어 SDK 가 거부했다. # chat.completions 의 verbosity 기본값이 medium 이라 출력 설정은 같다. @@ -156,7 +170,7 @@ Agent: max_iterations: 1 llm_provider: google llm_model: 'gemini-3.8-flash' - llm_reasoning: medium + llm_reasoning: low llm_verbosity: low cache_control: mode: auto @@ -178,6 +192,7 @@ Agent: - role: user content: |- + "출력은 JSON 하나, 첫 글자는 `{`, 사고 과정·설명 금지" - You are executing one LLM sub-task inside Stage 1 of a Korean civil-litigation complaint-generation pipeline. - The current task's static block, role overlay, assigned inputs, output schema, and writer boundary control. @@ -239,7 +254,7 @@ Agent: `client_meeting.md`와 `Default_Agent/routing/activation_cue_digest.md` 두 개만 읽고 `routing/domain_screening_draft.json`을 생성한다. - 이 task가 답해야 할 질문은 "이 사건이 137종 사건유형 중 무엇인가"가 아니라 "registry의 26개 법리 렌즈 중 어느 것이 켜지는가"이다. + 이 task가 답해야 할 질문은 "이 사건이 137종 사건유형 중 무엇인가"가 아니라 "사전 `## DOMAINS`에 실린 법리 렌즈 중 어느 것이 켜지는가"이다. 산출물은 확정이 아니라 가설이다. 확정은 하류의 `Task_D0_domain_activation_gate`가 registry 모듈을 호출하여 결정론적으로 수행한다. 본 task는 판단 4종(`status`, `candidates`, `unmatched_issue_refs`, `review_items`)과 그 판단을 검증 가능하게 만드는 최소 부속 정보만 생성한다. 닫힌 스키마 `stage1_domain_screening.v1`의 비판단 6종(`schema_version`, `registry_version`, `registry_index_sha256`, `source_document_refs`, `screening_policy`, `contract_guards`)은 본 task가 만들지 않는다. 후속 task `Task_A0_domain_screener_02`가 registry에서 직접 읽어 붙이고 스키마 검증까지 수행한다. @@ -294,7 +309,7 @@ Agent: - 필수 입력 누락, 빈 파일, 파싱 불가: 즉시 중단하고 채팅으로만 보고한다. 파일은 쓰지 않는다. - - 단어 사전의 머리말에 `registry_version`이 없거나 `## DOMAINS` 아래 도메인 절이 26개가 아니면 중단하고 `FAILED: activation_cue_digest`만 보고한다. + - 단어 사전(`Default_Agent/routing/activation_cue_digest.md`)의 내용이 대화에 없거나 비어 있으면 중단하고 `FAILED: activation_cue_digest`만 보고한다. 사전의 형식과 도메인 수는 후속 코드가 검사하므로 판단하지 않는다. - tool 오류: 원인 확인 후 1회만 재시도한다. 재실패 시 `FAILED: `만 보고하고 종료한다. - 판단이 어려운 사안을 억지로 확정하지 않는다. 판단 불가는 실패가 아니라 `review` 상태와 검토 항목으로 표현한다. @@ -308,7 +323,7 @@ Agent: - - 사전은 머리말, `## LEGEND`, `## GLOBAL_DEFAULTS`, `## USAGE`, `## DOMAINS` 다섯 부분이다. 판단에 쓰는 것은 `GLOBAL_DEFAULTS`와 `DOMAINS`이다. + - 사전은 `## LEGEND`, `## GLOBAL_DEFAULTS`, `## USAGE`, `## DOMAINS` 네 부분이다. 판단에 쓰는 것은 `GLOBAL_DEFAULTS`와 `DOMAINS`이다. - 도메인 절 머리 형식: `### | | kind= | ao=<0|1> | dep= | calc=` - 단서 줄 형식: `P|||||||` @@ -723,6 +738,7 @@ Agent: import json import re import unicodedata + from datetime import datetime, timezone import httpx @@ -828,8 +844,12 @@ Agent: def write_doc(path, content): - _call("write_file", {"path": path, "content": content, "overwrite": True}, - next_msg_id()) + # localdocs 는 실패도 정상 응답 본문의 "Error: ..." 로 돌려준다. 표식이 안 써지면 지난 파일이 남는다. + p = _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if text.startswith("Error"): + raise RuntimeError("WRITE_FAILED:%s:%s" % (path, text[:200])) # -------------------------------------------------------------------------- @@ -1069,8 +1089,6 @@ Agent: # main # -------------------------------------------------------------------------- def main(): - _init() - # ---- 입력 4종 ---- try: draft_doc = read_json(DRAFT_PATH) @@ -1390,6 +1408,11 @@ Agent: } + # 지난 실행의 screening 이 하류로 흐르지 않게 먼저 무효화한다. 성공하면 main() 이 정본으로 덮는다. + # try 밖에 두어 세션 열기·표식 쓰기의 실패는 raise 되고 백엔드 재시도를 받는다. + _init() + write_doc(OUTPUT_PATH, "SCREENING_PENDING %s\n" % datetime.now(timezone.utc).isoformat()) + try: RESULT = main() except Exception as exc: @@ -1429,6 +1452,7 @@ Agent: import json import re import unicodedata + from datetime import datetime, timezone import httpx @@ -1534,8 +1558,12 @@ Agent: def write_doc(path, content): - _call("write_file", {"path": path, "content": content, "overwrite": True}, - next_msg_id()) + # localdocs 는 실패도 정상 응답 본문의 "Error: ..." 로 돌려준다. 표식이 안 써지면 지난 파일이 남는다. + p = _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if text.startswith("Error"): + raise RuntimeError("WRITE_FAILED:%s:%s" % (path, text[:200])) # -------------------------------------------------------------------------- @@ -1548,6 +1576,13 @@ Agent: CONFIG_PATH_FMT = "Default_Agent/domains/%s/domain_config.json" OUTPUT_PATH = "routing/candidate_profile_vocabulary.md" + # A0_02 의 이번 실행 결과. 스크립트가 실패(raise)하면 백엔드가 prev 를 채우지 않아 표기가 그대로 남는다. + # FAILED 를 정상 출력한 경우는 prev 가 채워지고 written=false 로 본다. + # 백엔드가 치환하지 않도록 비교용 prev 표기는 나눠 쓴다. + PREV_PLACEHOLDER = "{" * 2 + "prev" + "}" * 2 + A0_02_TASK = "Task_A0_domain_screener_02" + A0_02_PREV_TEXT = r"""{{prev}}""" + DIGEST_SCHEMA = "candidate_profile_vocabulary.v1" # Task_A 프롬프트의 잔여 예산. §2.2 로 고정 4-profile 블록(약 9,000 B)이 @@ -1658,8 +1693,41 @@ Agent: return "\n".join(L) + "\n" + def upstream_screening(): + # A0_02 가 이번 실행에서 screening 을 썼는지 본다. 쓰지 않았으면 남은 파일은 지난 실행의 것이다. + # Part 2 previous_state 와 같은 관용이다. 백엔드(agent.py Direct MCP)는 code-executor 의 {success, output} 을 풀어 + # stdout JSON 을 결과로 두고, prev 에는 그 dict 에 json_output 키를 더해 넣는다(문자열 폴백 유지). + if A0_02_PREV_TEXT.strip() in ("", PREV_PLACEHOLDER): + fail("UPSTREAM_NO_OUTPUT", A0_02_TASK + " 의 결과가 없다(실패 또는 미실행)") + return None + try: + prev = json.loads(A0_02_PREV_TEXT) + except Exception as exc: + fail("UPSTREAM_UNPARSEABLE", "%s: %s" % (A0_02_TASK, exc)) + return None + row = prev.get(A0_02_TASK) if isinstance(prev, dict) else None + if isinstance(row, str): + try: + row = json.loads(row) + except Exception: + row = None + if isinstance(row, dict) and "status" not in row and isinstance(row.get("json_output"), dict): + row = row["json_output"] + if not isinstance(row, dict): + fail("UPSTREAM_UNPARSEABLE", A0_02_TASK + " 의 출력이 객체가 아니다") + return None + # screening 의 status 는 보지 않는다. A0_02 는 FAILED 상태의 screening 도 정상 기록한다. + if row.get("written") is not True: + fail("UPSTREAM_NOT_WRITTEN", "%s status=%s" % (A0_02_TASK, row.get("status"))) + return None + return row + + def main(): - _init() + # screening 을 읽기 전에 본다. screening 이 표식이면 아래에서 SCREENING_UNREADABLE 로 끝나기 때문이다. + upstream = upstream_screening() + if upstream is None: + return None # ---- 입력 ---- try: @@ -1688,6 +1756,11 @@ Agent: registry_index_sha256 = hashlib.sha256(registry_raw.encode("utf-8")).hexdigest() screening_sha256 = hashlib.sha256(screening_raw.encode("utf-8")).hexdigest() + # A0_02 가 쓴 본문의 sha 와 지금 읽은 원문의 sha 를 대조한다. + # 쓰기·읽기 바이트 동일성이 실측되기 전이라 경고로 둔다. 확인되면 fail(SCREENING_NOT_FROM_THIS_RUN) 으로 올린다. + if upstream.get("screening_sha256") != screening_sha256: + warn("SCREENING_SHA_UNCONFIRMED", "a0_02=%s read=%s" + % (upstream.get("screening_sha256"), screening_sha256)) registry_version = registry.get("registry_version") # 스크리닝이 어느 registry 스냅숏 위에서 만들어졌는지 확인한다. @@ -1815,6 +1888,11 @@ Agent: } + # 지난 실행의 vocabulary 이 하류로 흐르지 않게 먼저 무효화한다. 성공하면 main() 이 정본으로 덮는다. + # try 밖에 두어 세션 열기·표식 쓰기의 실패는 raise 되고 백엔드 재시도를 받는다. + _init() + write_doc(OUTPUT_PATH, "VOCABULARY_PENDING %s\n" % datetime.now(timezone.utc).isoformat()) + try: RESULT = main() except Exception as exc: @@ -1837,12 +1915,13 @@ Agent: max_iterations: 2 llm_provider: openai llm_model: 'gpt-6.1-sol' - llm_reasoning: high - # verbosity 는 medium 이다. chat.completions 의 최상위 verbosity 인자(openai SDK 3.40, low|medium|high)는 - # 기본값이 medium 이라 보내지 않아도 같다. llm_verbosity 는 쓰지 않는다. 배포 브리지가 이를 Responses 전용 - # text 인자로 바꿔 넣어 SDK 가 거부한다(Testrun/Nov_03/실패분석서_part_1.md §3.1). YAML 에는 최상위 - # verbosity 를 보낼 키가 없다(agent.py 가 읽는 llm_* 키 9종 중 verbosity 경로는 llm_verbosity 뿐). - # stage 나 실행 설정에도 llm_verbosity 를 두지 않는다. Task_A 가 상속해 같은 오류로 실패한다. + llm_reasoning: medium + llm_verbosity: low + # verbosity 는 chat.completions 최상위 인자로 간다(OpenAI API reference: chat.completions.create + # `verbosity`, low|medium|high, 기본 medium). 배포 브리지(2026-11-03 04:43) _apply_verbosity 가 completions + # 경로에서 kwargs["verbosity"] 로 넣고, SDK 3.42.1 Completions.create 가 이 인자를 받는다(text 인자는 없음). + # 11-03 오전 실패는 옛 브리지가 text= 로 넣어서였다(Testrun/Nov_03/실패분석서_part_1.md §3.1). + # llm_endpoint: responses 로 바꾸지 않는다. ttl 30m·auto 캐시 설정이 chat.completions 기준이다. cache_control: mode: auto ttl: 30m # GPT-5.6+ chat.completions 는 30m 만 받는다(SKILL §6.5.2) @@ -1863,6 +1942,7 @@ Agent: - role: user content: |- + "출력은 JSON 하나, 첫 글자는 `{`, 사고 과정·설명 금지" - You are executing one LLM sub-task inside Stage 1 of a Korean civil-litigation complaint-generation pipeline. - The current task's static block, role overlay, assigned inputs, output schema, and writer boundary control. @@ -2010,8 +2090,8 @@ Agent: - 필수 입력 누락, 빈 파일, 파싱 불가: 즉시 중단하고 채팅으로만 보고한다. 파일은 쓰지 않는다. - - `routing/domain_screening.json`의 최상위 키가 `domain_screening`이 아니거나 `candidates`가 비어 있으면 중단하고 `FAILED: domain_screening`만 보고한다. - - `routing/candidate_profile_vocabulary.md`의 `## DOMAINS` 아래 도메인 절이 스크리닝 후보 수와 다르면 중단하고 `FAILED: candidate_profile_vocabulary`만 보고한다. + - `routing/domain_screening.json`이 `SCREENING_PENDING`으로 시작하거나, 최상위 키가 `domain_screening`이 아니거나, `candidates`가 비어 있으면 중단하고 `FAILED: domain_screening`만 보고한다. + - `routing/candidate_profile_vocabulary.md`의 내용이 없거나 비어 있거나 `VOCABULARY_PENDING`으로 시작하면 중단하고 `FAILED: candidate_profile_vocabulary`만 보고한다. 도메인 절 수는 앞선 코드가 보장하므로 세지 않는다. - tool 오류: 원인 확인 후 1회만 재시도한다. 재실패 시 `FAILED: `만 보고하고 종료한다. - 판단이 어려운 항목을 억지로 확정하지 않는다. 판단 불가는 실패가 아니라 `review` 상태와 검토 항목으로 표현한다. @@ -2942,8 +3022,14 @@ Agent: stale.append(name) return sorted(set(stale)) + HANDOFF_PATH = "quality_gates/stage1_part1_soft_gate_handoff.json" + + def main(): _init() + # 판정 파일을 실행 초반에 무효화한다. handoff writer 가 돌지 못하면(취소·멈춤·하류 미실행) + # 표식이 남아 Part 2 가 지난 실행의 판정을 읽지 않는다. + write_doc(HANDOFF_PATH, "HANDOFF_PENDING %s\n" % datetime.now(timezone.utc).isoformat()) evidence_all = read_json("evidence_all.json") docs = _items(evidence_all) n = len(docs) @@ -3121,8 +3207,8 @@ Agent: - Default_Agent/routing/evidence_component_union.md llm_provider: google llm_model: gemini-3.8-flash - llm_reasoning: high - llm_verbosity: medium + llm_reasoning: medium + llm_verbosity: low cache_control: mode: auto ttl: 20m @@ -3132,6 +3218,7 @@ Agent: - role: user content: |- + "출력은 JSON 하나, 첫 글자는 `{`, 사고 과정·설명 금지" - You are executing one LLM sub-task inside Stage 1 of a Korean civil-litigation complaint-generation pipeline. - The current task's static block, role overlay, assigned inputs, output schema, and writer boundary control. @@ -3929,8 +4016,8 @@ Agent: - client_meeting.md llm_provider: google llm_model: gemini-3.8-flash - llm_reasoning: high - llm_verbosity: medium + llm_reasoning: medium + llm_verbosity: low cache_control: mode: auto ttl: 20m @@ -3940,6 +4027,7 @@ Agent: - role: user content: |- + "출력은 JSON 하나, 첫 글자는 `{`, 사고 과정·설명 금지" - You are executing one LLM sub-task inside Stage 1 of a Korean civil-litigation complaint-generation pipeline. - The current task's static block, role overlay, assigned inputs, output schema, and writer boundary control. @@ -4988,7 +5076,7 @@ Agent: llm_provider: google llm_model: gemini-3.8-flash llm_reasoning: high - llm_verbosity: medium + llm_verbosity: low cache_control: mode: auto ttl: 20m @@ -4998,6 +5086,7 @@ Agent: - role: user content: |- + "출력은 JSON 하나, 첫 글자는 `{`, 사고 과정·설명 금지" - You are executing one LLM sub-task inside Stage 1 of a Korean civil-litigation complaint-generation pipeline. - The current task's static block, role overlay, assigned inputs, output schema, and writer boundary control. @@ -6626,7 +6715,7 @@ Agent: llm_provider: google llm_model: gemini-3.8-flash llm_reasoning: high - llm_verbosity: medium + llm_verbosity: low cache_control: mode: auto ttl: 20m @@ -6636,6 +6725,7 @@ Agent: - role: user content: |- + "출력은 JSON 하나, 첫 글자는 `{`, 사고 과정·설명 금지" - You are executing one LLM sub-task inside Stage 1 of a Korean civil-litigation complaint-generation pipeline. - The current task's static block, role overlay, assigned inputs, output schema, and writer boundary control. @@ -9020,6 +9110,7 @@ Agent: import pathlib import sys import unicodedata + from datetime import datetime, timezone import httpx @@ -9127,8 +9218,12 @@ Agent: def write_doc(path, content): - _call("write_file", {"path": path, "content": content, "overwrite": True}, - next_msg_id()) + # localdocs 는 실패도 정상 응답 본문의 "Error: ..." 로 돌려준다. 표식이 안 써지면 지난 파일이 남는다. + p = _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if text.startswith("Error"): + raise RuntimeError("WRITE_FAILED:%s:%s" % (path, text[:200])) # ------------------------------------------------------------------ @@ -9297,7 +9392,6 @@ Agent: def main(): - _init() staged = materialize() report = run_module() @@ -9346,6 +9440,11 @@ Agent: } + # 지난 실행의 manifest 이 하류로 흐르지 않게 먼저 무효화한다. 성공하면 main() 이 정본으로 덮는다. + # try 밖에 두어 세션 열기·표식 쓰기의 실패는 raise 되고 백엔드 재시도를 받는다. + _init() + write_doc(OUTPUT_PATH, "MANIFEST_PENDING %s\n" % datetime.now(timezone.utc).isoformat()) + try: RESULT = main() except Exception as exc: @@ -9391,6 +9490,7 @@ Agent: CLIENT_GOAL_PATH = "client_goal.json" PARTY_ALIASES_PATH = "routing/party_aliases.json" SCREENING_DRAFT_PATH = "routing/domain_screening_draft.json" + VOCABULARY_PATH = "routing/candidate_profile_vocabulary.md" GATE_FAILURE_PATHS = {"B1": "stage1_tmp/quality_gate/B1_failure.json", "B2": "stage1_tmp/quality_gate/B2_failure.json"} PARTY_GROUP_KEYS = ("plaintiffs", "defendants", "third_parties") @@ -9993,6 +10093,42 @@ Agent: detail = str(exc)[:300] if not draft_ok: out.append({"gate": "A0", "status": "SCREENING_DRAFT_UNREADABLE", "detail": detail}) + # A0_02·A0_03·D0 는 시작할 때 산출물에 *_PENDING 표식을 쓰고 성공해야 정본으로 덮는다. + # 초안이 정상이어도 A0_02 검증이 실패하면 표식이 남으므로 산출물 자체를 본다. + screening_raw = None + try: + screening_raw = read_raw(SCREENING_PATH) + screening_doc = parse_json(screening_raw, SCREENING_PATH) + screening_ok = isinstance(screening_doc, dict) and isinstance(screening_doc.get("domain_screening"), dict) + detail = "domain_screening missing" + except Exception as exc: + screening_ok = False + detail = str(exc)[:300] + if not screening_ok: + out.append({"gate": "A0", "status": "SCREENING_UNREADABLE", "detail": detail}) + try: + vocabulary_raw = read_raw(VOCABULARY_PATH) + vocabulary_ok = (not vocabulary_raw.lstrip().startswith("VOCABULARY_PENDING") + and "## DOMAINS" in vocabulary_raw) + detail = vocabulary_raw[:120] + except Exception as exc: + vocabulary_raw = None + vocabulary_ok = False + detail = str(exc)[:300] + if not vocabulary_ok: + out.append({"gate": "A0", "status": "VOCABULARY_UNREADABLE", "detail": detail}) + elif screening_ok: + # A0_03 은 읽은 screening 원문의 sha 를 머리말에 적는다. 다른 실행의 파일이 섞였는지 본다. + m = re.search(r"^screening_sha256: `([0-9a-f]{64})`", vocabulary_raw, re.M) + current = digest(screening_raw) + if not m or m.group(1) != current: + out.append({"gate": "A0", "status": "VOCABULARY_STALE", + "detail": {"vocabulary_screening_sha256": m.group(1) if m else None, + "screening_sha256": current}}) + try: + parse_json(read_raw(ACTIVATION_MANIFEST_PATH), ACTIVATION_MANIFEST_PATH) + except Exception as exc: + out.append({"gate": "D0", "status": "MANIFEST_UNREADABLE", "detail": str(exc)[:300]}) return out def write_blocked_sidecar(gate_failures: list[dict[str, Any]]) -> None: @@ -10402,8 +10538,9 @@ Agent: max_iterations: 1 llm_provider: google llm_model: gemini-3.8-flash - llm_reasoning: medium - llm_token_limit: 32000 + llm_reasoning: low + llm_verbosity: low + llm_token_limit: 65536 cache_control: mode: auto ttl: 20m @@ -10424,6 +10561,7 @@ Agent: ## [SYSTEM] 너는 대한민국 민사소송 증거문서에서 **가액·금액·수치 사실**을 옮겨 적는 기록원이다. 판단하지 않고, 계산하지 않고, 문서가 적은 것을 문서가 부른 이름으로 기록한다. 법적 의미(피보전채권인지, 공제 대상인지, 소가에 들어가는지)는 다음 단계가 정한다. + "출력은 JSON 하나, 첫 글자는 `{`, 사고 과정·설명 금지" ### 1. 무엇을 레코드로 만드는가 diff --git a/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8_11_03_4Pm.yml b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8_11_03_4Pm.yml new file mode 100644 index 00000000..40060286 --- /dev/null +++ b/Case_02_Comparison_Research/YAML_Prompts/1. Stage_1/v.8/stage_1_part_1_v.8_11_03_4Pm.yml @@ -0,0 +1,11413 @@ +# ============================================================================= +# Liti-agent Stage 1 Part 1 v.8 — 증거 기반 · 목표 · 도메인 확정 (통합 실행본) +# +# 정본 근거 +# 전체 DAG : stage_1_update_strategy.md §1 Part 1 블록 +# 개정 명세 : P1-T2_to_T9_update_strategy.md §1~§4 +# 조립 명세 : stage_1_part_1_완성용_작업명세서.md §3 (16 슬라이스) +# 설계 판정 : P1-T2_to_T9_선결작업수행결과/01_설계판정/P0_설계판정_결정문서.md +# 계측 재정의 : 같은 폴더 02_계측재정의/P2_계측통로_재정의.md +# +# 구성 — task 29종 (v3 대비 +20 신설 · 9 개정 · 0 무변경). 2026-10-30 V 사슬 5종 신설, 기존 13종 코드 무변경. +# 2026-11-02 A0·B1·B2 를 V1 구조(도구 없는 1회 호출 + 코드 저장)로 전환, capture 3종 신설. 게이트 코드 무변경. +# 2026-11-03 캐시 경계 개정·Task_A·B12 1회 호출 전환·복구 경로 추가(복구 6종, capture 2종 신설, 게이트·T9 수정). +# [신설] Task_A0_domain_screener_01 / 02 / 03 ver_8 후보본 +# [신설] Task_A0c_domain_screener_capture 2026-11-02 V1c 패턴 +# [개정] Task_A_client_goal Task_A_client_goal_v4.yml + 2026-11-03 구조 전환 +# [신설] Task_Ac_client_goal_capture 2026-11-03 A0c 복제 +# [개정] Task_Evidence_shard_planner v3 622-945 + 2026-11-03 오후 part 표식 +# [개정] Task_B1_map_doc_* T3_Task_B1_map_doc_v4.yml +# [신설] Task_B1c_map_doc_capture_* 2026-11-02 V1c 패턴 +# [개정] Task_B2_map_events_* v3 1540-2204 + 2026-11-02 구조 전환 +# [신설] Task_B2c_map_events_capture_* 2026-11-02 V1c 패턴 +# [신설] Task_B1r_repair_planner / Task_B1r_map_doc_* / Task_B1rc_map_doc_capture_* 2026-11-03 복구 +# [신설] Task_B2r_repair_planner / Task_B2r_map_events_* / Task_B2rc_map_events_capture_* 2026-11-03 복구 +# [개정] Task_B1_quality_gate_evidence_indexed v3 2205-2802 + 2026-11-03 B1_failure.json +# [개정] Task_B2_quality_gate_event_candidates v3 2803-3519 + v.8 R5(CHECK 3 정본 id 부여) + 2026-11-03 B2_failure.json +# [개정] Task_B12_gate_llm_adjudicator v3 3520-3679 + 2026-11-03 구조 전환 +# [신설] Task_B12c_gate_adjudication_capture 2026-11-03 A0c 복제 +# [개정] Task_B12_gate_audit_finalizer v3 3680-4041 + 2026-11-03 no_suspects 표시 +# [신설] Task_D0_domain_activation_gate ver_8 후보본 (정정본) +# [개정] Task_B2_SHA256_soft_gate_handoff_writer T9_..._v4.yml (2026-10-30: nexts 에 V3 추가, 2026-11-03: 게이트 미통과 시 BLOCKED) +# [신설] Task_V0_value_facts_input_planner 가액금액_포함_작업구조도개정_계획서.md §2 +# [신설] Task_V1_value_facts_* 가액금액_정보추출_프롬프트.md [SYSTEM] (full 모드) +# [신설] Task_V1c_value_facts_capture_* S2_10 capture 패턴 +# [신설] Task_V2_value_facts_gate_merger assets_for_stage_1/value_facts/v4 gate_check.run_gate +# [신설] Task_V3_value_facts_party_linker T9 norm_name 복사 +# +# 개정 요지 +# 2026-11-03 오후 실행 실패 수정 (Testrun/Nov_03/실패분석서_part_1.md §5 의 1~3) +# Task_A: llm_verbosity 삭제. 브리지가 chat.completions 에도 text 인자를 넣어 SDK 가 거부했다. +# chat.completions 의 verbosity 기본값이 medium 이라 출력 설정은 같다. +# capture 7종 extract: prev 표기가 치환되지 않았거나 비었으면 UPSTREAM_NO_OUTPUT 으로 표시한다. +# 표식 동작(비JSON 쓰기)은 그대로다. +# Task_A cache_control ttl 20m -> 30m(백엔드가 보내던 값과 같다). planner write_doc 이 쓰기 실패를 raise 한다. +# shard planner: READY 이면 계획한 B1·B2 part 경로에 PART_PENDING 표식을 먼저 쓴다. +# 취소된 실행이 남긴 지난 part 를 정상으로 읽지 않게 한다. +# 2026-11-03 캐시·복구 개정 (Stage 1 - Part 1 캐시 최적화 개정 및 코드 오류 수정 방안.md) +# 캐시 경계: Gemini 브리지는 줄 시작
를 먼저 찾고, 없으면 앞에서 자른다. +# B1·B2 는 닫는 태그를 앞줄 끝에 붙이고, 고정 지시를 TAIL 앞으로, 값은 TAIL 의 RUNTIME_PARAMETERS 로 모았다. +# 지시 내용은 그대로이고 `{{item.*}}` 표기만 고정 문구로 바꿨다. TAIL 앞에 변수를 다시 넣으면 인스턴스마다 캐시가 갈린다. +# V1 은 TAIL 이 없어 고정부를 이중 전송했으므로 TAIL 만 더했다. +# Task_A·B12: 도구 없는 호출 + capture. Task_A 만 max_iterations 2 + terminate(빈 응답 1회 재호출, 온라인 확인 필요). +# Task_A 의 preflight: false 는 옛 96,000 바이트 상한 때문이었고 그 상한은 2026-08-20 삭제됐다. +# A0_01 은 prev 가 없어 백엔드가 max_iterations 를 적용하지 않고 8회까지 돈다. override 에 terminate 를 넣었다. +# B12 는 B2 게이트의 exception_count > 0 전이로만 돈다. cache_control 은 지우면 프롬프트 앞부분이 사라진다. +# 복구: 빈 응답은 예외가 아니라 백엔드 재시도를 받지 못한다. B1r·B2r planner 가 고장 part 만 1회 다시 만든다. +# 실패 표시: 게이트가 stage1_tmp/quality_gate/B{1,2}_failure.json 을 RUNNING 으로 시작해 CLEARED 로 끝낸다. +# 백엔드는 실패한 부모 뒤 자식을 실행하므로 B2 게이트와 T9 가 이 파일로 멈춘다(T9 는 BLOCKED handoff 기록). +# T9 는 client_goal.json 이 깨져도 BLOCKED 로 기록한다. B2r 는 방안의 'B1 복구 뒤'보다 늦은 B1 게이트 뒤에서 기다린다. +# 남은 위험: repair planner 의 run_code 자체가 실패하면 aggregate 가 풀리지 않아 run 이 멈춘다(백엔드 수정 필요). +# A0_03 이 FAILED 면 Task_A 도 prev 가 없어 max_iterations 가 적용되지 않고 8회까지 돈다(terminate 로 멈춤). +# 게이트 _init() 이 실패하면 지난 CLEARED 가 남는다(확률 낮음, 미처리). Task_A ttl 은 30m 이다(2026-11-03 오후, 20m 은 백엔드가 30m 으로 바꿔 보냈다). +# 2026-11-02 구조 전환 (Testrun/Nov_02/실패분석서_part_1.md) +# A0_01·B1·B2: expose_tools false, max_iterations 1, llm_result_envelope true. LLM 은 JSON 을 응답으로만 내고 +# capture 가 기존 경로에 쓴다. 파일 경로·스키마 불변이라 게이트와 A0_02 는 그대로 읽는다. +# 프롬프트 본문은 바이트 불변이고 끝에 만 덧붙였다(입출력 방식 지시). +# capture 실패 표식은 비JSON 이라 게이트의 parse_failures 또는 A0_02 의 DRAFT_UNREADABLE 로 나타난다. +# planner 의 fanout_meta·streaming_edges·barriers 는 소비처 없는 기록용이라 그대로 뒀다. +# 전환으로 달라진 동작: 전에는 빈 응답이면 다음 회차로 넘어갔으나, 이제 표식이 되고 LLM 은 다시 부르지 않는다 +# (백엔드 재시도는 예외가 난 호출만 받는다). A0 는 2026-11-03 부터 terminate 가 없으면 다시 호출된다. +# 실주행 확인 필요: LLM 인스턴스 FAILED 뒤 capture 기동 여부, 빈 응답 빈도, run_code 코드 크기 상한(B2c). +# T0 3종 스크리너 사슬 신설. 02 가 01 의 초안을 봉인하고 03 이 후보 어휘를 압축한다. +# T1 domain_profiles 를 도메인ID 키 개방형으로. 스키마는 정적 자산으로 분리. +# T3 증거 구성요소 어휘를 registry 합집합 참조로. v3 구조 어휘와 병존(P0 판정 A)하며 +# part 파일에 registry_component_ids 슬롯 1개를 additive 로 더한다(P0 판정 B). +# schema_contract_version 은 evidence_indexed_part.v4 유지 — 순수 additive 다. +# D0 판정 로직을 YAML 에 쓰지 않는다. stage1_runtime/activation_gate.py 를 반입해 호출하고 +# signals/adapters/sg01_activation_adapter.py 로 자기검증한다. 결정 필드는 +# execution_eligible 하나뿐이다(D-3 넓은 정의). +# T9 봉인 사전에 세 해시 추가(screening / activation_manifest / registry_index). +# 원문 sha256 이므로 read_raw 를 쓴다. unwrap_text 재직렬화 금지. +# schema_version 은 stage1_part1_soft_gate_handoff.v1 유지 — 역시 additive 다. +# T9(v.8 alias) client_goal.parties 를 canonical 로 삼아 증거·사건의 당사자 표기 변형을 집계한 +# routing/party_aliases.json 을 handoff 직전에 1회 쓴다(aliases / alias_candidates / +# succession_candidates). digest 7 키·handoff 바이트·client_goal.json 은 불변. T1 -> T9 변 추가. +# 보조 산출물이므로 집계 실패는 error 필드로 남기고 handoff 기록을 막지 않는다. +# T4/T6(v.8 OBLIGEE) 사건 후보에 additive 필드 obligation_direction{obligee_candidates, obligor_candidates} 추가. +# 문서가 채권 자체의 채권자·채무자를 직접 특정할 때만 채운다(stage_1_OBLIGEE_개정방안.md §2~§3). +# T6 CHECK 6 는 비차단(R-SELFWARN 재사용). schema_contract_version·DAG·B12 지침·digest 키 불변. +# T4 r2(2026-10-07) 방향 규칙을 event_kind 매핑 양성 조건으로 교체(채권발생·채권관리·amount 있는 통지만 채움), 빈 상수·예시 4개를 +# 출력 템플릿 옆으로 이동, self-validation invariant 7(누락 시 빈 상수 삽입 보정) 추가, T3·T4 llm_model gemini-3.5-flash-lite. +# T6 R5(2026-10-10) CHECK 3 에서 형식·ordinal 이탈 candidate_id_proposed 를 part 내 순번으로 EVT-{o}-{seq:02d} 정본 부여(제자리 치환, +# precheck·audit checks[candidate_id_collision].id_normalizations 기록, severity HARD_WARNING; 치환 후 중복만 hard). +# 실패분석_stage_1_part_2_v.8.md §4 F-1. mapper 프롬프트·CANDIDATE_ID_RE·최종 파일 스키마·보존 불변식 불변. +# +# V(2026-10-30) 금액의 출처를 하나로 모은다. 정본은 gate 를 통과한 value_facts.json 이다(원문에 있다는 것까지만 보증). +# 산출: value_facts_inputs/ · value_facts_input_plan.json · value_facts_parts/ · value_facts.json · +# quality_gates/value_facts_gate.json(출처 지문) · value_facts_party_links.json. 기존 B1·B2 금액 칸은 대조용으로 남긴다. +# T9 봉인 7 키·handoff 바이트 불변(value_facts 실패가 사건 handoff 를 막지 않는다). 하류 대조는 +# gate.source_fingerprint.evidence_indexed_sha256 == handoff digest_guard.evidence_indexed_sha256 으로 한다. +# V 자산은 Default_Agent/value_facts/v4/MANIFEST.json 의 sha256 으로 대조한다(runtime_manifest 아님). +# party_ref 는 client_goal 성명이다(당사자 id 없음). 어휘 party_refs 설명("당사자 정본 ID") 문구 수정은 다음 자산 개정으로 미룬다. +# Stage 2 수용 조건: gate.status ∈ {READY, READY_WITH_REVIEW} · gate.run_id == value_facts.run_id · +# gate.value_facts_sha256 == sha256(value_facts.json) · 위 evidence_indexed_sha256 일치. 하나라도 어긋나면 쓰지 않는다. +# OUT 은 T9 와 V3 를 함께 기다린다. V 사슬이 멈춰 run 이 끝나지 않아도 T9 가 쓴 handoff 는 유효하다. +# 실주행 확인 필요(probe): (1) V1 인스턴스 1건 실패·시간 초과 시 all V1c_* 대기와 OUT 도달 여부 — 멈추면 OUT.wait 에서 V3 를 뺀다, +# (2) B1/B2 와 V1/V1c 두 fan-out 이 동시에 돌 때 {same_ordinal} 짝과 all V1c_* 집계, (3) T9 실패 시 V3 미기동 후 종료 상태, +# (4) V1 MODEL_INCOMPLETE 빈도(나오면 llm_reasoning 을 medium 으로). +# +# 모듈 반입 규약 (localdocs 가 .py 를 서빙하지 않아 도입한 우회책) +# 모든 .py 에는 같은 디렉터리에 바이트 동일한 .txt 형제 미러가 배포된다. +# 빌더 규칙이며 예외는 build_default_agent_stage1.py 하나다. 미러는 정본 옆에 놓이므로 +# sg01_activation_adapter 의 미러는 signals/adapters/ 에 있다(stage1_runtime/ 이 아니다). +# 반입 시 sha256 을 Default_Agent/runtime_manifest.json 과 대조하고, 불일치면 실행하지 않는다. +# +# 정적 자산 선행 조건 (P1-T2_to_T9_update_strategy.md §0.2 — 전부 충족) +# Default_Agent/stage1_runtime/activation_gate.py +# Default_Agent/platform/schemas/client_goal_domain_profiles.schema.json +# Default_Agent/routing/activation_cue_digest.md +# Default_Agent/routing/evidence_component_union.md +# Default_Agent/platform/contracts/determinism_scope_contract.json +# Default_Agent/value_facts/v4/{MANIFEST.json, value_facts_vocab_block.v4.full.txt, +# value_facts_gate_rules.v4.json, value_normalize_lexicon.json, gate_check.txt} (V 사슬, 2026-10-30 신규 배포) +# +# 이 파일은 스테이지 하나다. 스테이지 선언 1벌 · task_procedure 1벌 · tasks 1벌. +# 조각 후보본들이 각자 갖고 있던 Agent/Stages 머리와 자기 task_procedure 는 전부 걷어냈다. +# mcpServers 합집합은 {localdocs, code-executor} 이며 v3 머리가 이미 둘 다 선언한다. +# ============================================================================= +Agent: + name: Liti-agent_Civil_Suit_Plaintiff_Stage_1_Part_1 + description: 민사소송 원고 송무 초지능 AI변호사 - Stage 1 Part 1 기초작업 + version: v.2 + + Stages: + - name: stage1_사건개요파악_기초작업 + description: 사건개요 파악, 기초정보 추출 + llm_provider: openai + llm_model: gpt-4o-2024-08-06 + tools: + mcpServers: + localdocs: + type: streamable-http + url: "http://mcp-localdocs:8012/mcp" + description: Get the content of local documents + code-executor: + type: streamable-http + url: https://code-executor.mcp.eroomai.com/mcp + description: Run scripts of programming languages + headers: + Authorization: Bearer rR8OXqWrVZA1gFEo8oWfBkw2XgpWoGrrspw5ObsxTCM= + + tasks: + - task_name: Task_A0_domain_screener_01 + # 도구 없는 호출. 응답 봉투는 Task_A0c 가 저장한다. 이 task 는 prev 가 없어 백엔드가 아래 값을 적용하지 않고 + # 기본 8회로 돈다(prev 가 있을 때만 설정으로 재생성한다). 그래서 응답 끝 terminate 로 멈춘다. + max_iterations: 1 + llm_provider: google + llm_model: 'gemini-3.8-flash' + llm_reasoning: medium + llm_verbosity: low + cache_control: + mode: auto + ttl: 1h + use_tools: + - localdocs + # preflight: true + preflight_files 화이트리스트. + # 화이트리스트를 명시하면 프롬프트 본문 regex 스캔이 꺼지고 이 두 경로만 + # 미리 읽힌다. 입출력 통제는 유지되면서, 정적 경로인 단어 사전이 캐시 + # 공유 영역에 inline 되어 매 실행 35KB 를 다시 태우지 않는다. + # 도구는 preflight 읽기에만 쓴다. LLM 에는 노출하지 않는다. + expose_tools: false + preflight: true + llm_result_envelope: true + preflight_files: + - Default_Agent/routing/activation_cue_digest.md + - client_meeting.md + prompts: + - role: user + content: |- + + + - You are executing one LLM sub-task inside Stage 1 of a Korean civil-litigation complaint-generation pipeline. + - The current task's static block, role overlay, assigned inputs, output schema, and writer boundary control. + - This common prefix cannot expand the current task's input set, output set, legal domain, validation authority, writer authority, or reasoning depth. + - If any common rule appears broader than the current task, apply only the narrower current-task version. + - Stage 1 prepares verified structured artifacts. Do not draft complaint prose or final counsel-level conclusions unless the current task explicitly authorizes a validation or gate conclusion. + + + + - Use only assigned files, provided context inputs, prior outputs, and allowed tools. + - Do not import facts, law, procedural history, parties, dates, amounts, IDs, document contents, or source meanings from memory, outside knowledge, or unassigned files. + - Treat prior outputs as authority only to the extent the current task names them or provides them as context. + - If a value is unsupported, missing, conflicting, stale, or out of scope, use only the current schema's allowed null, empty, unknown, warning, blocked, or needs_review path. + + + + - Preserve exact source identifiers required by the current schema. + - Maintain separation among raw fact, inferred fact, legal signal, evidence support, fact support, validation issue, and final gate decision when the current schema distinguishes them. + - Do not upgrade meeting-only or indirect material into direct proof. + - Do not silently resolve material conflicts. If the current schema has a conflict or uncertainty field, use it; otherwise stay within the task's allowed warning or review path. + + + + - Follow required JSON shape, key names, enum values, ordering, file names, and status strings exactly. + - Do not add arbitrary keys, prose, markdown fences, alternative files, unauthorized repair, or explanatory material outside allowed fields. + - Create, mutate, normalize, merge, or finalize IDs only when the current task explicitly authorizes it. + - Write final files only when the current task is the authorized writer. Validators and guards report issues in their own authorized schema and do not silently repair unless instructed. + + + + - Prefer the current prompt and schema, assigned structured upstream artifacts, compact indexes, ledgers, manifests, bundles, and gates. + - Read raw evidence or meeting text only when the current task requires direct provenance, ambiguity resolution, or a schema-required value missing from structured artifacts. + - For map or projection tasks, process only the assigned item, domain, or batch. Reducers aggregate only the inputs assigned to them. + - Do not restate, summarize, cite, or copy this common prefix in any output. + + + + - Return only the requested structured artifact, concise allowed rationale fields, validation notes, or status object. + - Keep chain-of-thought private. + - Stop when the current schema is complete and safe. + + + + + - Fill only slots that the current extraction, mapping, support, or projection schema asks for. + - Treat legal labels, party assertions, meeting narrative, and upstream candidates as routing signals only, not proof by themselves. + - Preserve the strongest source IDs and locators required by the current schema; do not quote long passages unless asked. + - Separate raw fact, inferred fact, support signal, and review note when the schema distinguishes them. + - If a source conflict is visible, preserve it only through the current schema's allowed uncertainty, warning, or review field. Do not classify full contradiction severity here. + - Do not perform norm search, final legal-effect classification, merits judgment, cross-domain merge, or final writer repair unless the current task explicitly requires it. + - Stop after the assigned item, evidence shard, domain, batch, support file, or fact-support projection is complete. + + + + + Task_A0_domain_screener_01 + + You are an MCP-enabled LLM agent assisting plaintiff-side Korean civil/commercial litigation counsel. + + + `client_meeting.md`와 `Default_Agent/routing/activation_cue_digest.md` 두 개만 읽고 `routing/domain_screening_draft.json`을 생성한다. + 이 task가 답해야 할 질문은 "이 사건이 137종 사건유형 중 무엇인가"가 아니라 "registry의 26개 법리 렌즈 중 어느 것이 켜지는가"이다. + 산출물은 확정이 아니라 가설이다. 확정은 하류의 `Task_D0_domain_activation_gate`가 registry 모듈을 호출하여 결정론적으로 수행한다. + 본 task는 판단 4종(`status`, `candidates`, `unmatched_issue_refs`, `review_items`)과 그 판단을 검증 가능하게 만드는 최소 부속 정보만 생성한다. + 닫힌 스키마 `stage1_domain_screening.v1`의 비판단 6종(`schema_version`, `registry_version`, `registry_index_sha256`, `source_document_refs`, `screening_policy`, `contract_guards`)은 본 task가 만들지 않는다. 후속 task `Task_A0_domain_screener_02`가 registry에서 직접 읽어 붙이고 스키마 검증까지 수행한다. + 본 task의 산출물은 개방형 초안이므로 닫힌 스키마의 필드 집합에 구속되지 않는다. 다만 `candidates` 배열의 각 원소는 닫힌 스키마의 후보 객체와 키 구성이 정확히 같아야 한다. 후속 task가 변형 없이 그대로 복사하기 때문이다. + + + + + - In this task, `provisional_status` and `confidence` are meeting-grounded routing hypotheses, not legal conclusions. + - The EXTRACTION overlay's prohibition on final legal-effect classification does not prohibit the schema-authorized `provisional_status`, `confidence`, or `requested_calculation_domains` fields. + - The overlay's prohibition on norm search remains absolute here. 법령·판례·조문 검색과 인용은 어떤 형태로도 금지한다. + - 본 task는 final writer가 아니다. `FINAL_WRITER_REDUCER` 오버레이는 본 task에 적용되지 않으며, 어떤 최종 산출물도 확정하지 않는다. + + + + + - `client_meeting.md` — 유일한 사실 원천 + - `Default_Agent/routing/activation_cue_digest.md` — 단어 사전(라우팅 어휘). 사실 원천이 아니다. + + + - `routing/domain_screening_draft.json` + + + - `list_docs` : 입력 2종의 존재 확인과 출력 1종의 생성 확인에만 쓴다. + - `write_file` : `routing/domain_screening_draft.json` 한 경로에만 1회 쓴다. + - `read_docs` : 원칙적으로 쓰지 않는다. 두 입력은 preflight로 이미 제공되어 있다. preflight 내용이 제공되지 않은 경우에 한하여 위 두 경로에만 1회 쓴다. + + + - 위 화이트리스트 밖의 어떤 파일도 읽지 않는다. 특히 `Default_Agent/domains/*/domain_config.json` 원본 26개를 직접 읽지 않는다. + - `Default_Agent/validation_assets/routing/case_kind_domain_matrix.v2.json`을 읽지 않는다. 사건유형 이름을 담은 오프라인 회귀 전용 자산이며 런타임 입력이 금지되어 있다. + - `routing/domain_screening.json`을 만들거나 건드리지 않는다. 그 파일은 후속 task의 산출물이다. + - 중간 파일 생성, 산출물 재읽기, `write_file` 2회 이상 호출. + - 사건유형 명칭, 당사자 이름, 사건번호를 라우팅 판단의 근거로 삼기. + - 최종 법률효과 판단, 단일 도메인 확정, 승패 예측, 청구금액 산정, 법령·판례 검색. + - 닫힌 스키마에 없는 필드명 사용: `track_hypothesis`, `domain_hypotheses`, `relief_mode_hints`, `computation_hints`, `matched_cues`, `notes_kr`. + - 비판단 6종(`schema_version`, `registry_version`, `registry_index_sha256`, `source_document_refs`, `screening_policy`, `contract_guards`)을 초안에 넣기. + - 단어 사전에만 있고 상담록에 없는 표현을 사실처럼 근거로 삼기. + + + + + 1. `list_docs`로 `client_meeting.md`와 `Default_Agent/routing/activation_cue_digest.md`의 존재만 확인한다. + 2. preflight로 제공된 두 파일의 내용을 쓴다. 제공되지 않은 경우에 한하여 `read_docs`를 1회 호출한다. + 3. ``에 따라 상담록을 source unit으로 나누고 각 unit에 `MTG.*` 식별자를 부여한다. + 4. ``로 사전을 해석한다. + 5. `` → `` → `` → `` → `` 순서로 판단 4종을 만든다. + 6. ``를 적용하고 ``를 자기점검한다. + 7. 메모리에서 초안 객체를 만들고 `write_file(overwrite=true)`로 `routing/domain_screening_draft.json`에 저장한다. + 8. `list_docs`로 `routing/domain_screening_draft.json` 존재만 확인한다. 절대 읽지 않는다. + 9. 정확히 `"도메인 스크리닝 초안 생성 완료"`만 출력하고 종료한다. + + + + - 필수 입력 누락, 빈 파일, 파싱 불가: 즉시 중단하고 채팅으로만 보고한다. 파일은 쓰지 않는다. + - 단어 사전의 머리말에 `registry_version`이 없거나 `## DOMAINS` 아래 도메인 절이 26개가 아니면 중단하고 `FAILED: activation_cue_digest`만 보고한다. + - tool 오류: 원인 확인 후 1회만 재시도한다. 재실패 시 `FAILED: `만 보고하고 종료한다. + - 판단이 어려운 사안을 억지로 확정하지 않는다. 판단 불가는 실패가 아니라 `review` 상태와 검토 항목으로 표현한다. + + + + - 사실 원천은 `client_meeting.md` 하나뿐이다. + - `Default_Agent/routing/activation_cue_digest.md`는 사실 원천이 아니다. 무엇을 찾을지 알려주는 라우팅 어휘 목록이다. 사전의 `match_value` 문구를 상담록의 대응 서술 없이 근거로 인용하면 그것은 환각이다. + - 상담록의 문장들을 조합해 새로운 사실을 만들지 않는다. 상대방 주장은 주장으로만, 희망사항은 희망으로만 취급한다. + - 상담록에만 있는 내용은 증거가 아니다. 증거 승격은 하류 단계의 권한이며 본 task는 그 판단을 하지 않는다. + - 사건유형 이름을 사실 권위로 쓰지 않는다. 라우팅은 구조화된 단서와 서술로만 한다. + + + + - 사전은 머리말, `## LEGEND`, `## GLOBAL_DEFAULTS`, `## USAGE`, `## DOMAINS` 다섯 부분이다. 판단에 쓰는 것은 `GLOBAL_DEFAULTS`와 `DOMAINS`이다. + - 도메인 절 머리 형식: `### | | kind= | ao=<0|1> | dep= | calc=` + - 단서 줄 형식: + `P|||||||` + `N|||||||` + `C|||` + `OVR|=|...` + - `` 코드는 두 개뿐이다. `DR`=confidence_downrank_only, `MR`=monitor_review. + - `` 코드 `SP`/`SU`는 하류 단계의 조회 위치 표시다. 본 task는 상담록만 보므로 `src` 값을 이유로 단서를 배제하지 않는다. + - `OVR` 줄이 있으면 그 도메인에 한하여 `GLOBAL_DEFAULTS`를 덮어쓴다. 값 `absent`는 원본에 그 키가 없다는 뜻이므로 그 임계값 판정을 적용하지 않는다. + - 모든 충돌 단서의 효과는 `hard_review`이며 그래서 `C` 줄에서 생략되어 있다. + - 사전에 없는 도메인 ID, 단서 ID, 검토 코드, 계산 ID는 만들지 않는다. + + + + - 상담록을 문단 단위 source unit으로 나누고 각 unit에 다음 형식의 식별자를 부여한다. + `MTG.
.<사건군 2자리>.<항 2자리>` + - `
`은 세 값만 쓴다. 【상담내용】=`FACT`, 【사건관계인의 주장】=`OPP`, 【의뢰인의 희망사항】=`WISH`. + - `<사건군 2자리>`는 그 섹션 안의 `1.`~`9.` 번호를 두 자리로 채운 값이다. 사건군에 속하지 않는 문단은 `00`. + - `<항 2자리>`는 `가.`=`01`, `나.`=`02`, `다.`=`03`, `라.`=`04`, `마.`=`05`, `바.`=`06`, `사.`=`07`, `아.`=`08` 순서다. 항 구분이 없는 문단은 `00`. + - 상담일지 머리표(사무소·연락처·접수번호·상담일자·의뢰인 표)는 문단마다 자르지 않고 `MTG.META.01` 한 단위로 접는다. 상담일자와 의뢰인 값은 그 안에 보존된 것으로 본다. + - 예시: 【상담내용】 `2.` 사건군의 `라.` 문단 → `MTG.FACT.02.04`. 【사건관계인의 주장】 `5.`의 항 구분 없는 문단 → `MTG.OPP.05.00`. 【의뢰인의 희망사항】 `3.` → `MTG.WISH.03.00`. 【상담내용】의 사건군 앞 머리 문단 → `MTG.FACT.00.00`. + - 식별자는 반드시 `^[A-Za-z][A-Za-z0-9_.:/-]{0,255}$`를 만족해야 한다. 한글, 공백, 대괄호, `#`을 쓰지 않는다. + - 어떤 문단도 버리지 않는다. 위 규칙에 맞지 않는 문단은 `MTG.RAW.<3자리 일련번호>`로 부여하고 `review_items`에 `SCREENING_SOURCE_UNIT_FALLBACK`를 남긴다. + - 부여한 전체 목록을 `source_unit_index`에 문서 등장 순서대로 기록한다. 이 목록이 본 task가 살펴본 원천의 전부이며, 후속 task가 같은 규칙으로 독립 재산출하여 대조한다. + - 후속 task가 `source_document_refs`를 만든다. 본 task는 그 필드를 만들지 않는다. + + + + - 각 source unit을 읽고 사전의 긍정 단서 `match_value`에 대응하는 서술이 그 unit에 있는지 판단한다. + - 대응이 인정되면 그 도메인 후보의 `positive_refs`에 해당 unit 식별자를 넣는다. 단서 ID(`E13-P01` 같은 값)는 `positive_refs`에 넣지 않는다. 그 배열은 원천 식별자만 담는다. + - 어떤 단서가 근거였는지는 `reasoning_summary`에 단서 ID로 적는다. + - 단서 하나에만 걸린 상태로 후보를 세우지 않는다(`single_keyword_activation_forbidden`). 서로 다른 단서 두 개 이상 또는 서로 다른 source unit 두 개 이상이 필요하다. + - `cue_type`이 `evidence_component`인 단서는 그 자료의 존재가 상담록에 직접 언급된 경우에만 인정한다. 있을 법하다는 추론으로 인정하지 않는다. + - 한 unit이 여러 도메인에 동시에 걸릴 수 있다. 배타적으로 하나만 고르지 않는다. + - 사건유형 명칭, 당사자 이름, 사건번호는 어떤 경우에도 매칭 근거가 되지 않는다. + + + + - 도메인별로 걸린 긍정 단서의 `weight`를 합산한다. 같은 단서가 여러 unit에서 걸려도 1회만 계산한다. + - 합이 `leaf_activation_threshold` 이상이면 `candidate`, `monitor_threshold` 이상이면 `monitor`로 본다. 기본값은 각각 1.0과 0.5이며 `OVR` 줄이 있으면 그 값을 쓴다. + - 임계값은 registry가 정한 참고값이며 판정 권한이 없다. 임계값에 못 미쳐도 강한 서술이 있으면 `monitor` 또는 `review`로 보존한다. 임계값을 넘었다는 사실만으로 `candidate`를 확정하지도 않는다. + - 네 상태의 뜻은 다음과 같다. + `candidate` — 이 도메인이 독자 쟁점으로 켜질 만한 서술이 있다. + `supporting` — 독자 쟁점은 아니나 다른 도메인의 요건을 뒷받침한다. 다른 도메인의 `dep=`에 등장하는 선행 도메인이 주로 여기에 온다. + `monitor` — 가능성은 있으나 서술이 얇다. 삭제하지 않고 감시한다. + `review` — 판단이 갈리거나 충돌 단서가 걸렸다. + - `confidence`는 `high|medium|low` 세 값이다. 강한 단서 두 개 이상이면 `high`, 강한 단서 하나이거나 보조 단서 위주이면 `medium`, 부정 단서로 낮춰졌거나 서술이 얇으면 `low`로 본다. + - `ao=1`인 도메인(E-00, X1, X2, X3)은 상시 활성 대상이다. 단서가 걸리지 않아도 후보 목록에서 누락시키지 않으며, 대응 서술이 없으면 `monitor`와 `low`로 남긴다. + - `reasoning_summary`는 1자 이상 1200자 이하다. 어떤 단서 ID가 어느 unit에서 걸렸는지와 상태를 그렇게 정한 이유만 적는다. 법률 결론, 승패 전망, 조문 인용을 적지 않는다. + - `final_determination_forbidden`은 모든 후보에서 `true`이다. + + + + - 부정 단서가 걸리면 해당 unit 식별자를 `negative_refs`에 넣는다. + - `DR`은 `confidence`만 한 단계 낮춘다. `high`→`medium`, `medium`→`low`, `low`는 그대로 둔다. + - `MR`은 `provisional_status`를 `monitor`로 옮긴다. + - 어느 경우에도 후보를 목록에서 삭제하지 않고, `provisional_status`를 `candidate`에서 두 단계 넘게 내리지 않는다(`candidate_downgrade_forbidden`). + - 충돌 단서가 걸리면 해당 unit 식별자를 `conflict_refs`에 넣고, 그 `C` 줄의 `review_code`를 그대로 써서 `review_items`에 항목을 추가한다. 검토 코드를 새로 만들지 않는다. + - 충돌 단서가 걸린 후보의 `provisional_status`는 `review`로 하고 `confidence`는 `low`를 넘지 않는다. + - 충돌을 조용히 해소하지 않는다. 어느 쪽이 맞는지 고르지 않고 양쪽 근거를 모두 남긴다. + + + + - `source_unit_index`의 unit 중 어떤 후보의 `positive_refs`·`negative_refs`·`conflict_refs`에도 들어가지 않은 것을 모두 `unmatched_issue_refs`에 넣는다. 하나도 버리지 않는다. + - `unmatched_issue_refs`가 비어 있지 않으면 `review_items`에 `UNROUTED_ISSUE_REVIEW` 항목을 하나 만들고 그 unit들을 `source_refs`에 담는다. `severity`는 `review`, `domain_ids`는 `["E-00"]`로 한다. + - `review_items` 각 항목의 필수 키는 `review_code`, `severity`, `reason`, `source_refs` 넷이다. 선택 키는 `domain_ids`, `unresolved_type`, `blocks_final_drafting` 셋이다. 다른 키를 만들지 않는다. + - `review_code`는 `^[A-Z][A-Z0-9_]{2,127}$`를 만족해야 하고, 사전의 `C` 줄에 적힌 코드이거나 `UNROUTED_ISSUE_REVIEW` 또는 `SCREENING_SOURCE_UNIT_FALLBACK` 중 하나여야 한다. + - `severity`는 `info|review|hard_warning|block` 네 값이다. 본 task는 `block`을 쓰지 않는다. 실행을 막는 판정은 하류 게이트의 권한이다. + - `status`는 다음 순서로 정한다. + 입력 자체가 판정 불가이면 `BLOCKED`. + 하드 실패가 있으면 `FAILED`. + `review_items`가 하나라도 있으면 `READY_WITH_REVIEW`. + 그 외에는 `READY`. + - 본 task는 `status`를 제안할 뿐이다. 후속 task는 이 값을 올릴 수 있어도 내릴 수 없다. + + + + - 금액 계산이 필요해 보이는 서술이 있으면 그 후보의 `requested_calculation_domains`에 계산 ID를 넣는다. + - 넣을 수 있는 값은 사전의 그 도메인 머리에 적힌 `calc=` 목록 안에 있는 것뿐이다. 목록 밖 값은 넣지 않는다. + - 계산 ID 형식은 `^CE-[A-Z0-9][A-Z0-9-]{0,15}$`이다. + - 본 task는 어떤 금액도 계산하지 않고 이율·기산일·기간·원금을 정하지 않는다. 계산이 필요하다는 표시만 남긴다. + - 필요 없으면 빈 배열로 둔다. + + + + - 인코딩은 UTF-8, 줄바꿈은 LF, 문자열은 NFC로 정규화한다. + - 모든 참조 배열은 중복 없이 문자열 오름차순으로 정렬한다. + - `candidates`는 `domain_id` 문자열 오름차순으로 정렬한다. + - `source_unit_index`는 문서 등장 순서를 유지한다. + - 숫자를 문자열로 감싸지 않고 불리언은 `true`/`false`로 쓴다. + - 값이 없으면 빈 배열을 쓰고 `null`이나 빈 문자열을 쓰지 않는다. + - 출력은 순수 JSON 하나다. 마크다운 코드펜스, 머리말, 꼬리 설명을 붙이지 않는다. + + + + 최상위 키는 `domain_screening_draft` 하나다. 아래 키 구성을 정확히 지킨다. + + { + "domain_screening_draft": { + "draft_schema_version": "stage1_domain_screening_draft.v1", + "produced_by": "Task_A0_domain_screener_01", + "source_document_code": "MTG", + "source_document_name": "client_meeting.md", + "unit_numbering_rule": "MTG.
..", + "source_unit_index": [ + { "unit_id": "MTG.FACT.01.01", "gist": "60자 이내 요지. 판단이 아니라 그 문단이 무엇을 다루는지만 적는다." } + ], + "status": "READY | READY_WITH_REVIEW | BLOCKED | FAILED 중 하나", + "candidates": [ + { + "domain_id": "E-13", + "provisional_status": "candidate | supporting | monitor | review 중 하나", + "positive_refs": ["MTG.FACT.03.01"], + "negative_refs": [], + "conflict_refs": [], + "confidence": "high | medium | low 중 하나", + "reasoning_summary": "E13-P01은 MTG.FACT.03.01에서, E13-P02는 MTG.FACT.03.03에서 대응 서술을 확인함. 합 2.0으로 활성 임계값을 넘어 candidate로 둠.", + "final_determination_forbidden": true, + "requested_calculation_domains": ["CE-03"] + } + ], + "unmatched_issue_refs": ["MTG.WISH.05.00"], + "review_items": [ + { + "review_code": "UNROUTED_ISSUE_REVIEW", + "severity": "review", + "reason": "어느 도메인 단서에도 걸리지 않은 상담록 단위를 잔여로 보존함.", + "source_refs": ["MTG.WISH.05.00"], + "domain_ids": ["E-00"], + "unresolved_type": "unrouted_meeting_unit", + "blocks_final_drafting": true + } + ] + } + } + + 고정값 규칙: + - `draft_schema_version`, `produced_by`, `source_document_code`, `source_document_name`, `unit_numbering_rule` 다섯 값은 위에 적힌 문자열을 글자 그대로 쓴다. + - `candidates`의 각 원소는 위 아홉 개 키만 쓴다. `requested_calculation_domains`가 빈 배열이어도 키는 남긴다. + - `review_items`가 없으면 빈 배열로 둔다. + + + + - `source_unit_index`의 모든 `unit_id`가 `^[A-Za-z][A-Za-z0-9_.:/-]{0,255}$`를 만족하고 중복이 없는지 점검한다. + - 상담록의 모든 문단이 `source_unit_index`에 하나씩 대응하는지, 빠뜨린 문단이 없는지 점검한다. + - 모든 `positive_refs`·`negative_refs`·`conflict_refs`·`review_items[].source_refs`·`unmatched_issue_refs`의 원소가 전부 `source_unit_index`의 `unit_id` 집합 안에 있는지 점검한다. 목록 밖 식별자가 하나라도 있으면 고친다. + - `source_unit_index`의 개수가 (어느 후보엔가 인용된 unit 수) + (`unmatched_issue_refs` 수)와 같은지 점검한다. 어긋나면 인용 관계를 다시 본다. + - 모든 `domain_id`가 사전 `## DOMAINS`에 실제로 있는 값이고 `^(?:(?:EC|E)-[A-Z0-9]{2,8}|X[A-Z0-9]{1,8})$`를 만족하는지 점검한다. + - 같은 `domain_id`가 `candidates`에 두 번 등장하지 않는지 점검한다. + - 모든 후보에 `final_determination_forbidden: true`가 있는지 점검한다. + - 부정 단서가 걸린 후보가 목록에서 사라지지 않았는지, `candidate`에서 두 단계 넘게 내려가지 않았는지 점검한다. + - 충돌 단서가 걸린 후보의 `provisional_status`가 `review`이고 `confidence`가 `low`인지 점검한다. + - 모든 `review_code`가 사전의 `C` 줄에 있는 값이거나 `UNROUTED_ISSUE_REVIEW` 또는 `SCREENING_SOURCE_UNIT_FALLBACK`인지 점검한다. + - 각 후보의 `requested_calculation_domains`가 그 도메인 머리의 `calc=` 목록의 부분집합인지 점검한다. + - `ao=1`인 E-00, X1, X2, X3 네 도메인이 `candidates`에 모두 있는지 점검한다. + - 금지 필드명 여섯 개와 비판단 6종이 초안에 하나도 없는지 점검한다. + - `reasoning_summary`에 사건유형 명칭, 당사자 이름, 사건번호가 판단 근거로 쓰이지 않았는지 점검한다. + - `reasoning_summary`가 1200자를 넘지 않는지 점검한다. + - 출력 파일 경로와 성공 메시지가 정확한지 점검한다. + + + + + + [ ] 1) `list_docs`로 `client_meeting.md`와 `Default_Agent/routing/activation_cue_digest.md` 존재 확인(내용은 preflight로 이미 제공됨) + [ ] 2) source unit 채번 → 단서 매칭 → 판단 4종 생성 + [ ] 3) `` 자기점검 + [ ] 4) `write_file` 사용해서 `routing/domain_screening_draft.json` 생성 + [ ] 5) `list_docs` 사용해서 `routing/domain_screening_draft.json` 존재만 확인(절대 읽기 금지) + [ ] 6) `"도메인 스크리닝 초안 생성 완료"` 출력하고 작업을 끝낸다(terminate) + + + + + - `client_meeting.md` + - `Default_Agent/routing/activation_cue_digest.md` + + + - `routing/domain_screening_draft.json` + + + + + - 이 산출물은 가설이다. 어떤 도메인도 확정하지 않는다. + - `routing/domain_screening.json`은 후속 task의 산출물이다. 만들지 않는다. + - 비판단 6종은 초안에 넣지 않는다. + - 초안을 재읽지 않는다. + - 성공 시 마지막 채팅 출력은 정확히 `"도메인 스크리닝 초안 생성 완료"` 한 줄만 쓴다. + + + + + 이 블록은 이 실행의 입출력 방식만 정하며, 위의 입출력·도구·완료 문구 지시보다 우선한다. 판단·추출·스키마 규칙은 위 지시를 그대로 따른다. + - 이 실행에는 도구가 없다. `list_docs`, `read_docs`, `write_file` 등 어떤 도구도 호출하지 않는다. `list_docs`·`read_docs` 호출과 파일 존재 확인은 건너뛴다. `write_file` 전에 하도록 된 자기 점검과 내부 보정은 응답을 내기 전에 그대로 수행한다. + - 입력 파일은 이 대화에 미리 읽혀 제공된다. 그 내용을 도구로 읽은 내용과 같은 것으로 취급하며, 금지된 '자동 로드 데이터'가 아니다. 내용이 대화에 없는 입력은 입력 누락으로 보고 `FAILED`를 출력한다. + - 위 지시에서 `write_file`로 저장하게 되어 있는 ``의 최상위 객체(`domain_screening_draft` 키 하나)를 응답 본문으로 출력한다. 저장은 다음 단계의 코드가 `routing/domain_screening_draft.json`에 한다. + - 응답은 그 JSON 객체 하나 뒤에 줄을 바꿔 `terminate` 한 단어만 쓴다. 마크다운 코드 펜스, 설명, 완료 문구를 붙이지 않는다. + - 위 지시가 중단·실패를 보고하게 하거나 파일을 쓰지 말라고 한 경우에는 JSON 없이 `FAILED: <사유>` 한 줄을 쓰고 줄을 바꿔 `terminate` 한 단어를 쓴다. + + + - task_name: Task_A0c_domain_screener_capture + description: A0_01 응답 봉투의 JSON 을 routing/domain_screening_draft.json 에 저장 + mcp: code-executor + tool_name: run_code + parameters: + language: python + requirements: "httpx" + network: "agent-network" + timeout: 120 + code: | + #!/usr/bin/env python3 + # Task_A0c_domain_screener_capture + # Task_A0_domain_screener_01 의 응답 봉투(llm_result_envelope)에서 JSON 객체를 꺼내 + # LLM 이 직접 쓰던 경로에 그대로 쓴다. 내용 검사는 하류 작업이 한다(V1c 와 같은 역할 분리). + # 응답이 불완전하거나 JSON 객체가 아니면 비JSON 표식을 쓴다. 지난 실행의 파일이 남아 + # 하류를 통과하지 못하게 하고, 하류가 그 파일을 읽기 실패로 보고하게 한다. + # LLM 응답 문제로는 raise 하지 않는다. 쓰기 실패만 raise 해서 백엔드 재시도를 받는다. + TASK_NAME = "Task_A0c_domain_screener_capture" + import itertools + import json + import re + + import httpx + + # -------------------------------------------------------------------------- + # localdocs 보일러플레이트 (SKILL.md 5장 / 5.2장) + # clientInfo 에 {{__user_hash__}} / {{__workspace_hash__}} 를 반드시 넣는다. + # Task_V1c_value_facts_capture_* 와 같은 보일러플레이트다. write_doc 에만 오류 검사를 더했다. + # -------------------------------------------------------------------------- + LOCALDOCS_URL = "http://mcp-localdocs:8012/mcp" + MCP_HEADERS = {"Content-Type": "application/json", + "Accept": "application/json, text/event-stream"} + CLIENT = httpx.Client(timeout=120) + MSG_ID_COUNTER = itertools.count(10) + + + def next_msg_id(): + return next(MSG_ID_COUNTER) + + + def _init(): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": 1, "method": "initialize", + "params": {"protocolVersion": "2025-03-26", "capabilities": {}, + "clientInfo": {"name": TASK_NAME, "version": "1.0", + "user_id": "{{__user_hash__}}", + "workspace_id": "{{__workspace_hash__}}"}} + }, headers=MCP_HEADERS) + r.raise_for_status() + sid = r.headers.get("mcp-session-id") + if sid: + MCP_HEADERS["mcp-session-id"] = sid + CLIENT.post(LOCALDOCS_URL, + json={"jsonrpc": "2.0", "method": "notifications/initialized"}, + headers=MCP_HEADERS).raise_for_status() + + + def _parse_mcp(text): + for line in text.strip().split("\n"): + if line.startswith("data: "): + try: + return json.loads(line[6:]) + except Exception: + return None + try: + return json.loads(text) + except Exception: + return None + + + def _call(name, args, mid): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": mid, "method": "tools/call", + "params": {"name": name, "arguments": args} + }, headers=MCP_HEADERS) + r.raise_for_status() + p = _parse_mcp(r.text) + if not p or "result" not in p: + raise RuntimeError("MCP_CALL_FAILED:%s" % name) + return p + + + def write_doc(path, content): + # localdocs 는 실패도 정상 응답 본문의 "Error: ..." 로 돌려준다. + p = _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if text.startswith("Error"): + raise RuntimeError("WRITE_FAILED:%s:%s" % (path, text[:200])) + + + REQUIRED_KEY = "domain_screening_draft" + + + class CaptureError(Exception): + def __init__(self, code, detail=""): + super().__init__("%s:%s" % (code, detail)) + self.code = code + self.detail = detail + + + def parse_model(env): + # Task_V2_value_facts_gate_merger 의 parse_model 을 따르되 본문 우선이고, SKILL.md 6.7·12.3 의 허용을 더했다. + status = str(env.get("status", env.get("finish_reason", "UNKNOWN"))).lower() + if status not in {"completed", "success", "ok", "stop"}: + raise CaptureError("MODEL_INCOMPLETE", status) + finish = str(env.get("finish_reason") or "").lower() + if finish in {"length", "max_tokens", "max_output_tokens"}: + raise CaptureError("MODEL_INCOMPLETE", finish) + # json_output 은 쓰지 않는다. 백엔드가 깨진 본문에서 첫 중첩 객체를 뽑아 넣을 수 있어, + # 잘린 응답의 조각이 정상 part 로 저장된다. 본문 전체만 믿는다. + raw = env.get("content") if env.get("content") is not None else env.get("output") + if isinstance(raw, dict): + return raw + if raw is None or (isinstance(raw, str) and not raw.strip()): + raise CaptureError("MODEL_OUTPUT_MISSING") + if not isinstance(raw, str): + raise CaptureError("MODEL_NOT_JSON_OBJECT", str(raw)[:200]) + s = raw.strip() + if not s.startswith("{"): + m = re.search(r"```(?:json)?\s*(\{[\s\S]*?\})\s*```", s) + if not m: + raise CaptureError("MODEL_NOT_JSON_OBJECT", s[:200]) + s = m.group(1) + try: + obj, _ = json.JSONDecoder(strict=False).raw_decode(s) + except json.JSONDecodeError as exc: + raise CaptureError("MODEL_PARSE_FAILED", str(exc)[:200]) + if not isinstance(obj, dict): + raise CaptureError("MODEL_NOT_JSON_OBJECT", s[:200]) + return obj + + + def earlier_answer(env): + # 여러 회차를 도는 task 는 마지막 회차 본문만 content 가 된다. 앞 회차 JSON 뒤에 terminate 를 빠뜨리면 + # 다음 회차가 정상 답을 덮는다. 이때만 json_output 을 쓰되, 잘린 조각을 막으려고 최상위 키를 확인한다. + obj = env.get("json_output") + finish = str(env.get("finish_reason") or "").lower() + if (env.get("iterations") or 0) < 2 or str(env.get("status")).lower() != "completed": + return None + # 마지막 회차가 실패를 선언했으면 앞 회차 답을 살리지 않는다. + if str(env.get("content") or "").lstrip().startswith("FAILED"): + return None + if finish in {"length", "max_tokens", "max_output_tokens"}: + return None + return obj if isinstance(obj, dict) and REQUIRED_KEY in obj else None + + + # 백엔드가 치환하지 않도록 prev 표기를 나눠 쓴다. + PREV_PLACEHOLDER = "{" * 2 + "prev" + "}" * 2 + + + def extract(prev_text, llm_task): + # 의존 task 가 실패하면 백엔드는 prev 를 채우지 않아 표기가 그대로 남는다. 이를 파싱 오류와 구분한다. + if prev_text.strip() in ("", PREV_PLACEHOLDER): + raise CaptureError("UPSTREAM_NO_OUTPUT", llm_task + " 의 결과가 없다(실패 또는 미실행)") + try: + prev = json.loads(prev_text) + except Exception as exc: + raise CaptureError("PREV_PARSE_FAILED", str(exc)[:200]) + env = prev.get(llm_task) if isinstance(prev, dict) else None + if isinstance(env, str): + try: + env = json.loads(env) + except Exception: + env = {"content": env, "json_output": None, "status": "UNKNOWN"} + if not isinstance(env, dict): + raise CaptureError("MISSING_TASK_OUTPUT", llm_task) + try: + obj = parse_model(env) + except CaptureError: + obj = earlier_answer(env) + if obj is None: + raise + if REQUIRED_KEY not in obj: + # 마지막 회차가 다른 dict 를 내면 앞 회차 정답을 덮는다. + obj = earlier_answer(env) + if obj is None: + raise CaptureError("MISSING_REQUIRED_KEY", REQUIRED_KEY) + return obj, env.get("status") + + LLM_TASK = "Task_A0_domain_screener_01" + OUTPUT_PATH = "routing/domain_screening_draft.json" + RESULT = {"status": "CAPTURED", "output_path": OUTPUT_PATH, "llm_task": LLM_TASK} + try: + OBJ, RESULT["llm_status"] = extract(r"""{{prev}}""", LLM_TASK) + CONTENT = json.dumps(OBJ, ensure_ascii=False, indent=2) + except CaptureError as exc: + CONTENT = "CAPTURE_FAILED %s: %s\n" % (exc.code, exc.detail) + RESULT.update({"status": "CAPTURE_FAILED", "code": exc.code, "detail": exc.detail}) + _init() + write_doc(OUTPUT_PATH, CONTENT) + RESULT["chars"] = len(CONTENT) + print(json.dumps(RESULT, ensure_ascii=False)) + - task_name: Task_A0_domain_screener_02 + mcp: code-executor + tool_name: run_code + parameters: + language: python + requirements: "httpx" + network: "agent-network" + timeout: 180 + code: | + #!/usr/bin/env python3 + # Task_A0_domain_screener_02 + # domain_screening_draft.json (LLM 판단 4종) 를 받아 + # 비판단 6종을 registry 에서 직접 읽어 붙이고, + # 멤버십과 보존 등식을 검증하여 routing/domain_screening.json 을 기록한다. + # 판단은 하지 않는다. 상태를 올릴 수는 있어도 내리지 않는다. + import hashlib + import itertools + import json + import re + import unicodedata + + import httpx + + # -------------------------------------------------------------------------- + # localdocs 보일러플레이트 (SKILL.md 5장 / 5.2장) + # clientInfo 에 {{__user_hash__}} / {{__workspace_hash__}} 를 반드시 넣는다. + # 빠지면 localdocs 가 루트 경로를 보므로 사용자 파일을 찾지 못한다. + # -------------------------------------------------------------------------- + TASK_NAME = "Task_A0_domain_screener_02" + LOCALDOCS_URL = "http://mcp-localdocs:8012/mcp" + MCP_HEADERS = {"Content-Type": "application/json", + "Accept": "application/json, text/event-stream"} + CLIENT = httpx.Client(timeout=60) + MSG_ID_COUNTER = itertools.count(10) + + + def next_msg_id(): + return next(MSG_ID_COUNTER) + + + def _init(): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": 1, "method": "initialize", + "params": {"protocolVersion": "2025-03-26", "capabilities": {}, + "clientInfo": {"name": TASK_NAME, "version": "1.0", + "user_id": "{{__user_hash__}}", + "workspace_id": "{{__workspace_hash__}}"}} + }, headers=MCP_HEADERS) + r.raise_for_status() + sid = r.headers.get("mcp-session-id") + if sid: + MCP_HEADERS["mcp-session-id"] = sid + CLIENT.post(LOCALDOCS_URL, + json={"jsonrpc": "2.0", "method": "notifications/initialized"}, + headers=MCP_HEADERS).raise_for_status() + + + def _parse_mcp(text): + for line in text.strip().split("\n"): + if line.startswith("data: "): + try: + return json.loads(line[6:]) + except Exception: + return None + try: + return json.loads(text) + except Exception: + return None + + + def _call(name, args, mid): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": mid, "method": "tools/call", + "params": {"name": name, "arguments": args} + }, headers=MCP_HEADERS) + r.raise_for_status() + p = _parse_mcp(r.text) + if not p or "result" not in p: + raise RuntimeError("MCP %s failed" % name) + return p + + + def read_raw(name): + # 파일 내용을 재직렬화 없이 원문 그대로 돌려준다. + # registry_index_sha256 은 원문 바이트의 해시여야 하므로 재직렬화를 절대 허용하지 않는다. + p = _call("read_docs", {"doc_names": [name]}, next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if not text: + raise RuntimeError("Empty response: %s" % name) + try: + outer = json.loads(text) + except Exception: + return text + if isinstance(outer, str): + return outer + if isinstance(outer, dict) and "results" in outer: + r0 = (outer.get("results") or [{}])[0] + inner = r0.get("content") + if inner is None: + inner = r0.get("text") + if not isinstance(inner, str) or not inner: + raise RuntimeError("Empty content: %s" % name) + return inner + raise RuntimeError("Unexpected read_docs envelope: %s" % name) + + + def read_json(name): + raw = read_raw(name) + s = raw.strip() + if s.startswith("```"): + for part in s.split("```"): + part = part.strip() + if part.startswith("json"): + part = part[4:].strip() + if part.startswith("{") or part.startswith("["): + s = part + break + try: + return json.loads(s) + except json.JSONDecodeError: + obj, _ = json.JSONDecoder().raw_decode(s) + return obj + + + def write_doc(path, content): + _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + + + # -------------------------------------------------------------------------- + # 경로와 상수 + # -------------------------------------------------------------------------- + DRAFT_PATH = "routing/domain_screening_draft.json" + MEETING_PATH = "client_meeting.md" + REGISTRY_INDEX_PATH = "Default_Agent/domains/_registry_index.json" + DIGEST_PATH = "Default_Agent/routing/activation_cue_digest.md" + OUTPUT_PATH = "routing/domain_screening.json" + + SCHEMA_VERSION = "stage1_domain_screening.v1" + + # platform/schemas/domain_screening.schema.json 이 const 로 못박은 값이다. + # 하나라도 다르면 스키마 검증에서 떨어지므로 판단 대상이 아니다. + SCREENING_POLICY = { + "case_name_lookup_forbidden": True, + "single_keyword_activation_forbidden": True, + "negative_cue_downrank_only": True, + "evidence_refinement_required": True, + "unknown_review_code": "UNROUTED_ISSUE_REVIEW", + } + CONTRACT_GUARDS = { + "final_conclusion_forbidden": True, + "unknown_values_require_review": True, + "source_membership_required": True, + "strict_json_output": True, + "meeting_only_evidence_promotion_forbidden": True, + } + + STATUS_RANK = {"READY": 0, "READY_WITH_REVIEW": 1, "BLOCKED": 2, "FAILED": 3} + PROVISIONAL_STATUS = ("candidate", "supporting", "monitor", "review") + CONFIDENCE = ("high", "medium", "low") + SEVERITY = ("info", "review", "hard_warning", "block") + + REF_RE = re.compile(r"^[A-Za-z][A-Za-z0-9_.:/-]{0,255}$") + DOMAIN_RE = re.compile(r"^(?:(?:EC|E)-[A-Z0-9]{2,8}|X[A-Z0-9]{1,8})$") + CALC_RE = re.compile(r"^CE-[A-Z0-9][A-Z0-9-]{0,15}$") + CODE_RE = re.compile(r"^[A-Z][A-Z0-9_]{2,127}$") + REG_VER_RE = re.compile(r"^[A-Za-z][A-Za-z0-9_.-]{2,127}$") + SHA_RE = re.compile(r"^[a-f0-9]{64}$") + + CANDIDATE_REQUIRED = ("domain_id", "provisional_status", "positive_refs", + "negative_refs", "conflict_refs", "confidence", + "reasoning_summary", "final_determination_forbidden") + CANDIDATE_ALLOWED = CANDIDATE_REQUIRED + ("requested_calculation_domains",) + REVIEW_REQUIRED = ("review_code", "severity", "reason", "source_refs") + REVIEW_ALLOWED = REVIEW_REQUIRED + ("domain_ids", "unresolved_type", + "blocks_final_drafting") + SCREENING_REQUIRED = ("schema_version", "status", "registry_version", + "registry_index_sha256", "source_document_refs", + "candidates", "unmatched_issue_refs", "review_items", + "screening_policy", "contract_guards") + + # 01 이 쓰면 안 되는 필드. 하나라도 있으면 초안이 계약을 벗어난 것이다. + FORBIDDEN_DRAFT_FIELDS = ("track_hypothesis", "domain_hypotheses", + "relief_mode_hints", "computation_hints", + "matched_cues", "notes_kr") + NONJUDGMENT_FIELDS = ("schema_version", "registry_version", + "registry_index_sha256", "source_document_refs", + "screening_policy", "contract_guards") + + GANADA = "가나다라마바사아자차카타파하" + SECTION_MARKERS = (("상담내용", "FACT"), + ("사건관계인의주장", "OPP"), + ("의뢰인의희망사항", "WISH")) + + ERRORS = [] + WARNINGS = [] + ADDED_REVIEWS = [] + + + def fail(code, message): + ERRORS.append({"code": code, "message": message}) + + + def warn(code, message): + WARNINGS.append({"code": code, "message": message}) + + + # -------------------------------------------------------------------------- + # 1) source unit 독립 재산출 + # Task_A0_domain_screener_01 의 와 같은 규칙을 + # 코드로 다시 구현한다. LLM 의 채번을 신뢰하지 않고 대조하기 위한 것이다. + # -------------------------------------------------------------------------- + def mint_source_units(meeting_text): + lines = unicodedata.normalize("NFC", meeting_text).split("\n") + section = None + cluster = 0 + units = [] + meta_seen = False + raw_seq = 0 + for line in lines: + t = line.strip() + if not t: + continue + squashed = re.sub(r"\s+", "", t) + if "【" in t and "】" in t: + hit = None + for needle, code in SECTION_MARKERS: + if needle in squashed: + hit = code + break + if hit: + section = hit + cluster = 0 + continue + if section is None: + # 상담일지 머리표는 문단마다 자르지 않고 MTG.META.01 한 단위로 접는다. + if set(t) <= set("| -"): + continue + if not meta_seen: + units.append("MTG.META.01") + meta_seen = True + continue + m = re.match(r"^(\d{1,2})\.\s", t) + if m: + cluster = int(m.group(1)) + continue + m2 = re.match(r"^([" + GANADA + r"])\.\s", t) + if m2: + item = GANADA.index(m2.group(1)) + 1 + else: + item = 0 + unit_id = "MTG.%s.%02d.%02d" % (section, cluster, item) + if unit_id in units: + raw_seq += 1 + unit_id = "MTG.RAW.%03d" % raw_seq + units.append(unit_id) + return units, raw_seq + + + # -------------------------------------------------------------------------- + # 2) 단어 사전 파싱 + # 도메인 화이트리스트, 도메인별 계산 허용목록, 충돌 검토코드, 상시활성 목록, + # 그리고 사전이 어느 registry 스냅숏에서 나왔는지를 뽑는다. + # -------------------------------------------------------------------------- + def parse_digest(md): + text = unicodedata.normalize("NFC", md) + info = {"registry_version": None, "registry_index_sha256": None, + "domains": {}, "always_on": [], "review_codes": set()} + m = re.search(r"^registry_version:\s*`([^`]+)`", text, re.M) + if m: + info["registry_version"] = m.group(1).strip() + m = re.search(r"^registry_index:.*sha256=`([a-f0-9]{64})`", text, re.M) + if m: + info["registry_index_sha256"] = m.group(1) + current = None + for line in text.split("\n"): + t = line.rstrip() + if t.startswith("### "): + parts = [x.strip() for x in t[4:].split("|")] + if len(parts) < 6: + continue + did = parts[0] + kv = {} + for seg in parts[2:]: + if "=" in seg: + k, v = seg.split("=", 1) + kv[k.strip()] = v.strip() + calc = [] if kv.get("calc", "-") == "-" else kv["calc"].split(",") + dep = [] if kv.get("dep", "-") == "-" else kv["dep"].split(",") + info["domains"][did] = {"calc": calc, "dep": dep, + "kind": kv.get("kind"), + "ao": kv.get("ao") == "1"} + if kv.get("ao") == "1": + info["always_on"].append(did) + current = did + elif t.startswith("C|") and current: + fields = t.split("|") + if len(fields) >= 4: + info["review_codes"].add(fields[3].strip()) + return info + + + # -------------------------------------------------------------------------- + # 3) 최종 산출물 자기검증 — 닫힌 스키마의 형태를 코드로 다시 확인한다. + # -------------------------------------------------------------------------- + def self_check(doc): + problems = [] + if list(doc.keys()) != ["domain_screening"]: + problems.append("root key must be exactly domain_screening") + return problems + ds = doc["domain_screening"] + missing = [k for k in SCREENING_REQUIRED if k not in ds] + extra = [k for k in ds if k not in SCREENING_REQUIRED] + if missing: + problems.append("missing required: %s" % ",".join(missing)) + if extra: + problems.append("additionalProperties: %s" % ",".join(extra)) + if ds.get("schema_version") != SCHEMA_VERSION: + problems.append("schema_version const mismatch") + if ds.get("status") not in STATUS_RANK: + problems.append("status enum invalid") + if not REG_VER_RE.match(str(ds.get("registry_version", ""))): + problems.append("registry_version pattern invalid") + if not SHA_RE.match(str(ds.get("registry_index_sha256", ""))): + problems.append("registry_index_sha256 pattern invalid") + for key in ("source_document_refs", "unmatched_issue_refs"): + arr = ds.get(key, []) + if len(set(arr)) != len(arr): + problems.append("%s not unique" % key) + for v in arr: + if not REF_RE.match(v): + problems.append("%s ref pattern invalid: %s" % (key, v)) + for c in ds.get("candidates", []): + for k in CANDIDATE_REQUIRED: + if k not in c: + problems.append("candidate missing %s" % k) + for k in c: + if k not in CANDIDATE_ALLOWED: + problems.append("candidate extra key %s" % k) + if c.get("final_determination_forbidden") is not True: + problems.append("final_determination_forbidden must be true") + for r in ds.get("review_items", []): + for k in REVIEW_REQUIRED: + if k not in r: + problems.append("review_item missing %s" % k) + for k in r: + if k not in REVIEW_ALLOWED: + problems.append("review_item extra key %s" % k) + if r.get("severity") not in SEVERITY: + problems.append("review_item severity invalid") + if not CODE_RE.match(str(r.get("review_code", ""))): + problems.append("review_code pattern invalid") + reason = r.get("reason", "") + if not (1 <= len(reason) <= 1000): + problems.append("review_item reason length invalid") + if ds.get("screening_policy") != SCREENING_POLICY: + problems.append("screening_policy const mismatch") + if ds.get("contract_guards") != CONTRACT_GUARDS: + problems.append("contract_guards const mismatch") + return problems + + + # -------------------------------------------------------------------------- + # main + # -------------------------------------------------------------------------- + def main(): + _init() + + # ---- 입력 4종 ---- + try: + draft_doc = read_json(DRAFT_PATH) + except Exception as exc: + fail("DRAFT_UNREADABLE", "%s: %s" % (DRAFT_PATH, exc)) + return None + try: + meeting_raw = read_raw(MEETING_PATH) + except Exception as exc: + fail("MEETING_UNREADABLE", "%s: %s" % (MEETING_PATH, exc)) + return None + try: + registry_raw = read_raw(REGISTRY_INDEX_PATH) + except Exception as exc: + fail("REGISTRY_INDEX_UNREADABLE", "%s: %s" % (REGISTRY_INDEX_PATH, exc)) + return None + try: + digest_raw = read_raw(DIGEST_PATH) + except Exception as exc: + fail("DIGEST_UNREADABLE", "%s: %s" % (DIGEST_PATH, exc)) + return None + + if not isinstance(draft_doc, dict) or "domain_screening_draft" not in draft_doc: + fail("DRAFT_ROOT_KEY_INVALID", "root key domain_screening_draft not found") + return None + draft = draft_doc["domain_screening_draft"] + + for k in FORBIDDEN_DRAFT_FIELDS: + if k in draft: + fail("FORBIDDEN_FIELD_PRESENT", "draft contains forbidden field %s" % k) + for k in NONJUDGMENT_FIELDS: + if k in draft: + fail("NONJUDGMENT_FIELD_IN_DRAFT", + "draft must not carry non-judgment field %s" % k) + + # ---- registry 원문 해시. 재직렬화하지 않은 원문 바이트로 계산한다. ---- + registry_index_sha256 = hashlib.sha256(registry_raw.encode("utf-8")).hexdigest() + try: + registry_doc = json.loads(registry_raw) + registry = registry_doc["domain_registry_index"] + except Exception as exc: + fail("REGISTRY_INDEX_UNREADABLE", "parse failed: %s" % exc) + return None + registry_version = registry.get("registry_version") + registry_domain_ids = sorted(e["domain_id"] for e in registry.get("entries", [])) + + # ---- 단어 사전 ---- + digest = parse_digest(digest_raw) + if len(digest["domains"]) != len(registry_domain_ids): + fail("DIGEST_MALFORMED", + "digest domains=%d registry entries=%d" + % (len(digest["domains"]), len(registry_domain_ids))) + return None + unknown_in_digest = sorted(set(digest["domains"]) - set(registry_domain_ids)) + if unknown_in_digest: + fail("DIGEST_DOMAIN_SET_MISMATCH", + "digest has domains absent from registry: %s" % ",".join(unknown_in_digest)) + return None + # 사전 머리말은 있으면 낡음 감지에 쓰고, 없으면 경고만 남긴다. + # registry_version 과 registry_index_sha256 의 정본은 _registry_index.json 이지 + # 사전이 아니다. 사전 머리말이 편집되어 사라져도 산출물은 정확해야 한다. + if digest["registry_index_sha256"] is None: + warn("DIGEST_HEADER_ABSENT", + "activation_cue_digest.md has no registry_index sha256 header; " + "staleness cross-check skipped") + elif digest["registry_index_sha256"] != registry_index_sha256: + # 사전이 만들어진 뒤 registry 가 바뀌었거나, 읽는 과정에서 원문이 변형된 것이다. + # 사전이 낡은 단서로 판단한 초안을 봉인하면 안 되므로 여기서 멈춘다. + fail("REGISTRY_INDEX_SHA_MISMATCH", + "digest=%s computed=%s" % (digest["registry_index_sha256"], + registry_index_sha256)) + return None + if digest["registry_version"] is None: + warn("DIGEST_HEADER_ABSENT", + "activation_cue_digest.md has no registry_version header") + elif digest["registry_version"] != registry_version: + fail("REGISTRY_VERSION_MISMATCH", + "digest=%s registry=%s" % (digest["registry_version"], registry_version)) + return None + + # ---- source unit 독립 재산출 ---- + universe, raw_fallback = mint_source_units(meeting_raw) + if raw_fallback: + warn("SCREENING_SOURCE_UNIT_FALLBACK", + "%d unit(s) fell back to MTG.RAW.* numbering" % raw_fallback) + if not universe: + fail("SOURCE_UNIT_SET_EMPTY", "no source unit minted from %s" % MEETING_PATH) + return None + universe_set = set(universe) + if len(universe_set) != len(universe): + fail("SOURCE_UNIT_DUPLICATE", "duplicate unit id after minting") + return None + for u in universe: + if not REF_RE.match(u): + fail("REF_PATTERN_INVALID", "minted unit id invalid: %s" % u) + source_document_refs = sorted(universe_set) + + # 초안이 스스로 적어둔 목록과 대조한다. 어긋나면 재산출본을 정본으로 삼고 검토를 남긴다. + draft_units = [] + for row in draft.get("source_unit_index", []) or []: + if isinstance(row, dict) and row.get("unit_id"): + draft_units.append(row["unit_id"]) + if draft_units and set(draft_units) != universe_set: + only_draft = sorted(set(draft_units) - universe_set) + only_mint = sorted(universe_set - set(draft_units)) + ADDED_REVIEWS.append({ + "review_code": "E00_MEMBERSHIP_CONFLICT_REVIEW", + "severity": "review", + "reason": ("초안의 source_unit_index 와 재산출한 원천 단위 집합이 다르다. " + "재산출본을 정본으로 삼았다. 초안에만 있음=%s, 재산출본에만 있음=%s" + % (",".join(only_draft) or "-", ",".join(only_mint) or "-"))[:1000], + "source_refs": sorted(set(only_mint))[:64], + "domain_ids": ["E-00"], + "unresolved_type": "source_unit_index_divergence", + "blocks_final_drafting": False, + }) + + # ---- 후보 검증 ---- + candidates = draft.get("candidates") + if not isinstance(candidates, list): + fail("DRAFT_FIELD_MISSING", "candidates must be a list") + return None + seen_domains = set() + cited = set() + clean_candidates = [] + for c in candidates: + if not isinstance(c, dict): + fail("CANDIDATE_KEY_INVALID", "candidate is not an object") + continue + did = c.get("domain_id") + for k in CANDIDATE_REQUIRED: + if k not in c: + fail("CANDIDATE_KEY_INVALID", "%s missing %s" % (did, k)) + for k in c: + if k not in CANDIDATE_ALLOWED: + fail("CANDIDATE_KEY_INVALID", "%s extra key %s" % (did, k)) + if not DOMAIN_RE.match(str(did)) or did not in digest["domains"]: + fail("DOMAIN_ID_UNKNOWN", "unknown domain_id: %r" % did) + continue + if did in seen_domains: + fail("DOMAIN_ID_DUPLICATE", "duplicate domain_id: %s" % did) + continue + seen_domains.add(did) + if c.get("provisional_status") not in PROVISIONAL_STATUS: + fail("ENUM_INVALID", "%s provisional_status=%r" % (did, c.get("provisional_status"))) + if c.get("confidence") not in CONFIDENCE: + fail("ENUM_INVALID", "%s confidence=%r" % (did, c.get("confidence"))) + summary = c.get("reasoning_summary", "") + if not isinstance(summary, str) or not (1 <= len(summary) <= 1200): + fail("REASONING_SUMMARY_LENGTH", "%s length=%d" % (did, len(str(summary)))) + if c.get("final_determination_forbidden") is not True: + fail("FINAL_DETERMINATION_FLAG_INVALID", "%s" % did) + for key in ("positive_refs", "negative_refs", "conflict_refs"): + arr = c.get(key) or [] + if not isinstance(arr, list): + fail("CANDIDATE_KEY_INVALID", "%s %s must be a list" % (did, key)) + continue + for ref in arr: + if not REF_RE.match(str(ref)): + fail("REF_PATTERN_INVALID", "%s %s %r" % (did, key, ref)) + elif ref not in universe_set: + # source_membership_required 위반. 조용히 지우지 않고 실패로 처리한다. + fail("REF_NOT_IN_SOURCE_UNIVERSE", "%s %s %s" % (did, key, ref)) + else: + cited.add(ref) + allowed_calc = set(digest["domains"][did]["calc"]) + calc = c.get("requested_calculation_domains") or [] + if not isinstance(calc, list): + fail("CANDIDATE_KEY_INVALID", "%s requested_calculation_domains must be a list" % did) + calc = [] + for cid in calc: + if not CALC_RE.match(str(cid)): + fail("CALC_PATTERN_INVALID", "%s %r" % (did, cid)) + elif cid not in allowed_calc: + fail("CALC_NOT_IN_BINDINGS", "%s requested %s but calc=%s" + % (did, cid, ",".join(sorted(allowed_calc)) or "-")) + out = {} + for k in CANDIDATE_REQUIRED: + out[k] = c.get(k) + for key in ("positive_refs", "negative_refs", "conflict_refs"): + out[key] = sorted(set(out.get(key) or [])) + if "requested_calculation_domains" in c: + out["requested_calculation_domains"] = sorted(set(calc)) + clean_candidates.append(out) + clean_candidates.sort(key=lambda x: str(x.get("domain_id"))) + + # 상시 활성 4종은 D0 게이트의 보장 대상이다. 여기서 후보를 만들어내지 않고 경고만 남긴다. + missing_ao = [d for d in sorted(digest["always_on"]) if d not in seen_domains] + if missing_ao: + warn("ALWAYS_ON_NOT_IN_DRAFT", + "always_on domains absent from draft candidates: %s" % ",".join(missing_ao)) + + # ---- 검토 항목 검증 ---- + allowed_codes = set(digest["review_codes"]) | { + "UNROUTED_ISSUE_REVIEW", "SCREENING_SOURCE_UNIT_FALLBACK", + "E00_MEMBERSHIP_CONFLICT_REVIEW", "E00_FALSE_UNROUTED_REVIEW", + "E00_CONSERVATION_FAILURE"} + clean_reviews = [] + for r in draft.get("review_items") or []: + if not isinstance(r, dict): + fail("REVIEW_ITEM_KEY_INVALID", "review_item is not an object") + continue + for k in REVIEW_REQUIRED: + if k not in r: + fail("REVIEW_ITEM_KEY_INVALID", "missing %s" % k) + for k in r: + if k not in REVIEW_ALLOWED: + fail("REVIEW_ITEM_KEY_INVALID", "extra key %s" % k) + code = str(r.get("review_code", "")) + if not CODE_RE.match(code): + fail("REVIEW_CODE_PATTERN_INVALID", code) + elif code not in allowed_codes: + fail("REVIEW_CODE_UNKNOWN", code) + if r.get("severity") not in SEVERITY: + fail("ENUM_INVALID", "review severity=%r" % r.get("severity")) + for ref in r.get("source_refs") or []: + if ref not in universe_set: + fail("REF_NOT_IN_SOURCE_UNIVERSE", "review_items %s" % ref) + for did in r.get("domain_ids") or []: + if not DOMAIN_RE.match(str(did)): + fail("DOMAIN_ID_UNKNOWN", "review_items %r" % did) + item = {} + for k in REVIEW_ALLOWED: + if k in r: + item[k] = r[k] + item["source_refs"] = sorted(set(item.get("source_refs") or [])) + clean_reviews.append(item) + + # ---- 보존 등식. 초안의 미분류를 신뢰하지 않고 다시 계산한다. ---- + computed_unmatched = sorted(universe_set - cited) + draft_unmatched = sorted(set(draft.get("unmatched_issue_refs") or [])) + if draft_unmatched != computed_unmatched: + only_draft = sorted(set(draft_unmatched) - set(computed_unmatched)) + only_calc = sorted(set(computed_unmatched) - set(draft_unmatched)) + ADDED_REVIEWS.append({ + "review_code": "E00_FALSE_UNROUTED_REVIEW", + "severity": "review", + "reason": ("초안의 unmatched_issue_refs 가 재계산 결과와 다르다. 재계산본으로 대체했다. " + "초안에만 있음=%s, 재계산본에만 있음=%s" + % (",".join(only_draft) or "-", ",".join(only_calc) or "-"))[:1000], + "source_refs": (only_draft + only_calc)[:64], + "domain_ids": ["E-00"], + "unresolved_type": "unmatched_set_divergence", + "blocks_final_drafting": False, + }) + unmatched = computed_unmatched + if computed_unmatched and not any( + r.get("review_code") == "UNROUTED_ISSUE_REVIEW" for r in clean_reviews): + ADDED_REVIEWS.append({ + "review_code": "UNROUTED_ISSUE_REVIEW", + "severity": "review", + "reason": "어느 도메인 단서에도 걸리지 않은 상담록 단위를 잔여로 보존한다.", + "source_refs": computed_unmatched[:64], + "domain_ids": ["E-00"], + "unresolved_type": "unrouted_meeting_unit", + "blocks_final_drafting": True, + }) + clean_reviews.extend(ADDED_REVIEWS) + + if len(universe_set) != len(cited) + len(unmatched): + fail("CONSERVATION_FAILED", + "universe=%d cited=%d unmatched=%d" + % (len(universe_set), len(cited), len(unmatched))) + + # ---- 상태. 올릴 수는 있어도 내리지 않는다. ---- + draft_status = draft.get("status") + if draft_status not in STATUS_RANK: + fail("ENUM_INVALID", "draft status=%r" % draft_status) + draft_status = "READY_WITH_REVIEW" + status = draft_status + if clean_reviews and STATUS_RANK[status] < STATUS_RANK["READY_WITH_REVIEW"]: + status = "READY_WITH_REVIEW" + + if ERRORS: + return None + + # ---- 비판단 6종을 붙여 조립한다. 키 순서는 스키마의 required 순서를 따른다. ---- + screening = { + "schema_version": SCHEMA_VERSION, + "status": status, + "registry_version": registry_version, + "registry_index_sha256": registry_index_sha256, + "source_document_refs": source_document_refs, + "candidates": clean_candidates, + "unmatched_issue_refs": unmatched, + "review_items": clean_reviews, + "screening_policy": dict(SCREENING_POLICY), + "contract_guards": dict(CONTRACT_GUARDS), + } + doc = {"domain_screening": screening} + + problems = self_check(doc) + if problems: + for p in problems: + fail("OUTPUT_SCHEMA_SELF_CHECK_FAILED", p) + return None + + body = json.dumps(doc, ensure_ascii=False, indent=2) + "\n" + write_doc(OUTPUT_PATH, body) + try: + _call("list_docs", {"path": "routing", "pattern": "domain_screening.json"}, + next_msg_id()) + except Exception as exc: + warn("OUTPUT_LIST_CHECK_SKIPPED", str(exc)) + + return { + "screening_sha256": hashlib.sha256(body.encode("utf-8")).hexdigest(), + "status": status, + "source_unit_count": len(universe_set), + "cited_unit_count": len(cited), + "unmatched_unit_count": len(unmatched), + "candidate_count": len(clean_candidates), + "review_item_count": len(clean_reviews), + "review_items_added_by_02": [r["review_code"] for r in ADDED_REVIEWS], + "registry_version": registry_version, + "registry_index_sha256": registry_index_sha256, + } + + + try: + RESULT = main() + except Exception as exc: + fail("UNHANDLED_EXCEPTION", "%s: %s" % (type(exc).__name__, exc)) + RESULT = None + + if RESULT is None: + print(json.dumps({"status": "FAILED", "written": False, + "output_path": OUTPUT_PATH, + "errors": ERRORS, "warnings": WARNINGS}, + ensure_ascii=False)) + else: + payload = {"status": RESULT["status"], "written": True, + "output_path": OUTPUT_PATH, "errors": [], "warnings": WARNINGS} + payload.update(RESULT) + print(json.dumps(payload, ensure_ascii=False)) + - task_name: Task_A0_domain_screener_03 + mcp: code-executor + tool_name: run_code + parameters: + language: python + requirements: "httpx" + network: "agent-network" + # 후보 15개면 도구 호출이 4(고정 읽기)+15(후보 config)+1(쓰기)+1(확인)=21회다. + # 후보가 26개까지 늘어도 여유가 남도록 240초로 둔다. + timeout: 240 + code: | + #!/usr/bin/env python3 + # Task_A0_domain_screener_03 + # routing/domain_screening.json 의 후보 도메인 목록으로 + # Default_Agent/domains/<후보>/domain_config.json 에서 7개 항목만 발췌하여 + # routing/candidate_profile_vocabulary.md 를 기록한다. + # Task_A_client_goal 이 domain_profiles 를 채울 때 쓸 낱말 목록이며, + # 판단은 하지 않는다. registry 원문이 정본이고 이 파일은 파생본이다. + import hashlib + import itertools + import json + import re + import unicodedata + + import httpx + + # -------------------------------------------------------------------------- + # localdocs 보일러플레이트 (SKILL.md 5장 / 5.2장) + # clientInfo 에 {{__user_hash__}} / {{__workspace_hash__}} 를 반드시 넣는다. + # 빠지면 localdocs 가 루트 경로를 보므로 사용자 파일을 찾지 못한다. + # -------------------------------------------------------------------------- + TASK_NAME = "Task_A0_domain_screener_03" + LOCALDOCS_URL = "http://mcp-localdocs:8012/mcp" + MCP_HEADERS = {"Content-Type": "application/json", + "Accept": "application/json, text/event-stream"} + CLIENT = httpx.Client(timeout=60) + MSG_ID_COUNTER = itertools.count(10) + + + def next_msg_id(): + return next(MSG_ID_COUNTER) + + + def _init(): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": 1, "method": "initialize", + "params": {"protocolVersion": "2025-03-26", "capabilities": {}, + "clientInfo": {"name": TASK_NAME, "version": "1.0", + "user_id": "{{__user_hash__}}", + "workspace_id": "{{__workspace_hash__}}"}} + }, headers=MCP_HEADERS) + r.raise_for_status() + sid = r.headers.get("mcp-session-id") + if sid: + MCP_HEADERS["mcp-session-id"] = sid + CLIENT.post(LOCALDOCS_URL, + json={"jsonrpc": "2.0", "method": "notifications/initialized"}, + headers=MCP_HEADERS).raise_for_status() + + + def _parse_mcp(text): + for line in text.strip().split("\n"): + if line.startswith("data: "): + try: + return json.loads(line[6:]) + except Exception: + return None + try: + return json.loads(text) + except Exception: + return None + + + def _call(name, args, mid): + r = CLIENT.post(LOCALDOCS_URL, json={ + "jsonrpc": "2.0", "id": mid, "method": "tools/call", + "params": {"name": name, "arguments": args} + }, headers=MCP_HEADERS) + r.raise_for_status() + p = _parse_mcp(r.text) + if not p or "result" not in p: + raise RuntimeError("MCP %s failed" % name) + return p + + + def read_raw(name): + # 원문을 재직렬화 없이 그대로 돌려준다. + # domain_config 의 sha256 을 registry 색인과 대조하므로 바이트 보존이 필수다. + p = _call("read_docs", {"doc_names": [name]}, next_msg_id()) + text = (p["result"].get("content") or [{}])[0].get("text", "") + if not text: + raise RuntimeError("Empty response: %s" % name) + try: + outer = json.loads(text) + except Exception: + return text + if isinstance(outer, str): + return outer + if isinstance(outer, dict) and "results" in outer: + r0 = (outer.get("results") or [{}])[0] + inner = r0.get("content") + if inner is None: + inner = r0.get("text") + if not isinstance(inner, str) or not inner: + raise RuntimeError("Empty content: %s" % name) + return inner + raise RuntimeError("Unexpected read_docs envelope: %s" % name) + + + def read_json(name): + raw = read_raw(name) + s = raw.strip() + if s.startswith("```"): + for part in s.split("```"): + part = part.strip() + if part.startswith("json"): + part = part[4:].strip() + if part.startswith("{") or part.startswith("["): + s = part + break + try: + return json.loads(s) + except json.JSONDecodeError: + obj, _ = json.JSONDecoder().raw_decode(s) + return obj + + + def write_doc(path, content): + _call("write_file", {"path": path, "content": content, "overwrite": True}, + next_msg_id()) + + + # -------------------------------------------------------------------------- + # 경로와 상수 + # -------------------------------------------------------------------------- + SCREENING_PATH = "routing/domain_screening.json" + REGISTRY_INDEX_PATH = "Default_Agent/domains/_registry_index.json" + DOMAIN_CATALOG_PATH = "Default_Agent/platform/reference_catalogs/domain_ids.json" + CALC_CATALOG_PATH = "Default_Agent/platform/reference_catalogs/calculation_ids.json" + CONFIG_PATH_FMT = "Default_Agent/domains/%s/domain_config.json" + OUTPUT_PATH = "routing/candidate_profile_vocabulary.md" + + DIGEST_SCHEMA = "candidate_profile_vocabulary.v1" + + # Task_A 프롬프트의 잔여 예산. §2.2 로 고정 4-profile 블록(약 9,000 B)이 + # 삭제되는 것을 반영한 값이다. 초과하면 라벨을 단계적으로 줄인다. + MAX_OUTPUT_BYTES = 28000 + # 라벨 길이 사다리. 앞에서부터 시도하고 예산에 맞는 첫 단계를 쓴다. + LABEL_TIERS = [("full", None), ("60", 60), ("40", 40), ("24", 24), ("none", 0)] + + DOMAIN_RE = re.compile(r"^(?:(?:EC|E)-[A-Z0-9]{2,8}|X[A-Z0-9]{1,8})$") + CALC_RE = re.compile(r"^CE-[A-Z0-9][A-Z0-9-]{0,15}$") + REF_RE = re.compile(r"^[A-Za-z][A-Za-z0-9_.:/-]{0,255}$") + + ERRORS = [] + WARNINGS = [] + + + def fail(code, message): + ERRORS.append({"code": code, "message": message}) + + + def warn(code, message): + WARNINGS.append({"code": code, "message": message}) + + + def cut(text, limit): + # 라벨 축약. 파이프는 구분자이므로 슬래시로 치환한다. + if text is None: + return "-" + t = unicodedata.normalize("NFC", str(text)).replace("\n", " ").replace("|", "/").strip() + if not t: + return "-" + if limit is None: + return t + if limit == 0: + return "" + return t if len(t) <= limit else t[:limit] + + + def render(rows, refs, meta, limit): + # rows: [(domain_id, cfg)] 순서 고정. limit 은 라벨 길이 상한. + L = [] + a = L.append + a("# CANDIDATE_PROFILE_VOCABULARY") + a("") + a("digest_schema: `%s`" % DIGEST_SCHEMA) + a("purpose: `client_goal_domain_profiles.schema.json` 을 채울 때 쓰는 낱말 목록이다. " + "사실 원천이 아니며 registry 원문의 파생본이다.") + a("source: `Default_Agent/domains//domain_config.json` 에서 7개 항목만 발췌 " + "(label_ko·kind, element_slots, opposing_fact_slots, evidence_components, " + "defense_map, calculation_bindings, review_codes)") + a("registry_version: `%s`" % meta["registry_version"]) + a("registry_index_sha256: `%s`" % meta["registry_index_sha256"]) + a("screening_sha256: `%s`" % meta["screening_sha256"]) + a("candidate_count: %d" % len(rows)) + a("label_tier: `%s`" % meta["label_tier"]) + a("") + a("## LEGEND") + a("") + a("도메인 머리: `### ||kind=|calc=`") + a("- `E||||