fix(phase-33): doc_links — a missing default document that is on the pending list counts as PENDING, not BROKEN (docs/retrospective.md until F2)

This commit is contained in:
Drew T
2026-09-07 01:11:04 -06:00
parent 5b03ae1d5a
commit c8c4e37f5a
+4 -1
View File
@@ -42,7 +42,10 @@ def check(files, strict):
for f in files:
fp = REPO / f
if not fp.exists():
broken.append((f, "<file itself>", "document missing"))
if f in pend:
pend_hits.append((f, "<the document itself>", pend[f])) # promised by a later task, tracked
else:
broken.append((f, "<file itself>", "document missing"))
continue
text = fp.read_text(encoding="utf-8", errors="replace")
for m in LINK_RE.finditer(text):