Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(config): remove retired model tier migrations

Steven Enamakelabdf8a7ad036
diff --git a/crates/openhuman-core/src/config/migrations/README.md b/crates/openhuman-core/src/config/migrations/README.md
index 145db95055..6681172357 100644
--- a/crates/openhuman-core/src/config/migrations/README.md
+++ b/crates/openhuman-core/src/config/migrations/README.md
@@ -27,12 +27,10 @@ Startup data-migration runner gated by `Config::schema_version`. Each migration
| [`crates/openhuman-core/src/config/migrations/repair_http_request_limits.rs`](./repair_http_request_limits.rs) | **5→6 (a).** Coerces stale-zero `[http_request]` `timeout_secs` / `max_response_size` to schema defaults (30s / 1 MB); a persisted `0` is an instant timeout / empty-body cap that serde defaults don't repair. Pure in-memory. |
| [`crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs`](./reconcile_orphaned_providers.rs) | **5→6 (b).** Resets per-workload `*_provider` strings (and a dangling `primary_cloud`) that point at a cloud provider no longer in `cloud_providers`, which the inference factory hard-errors on; mirrors the factory's exact grammar. Pure in-memory. |
| [`crates/openhuman-core/src/config/migrations/migrate_legacy_embedding_provider.rs`](./migrate_legacy_embedding_provider.rs) | **6→7.** Rewrites the removed `memory.embedding_provider = "fastembed"` to `ollama` + `bge-m3` when a local Ollama is reachable (`prefer_local`), else to the `managed` cloud default; resets model/dimensions to 1024. Pure in-memory apart from the runner's reachability probe. |
-| [`crates/openhuman-core/src/config/migrations/normalize_default_model_tier.rs`](./normalize_default_model_tier.rs) | **7→8.** Rewrites a persisted `default_model` of `reasoning-v1` or `reasoning-quick-v1` to the managed default model; every other value (custom/BYOK ids, `None`) is left untouched. Pure in-memory. |
| [`crates/openhuman-core/src/config/migrations/enable_session_shadow_reads.rs`](./enable_session_shadow_reads.rs) | **8→9.** Flips a persisted `agent.session_shadow_reads = false` to `true` once, because `Config::save` writes every field and the new serde default would never apply to upgraded workspaces. Pure in-memory. |
| [`crates/openhuman-core/src/config/migrations/retire_local_whisper_stt.rs`](./retire_local_whisper_stt.rs) | **9→10.** Rewrites `stt_provider` (top-level or legacy `local_ai`) values naming the removed local whisper engine (`"whisper"`, `"local"`) to `"cloud"`, which defers to `voice_server.stt_engine`. Pure in-memory. |
| _(inline in `mod.rs`)_ | **10→11.** `reseed_cloud_providers`: backfills the managed `openhuman` entry for workspaces that were born past the `== 1` gate with `cloud_providers = []`; reuses `unify_ai_provider_settings::seed_cloud_providers`, which is a no-op on a populated list. On save failure rolls back both the version and the seeded entries. |
| `crates/openhuman-core/src/config/migrations/mod.rs` | **11→12.** Reserializes the config; the retired background-engine block it once rewrote no longer exists, so the save drops it. |
-| [`crates/openhuman-core/src/config/migrations/retire_managed_tier_slugs.rs`](./retire_managed_tier_slugs.rs) | **12→13.** Retires the managed tier slugs (`chat-v1`, `agentic-v1`, …): every persisted one (`default_model`, orchestrator/team/delegate pins, `model_routes[].model`) becomes the managed default model (`openrouter/deepseek/deepseek-v4-flash`). Concrete ids and `hint:*` markers are untouched. Pure in-memory. |
| [`retire_cloud_provider_type.rs`](./retire_cloud_provider_type.rs) | **13→14.** Normalizes legacy provider discriminators before typed decoding, preserving explicit fields and provider-native models. The versioned runner persists the normalized config once and restores version 13 if saving fails. |
| [`crates/openhuman-core/src/config/migrations/mod_tests.rs`](./mod_tests.rs) | Tests for `run_pending` ordering, gating, rollback-on-save-failure. |
| `crates/openhuman-core/src/config/migrations/*_tests.rs` | Per-migration unit tests; every migration module mounts its own `<name>_tests.rs` via `#[cfg(test)] #[path]`. |
diff --git a/crates/openhuman-core/src/config/migrations/normalize_default_model_tier.rs b/crates/openhuman-core/src/config/migrations/normalize_default_model_tier.rs
deleted file mode 100644
index cb2657d16c..0000000000
--- a/crates/openhuman-core/src/config/migrations/normalize_default_model_tier.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-//! Generic schema-version progression for the retired 7 → 8 provider
-//! normalization step. Provider-specific normalization is registered by the
-//! host and runs independently of schema-version gates.
-
-use crate::config::Config;
-
-#[derive(Debug, Default, Clone)]
-pub struct MigrationStats {
- pub default_model_normalized: bool,
-}
-
-pub fn run(_config: &mut Config) -> anyhow::Result<MigrationStats> {
- Ok(MigrationStats::default())
-}
diff --git a/crates/openhuman-core/src/config/migrations/retire_managed_tier_slugs.rs b/crates/openhuman-core/src/config/migrations/retire_managed_tier_slugs.rs
deleted file mode 100644
index 589b2648ef..0000000000
--- a/crates/openhuman-core/src/config/migrations/retire_managed_tier_slugs.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-//! Generic schema-version progression for the retired 12 → 13 model
-//! normalization step. Provider-specific normalization runs through the host
-//! registration independently of schema-version gates.
-
-use crate::config::Config;
-
-#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
-pub struct MigrationStats {
- pub rewritten: usize,
-}
-
-pub fn run(_config: &mut Config) -> anyhow::Result<MigrationStats> {
- Ok(MigrationStats::default())
-}