feat(a11y): skill (scan, keyboard walk, report, fix loop on the bugfix circuit), lazy rules/a11y.md, profiles, locks

This commit is contained in:
bchanot committed 2026-10-19 00:48:09 +02:00
1 parent 45e3454b99
commit 60d447e544
16 files changed
+284 -7

No files matched your search

+10
View File
@@ -15,6 +15,7 @@ BSK="$REPO/skills/bugfix/SKILL.md"
HOT="$REPO/agents/hotfixer.md"
HSK="$REPO/skills/hotfix/SKILL.md"
GSK="$REPO/skills/guardrails/SKILL.md"
ASK="$REPO/skills/a11y/SKILL.md"
HSKL="$REPO/skills/hotfix/SKILL.md"
PASS=0; FAIL=0
@@ -79,6 +80,15 @@ tf "guardrails positive control" "$GSK" "Positive control"
tf "guardrails approval gate" "$GSK" "Nothing is applied without the user's explicit acceptance"
tf "guardrails re-pass baseline" "$GSK" "GUARDRAILS-NO-NEW"
echo "── skills/a11y/SKILL.md (fix loop reuses the bugfix circuit) ──"
tf "a11y contract include" "$ASK" "lib/contract-interview.md"
tf "a11y uses shared include" "$ASK" "lib/verify-secure-loop.md"
tf "a11y dispatches bugfixer" "$ASK" 'subagent_type="bugfixer"'
tf "a11y scanner is the oracle" "$ASK" "EXPECT: A11Y-CLEAR"
tf "a11y positive control" "$ASK" "Positive control"
tf "a11y approval gate" "$ASK" "Nothing is applied without the user's explicit acceptance"
tf "a11y re-pass baseline" "$ASK" "A11Y-NO-NEW"
echo "── agents/bugfixer.md (bugfix executor — sonnet, no Agent) ──"
tn "bugfixer lacks Agent tool" "$BUG" "Agent"
tf "bugfixer model sonnet" "$BUG" "model: sonnet"
+2 -2
View File
@@ -9,8 +9,8 @@ has() { if grep -qF "$2" "$R/$1"; then ok; else ko "$1 missing: $2"; fi; }
lacks() { if grep -qF "$2" "$R/$1"; then ko "$1 must NOT contain: $2"; else ok; fi; }
fm_lacks() { if awk 'NR<=10' "$R/$1" | grep -qF "$2"; then ko "$1 frontmatter must NOT contain: $2"; else ok; fi; }
# 1) gate wired in the 16 reflection skills (orchestrators, /analyze, /guardrails)
for s in ship-feature init-project feat bugfix onboard seo geo web-validate harden audit-delta tour code-clean hotfix client-handover analyze guardrails; do
# 1) gate wired in the 17 reflection skills (orchestrators, /analyze, /guardrails, /a11y)
for s in ship-feature init-project feat bugfix onboard seo geo web-validate harden audit-delta tour code-clean hotfix client-handover analyze guardrails a11y; do
has "skills/$s/SKILL.md" 'lib/model-gate.md'
done
# 2) gate NOT wired in the pure-execution/read-only skills (exclusion list)