Repository navigation
Conversation
- Check SQLite database integrity (integrity_check) - Find deleted-but-open SQLite WAL/SHM sidecars (lock-drop detection) - Checkpoint SQLite WAL file into the main database - Find deleted-but-open files holding disk space (lsof +L1) Battle-tested on a live multi-agent deployment after debugging a SQLite permission-helper lock-drop (upstream hermes-lcm #588).
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.
What
4 new workflow specs (3 in
specs/sql/, 1 inspecs/shell/):specs/sql/check_sqlite_database_integrity.yamlsqlite3 <db> "PRAGMA integrity_check;"specs/sql/find_deleted_but_open_sqlite_wal_shm_sidecars.yamllsof +L1 | grep ...specs/sql/checkpoint_sqlite_wal_file.yamlPRAGMA wal_checkpoint(TRUNCATE)specs/shell/find_deleted_but_open_files_holding_disk_space.yamllsof +L1Why these
Battle-tested on a live multi-agent deployment while debugging a SQLite
permission helper that dropped active POSIX record locks (open/fchmod/close on
an ordinary descriptor cancels them), reproducing deleted WAL/SHM handles and
disk I/O errors (see stephenschoettler/hermes-lcm#588). The
lsof +L1detectionpattern is the fastest way to spot this bug class; the generic
lsof +L1workflow also catches the everyday "df says full, du says empty" case.
Format
Follows FORMAT.md: name / command with
{{arg}}/ tags / description / source_url / author / author_url / shells. All commands verified against live SQLite databases.