Files
buzz/desktop/src-tauri
Duncan 5d803541bb fix(archive): trigger prune from unconditional startup, not sync start
The prune worker's startup trigger hung off start_archive_sync, but the
renderer skips start_archive_sync while observer reconciliation is not ready
(useArchiveSync returns early), so an archive whose reconciliation never
succeeds and takes no new commits was never pruned — violating the plan's
startup + post-commit trigger contract. Move the startup trigger into
spawn_warm_init, which runs on every application startup after the init
barrier warms, and drop the now-redundant sync-start hook.

Also make the partition worklist deterministic (ORDER BY identity/relay) so a
mid-worklist failure leaves a well-defined pruned prefix, and rework the
failure regression to fail only the later partition, assert the earlier
committed with the gate unstamped, then clear the fault and prove the retry
completes the remainder and stamps success.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-08-21 15:40:41 -04:00
..