Skip to content

docs(BA-5414): document Alembic migration backport strategy#10607

Open
fregataa wants to merge 5 commits intomainfrom
doc/BA-5414-alembic-migration-backport-strategy
Open

docs(BA-5414): document Alembic migration backport strategy#10607
fregataa wants to merge 5 commits intomainfrom
doc/BA-5414-alembic-migration-backport-strategy

Conversation

@fregataa
Copy link
Member

@fregataa fregataa commented Mar 27, 2026

Summary

  • Add ALEMBIC.md with the full Alembic migration backport strategy: principles, step-by-step procedure, idempotent writing rules, and real-world examples
  • Add backport section and doc index entry to CLAUDE.md
  • Add root ALEMBIC.md references to all 3 component alembic READMEs (manager, account_manager, appproxy coordinator)

🤖 Generated with Claude Code

Add ALEMBIC.md with the full backport procedure, idempotent writing
rules, and real-world examples so developers can safely backport
migrations to release branches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 27, 2026 02:04
@github-actions github-actions bot added the size:L 100~500 LoC label Mar 27, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-wide documentation for how to backport Alembic migrations across release branches while keeping main consistent, and wires that doc into existing documentation entrypoints.

Changes:

  • Add root ALEMBIC.md describing principles, procedure, and idempotent migration patterns for backports.
  • Update CLAUDE.md to include ALEMBIC.md in the Documentation Index and add a brief backport note.
  • Update component Alembic READMEs to point readers to the root ALEMBIC.md.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ALEMBIC.md New canonical backport strategy doc (procedure + idempotent patterns + examples).
CLAUDE.md Adds doc index entry and brief backport guidance pointing to ALEMBIC.md.
src/ai/backend/manager/models/alembic/README Adds pointer to root ALEMBIC.md.
src/ai/backend/account_manager/models/alembic/README Adds pointer to root ALEMBIC.md.
src/ai/backend/appproxy/coordinator/models/alembic/README Adds pointer to root ALEMBIC.md.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fregataa and others added 2 commits March 27, 2026 12:53
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Clarify Principle 3: editing down_revision is allowed only when
  inserting a backport into the main chain before merge
- Use full repo paths in Real-World Example references

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fregataa fregataa requested a review from a team March 27, 2026 04:09
fregataa and others added 2 commits March 27, 2026 13:12
Every migration file must include a "# Part of: <version>" comment
next to the revision identifiers to trace which release introduced
the schema change.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move backport strategy documentation from root ALEMBIC.md to
manager/models/alembic/ as README.md (full docs) and CLAUDE.md
(AI agent guardrails). Account manager and appproxy alembic READMEs
now link to the manager's canonical document.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants