Skip to content

docs(feature-flows): add database-migration-runner flow (#1160)#1277

Merged
dolho merged 2 commits into
devfrom
docs/feature-flows-migration-runner-1160
Jun 22, 2026
Merged

docs(feature-flows): add database-migration-runner flow (#1160)#1277
dolho merged 2 commits into
devfrom
docs/feature-flows-migration-runner-1160

Conversation

@vybe

@vybe vybe commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

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:

  • the cross-process flock (db/migration_lock.py) that serialises the SQLite migration suite across uvicorn workers + the scheduler container,
  • the atomic rename-swap rebuild (migrations.py:_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.

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-flows over 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

Eugene Vyborov and others added 2 commits June 19, 2026 14:50
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>
@github-actions

Copy link
Copy Markdown

⚠️ Nightly unit-suite check skipped — merge conflict against dev.

Resolve by running git merge dev locally and pushing the result. The next nightly run will re-test once the conflict is gone.

@dolho
dolho merged commit 907e35c into dev Jun 22, 2026
16 checks passed
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.

2 participants