MIGRATION_VERSION

Constant MIGRATION_VERSION 

Source
const MIGRATION_VERSION: u32 = 2;
Expand description

Bumped when the migration’s mapping logic changes in a way that must re-run on registries an older build already finalized. v2 fixes the workspace anchor: agent workspaces live globally at <home>/agents/<name>, but v1 stripped working_directory against the per-channel channels/<ch>/agents dir, so every global workspace came back “unmappable” (row_to_record returned None) and “My Agents” stayed empty in every channel. A legacy marker (no migration_version: line) reads as 0 and re-runs exactly once; exists_anywhere() keeps the re-run from duplicating already-written records.