Skip to content
youdede

Authentication Accessibility Guard

DesignHookv1.0.0

Parses bounded markup and rejects changes that newly block paste on a credential field, disable its autofill, or add a password-manager opt-out attribute, the failures WCAG 2.2 SC 3.3.8 documents, and, as a precaution, changes that drop its autocomplete token.

Runs on

Scope
$npx @youdede/toolkit add authentication-accessibility-guard --target claude-code

What it does

Block edits that stop a password manager filling an authentication field or stop the user pasting into it.

When it fires

  • implementation
  • pre-commit

How it behaves

Block edits that stop a password manager filling an authentication field or stop the user pasting into it.

It does not identify a credential field from a class, placeholder, or framework binding; only the password input type and a reserved autocomplete token are treated as evidence.

It does not report a paste block, disabled autofill, or manager opt-out that the inspected edit did not introduce.

It does not recognise every password manager's opt-out attribute, and it does not detect an alternative authentication method offered elsewhere.

It does not claim WCAG 3.3.8 conformance.

Configuration

targets/claude-code/authentication-accessibility-guard.mjsnode · read-only

Version
1.0.0
Requires
node
Licence
RiskThis automatic gate blocks edits that stop a password manager filling an authentication field or stop the user pasting into it; a false denial can interrupt legitimate work, but it does not execute the blocked action.
Medium
ModeHow it works: fixed rules, model instructions, or both.
Deterministic only
Behaviour
Enforces, blocks on violation
On failure
Denies and blocks
LatencyThe entrypoint handles one intercepted event to block edits that stop a password manager filling an authentication field or stop the user pasting into it without deferred work.
Immediate
Data retentionWhether data remains after use and who manages its storage.
Not retained
In packs
  • Accessibility assurance

Often used with

All in Design