Safety Model
Confidence tiers
Section titled “Confidence tiers”| Tier | Meaning | Example |
|---|---|---|
SAFE |
Easily recreated or fully reversible | dangling Docker image, __pycache__ |
REVIEW |
May affect your workflow | old download, browser cache |
MANUAL |
High risk, explicit opt-in | branch on an active project |
Protections
Section titled “Protections”- Read-only by default —
auditandplannever modify anything. - Dry-run by default —
cleanneeds--apply. - Hard exclusions — system directories,
/,$HOMEitself and any folder that contains one of your protected paths, sensitive dotfiles, symlinks that leave$HOME, active virtualenvs and.gitare never touched. - bekas’s own data directory is excluded, so quarantine contents are never cleaned by accident.
- Non-local filesystems (NFS, SMB, FUSE) and symlinks leaving
$HOMEare skipped. - Recently modified files (within
min_quiet_hours, default 6) are skipped. - MANUAL is opt-in twice — plans containing
MANUAL-tier candidates are refused unless--allow-manualis passed (orallow_manual: truein the profile); the typed high-risk token confirmation is still required on top, and--yes-allalone can never bypass it. - Credential shield —
.env*,.npmrc,.pypirc,id_rsa/id_ed25519/id_ecdsa,~/.password-store,ghCLI config, Docker config, OS keychains and browserLogin Data/Cookiesare protected at every depth, regardless of tier. - Typed confirmation for high-risk operations.
- Signed plans detect tampering.
The full list of exclusion rules is in docs/SAFETY.md.
Your own exclusions
Section titled “Your own exclusions”exclude: - ~/code/keep-me - "*/important/*" - node_modules/keepPatterns use gitignore-style matching: * stays inside one path segment, ** crosses segments, a pattern without a leading / or ~/ matches at any depth, and excluding a directory also excludes everything inside it. Exclusions are checked again when a saved plan is applied, so adding one after bekas plan --save still protects that path.