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,12 @@
## ADDED Requirements
### Requirement: scans.fingerprint column
The `scans` table SHALL include a nullable `fingerprint` text column, added idempotently so existing databases migrate cleanly.
#### Scenario: Fresh database
- **WHEN** `db/schema.sql` is applied to an empty database
- **THEN** `scans.fingerprint` exists and is nullable
#### Scenario: Existing database
- **WHEN** `db/schema.sql` is re-applied to a database created before this column
- **THEN** the column is added without error, nullable