feat(FN-5407): add paired central backup support to backup command and stor

FN-5407 adds paired central backup support to the Fusion task management system, with both the core backup engine and CLI commands updated to handle central database backup pairs. Documentation was updated to reflect the new capability, and two stabilization fixes were included to handle central bac

Fusion-Task-Id: FN-5407
This commit is contained in:
Fusion (runfusion.ai)
2026-05-20 20:02:19 -07:00
committed by gsxdsm
parent 1a5aff9c44
commit 2baaad743a
10 changed files with 537 additions and 230 deletions

View File

@@ -32,6 +32,8 @@ Core tables:
Per-project task data remains in each repo’s `.fusion/fusion.db`.
Backups now include this central DB alongside project backups: each `fn backup --create` run writes a paired `fusion-central-<timestamp>(-N).db` next to `fusion-<timestamp>(-N).db` under `.fusion/backups/` in the active project. Restore operations create a central pre-restore snapshot `fusion-central-pre-restore-<timestamp>.db` before replacing `~/.fusion/fusion-central.db`.
`taskClaims` is the central cross-node lease mutex introduced by FN-4819 §2: claim acquisition/renewal/release happen in `~/.fusion/fusion-central.db`, while per-project lease fields mirror the central winner for local scheduler/runtime consumption.
Peer/mesh coordination spans core + engine, with startup ownership in CLI process entrypoints: