openspec: scan-alert-hardening change — different-finder re-alert + fingerprint 24h block

This commit is contained in:
2026-08-07 17:26:18 +10:00
parent e3bcd2e6e0
commit f646af3ec6
8 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
## ADDED Requirements
### Requirement: Different-finder re-alert
Within the 10-minute alert window, an alert SHALL also be sent when the new scan carries a finder phone that differs from the phone on the last alerted scan, even if the location moved less than 250 m.
#### Scenario: Second finder at same spot
- **WHEN** a scan within the window arrives with a phone different from the last alerted scan's phone
- **THEN** a new alert is sent to the owner
#### Scenario: Same finder re-submits
- **WHEN** a scan within the window arrives with the same phone as the last alerted scan
- **THEN** no new alert is sent
### Requirement: Contact-path phone dedup
The finder-contact submission SHALL not send an owner SMS if the submitted phone matches the last alerted scan's phone within the window (the number is still stored).
#### Scenario: Same number twice in window
- **WHEN** a finder submits the same number again within the window
- **THEN** the number is stored but no duplicate SMS is sent