Repository navigation
plugin: a corrupt graph.sqlite is said, moved aside and rebuilt, never a traceback - #1716
Merged
Merged
Conversation
…r a traceback A graph.sqlite that is not a readable database (a disk that filled, a copy cut short) made every verb, from the shell and through the MCP server, die in a Python sqlite3 traceback. Each verb's door (axiomcode-path G, axiomcode-graph) now probes the graph (schema read, quick_check only when that fails or when an sqlite error escapes mid-answer), says "graph is corrupt", moves it aside with a marker that stops the build calling unchanged files up to date, rebuilds it, and answers from the last good (baseline) graph meanwhile. Another language's corrupt graph is named and left out; the main language still answers. tests/corrupt_graph.py: garbage, truncated, bad page, marker, MCP and other-language cases, with controls (sound graph, empty graph, up to date). Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com> Co-Authored-By: Claude <noreply@anthropic.com>
swapnilpaliwal-sd
requested review from
JaredHLZhang,
Whua689 and
suyashpaliwal26
as code owners
September 28, 2026 21:32
Merged
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.
A malformed
graph.sqlite(full disk, copy cut short) made every verb, from the shell and through MCP, die in a Pythonsqlite3.DatabaseErrortraceback.axiomcode-pathG,axiomcode-graph) probes the graph: schema read, thenquick_checkonly when that fails or when an sqlite error escapes mid-answer.Checked on the VM:
tests/corrupt_graph.py26/26;refresh_races,graph_verb,mcp,no_exec,engine_choice,multi_language,no_symlink,freshness(45/45) all pass.