fix: remove startup CRDT stage sync — it fights the done→archived sweep
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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.)
|
// (CRDT state layer is initialised above alongside the legacy pipeline.db.)
|
||||||
|
|
||||||
// Start the CRDT sync rendezvous client if configured in project.toml.
|
// Start the CRDT sync rendezvous client if configured in project.toml.
|
||||||
|
|||||||
Reference in New Issue
Block a user