Expand description
Comprehensive dotfile protection system.
This module implements protection for hidden configuration files (dotfiles) to prevent automatic or implicit modifications by AI agents or automated tools.
Features:
- Explicit user confirmation with clear disclosure
- Immutable audit logging of all access attempts
- Whitelist mechanism with secondary authentication
- Cascade prevention (blocking chain reactions)
- Backup and restore functionality
- Permission preservation
Structs§
- Access
Context - Context for a dotfile access request.
- Audit
Entry - A single audit log entry.
- Audit
Log - Immutable audit log for dotfile access.
- Backup
Manager - Manager for dotfile backups.
- Confirmation
Request - Request for user confirmation.
- Dotfile
Backup - Metadata for a dotfile backup.
- Dotfile
Guardian - The Dotfile Guardian.
- Protection
Violation - A protection violation.
Enums§
- Access
Type - Type of access being attempted.
- Audit
Outcome - Outcome of a dotfile access attempt.
- Protection
Decision - Decision from the dotfile guardian.
Functions§
- get_
global_ guardian - Get the global dotfile guardian.
- init_
global_ guardian - Initialize the global dotfile guardian.
- is_
protected_ dotfile - Check if a path is a protected dotfile using the global guardian.