Skip to main content

agentmux_srv/migrations/
m0008_default_bundle.rs

1// Copyright 2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3
4//! Seed Default OAuth identity bundle from ambient credentials — historical.
5//!
6//! **Retired.** This seeded a "Default" *Identity bundle* (`db_identity_bundles`)
7//! from ambient CLI credentials found on disk. `db_identity_bundles`/
8//! `db_identity_bindings` were dropped in Phase 4c of
9//! SPEC_PRESET_TO_BUNDLE_REFACTOR_2026_07_02.md — credential resolution
10//! reads only `db_agent_identity_links`/`db_accounts`
11//! (`identity/resolver/inject.rs::resolve_bindings_for_instance`), which this
12//! migration never populated. The migration id stays registered
13//! (already-applied installs must never re-run a Global migration) but
14//! the body is now a documented no-op; `identity::migration` (the module
15//! this called into) was deleted entirely.
16
17use super::{Migration, MigrationContext, MigrationError, MigrationScope};
18
19pub struct M0008DefaultBundle;
20
21impl Migration for M0008DefaultBundle {
22    fn id(&self) -> &'static str { "0008_default_bundle" }
23    // Global scope: tracked in shared store so it runs on fresh install.
24    fn scope(&self) -> MigrationScope { MigrationScope::Global }
25    fn description(&self) -> &'static str { "Retired no-op — historically seeded a Default OAuth identity bundle from ambient credentials" }
26
27    fn up(&self, _ctx: &MigrationContext) -> Result<(), MigrationError> {
28        Ok(())
29    }
30}