feat: Wave A — консолидация лаборатории (BHL-004…009)

Терминология BHL/BHS/bhl в текущих документах без переписывания истории
и URL (D-033); запись sources/harness2.md с отпечатками публичной
ревизии 1cfe254e и двусторонними связями; results/pi-retro →
results/pi-supervisor; проверка source-orphan для каталогов проектов
без записи происхождения; правило read-only внешних проектов с
механизмом D-038; backlog doctor в составе npm run quality.
This commit is contained in:
Suslov-MD
2026-11-28 18:41:13 +03:00
parent 4b76d4e583
commit 1f5b0d9238
15 changed files with 96 additions and 15 deletions
+8
View File
@@ -281,6 +281,14 @@ export function checkRepository(directory) {
}
}
}
// A project subdirectory (handoffs and friends) without its provenance record
// is an orphan: the record was forgotten during intake (found 2026-11-28).
for (const file of files.keys()) {
const match = /^sources\/([^/]+)\/.+/.exec(file);
if (match && !files.has(`sources/${match[1]}.md`)) {
error(file, 1, 'source-orphan', 'Файлы каталога проекта без записи происхождения sources/<project-id>.md.');
}
}
return { errors, warnings, materials: materials.size, projects: projectRecords.size };
}