knowledge(M01): 계수 1-2-4 5·6항 표 셋 올림 — 발생재 공제율 · 강관배관 부자재율(일반업무용·병원) · 본문 대조 절 전체로 복원

- CC000338~340 · 원문 수 그대로 · 쓰는 로직 없음(로직키 빈 목록) · 본문 대조 0건

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JgUhN55Z3BCYhUJTjwTNfj
This commit is contained in:
2026-09-22 01:18:19 +09:00
co-authored by Claude Sonnet 5
parent 0066a5a30e
commit a674b92512
3 changed files with 110 additions and 8 deletions
@@ -501,10 +501,6 @@ def _flat(value) -> set[str]:
return set()
# 절 안에서 아직 표로 안 올린 뒷항의 머리 — 그 앞까지만 결손 대조(1-2-4 5항 발생재 공제율 · 6항 강관배관 부자재율)
UNBUILT = {"1-2-4": "5\\. 발생재의 처리"}
def check_body(files: dict[str, dict]) -> list[str]:
"""표마다 허구 · 절마다 결손."""
out, by_section = [], {}
@@ -536,9 +532,6 @@ def check_body(files: dict[str, dict]) -> list[str]:
if md2 == md and ident2.startswith(ident + "-"):
mine = mine | mine2
tables = tables + tables2
cut = UNBUILT.get(ident)
if cut and cut in text:
text = text[: text.index(cut)] # 표로 안 올린 뒷항은 결손 대조에서 뺌
table_text = "\n".join(line for line in text.split("\n") if line.lstrip().startswith("|"))
lack = numbers_in(table_text) - mine
if lack: