docs(rules): ban restructuring code to slip past a checker

Task 07 wrote px font sizes as the `font:` shorthand in two components
because check-tokens.mjs only matches `font-size:`. Green branch, two
hardcoded values. Make the expectation explicit: report the gap, stop.

Also fixes gates.md telling agents to rebase WIP commits away, which
git-worktrees.md forbids outright.
This commit is contained in:
Marcos Paulo
2026-09-05 06:50:37 +00:00
parent f241c5581a
commit 0a60601272
2 changed files with 26 additions and 2 deletions
+4
View File
@@ -27,6 +27,10 @@ You may not edit `tokens.css`, `verify.mjs`, `astro.config.mjs`, or
## Rules that bite
- No raw hex, no px font sizes, no ad-hoc breakpoints. Tokens only.
- **Never reshape CSS to slip past `check-tokens.mjs`** — e.g. the `font:`
shorthand to hide a px size it would catch as `font-size:`. If the token you
need does not exist, report the gap and stop; you may not add it yourself. See
`.agents/rules/gates.md`.
- No `client:*` unless genuinely interactive, with written justification.
- Every ARIA attribute from the markup you replace survives. `verify.mjs`
asserts several by name.