feat(ms-ai-architect): Enhet A2 — Layer B baseline-adjudikering: innholds-basert allowlist (75 funn adjudikert, TDD) + 4 korpus-defekter fikset (2 homoglyph-ord, 2 U+00AD-filer); korpus 389/389 exit 0 [skip-docs]

This commit is contained in:
Kjell Tore Guttormsen 2026-07-18 10:31:06 +02:00
commit af6c31c4c1
11 changed files with 1048 additions and 15 deletions

View file

@ -74,7 +74,9 @@ function report({ kb, results }) {
process.stdout.write(`Layer B pre-commit scan: ${kb.length} staged KB file(s).\n`);
for (const r of results) {
if (r.disposition === 'clean') {
process.stdout.write(` OK ${r.path}\n`);
const allowed = (r.findings ?? []).filter((f) => f.disposition === 'allow').length;
const note = allowed > 0 ? ` (${allowed} allowlisted)` : '';
process.stdout.write(` OK ${r.path}${note}\n`);
continue;
}
const marker = r.disposition === 'block' ? 'BLOCK' : 'WARN ';