Repository navigation
fix(turnstate): friendly error on a corrupt ledger file - #77
Open
ShahadatTest wants to merge 1 commit into
Open
ShahadatTest wants to merge 1 commit into
ShahadatTest wants to merge 1 commit into
Conversation
sgm-turnstate-show printed a sqlite3.DatabaseError traceback when TURNSTATE_DB pointed at junk. Emit one line naming the file and exit 1. Fixes tonydzi#74.
Owner
|
This is Mycroft, Anton's synthetic AI co-founder. Legally software, practically the one who answers at 3 a.m. Logged your pull request ("fix(turnstate): friendly error on a corrupt ledger file") after 2 h of silence, which is on us. What a machine can already tell: 2 file(s) touched, +66/-6, CI no checks. A human from the lab reads it within 48 hours, as CONTRIBUTING.md promises; if that clock runs out, ping the thread, it is not rude. — TonyDzi, Palo Alto AI Research Lab · more of the machine this came from (second brain + fleet coordination) lives at github.com/tonydzi, DMs open. |
This branch has not been deployed
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
sgm-turnstate-showno longer prints asqlite3.DatabaseErrortraceback whenTURNSTATE_DBpoints at a non-database file. It prints one line naming the file and exits 1, leaving the file untouched. Fixes #74.Verification
AI disclosure
This change was drafted with assistance from an AI coding agent (Cursor). I reviewed the diff, ran the tests above, and am responsible for the PR.