docs(clean-architecture-backend-template): 제1부가 채택한 것만 글감으로 남기고 다시 고른다
글감 1,001개 중 제1부(§3~§11) 앵커를 하나라도 가진 것은 112개뿐이었다. 나머지 889개는
제2부 모듈 분석 65편의 절 제목에서 나온 것이고, 그것이 재판정이 필요했던 이유다.
주제 44 → 16 (43개가 독자 질문 없이 있었다. 지금은 전부 있다)
글감 1,001 → 123 (제1부 앵커 112 + 제1부가 채택했는데 비어 있던 자리 11)
후보 965 → 1,088 · PENDING 905 → 0
error 3,042 → 0
내려온 889개는 후보 대장에 KEEP_IN_SSOT 로 남는다 — 버린 것이 아니라 분석에 남기고 독립
기록으로 만들지 않기로 한 것이다. 그 글감을 받치던 기록 파일 828개는 지웠다. 계약이 정본이고,
파일이 남아 있다는 이유로 계약에서 뺀 주제가 되살아나면 안 된다. 이력에는 그대로 있다 —
git checkout a0ca2bb -- <경로>.
제1부가 채택했는데 글감이 없던 자리 열하나를 채웠다: mongo high-water mark 가 재전달 이벤트를
삼킨 P1, admin plane 이 가드만 켜고 서비스는 켜지 않은 것과 그 짝인 결정, 실패 어휘 세 층과
SQLState 매트릭스 병합 규칙, 부하 아래에서만 새는 admission 경계, 발행 증거와 완료 판정의
분리, keyset·JSONB 결정 둘.
Concept 17개에 basis-version 을 채우고, 계약 제목과 기록 제목이 갈라져 있던 23건을 기록 쪽에
맞췄다. candidateScope 에 excludedAnchorPattern 을 적어 제2부 앵커만 가진 글감이 다시 올라올
수 없게 한다.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
a0ca2bb72a
commit
1f04117bbf
@@ -141,12 +141,19 @@ def verify(project: str) -> Report:
|
||||
if os.path.isdir(studio):
|
||||
wrong = 0
|
||||
broken = 0
|
||||
records = 0
|
||||
cited_figures: set[str] = set()
|
||||
cited_evidence: set[str] = set()
|
||||
for path in sorted(glob.glob(os.path.join(studio, "*", "*", "*.md"))):
|
||||
if os.path.basename(os.path.dirname(os.path.dirname(path))).startswith("_"):
|
||||
continue
|
||||
records += 1
|
||||
text = open(path, encoding="utf-8").read()
|
||||
for m in re.finditer(r"^ file: (\S+)$", text, re.M):
|
||||
target = os.path.normpath(os.path.join(os.path.dirname(path), m.group(1)))
|
||||
# 이름이 같으면 같은 그림이다. tech-log-studio/ 사본도 SSOT 원본을 쓴 것으로 센다
|
||||
cited_figures.add(os.path.basename(target)[:-4]
|
||||
if target.endswith(".svg") else os.path.basename(target))
|
||||
if not os.path.exists(target):
|
||||
broken += 1
|
||||
if broken <= 5:
|
||||
@@ -155,9 +162,28 @@ def verify(project: str) -> Report:
|
||||
continue
|
||||
if f"assets{os.sep}{STUDIO_ASSETS}{os.sep}" not in target:
|
||||
wrong += 1
|
||||
for m in re.finditer(r"^ - (\.\./\S*final/evidence/\S+)$", text, re.M):
|
||||
cited_evidence.add(
|
||||
os.path.normpath(os.path.join(os.path.dirname(path), m.group(1))))
|
||||
if wrong:
|
||||
rep.warn("Studio 자산이 assets/tech-log-studio/ 밖에 있다",
|
||||
f"{wrong}건 — 다른 프로젝트는 전부 그 폴더를 쓴다")
|
||||
|
||||
# ── SSOT 가 만들어 둔 것을 기록이 쓰고 있나 ────────────────────
|
||||
# 기록이 하나도 없는 프로젝트는 아직 안 쓴 것이지 안 쓰기로 한 것이 아니다
|
||||
if records:
|
||||
unused_figures = [rel for stem, rel in _svg_stems(assets)
|
||||
if stem not in cited_figures]
|
||||
for rel in unused_figures:
|
||||
rep.warn("기록이 쓰지 않는 SSOT 그림", f"final/assets/{rel}")
|
||||
unused_evidence = [
|
||||
p for p in sorted(glob.glob(os.path.join(evidence, "raw", "**", "*"),
|
||||
recursive=True))
|
||||
if os.path.isfile(p)
|
||||
and os.path.basename(p) != "README.txt"
|
||||
and p not in cited_evidence]
|
||||
for p_ev in unused_evidence:
|
||||
rep.warn("기록이 인용하지 않는 raw 증거", os.path.relpath(p_ev, base))
|
||||
return rep
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user