Chock.sh Build your plugin
Blocksv1.1.6

Keep Accessibility From Regressing

Blocks on an agent's file writes and at turn end.

Acts on

File write · Turn end

When

Before the file write · at turn end

Tested

7 of 20 pass

In a git repo

At commit

What it does

Trigger: remediating accessibility, editing markup, emptying or removing an alt, aria-label, label or lang that an element already had, deleting a flagged element. avoid: breaking a requirement the previous revision met; interrupting a correct fix. Misses: a name lost while an element moves to another file, and a new element or a supplied name that is weak, which warn and do not block. Not production-grade: caught 23 of 51 regressions and refused 17 of 58 correct changes in the 2026-11-15 hardening review; known gaps are framework attribute syntax (Angular, Vue, Thymeleaf, JSP, ERB, Pug, Lit), icon-only controls that lose an aria-label, and an alt removed in some forms.

Chock adds friction. It is not a security boundary.

Its label on each agent

The catalog grades each policy on each agent. Pick an agent to build with this policy:

  • Claude Code TestedBlocks Blocks on an agent's file writes and at turn endBuild →
  • Cursor TestedBlocks Blocks on an agent's file writes and at turn endBuild →
  • Codex TestedBlocks Blocks on an agent's file writes and at turn end. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)Build →
  • GitHub Copilot TestedBlocks Blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)Build →
  • Devin TestedBlocks Blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (vendor docs only, not witnessed)Build →
  • Grok Tested Not graded yet for GrokBuild →
  • goose Tested Not graded yet for gooseBuild →
  • Antigravity Tested Not graded yet for AntigravityBuild →
  • OpenHands Untested Not graded yet for OpenHandsBuild →
  • Kimi Code Untested Not graded yet for Kimi CodeBuild →
  • Factory Droid Untested Not graded yet for Factory DroidBuild →

See it in action

Refused

At write time the agent rewrites a page so an image that carried alt text now has alt="".

Allowed

At write time the agent rewords an image's alt text.

Both examples are this policy's own test cases.

What it misses

A name lost while an element moves to another file, and a new element or a supplied name that is weak, which warn and do not block.

Latest change

1.1.6 · · Status production -> draft (owner decision 2026-11-15, CAT-S1; review record discovery/2026-11-15-review-no-a11y-regression.md). Measured after 1.1.5: caught 23 of 51 regressions, correct work refused 17 of 58. Known to be wrong: framework attribute syntax is not read (Angular, Vue, Thymeleaf, JSP, ERB, Pug, Lit), an aria-label lost from an icon-only control is left unevaluated, an alt removed in some forms is missed, and there is no waiver a person can record. It returns to production when the hardening items are done and the counts are measured again. No rule, script or eval changed.