Repository navigation
fix(sqlite): reject incomplete maintenance schemas - #105583
Merged
Merged
Conversation
Member
Author
|
Land-ready proof:
Known gap: destructive cross-platform snapshot/vacuum/restore stress is the next follow-up after the CLI lands; it is tracked by #94967 and is not substituted by this schema-verifier proof. |
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 13, 2026
This was referenced Oct 8, 2026
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.
Related: #94805
Related: #94967
What Problem This Solves
Fixes an issue where SQLite maintenance operations could trust a current-version global or agent database even when required tables, column clauses, constraints, indexes, triggers, virtual-table definitions, or table options had drifted. That made compaction and future snapshot/restore work capable of preserving a structurally incomplete database.
Why This Change Was Made
Maintenance now validates the full canonical schema contract before touching a database. Column declaration order and table-constraint order remain migration-safe, while temporary defaults are accepted only for the exact additive migrations OpenClaw has shipped.
User Impact
Operators get a hard failure with a concrete schema mismatch instead of compacting, snapshotting, or restoring a database whose current-version metadata hides structural drift. Existing databases produced by supported additive migrations remain accepted.
Evidence
tbx_01kxbqm8vw76mgsmeymqsbrkn9(violet-hermit), Actions run https://github.com/openclaw/openclaw/actions/runs/29202964021pnpm check:changed: passed on the seven touched files; the known current-main Plugin SDK hash drift was regenerated only inside the disposable Testbox command and restored on exit