chore: snapshot of work since 2026-10-05 (Stage 1 v.8, S2_00 v7.4/v7.5 handoff, S2_10 rewrite research v.2, 청구취지·요건사실 corpora)
Case_02_Comparison_Research - Stage 1 v.8: Part 1~4 YAMLs with R1~R3 patches, F-1/F-2 fixes, 피고과식별방지 prompt (defendant_qualification), dated backups, 실행검사/실패분석 reports - Stage 2 S2_00: v7.4 handoff (Task_S2_00_handoff, 경량화 전략서 + §2 개정) and v7.5 defendant qualification gate (피고관련작업_개정_S2_00.md), copies v.7/v.10/v.11, dated backups, 실행보고서/실패분석/결과물 리스트 - Stage 2 S2_10: v6/v7/v8 failure analyses, 재작성전략 10_06/10_08, case_kind_registry.json, 연구조사보고서_S2_10_재작성용.md (v.1), _추가.md (multi-claim methodology) and merged _v.2.md (claims[] 1~4, join PRELIMINARY/SELECTIVE/INDEPENDENT, V1~V6), S2_10_Test run outputs, 실행검사 v.10/v.11 - Stage_2 MEMORY.md / CLAUDE.md / work-history notes, AGENTS.md and README_KO.md updates Other corpora and tooling - Default_Agent_청구취지기재방법: 청구취지 규칙문서 전체 모음(원문·사건종류별·raw) and tmp drafts - 요건사실론: 사건종류별 문서(raw·filtered), plans, rf_draft - 판례모음, STT_앱구성_연구, API Crowdness 조사, update_numbers.py Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
import os, subprocess, time, sys, urllib.parse
|
||||
|
||||
K = "말소등기전세권설정등기말소청구"
|
||||
OUT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "drf_" + K)
|
||||
os.makedirs(OUT, exist_ok=True)
|
||||
LOG = os.path.join(OUT, "_log.txt")
|
||||
|
||||
def log(s):
|
||||
with open(LOG, "a", encoding="utf-8") as f:
|
||||
f.write(s + "\n")
|
||||
print(s, flush=True)
|
||||
|
||||
def fetch(name, params, tries=3):
|
||||
path = os.path.join(OUT, name + ".xml")
|
||||
if os.path.exists(path) and os.path.getsize(path) > 400:
|
||||
log("SKIP %s (exists)" % name)
|
||||
return path
|
||||
base = "http://www.law.go.kr/DRF/" + params.pop("_ep")
|
||||
qs = urllib.parse.urlencode(params, encoding="utf-8")
|
||||
url = base + "?" + qs
|
||||
delays = [0, 12, 24]
|
||||
for i in range(tries):
|
||||
if delays[i]:
|
||||
time.sleep(delays[i])
|
||||
cmd = ["curl", "-sS", "--http1.1", "-A", "Mozilla/5.0",
|
||||
"--max-time", "120", "-o", path, url]
|
||||
r = subprocess.run(cmd, capture_output=True, text=True)
|
||||
sz = os.path.getsize(path) if os.path.exists(path) else 0
|
||||
if r.returncode == 0 and sz > 400:
|
||||
log("OK %s %d bytes" % (name, sz))
|
||||
return path
|
||||
log("FAIL %s try%d rc=%d sz=%d %s" % (name, i + 1, r.returncode, sz, r.stderr[:120]))
|
||||
log("GIVEUP %s" % name)
|
||||
return None
|
||||
|
||||
# 배정 색인 대기 + 기본 15초
|
||||
time.sleep(20)
|
||||
|
||||
JOBS = []
|
||||
|
||||
# --- 판례 14건 ---
|
||||
PREC = {
|
||||
"P01_199528": "199528", "P02_196132": "196132", "P03_194950": "194950",
|
||||
"P04_147496": "147496", "P05_143381": "143381", "P06_219763": "219763",
|
||||
"P07_231537": "231537", "P08_192221": "192221", "P09_179544": "179544",
|
||||
"P10_80320": "80320", "P11_128004": "128004", "P12_193801": "193801",
|
||||
"P13_190967": "190967", "P14_233945": "233945",
|
||||
}
|
||||
for n, sid in PREC.items():
|
||||
JOBS.append((n, {"_ep": "lawService.do", "OC": "test", "target": "prec", "ID": sid, "type": "XML"}))
|
||||
|
||||
# --- 법령 목록(MST 확인) ---
|
||||
LAWS = {
|
||||
"S_민법": "민법",
|
||||
"S_부동산등기법": "부동산등기법",
|
||||
"S_민사집행법": "민사집행법",
|
||||
"S_민사소송법": "민사소송법",
|
||||
"S_소송촉진법": "소송촉진 등에 관한 특례법",
|
||||
"S_채무자회생법": "채무자 회생 및 파산에 관한 법률",
|
||||
"S_특례이율령": "소송촉진 등에 관한 특례법 제3조제1항 본문의 법정이율에 관한 규정",
|
||||
}
|
||||
for n, q in LAWS.items():
|
||||
JOBS.append((n, {"_ep": "lawSearch.do", "OC": "test", "target": "law", "query": q,
|
||||
"type": "XML", "display": "20"}))
|
||||
|
||||
# --- 예규 목록 ---
|
||||
JOBS.append(("S_예규1786", {"_ep": "lawSearch.do", "OC": "test", "target": "admrul",
|
||||
"query": "판결 등 집행권원에 의한 등기의 신청에 관한 업무처리지침",
|
||||
"type": "XML", "display": "20"}))
|
||||
JOBS.append(("S_예규1671", {"_ep": "lawSearch.do", "OC": "test", "target": "admrul",
|
||||
"query": "전세권변경등기 등의 기록방법에 관한 사무처리지침",
|
||||
"type": "XML", "display": "20"}))
|
||||
|
||||
for name, p in JOBS:
|
||||
fetch(name, dict(p))
|
||||
time.sleep(8)
|
||||
|
||||
log("PHASE1_DONE")
|
||||
Reference in New Issue
Block a user