Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(migrations): classify the legacy data/migrations folder in the Data Manager

Adam Eivyfd16f9383768
diff --git a/scripts/doctor.js b/scripts/doctor.js
index 2cfd08498d..0597cb2bff 100644
--- a/scripts/doctor.js
+++ b/scripts/doctor.js
@@ -357,8 +357,9 @@ async function probePgvector(root) {
}
/**
- * Reads `data/migrations.applied.json` only — `listPendingMigrations` is the
- * documented pure-read half of the migration runner and never applies anything.
+ * Reads the migration ledger only (a pre-2026-05 legacy ledger until the next
+ * run moves it) — `listPendingMigrations` is the documented pure-read half of
+ * the migration runner and never applies anything.
*/
async function probeMigrations(root) {
const pending = await listPendingMigrations({
diff --git a/server/services/dataManager.js b/server/services/dataManager.js
index 608fe814e6..df981999f3 100644
--- a/server/services/dataManager.js
+++ b/server/services/dataManager.js
@@ -157,6 +157,7 @@ export const CATEGORIES = {
// configuration are user-authored and not regenerable. Only the mail cache is
// reproducible, and it is bounded per account, so no cache-only purge is offered.
'messages': { label: 'Messages', description: 'Message accounts, drafts, triage rules and cached mail — drafts and rules are not regenerable', archivable: true, deletable: false },
+ 'migrations': { label: 'Legacy Migration Ledger', description: 'Pre-2026-05 location of the migration applied-list — the next migration run moves it to migrations.applied.json, and setup removes the empty folder', archivable: false, deletable: false },
'model-personality': { label: 'Model Personality', description: 'Model personality probe results and settings', archivable: true, deletable: false },
'model-tests': { label: 'Model Capability Tests', description: 'Throwaway agent sandboxes from the capability test suite — recreated per run, safe to purge', archivable: false, deletable: true, purgeScope: 'category' },
'music': { label: 'Music', description: 'Uploaded and generated background tracks', archivable: true, deletable: false },