revert: drop task 03's out-of-scope audit-ui changes

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 <noreply@anthropic.com>
This commit is contained in:
Marcos Paulo
2026-09-05 03:31:53 +00:00
parent db86edbc21
commit 2e79aacecc
2 changed files with 2 additions and 7 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ case "$first_line" in
"Merge "*|"Revert "*) exit 0 ;; "Merge "*|"Revert "*) exit 0 ;;
esac 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 '<type>: <subject>' (lowercase type)." >&2 echo "commit-msg: subject must be '<type>: <subject>' (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 echo " got: $first_line" >&2
exit 1 exit 1
fi fi
-5
View File
@@ -23,11 +23,6 @@ const shared = read('chapters.css');
const skills = read('skills/styles.css'); const skills = read('skills/styles.css');
const guide = read('full-guide/index.html'); const guide = read('full-guide/index.html');
const guideAudit = read('full-guide/audit.css'); 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)']) for (const token of ['@media(max-width:800px)', '@media(max-width:520px)'])
if (!shared.includes(token)) throw new Error(`shared chapter CSS lacks ${token}`); if (!shared.includes(token)) throw new Error(`shared chapter CSS lacks ${token}`);
for (const token of [ for (const token of [