Files
ngit-grasp/tests
DanConwayDev b9c96e861d test(nip09): add coverage for addressable event newer than deletion request
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.
2026-06-17 09:53:18 +00:00
..