Files
truf-server/openspec/changes/cold-policy-stale-backlog/specs/discovery-keyword-pruning/spec.md
T
2026-09-30 20:30:56 +03:00

21 lines
1.4 KiB
Markdown

## MODIFIED Requirements
### Requirement: Operational and historical authority is preserved
Keyword retirement SHALL stop future discovery and SHALL permit existing unfenced pending/deferred targets attributed to retired exact queries to enter an audited, reversible cold state without deleting or rewriting historical authority.
#### Scenario: Dedicated source sentinels remain
- **WHEN** archive and gist source rotations are loaded
- **THEN** `gharchive`, `gharchive-files`, and `gists` SHALL remain as their sole configured query tokens
#### Scenario: Persisted rotation index remains valid
- **WHEN** an existing query index exceeds a shortened query list
- **THEN** normal modulo-based rotation SHALL select a valid configured query without a state-file edit
#### Scenario: Existing backlog is preserved but held
- **WHEN** a previously admitted unfenced target is attributed to a retired exact query and selected by reviewed policy
- **THEN** its queue row SHALL remain present with all attribution, retry, deduplication, scan, reservation, and coverage history preserved while its status becomes unclaimable `cold`
#### Scenario: Historical records remain unchanged
- **WHEN** a stale-query cold transition is applied
- **THEN** existing target scans, findings, credentials, keycheck results, completed queue rows, and coverage records SHALL NOT be deleted or rewritten