mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-06 07:28:23 +00:00
NIP-09 specifies that an a-coordinate deletion only deletes versions of the coordinate with created_at up to the deletion request's created_at. A newer version published after the deletion must be accepted and served. The existing nip09_validation suite covered a-tag deletion of an older target but had no end-to-end test for the timestamp guard protecting a newer version. Add newer_addressable_event_survives_a_tag_deletion. To keep the test focused on the NIP-09 timestamp rule (and away from the purgatory/git-promotion machinery that kind-30617 announcements require), the addressable event under test is a generic kind-30078 event that references the promoted repo by its a coordinate. Like an issue it is a Layer-2 event served immediately, but unlike an issue it is addressable, so the NIP-09 created_at rule for a-tag deletions applies. This exercises the resubmission gate's is_coordinate_deleted timestamp check end-to-end, complementing the purgatory-only unit test test_deletion_by_coordinate_respects_created_at.