dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide CI runs test(quickshell): audit local resource paths
bbfb235bb9dfad1b9f899ad0bd2c3658cd7b38b2
Oliver Jan Krylow <oliver@bugabinga.net > · 17 Jun 2026
unsigned
Browse files Compare with HEAD
Changed files (3) Diff layout Auto Unified Split
docs/super/inventory/2026-06-17-quickshell-self-contained-audit.md Modified +6 / −1 text lines
13 13 `quickshell/nugu/audit.sh` checks repository state only:`quickshell/nugu/audit.sh` checks repository state only:
15 + - required named-config files are present: `shell.qml`, `Theme.qml`, `nugu.json`, `README.md`, `audit.sh`, `smoke.sh`.15 16 - QML imports are limited to Qt, Quickshell, and local `import "."`.- QML imports are limited to Qt, Quickshell, and local `import "."`.16 - - Every QML component has an early decision comment.17 + - every QML component has an early decision comment.18 + - local resource references are audited; currently only bundled `nugu.json` is allowed via `Qt.resolvedUrl`.19 + - live/repo path markers such as `../`, `~/.config`, and `~/.local` fail the audit.17 20 - `quickshell/nugu/nugu.json` exists and matches `hypr/generated/nugu.json`.- `quickshell/nugu/nugu.json` exists and matches `hypr/generated/nugu.json`.18 21 - executable code does not call retired companion app markers:- executable code does not call retired companion app markers:19 22 - `hyprlauncher` - `hyprlauncher`42 45 PASS nugu quickshell auditPASS nugu quickshell audit43 46 qml_files=29qml_files=29
47 + required_files=shell.qml,Theme.qml,nugu.json,README.md,audit.sh,smoke.sh44 48 external_commands=awk,brightnessctl,cliphist,cut,grep,head,hyprctl,hyprlock,hyprpicker,hyprshot,iwctl,loginctl,makoctl,nu,playerctl,satty,sed,sh,systemctl,upower,uptime,uwsm,wezterm,wl-copy,wpctlexternal_commands=awk,brightnessctl,cliphist,cut,grep,head,hyprctl,hyprlock,hyprpicker,hyprshot,iwctl,loginctl,makoctl,nu,playerctl,satty,sed,sh,systemctl,upower,uptime,uwsm,wezterm,wl-copy,wpctl45 49 WARN transitional external bridge still present: cliphistWARN transitional external bridge still present: cliphist46 50 WARN transitional external bridge still present: makoctlWARN transitional external bridge still present: makoctl47 51 PASS nugu quickshell scaffold smokePASS nugu quickshell scaffold smoke48 52 PASS nugu quickshell auditPASS nugu quickshell audit49 53 qml_files=29qml_files=29
54 + required_files=shell.qml,Theme.qml,nugu.json,README.md,audit.sh,smoke.sh50 55 external_commands=awk,brightnessctl,cliphist,cut,grep,head,hyprctl,hyprlock,hyprpicker,hyprshot,iwctl,loginctl,makoctl,nu,playerctl,satty,sed,sh,systemctl,upower,uptime,uwsm,wezterm,wl-copy,wpctlexternal_commands=awk,brightnessctl,cliphist,cut,grep,head,hyprctl,hyprlock,hyprpicker,hyprshot,iwctl,loginctl,makoctl,nu,playerctl,satty,sed,sh,systemctl,upower,uptime,uwsm,wezterm,wl-copy,wpctl51 56 WARN transitional external bridge still present: cliphistWARN transitional external bridge still present: cliphist52 57 WARN transitional external bridge still present: makoctlWARN transitional external bridge still present: makoctlquickshell/nugu/README.md Modified +3 / −2 text lines
26 26 NUGU_QS_SMOKE_SCREENSHOT_DIR=/tmp/nugu-qs-theme-smoke quickshell/nugu/smoke.shNUGU_QS_SMOKE_SCREENSHOT_DIR=/tmp/nugu-qs-theme-smoke quickshell/nugu/smoke.sh29 - The audit checks that QML imports stay local/Qt/Quickshell, every component has30 - an early decision comment , the bundled palette matches `hypr/generated/nugu.json`,29 + The audit checks that required named-config files are present, QML imports stay30 + local/Qt/Quickshell, every component has an early decision comment, local31 + resources are audited , the bundled palette matches `hypr/generated/nugu.json`,31 32 and retired companion launchers are not executable dependencies. It intentionallyand retired companion launchers are not executable dependencies. It intentionally32 33 warns while transitional `cliphist` and `makoctl` bridges remain; those warningswarns while transitional `cliphist` and `makoctl` bridges remain; those warnings33 34 must disappear before final retirement.must disappear before final retirement.quickshell/nugu/audit.sh Modified +21 / −0 text lines
18 18 warnings = [] warnings = [] 19 19 qml_files = sorted(config_dir.glob("*.qml" ))qml_files = sorted(config_dir.glob("*.qml" ))20 20 code_by_file = {}code_by_file = {}
21 + required_files = ("shell.qml" , "Theme.qml" , "nugu.json" , "README.md" , "audit.sh" , "smoke.sh" )23 + for name in required_files:24 + if not (config_dir / name).exists ():25 + errors.append(f"missing required self-contained config file {name}" )22 27 if not qml_files:if not qml_files:23 28 errors.append("no QML files found" ) errors.append("no QML files found" )52 57 if forbidden in code: if forbidden in code:53 58 errors.append(f"{rel}: executable dependency on retired companion marker {forbidden!r}" ) errors.append(f"{rel}: executable dependency on retired companion marker {forbidden!r}" )
63 + for marker in ("../" , "~/.config" , "~/.local" , "~/." ): 65 + errors.append(f"{rel}: non-self-contained path marker {marker!r}" )67 + for match in re.finditer(r'Qt\.resolvedUrl\("([^"]+)"\)' , code): 68 + target = match.group(1)69 + if target != "nugu.json" :70 + errors.append(f"{rel}: unresolved local resource {target!r}; add it to audit inventory if intentional" )72 + if 'Quickshell.env("HOME")' in code and rel.as_posix() != "Theme.qml" :73 + errors.append(f"{rel}: HOME path access belongs in Theme.qml unless explicitly audited" )55 75 palette = config_dir / "nugu.json" palette = config_dir / "nugu.json" 56 76 generated = repo_dir / "hypr" / "generated" / "nugu.json" generated = repo_dir / "hypr" / "generated" / "nugu.json" 57 77 if not palette.exists(): if not palette.exists(): 125 145 print("PASS nugu quickshell audit" )print("PASS nugu quickshell audit" )126 146 print(f"qml_files={len(qml_files)}" )print(f"qml_files={len(qml_files)}" )
147 + print("required_files=" + "," .join(required_files))127 148 if detected:if detected:128 149 print("external_commands=" + "," .join(command for command, _reason in detected)) print("external_commands=" + "," .join(command for command, _reason in detected))129 150 for warning in warnings:for warning in warnings: