From 48ea6127399fa83b4ddf8c26d3a27176643bf28e Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 11 Apr 2026 13:50:07 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20startup=20CRDT=20stage=20sync?= =?UTF-8?q?=20=E2=80=94=20it=20fights=20the=20done=E2=86=92archived=20swee?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sync_crdt_stages_from_db migration reads pipeline_items (which has stale 5_done stages) and overwrites the CRDT back to 5_done for stories that were already swept to 6_archived. On every restart, done stories reappear and get re-swept. The migration served its purpose — CRDT stages are now correct. Remove it. Co-Authored-By: Claude Opus 4.6 (1M context) --- server/src/main.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/src/main.rs b/server/src/main.rs index f1383196..9c02d514 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -337,12 +337,6 @@ async fn main() -> Result<(), std::io::Error> { } } - // One-time fix: sync CRDT stages from pipeline_items DB for stories - // that were migrated with stale backlog stages. - if let Some(ref db_path) = pipeline_db_path { - db::sync_crdt_stages_from_db(db_path).await; - } - // (CRDT state layer is initialised above alongside the legacy pipeline.db.) // Start the CRDT sync rendezvous client if configured in project.toml.