Drop the extension, and give the test suite a front door
Phase 6, the last of the fresh-install spec. 159 scripts lose their .sh: 110 contracts, 47 Vicinae commands, 2 compositor contracts. A shebang and the executable bit already select the interpreter. The extension only ever added something that had to stay in sync, and the rename proved the point twice over in the space of an hour. The spec's stated risk was Vicinae's script discovery. One script was renamed and reloaded on its own before the other 46 followed; it came back as scripts:panama.capture and all 47 resolve. What the probe turned up instead is that the extension was never only a filename: Vicinae's command IDs embed it, so every ID changed. Nothing in this repository refers to them, so nothing breaks. The only trace is Vicinae's metadata.json, whose visited map had two Panama entries that are now orphaned -- two commands lost their usage ranking and will earn it back. Worth knowing before anyone renames these again on a machine that has a keybind pointing at one. Rewriting the references by exact filename missed two things it structurally could not see: a name built from a variable, settings-$page.sh, and a glob, -name '*.sh'. Both were in the contract that counts the generated commands, which promptly reported 47 expected and 0 found. The mechanical part of a rename is the part that looks finished. The three subcommands. panama doctor fronts a health check that already existed and already ran at the end of every install but could not be reached from a terminal. panama upgrade re-runs the installer from anywhere. panama test runs the suite, which had no entry point at all -- 121 files that were the main safety net in this repository and were invisible in it. Writing that runner found three tests nothing was running. calendar_agenda_bridge_test, home_assistant_bridge_test and kdeconnect_bridge_test are unittest suites without the executable bit, so no contract invoked them and the first draft of the runner skipped them silently. All three pass, and have passed unobserved for weeks. The runner collects *_test.py as well now, because a runner with a blind spot is worse than no runner for the same reason a dependency checker with one is: it reports PASS. Six worktrees pruned. Each was re-checked rather than trusted to the spec's list, and two needed it: panama-commands is not on feat/panama-commands but on feat/gnome-tweaks-parity, and fix/panama-displays-review reads [ahead 3] -- ahead of its remote, not of main, with every commit patch-equivalent to landed work. roadmap-completion stays; it has five commits that are genuinely unlanded. The branches are left alone: pruning a worktree costs nothing, deleting a branch is a decision. 121 contracts pass. Claude-Session: https://claude.ai/code/session_01NvgBuSWB5sE43yWmg21ozj
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
- Modify: `config/dot/quickshell/config/PreferenceSchema.qml`
|
||||
- Create: `config/dot/quickshell/services/WallpaperPolicy.js`
|
||||
- Create: `config/dot/quickshell/wallpaper-policy-harness.qml`
|
||||
- Create: `tests/quickshell/wallpaper-policy-contract.sh`
|
||||
- Create: `tests/quickshell/wallpaper-policy-contract`
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: mode, global path, collection, per-monitor map, connected outputs, valid candidates, and shuffle bag.
|
||||
@@ -46,7 +46,7 @@ Assert missing assignments fall back to the global path, invalid collection entr
|
||||
|
||||
- [ ] **Step 2: Run and verify RED**
|
||||
|
||||
Run: `tests/quickshell/wallpaper-policy-contract.sh`
|
||||
Run: `tests/quickshell/wallpaper-policy-contract`
|
||||
|
||||
Expected: FAIL because the policy module and harness are missing.
|
||||
|
||||
@@ -90,14 +90,14 @@ Use `group: "wallpaper"` for every key. Keep the existing `wallpaperPath` patter
|
||||
|
||||
- [ ] **Step 5: Run and verify GREEN**
|
||||
|
||||
Run: `tests/quickshell/wallpaper-policy-contract.sh`
|
||||
Run: `tests/quickshell/wallpaper-policy-contract`
|
||||
|
||||
Expected: PASS for validation, fallback maps, ordered wrap, and shuffle-without-repeat.
|
||||
|
||||
- [ ] **Step 6: Commit policy model**
|
||||
|
||||
```bash
|
||||
git add config/dot/quickshell/config/PreferenceSchema.qml config/dot/quickshell/services/WallpaperPolicy.js config/dot/quickshell/wallpaper-policy-harness.qml tests/quickshell/wallpaper-policy-contract.sh
|
||||
git add config/dot/quickshell/config/PreferenceSchema.qml config/dot/quickshell/services/WallpaperPolicy.js config/dot/quickshell/wallpaper-policy-harness.qml tests/quickshell/wallpaper-policy-contract
|
||||
git commit -m "Model wallpaper display policies"
|
||||
```
|
||||
|
||||
@@ -106,8 +106,8 @@ git commit -m "Model wallpaper display policies"
|
||||
**Files:**
|
||||
- Modify: `config/dot/quickshell/services/Wallpaper.qml`
|
||||
- Create: `config/dot/quickshell/wallpaper-service-harness.qml`
|
||||
- Create: `tests/quickshell/wallpaper-service-contract.sh`
|
||||
- Modify: `tests/quickshell/settings-pages-contract.sh`
|
||||
- Create: `tests/quickshell/wallpaper-service-contract`
|
||||
- Modify: `tests/quickshell/settings-pages-contract`
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: `WallpaperPolicy.effectiveMap(...)` and hyprpaper `listactive` output.
|
||||
@@ -127,7 +127,7 @@ Assert preferences are written only after exact readback, wrong readback leaves
|
||||
|
||||
- [ ] **Step 2: Run and verify RED**
|
||||
|
||||
Run: `tests/quickshell/wallpaper-service-contract.sh`
|
||||
Run: `tests/quickshell/wallpaper-service-contract`
|
||||
|
||||
Expected: FAIL because `Wallpaper.qml` only tracks one active path and persists after exit status.
|
||||
|
||||
@@ -157,14 +157,14 @@ Keep `set(path)` as `return root.setSingle(path)` so SettingsBackup and existing
|
||||
|
||||
- [ ] **Step 6: Run and verify GREEN**
|
||||
|
||||
Run: `tests/quickshell/wallpaper-service-contract.sh && tests/quickshell/settings-pages-contract.sh`
|
||||
Run: `tests/quickshell/wallpaper-service-contract && tests/quickshell/settings-pages-contract`
|
||||
|
||||
Expected: PASS for exact argv, readback gating, old API compatibility, and failure copy.
|
||||
|
||||
- [ ] **Step 7: Commit verified application**
|
||||
|
||||
```bash
|
||||
git add config/dot/quickshell/services/Wallpaper.qml config/dot/quickshell/wallpaper-service-harness.qml tests/quickshell/wallpaper-service-contract.sh tests/quickshell/settings-pages-contract.sh
|
||||
git add config/dot/quickshell/services/Wallpaper.qml config/dot/quickshell/wallpaper-service-harness.qml tests/quickshell/wallpaper-service-contract tests/quickshell/settings-pages-contract
|
||||
git commit -m "Verify wallpaper policy application"
|
||||
```
|
||||
|
||||
@@ -174,8 +174,8 @@ git commit -m "Verify wallpaper policy application"
|
||||
- Modify: `config/dot/quickshell/services/Wallpaper.qml`
|
||||
- Modify: `config/dot/quickshell/services/WallpaperPolicy.js`
|
||||
- Modify: `config/dot/quickshell/wallpaper-service-harness.qml`
|
||||
- Modify: `tests/quickshell/wallpaper-policy-contract.sh`
|
||||
- Modify: `tests/quickshell/wallpaper-service-contract.sh`
|
||||
- Modify: `tests/quickshell/wallpaper-policy-contract`
|
||||
- Modify: `tests/quickshell/wallpaper-service-contract`
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: validated slideshow collection, interval, shuffle flag, and `Quickshell.screens`.
|
||||
@@ -187,7 +187,7 @@ Use a harness-adjustable interval measured in milliseconds while production deri
|
||||
|
||||
- [ ] **Step 2: Run and verify RED**
|
||||
|
||||
Run: `tests/quickshell/wallpaper-policy-contract.sh && tests/quickshell/wallpaper-service-contract.sh`
|
||||
Run: `tests/quickshell/wallpaper-policy-contract && tests/quickshell/wallpaper-service-contract`
|
||||
|
||||
Expected: FAIL because no slideshow state or screen-set coalescing exists.
|
||||
|
||||
@@ -201,14 +201,14 @@ Bind a sorted screen-name signature and restart a 350 ms single-shot Timer when
|
||||
|
||||
- [ ] **Step 5: Run and verify GREEN**
|
||||
|
||||
Run: `tests/quickshell/wallpaper-policy-contract.sh && tests/quickshell/wallpaper-service-contract.sh`
|
||||
Run: `tests/quickshell/wallpaper-policy-contract && tests/quickshell/wallpaper-service-contract`
|
||||
|
||||
Expected: PASS without rapid retry or durable writes during rotation.
|
||||
|
||||
- [ ] **Step 6: Commit runtime policy**
|
||||
|
||||
```bash
|
||||
git add config/dot/quickshell/services/Wallpaper.qml config/dot/quickshell/services/WallpaperPolicy.js config/dot/quickshell/wallpaper-service-harness.qml tests/quickshell/wallpaper-policy-contract.sh tests/quickshell/wallpaper-service-contract.sh
|
||||
git add config/dot/quickshell/services/Wallpaper.qml config/dot/quickshell/services/WallpaperPolicy.js config/dot/quickshell/wallpaper-service-harness.qml tests/quickshell/wallpaper-policy-contract tests/quickshell/wallpaper-service-contract
|
||||
git commit -m "Add event-driven wallpaper rotation"
|
||||
```
|
||||
|
||||
@@ -219,8 +219,8 @@ git commit -m "Add event-driven wallpaper rotation"
|
||||
- Modify: `config/dot/quickshell/modules/settings/WallpaperPicker.qml`
|
||||
- Modify: `config/dot/quickshell/modules/settings/AppearancePage.qml`
|
||||
- Modify: `config/dot/quickshell/services/SettingsSearch.qml`
|
||||
- Create: `tests/quickshell/wallpaper-settings-contract.sh`
|
||||
- Modify: `tests/quickshell/settings-search-contract.sh`
|
||||
- Create: `tests/quickshell/wallpaper-settings-contract`
|
||||
- Modify: `tests/quickshell/settings-search-contract`
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: Wallpaper modes, connected displays, collection membership, assignments, and transaction state.
|
||||
@@ -232,7 +232,7 @@ Render Appearance in all three modes. Assert Single tile activation calls `setSi
|
||||
|
||||
- [ ] **Step 2: Run and verify RED**
|
||||
|
||||
Run: `tests/quickshell/wallpaper-settings-contract.sh && tests/quickshell/settings-search-contract.sh`
|
||||
Run: `tests/quickshell/wallpaper-settings-contract && tests/quickshell/settings-search-contract`
|
||||
|
||||
Expected: FAIL because only single-image tile activation exists.
|
||||
|
||||
@@ -250,14 +250,14 @@ Place `WallpaperControls` in the existing wallpaper card above `WallpaperPicker`
|
||||
|
||||
- [ ] **Step 6: Run and verify GREEN**
|
||||
|
||||
Run: `tests/quickshell/wallpaper-settings-contract.sh && tests/quickshell/settings-search-contract.sh && tests/quickshell/settings-ownership-contract.sh`
|
||||
Run: `tests/quickshell/wallpaper-settings-contract && tests/quickshell/settings-search-contract && tests/quickshell/settings-ownership-contract`
|
||||
|
||||
Expected: PASS with no new mirrors or QML warnings.
|
||||
|
||||
- [ ] **Step 7: Commit the wallpaper UI**
|
||||
|
||||
```bash
|
||||
git add config/dot/quickshell/modules/settings/WallpaperControls.qml config/dot/quickshell/modules/settings/WallpaperPicker.qml config/dot/quickshell/modules/settings/AppearancePage.qml config/dot/quickshell/services/SettingsSearch.qml tests/quickshell/wallpaper-settings-contract.sh tests/quickshell/settings-search-contract.sh
|
||||
git add config/dot/quickshell/modules/settings/WallpaperControls.qml config/dot/quickshell/modules/settings/WallpaperPicker.qml config/dot/quickshell/modules/settings/AppearancePage.qml config/dot/quickshell/services/SettingsSearch.qml tests/quickshell/wallpaper-settings-contract tests/quickshell/settings-search-contract
|
||||
git commit -m "Add wallpaper mode controls"
|
||||
```
|
||||
|
||||
@@ -265,8 +265,8 @@ git commit -m "Add wallpaper mode controls"
|
||||
|
||||
**Files:**
|
||||
- Modify: `config/dot/quickshell/services/SettingsBackup.qml`
|
||||
- Modify: `tests/quickshell/settings-backup-live-contract.sh`
|
||||
- Modify: `tests/quickshell/settings-commit-reset-contract.sh`
|
||||
- Modify: `tests/quickshell/settings-backup-live-contract`
|
||||
- Modify: `tests/quickshell/settings-commit-reset-contract`
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: `Wallpaper.applyCurrentPolicy(false)`.
|
||||
@@ -278,7 +278,7 @@ Restore slideshow and per-monitor fixture snapshots. Assert the restored policy
|
||||
|
||||
- [ ] **Step 2: Run and verify RED**
|
||||
|
||||
Run: `tests/quickshell/settings-backup-live-contract.sh && tests/quickshell/settings-commit-reset-contract.sh`
|
||||
Run: `tests/quickshell/settings-backup-live-contract && tests/quickshell/settings-commit-reset-contract`
|
||||
|
||||
Expected: FAIL because restore calls `Wallpaper.set(path)` only.
|
||||
|
||||
@@ -288,14 +288,14 @@ Inject `applyWallpaperPolicy: function() { return Wallpaper.applyCurrentPolicy(f
|
||||
|
||||
- [ ] **Step 4: Run and verify GREEN**
|
||||
|
||||
Run: `tests/quickshell/settings-backup-live-contract.sh && tests/quickshell/settings-commit-reset-contract.sh && tests/quickshell/wallpaper-service-contract.sh`
|
||||
Run: `tests/quickshell/settings-backup-live-contract && tests/quickshell/settings-commit-reset-contract && tests/quickshell/wallpaper-service-contract`
|
||||
|
||||
Expected: PASS for both policy modes and shipped reset.
|
||||
|
||||
- [ ] **Step 5: Commit restore integration**
|
||||
|
||||
```bash
|
||||
git add config/dot/quickshell/services/SettingsBackup.qml tests/quickshell/settings-backup-live-contract.sh tests/quickshell/settings-commit-reset-contract.sh
|
||||
git add config/dot/quickshell/services/SettingsBackup.qml tests/quickshell/settings-backup-live-contract tests/quickshell/settings-commit-reset-contract
|
||||
git commit -m "Restore complete wallpaper policies"
|
||||
```
|
||||
|
||||
@@ -304,12 +304,12 @@ git commit -m "Restore complete wallpaper policies"
|
||||
- [ ] **Step 1: Run all wallpaper contracts once**
|
||||
|
||||
```bash
|
||||
tests/quickshell/wallpaper-policy-contract.sh
|
||||
tests/quickshell/wallpaper-service-contract.sh
|
||||
tests/quickshell/wallpaper-settings-contract.sh
|
||||
tests/quickshell/settings-backup-live-contract.sh
|
||||
tests/quickshell/settings-commit-reset-contract.sh
|
||||
tests/quickshell/settings-search-contract.sh
|
||||
tests/quickshell/wallpaper-policy-contract
|
||||
tests/quickshell/wallpaper-service-contract
|
||||
tests/quickshell/wallpaper-settings-contract
|
||||
tests/quickshell/settings-backup-live-contract
|
||||
tests/quickshell/settings-commit-reset-contract
|
||||
tests/quickshell/settings-search-contract
|
||||
```
|
||||
|
||||
Expected: all PASS. The live desktop wallpaper is never changed by fixture tests.
|
||||
|
||||
Reference in New Issue
Block a user