Skip to content

docs: treat shipped SQLite migration SQL as immutable - #33

Merged
caigee-cmd merged 1 commit into
mainfrom
docs/immutable-sqlite-migrations
Aug 29, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
docs/immutable-sqlite-migrations

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Add a hard rule in AGENTS.md: never rewrite a shipped SQLite migration; schema changes go in a new numbered file.
  • Document the checksum mechanism, the v0.2.19 failure, and the repair path in docs/DESIGN.md.
  • Point contributors and the release checklist at the same rule.

Whitespace, comments, and indent inside the raw SQL string all change SHA-256. Existing databases panic on boot with checksum mismatch, and the host updater rolls back.

Test plan

  • Read-through of AGENTS.md Do/Don't, docs/DESIGN.md SQLite migrations + Console IA order, CONTRIBUTING.md, and docs/DEVELOPMENT.md release checklist

v0.2.19 retabbed an applied migration and existing databases panic on
boot. Record the rule in AGENTS.md and DESIGN.md so whitespace-only
rewrites of shipped SQL do not ship again.
@caigee-cmd
caigee-cmd merged commit 0d2ef99 into main Aug 29, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the docs/immutable-sqlite-migrations branch September 19, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant