What the person is doing
The action affects broad, production, security-sensitive, account-level, repository-level, or organization-level scope.
Application · lesson 8 of 23 · Error Prevention And Recovery
Underlying principle: Recovery begins before the error. Clear consequences, suitable constraints, preserved work, and a visible correction path reduce the cost of a mistake.
Require users to type a visible, exact target phrase such as a repository path, project slug, workspace name, or short destructive phrase before enabling the final commit, while preserving the broader consequence review and safe cancellation path.
Recovery begins before the error. Clear consequences, suitable constraints, preserved work, and a visible correction path reduce the cost of a mistake.
The action affects broad, production, security-sensitive, account-level, repository-level, or organization-level scope.
Require users to type a visible, exact target phrase such as a repository path, project slug, workspace name, or short destructive phrase before enabling the final commit, while preserving the broader consequence review and safe cancellation path.
Required phrase state showing the exact target phrase to reproduce.
What exact wrong-object mistake does typing the phrase prevent?
The required phrase is visible in the same confirmation surface as the input field.
The action affects broad, production, security-sensitive, account-level, repository-level, or organization-level scope.
Open the working example, try its controls, and compare the behavior against the decision guidance.
The action affects broad, production, security-sensitive, account-level, repository-level, or organization-level scope.
Require users to type a visible, exact target phrase such as a repository path, project slug, workspace name, or short destructive phrase before enabling the final commit, while preserving the broader consequence review and safe cancellation path.
Required phrase state showing the exact target phrase to reproduce.
Autocomplete or a password manager fills stale text and enables the wrong destructive action.
Associate the input with a label that includes or references the required phrase.
GitHub - checked
GitHub repository deletion requires typing the repository name to verify the target after warning acknowledgement.
GitLab - checked
GitLab project deletion requires entering the project name in the confirmation dialog before deleting.
Microsoft - checked
Microsoft confirmation guidance supports specific consequence information and warns against unnecessary confirmation friction.
W3C Web Accessibility Initiative - checked
APG supplies alertdialog semantics for important modal decisions requiring a user response.
Source trail checked: