Add System Safety: grace periods + re-auth for destructive actions#7
Merged
SiteRelEnby merged 1 commit intomainfrom Apr 27, 2026
Merged
Add System Safety: grace periods + re-auth for destructive actions#7SiteRelEnby merged 1 commit intomainfrom
SiteRelEnby merged 1 commit intomainfrom
Conversation
Optional, opt-in grace periods and re-auth requirements on destructive actions within a system (delete member/group/tag/custom field/front entry), plus a pending-actions inbox, plus asymmetric protection for the safety settings themselves — loosening inherits the grace period it protects, so a compromised session can't disable the safeguard and Reuses the existing `systems.delete_confirmation` column as the system-wide auth tier (comments added to flag the historical name). Pending actions snapshot who was fronting at request time for audit context. Tightening changes apply immediately; loosening changes go through a SafetyChangeRequest that finalizes after the current grace period. Any signed-in user can cancel pending actions/changes. Banners for pending items render in the same stack as announcement banners, sharing severity config; escalates from warning to critical inside 24h of finalization. Post-signup onboarding prompt nudges new users toward 2FA and System Safety setup. needs end-to-end manual testing before merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
systems.delete_confirmationcolumn as the system-wide auth tier (comments added to flag the historical name).Testing
ruff check sheaf/passescd web && npm run lint && npx tsc --noEmitpasses