feat: replace 39 infringement cases with v3.0 18-item manuscript checklist

- data/taxonomy/cases_v3.0.json: 아카이빙DB v3.0 「2.원고점검체계18」 + 부록1-A 대표판례.
  항목↔태그 매핑은 원문 표가 없어 tag_basis(명시/추정)로 구분 (추정 7항목은 컴북스 확인 대기)
- 분류 후보를 엔진 판별 대상(M1·M2·M7·M10·P2)으로 한정
- admin detect 응답 case_candidates 에 matched_tags·reason·decision_steps·author_request 추가
  (author 응답에서는 기존대로 제외)
- /v1/taxonomy 에 항목별 판단 기준·판정 단계·문면·태그 근거 노출

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
HyeongBaeYangandClaude Opus 5.5 committed 2026-10-20 10:07:41 +09:00
1 parent 7d985b4ec3
commit 12bb82a015
10 files changed
+757 -1006

No files matched your search

+8 -8
View File
@@ -43,7 +43,7 @@ def test_out_of_scope_excluded_from_request():
assert rep["need_data_cases"] == 0
# --- 태그 → 케이스 도달 범위 회귀 (v1.3) ---------------------------------
# --- 태그 → 항목 도달 범위 회귀 (v3.0) ---------------------------------
from pathlib import Path
@@ -68,20 +68,20 @@ def _reachable():
def test_reachable_cases_cover_most_technical_detection_cases():
"""v1.3 ● 19건 중 16건이 태그만으로 후보에 오른다.
"""엔진 판별 대상 5항목 중 M1·M2·M10 이 태그만으로 후보에 오른다.
남은 B3·C1·D1 은 게재 사실·편집 개입·성명표시처럼 텍스트에서 알 수 없는
사실이 필요해 LegalContext 없이는 도달할 수 없다. 이 경계를 고정한다.
남은 M7(공동 원고)·P2(이중출판)는 성명표시·허위 저작자 표시처럼 작성자
관계를 알아야 하는 태그가 필요해 텍스트만으로는 도달할 수 없다. 이 경계를 고정한다.
"""
tax = load_taxonomy(ROOT / "data/taxonomy")
detectable = {c.case_id for c in tax.cases if c.detectable_internal}
reachable = _reachable()
assert detectable - reachable == {"B3", "C1", "D1"}
assert len(reachable & detectable) == 16
assert reachable == {"M1", "M2", "M10"}
assert detectable - reachable == {"M7", "P2"}
def test_no_tie_group_is_silently_collapsed():
"""동점군이 2건 이상이면 전부 반환된다 — 하나만 남으면 나머지가 사장된다."""
tax = load_taxonomy(ROOT / "data/taxonomy")
assert len(tax.find_cases(["reproduction", "citation_missing"])) == 7
assert len(tax.find_cases(["derivative_work", "substandard_derivative"])) == 2
assert len(tax.find_cases(["reproduction"])) == 2
assert len(tax.find_cases(["derivative_work", "substandard_derivative"])) == 1