mirror of
https://github.com/block/buzz.git
synced 2026-10-31 14:31:02 +00:00
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>