docs(feature-flows): add database-migration-runner flow (#1160)#1277
Merged
Conversation
Sync feature-flow docs after the migration-runner safety work in a245765 (#1160 / #1183). New vertical-slice doc covering the cross-process flock (db/migration_lock.py), the atomic rename-swap rebuild (_atomic_rebuild) that closes the DROP->re-insert data-loss window, the lock-wrapped init_database() boot sequence, add_note failure naming, and the /health 503 first_pending operator surface. Index: one Recent Updates row + one System & Infrastructure row. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Announcement of the published workshop recording, sent to Discord, Slack, Telegram, GitHub Discussions, and both Twitter/X accounts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Resolve by running |
dolho
approved these changes
Jun 22, 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.
What
Syncs feature-flow documentation after the migration-runner safety work landed in
a2457654(#1160 / #1183). Docs-only change — no code touched.Adds a new vertical-slice flow doc,
docs/memory/feature-flows/database-migration-runner.md, covering:flock(db/migration_lock.py) that serialises the SQLite migration suite across uvicorn workers + the scheduler container,migrations.py:_atomic_rebuild) that closes theDROP→re-insert data-loss window,init_database()boot sequence,add_notefailure naming, and/health503first_pendingoperator surface.Grounded in the 391-line
tests/unit/test_1160_migration_atomicity.py; every symbol/line-ref verified against source. It's the end-to-end companion to Architectural Invariant #3 (already updated in the original commit).Index
Notes
Generated via
/sync-feature-flowsover the last 5 commits. The other four commits (3 dependency/CI bumps + the #722 prod-compose forwarding, whose only code change was a zero-behavior dead-import cleanup) needed no doc updates.🤖 Generated with Claude Code