Uh oh!
There was an error while loading. Please reload this page.
feat(server): bundle migrations in wheel and add agent-control-migrate - #209
Merged
abhinav-galileo merged 4 commits intoMay 5, 2026
Merged
Conversation
Ships server/alembic/ and alembic.ini inside the installed package via hatch force-include, and exposes a small console script that runs 'alembic upgrade head' against the bundled config. Lets non-Docker consumers run migrations from a wheel install without vendoring.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Adds success-path coverage for upgrade/downgrade/current/history/heads via monkeypatch-and-assert against alembic.command, plus a build-time guard that the source paths hatch force-include reads from still exist in-tree (catches accidental wheel regressions).
Drops the implicit '-1' default for 'agent-control-migrate downgrade'. Downgrade is destructive; an operational CLI should not roll back the schema on a typo or incomplete command. Users must now pass an explicit revision (e.g. 'downgrade -1' or 'downgrade <rev>').
abhinav-galileo
marked this pull request as ready for review
May 4, 2026 12:34
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
namrataghadi-galileo
approved these changes
May 5, 2026
Uh oh!
There was an error while loading. Please reload this page.
galileo-automation pushed a commit
that referenced
this pull request
May 28, 2026
## [2.6.0](ts-sdk-v2.5.0...ts-sdk-v2.6.0) (2026-05-28) ### Features * **evaluators:** add new lluna client ([#213](#213)) ([f65beb9](f65beb9)) * **sdk:** add otel support ([#177](#177)) ([9530368](9530368)) * **sdk:** add runtime token auth ([#215](#215)) ([6cc0f38](6cc0f38)) * **server:** add control clone-and-bind endpoint ([#229](#229)) ([1728bf9](1728bf9)) * **server:** add runtime auth and namespace scoping ([#214](#214)) ([56e44fe](56e44fe)) * **server:** allow host-owned logging setup ([#227](#227)) ([c0fd159](c0fd159)) * **server:** bundle migrations in wheel and add agent-control-migrate ([#209](#209)) ([8c5c35e](8c5c35e)) * **server:** migrate controls routes to auth framework ([#212](#212)) ([764bd4b](764bd4b)) ### Bug Fixes * **examples:** declare local SDK workspace deps ([#222](#222)) ([d22aa1d](d22aa1d)) * **sdk:** Get trace context from provider ([#211](#211)) ([1efe30f](1efe30f)) * **sdk-ts:** normalize generated client ([#231](#231)) ([1c097d2](1c097d2)) * **server:** make observability migration retry-safe ([#226](#226)) ([b9dd00d](b9dd00d)) * **server:** prevent migration lock transactions ([#224](#224)) ([e65a2f4](e65a2f4)) * **server:** scope auth upstream CA to HTTP provider ([#232](#232)) ([7a0ce21](7a0ce21)) * **ui:** fix editing of controls in the UI ([#218](#218)) ([981e33d](981e33d)), closes [#Risk](https://github.com/agentcontrol/agent-control/issues/Risk)
galileo-automation
commented
May 28, 2026
Collaborator
🎉 This PR is included in version 2.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 freeto 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.
Summary
Ship Alembic migration scripts and
alembic.iniinside the installed wheel via hatchforce-include, and expose a smallagent-control-migrateconsole script that runsalembic upgrade headagainst the bundled config.Lets non-Docker consumers (e.g. wheel-based deployments) run migrations from a vanilla install without vendoring migration files.
Scope
agent-control-migrateconsole script (subcommands:upgrade,downgrade,current,history,heads).agent_control_server/_alembic/andagent_control_server/_alembic.ini(private, underscore-prefixed).alembic upgrade headfromserver/still works.Risk and Rollout
Testing
server/unit_tests/test_migrate.py).agent_control_server/_alembic/versions/*.pyandagent_control_server/_alembic.ini.ruff check(server and root configs).agent-control-migrateagainst a real database.Checklist