Archive experimental OpenSpec changes

This commit is contained in:
AI Bot
2026-04-17 19:35:25 +02:00
committed by Riyyi
parent b4b12b39b6
commit 01338cb671
39 changed files with 0 additions and 0 deletions
@@ -0,0 +1,28 @@
## ADDED Requirements
### Requirement: Validate package names exist in pacman or AUR
The system SHALL validate that all declared packages exist in pacman
repositories or AUR before attempting to sync.
#### Scenario: Empty state detection
- **WHEN** no package names are found in stdin or state files
- **THEN** print error to stderr: `empty state input`
- **AND** exit with code 1
#### Scenario: Validate package in pacman repos
- **WHEN** package exists in pacman repositories
- **THEN** validation passes
#### Scenario: Validate package in AUR
- **WHEN** package not in pacman repos but exists in AUR
- **THEN** validation passes
#### Scenario: Package not found
- **WHEN** package not in pacman repos or AUR
- **THEN** print error to stderr with package name
- **AND** exit with code 1
#### Scenario: Database freshness check
- **WHEN** pacman database last sync was more than 1 day ago
- **THEN** run pacman -Syy to refresh before validation