mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 16:14:12 +01:00
An immutable tracked file with uncommitted edits breaks every commit/push:
pre-commit clears unstaged changes with `git checkout -- .`, that unlink
fails ("Operation not permitted"), the context manager aborts, and the
restore never runs — silently reverting the user's OTHER unstaged edits
(seen twice today; an unrelated i3/config WIP had to be recovered from
pre-commit's rescue patch).
Enforcement is unaffected and does not depend on the source being locked:
/etc/shutdown-schedule.conf stays chattr +i, guard-lib keeps a canonical
snapshot + path watcher that re-enforces it, the monitor service protects
the timer, and screen_locker's ratchet only accepts same-or-stricter
values. Editing this source changes nothing until setup is re-run as root,
which rewrites the guarded config anyway.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JsCs1GUyiinA7bg68YvAh1
|
||
|---|---|---|
| .. | ||
| pacman | ||
| systemd | ||
| virtualbox | ||
| .gitignore | ||
| block_compulsive_opening.sh | ||
| focus_mode_daemon.py | ||
| install_focus_mode_daemon.sh | ||
| install_leechblock.sh | ||
| leechblock_defaults.json | ||
| music_parallelism.sh | ||
| package-lock.json | ||
| package.json | ||
| README_COMPULSIVE_BLOCK_LLM.md | ||
| README_MIDNIGHT_SHUTDOWN_LLM.md | ||
| remove_guest_mode.sh | ||
| seed_leechblock_storage.js | ||
| setup_midnight_shutdown.sh | ||
| youtube-music-wrapper.sh | ||