repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

test(quickshell): audit live check readonly

a9c83821e93bac801b343ade781953ae9455531c

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

+21 / −0 text lines

Diff layout

docs/super/inventory/2026-06-17-quickshell-live-readiness-check.md

Modified

+1 / −0 text lines

77Add a read-only gate for final rollout readiness. This does not link config,
88enable/start/stop services, restart DBus, simplify Hypr, or retire Ironbar/Mako.
9The static audit now rejects mutating rollout commands in this script.
1011## Command

docs/super/inventory/2026-06-17-quickshell-self-contained-audit.md

Modified

+3 / −0 text lines

1515- required named-config files are present: `shell.qml`, `Theme.qml`, `nugu.json`, `README.md`, `COMPONENTS.md`, `IPC.md`, `EXTERNALS.md`, `SERVICE.md`, `PARITY.md`, `audit.sh`, `smoke.sh`, `live-check.sh`.
1616- `README.md` links the required inventories, service/parity contracts, smoke/audit/live-check gates, named config command, and IPC command form.
17- `live-check.sh` is executable and audited read-only: it must not link, start, stop, enable, disable, restart, or launch `qs -c nugu`.
1718- every QML component is listed in `COMPONENTS.md` with purpose and rollout status.
1819- every `nugu` IPC method from `shell.qml` is listed in `IPC.md` with purpose and rollout status.
1920- component, IPC, and external inventory rows reject duplicates, malformed names, thin text, and placeholder wording.
6364detected_external_commands=25
6465docs_index=ok
6566live_check=ok
67live_check_readonly=ok
6668inventory_tables=ok
6769service_contract=ok
6870parity_matrix=ok
8587detected_external_commands=25
8688docs_index=ok
8789live_check=ok
90live_check_readonly=ok
8891inventory_tables=ok
8992service_contract=ok
9093parity_matrix=ok

quickshell/nugu/audit.sh

Modified

+17 / −0 text lines

1010python - "$config_dir" "$repo_dir" <<'PY'
1111from pathlib import Path
1212import json
13import os
1314import re
1415import sys
2627 if not (config_dir / name).exists():
2728 errors.append(f"missing required self-contained config file {name}")
30live_check_path = config_dir / "live-check.sh"
31if live_check_path.exists():
32 if not os.access(live_check_path, os.X_OK):
33 errors.append("live-check.sh must be executable")
34 live_check_code = "\n".join(line.split("#", 1)[0] for line in live_check_path.read_text().splitlines())
35 forbidden_live_check_patterns = (
36 r"\bsystemctl\s+--user\s+(start|stop|restart|try-restart|reload|enable|disable|mask|unmask|daemon-reload)\b",
37 r"\bjust\s+(link|setup|services|unlink)\b",
38 r"\bjava\s+bootstripper\.java\s+(clean|setup|link)\b",
39 r"\bqs\s+-c\s+nugu\b",
40 )
41 for pattern in forbidden_live_check_patterns:
42 if re.search(pattern, live_check_code):
43 errors.append(f"live-check.sh contains mutating rollout command matching {pattern!r}")
2945readme_path = config_dir / "README.md"
3046if readme_path.exists():
3147 readme_text = readme_path.read_text()
354370print(f"detected_external_commands={len(detected)}")
355371print("docs_index=ok")
356372print("live_check=ok")
373print("live_check_readonly=ok")
357374print("inventory_tables=ok")
358375print("service_contract=ok")
359376print("parity_matrix=ok")