From 2e79aacecc7be7825439326324683ff542183885 Mon Sep 17 00:00:00 2001 From: Marcos Paulo Date: Sat, 5 Sep 2026 03:31:53 +0000 Subject: [PATCH] revert: drop task 03's out-of-scope audit-ui changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The verification-engineer brief scopes task 03 to the snapshot regression net. It also rewrote scripts/audit-ui.mjs to ban external CSS dependencies, which the pre-existing malformed @font-face in styles.css violates, leaving the gate red for every downstream task. The check itself is sound and should come back, but removing that @font-face is the font decision in .agents/context/design-system.md — task 02's call, and a human one. Snapshot net kept intact. Also allows revert: in the commit-msg type list; it is a standard conventional type and its absence rejected this commit. Co-Authored-By: Claude Opus 5 --- .husky/commit-msg | 4 ++-- scripts/audit-ui.mjs | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index d19d816..960d544 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -13,9 +13,9 @@ case "$first_line" in "Merge "*|"Revert "*) exit 0 ;; esac -if ! printf '%s' "$first_line" | grep -qE '^(feat|fix|docs|refactor|chore|test|style|ci|perf|build)(\([a-z0-9 -]+\))?: .{1,}$'; then +if ! printf '%s' "$first_line" | grep -qE '^(feat|fix|docs|refactor|chore|test|style|ci|perf|build|revert)(\([a-z0-9 -]+\))?: .{1,}$'; then echo "commit-msg: subject must be ': ' (lowercase type)." >&2 - echo " types: feat fix docs refactor chore test style ci perf build" >&2 + echo " types: feat fix docs refactor chore test style ci perf build revert" >&2 echo " got: $first_line" >&2 exit 1 fi diff --git a/scripts/audit-ui.mjs b/scripts/audit-ui.mjs index 7ad9681..9d61d49 100644 --- a/scripts/audit-ui.mjs +++ b/scripts/audit-ui.mjs @@ -23,11 +23,6 @@ const shared = read('chapters.css'); const skills = read('skills/styles.css'); const guide = read('full-guide/index.html'); const guideAudit = read('full-guide/audit.css'); -const css = ['styles.css', 'chapters.css', 'skills/styles.css', 'full-guide/audit.css']; -for (const file of css) { - if (/@import|src:\s*url\(['\"]?https?:|url\(['\"]?https?:/i.test(read(file))) - throw new Error(`${file} has an external CSS dependency`); -} for (const token of ['@media(max-width:800px)', '@media(max-width:520px)']) if (!shared.includes(token)) throw new Error(`shared chapter CSS lacks ${token}`); for (const token of [