feat(scripts): check-work-docs가 작업 흐름 이름과 red team ID를 잡는다

문제: 진입 문서의 이력 ID 검사(HISTORY_PATTERNS)는 리뷰 라운드·묶음
이름의 아는 꼴만 잡는다. 2026-11 프로그램의 작업 흐름 이름(W1~W6)과 red
team 발견 ID(BE-OBS-A, BE-CONFIG-001)는 꼴이 없어, operate.md에 들어간
"(W4 BE-OBS-A)"를 --history도 기본 검사도 잡지 못했다.

고른 방법: 두 꼴을 패턴에 더한다. W 뒤 숫자 하나가 단어로 서 있을 때
(W3C, HTTP-W1-x는 아님), BE·FE 뒤 대문자 분야와 세 자리 번호나 글자
하나. 지금 검사 대상 문서에는 걸리는 줄이 없다.

위험·한계: 새 이름 꼴(다른 프로그램의 흐름 이름 등)은 또 패턴을 더해야
잡힌다. 검사는 아는 꼴만 본다는 한계는 그대로다(be-docs 함정 2).

검증: 새 시험 둘(걸리는 세 줄, 걸리면 안 되는 W3C) — 기준
check-work-docs.py에 얹으면 세 줄 모두 통과해 3건 실패, 이 커밋에서
test_check_work_docs 17건 통과. check-work-docs.py rc=0.
This commit is contained in:
DongHyeonka
2026-11-12 21:39:43 +09:00
parent c0d7ad8f52
commit 48789b7c5f
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -130,6 +130,11 @@ HISTORY_PATTERNS = [
("finding number with its chosen option (03-11 (b))",
re.compile(r"(?<![\w./:-])\d{2}-\d{2} \([a-e]\)", re.ASCII)),
("review README section (review README §15)", re.compile(r"review README §", re.ASCII)),
# The 2026-11 program ran in work streams W1~W6, and the red team named findings BE-OBS-A,
# BE-CONFIG-001. "(W4 BE-OBS-A)" told only a reader of that week's notes where a rule came from.
("program work stream (W4)", re.compile(r"(?<![\w-])W\d(?![\w-])", re.ASCII)),
("red team finding (BE-OBS-A, BE-CONFIG-001)",
re.compile(r"(?<![\w-])(?:BE|FE)-[A-Z]{2,}-(?:\d{3}|[A-Z])(?![\w-])", re.ASCII)),
("commit sha", re.compile(r"\b(?=[0-9a-f]*\d)(?=[0-9a-f]*[a-f])[0-9a-f]{7,40}\b", re.ASCII)),
]