mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
Superseded replaceable/addressable history is now captured by the admission hooks for normal accepted announcement/state writes, and directly by the purgatory promotion before-save hook for promoted events. This keeps capture before the replacement is persisted, so the old active event is still queryable, while avoiding a second capture from the central save path used by sync and hot-cache reprocessing. Remove the now-empty accepted-event pre-persistence hook and the purgatory SaveContext variants that only existed to route through it. Add a regression test for the sync-style admit-then-save path that crosses a timestamp boundary and asserts only one history metadata record is created.