repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

docs(quickshell): audit rollout runbook

712ece9c31ef20923cf3c9f0d21d05ef97703821

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

+107 / −9 text lines

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

Modified

+7 / −4 text lines

13 13 `quickshell/nugu/audit.sh` checks repository state only:
15 -- required named-config files are present: `shell.qml`, `Theme.qml`, `nugu.json`, `README.md`, `COMPONENTS.md`, `IPC.md`, `EXTERNALS.md`, `TRANSITIONS.md`, `SERVICE.md`, `PARITY.md`, `HYPR_MIGRATION.md`, `audit.sh`, `smoke.sh`, `live-check.sh`.
15 +- required named-config files are present: `shell.qml`, `Theme.qml`, `nugu.json`, `README.md`, `COMPONENTS.md`, `IPC.md`, `EXTERNALS.md`, `TRANSITIONS.md`, `SERVICE.md`, `PARITY.md`, `HYPR_MIGRATION.md`, `ROLLOUT.md`, `audit.sh`, `smoke.sh`, `live-check.sh`.
16 16 - `README.md` links the required inventories, service/parity contracts, smoke/audit/live-check gates, named config command, and IPC command form.
17 17 - `live-check.sh` is executable and audited read-only: it must not link, start, stop, enable, disable, restart, or launch `qs -c nugu`.
18 18 - `smoke.sh` is executable and audited for self-contained temp `HOME`/`XDG_CONFIG_HOME`, named config launch, launcher/clipboard/power/native-notification/OSD IPC probes, cleanup trap, and no live link/service mutation.
22 22 - every approved executable boundary is listed in `EXTERNALS.md` with status and reason, and stale unused rows fail.
23 23 - every `transitional` external command is listed in `TRANSITIONS.md` with current role and removal gate; stale transition rows fail.
24 24 - future service rollout is documented in `SERVICE.md`; `hypr/systemd/quickshell.service` must start `qs -c nugu`, and `x230.symlinks` must link both config and service.
25 +- `ROLLOUT.md` must keep approval-only cutover, rollback, DBus, old-service, and final-completion boundaries visible.
25 26 - replacement scope is documented in `PARITY.md`, including old companion retirement targets, non-thin row statuses/gates, valid QML replacement references, human approval, and the explicit “not complete / old tools remain authoritative” boundary.
26 27 - Hypr simplification is documented in `HYPR_MIGRATION.md`; rows must cover old helper markers from the current Hypr modules and point only at existing `nugu` IPC methods.
27 28 - QML imports are limited to Qt, Quickshell, and local `import "."`.
75 76 service_contract=ok
76 77 parity_matrix=ok
77 78 parity_rows=12
79 +rollout_runbook=ok
78 80 hypr_migration_rows=21
79 81 hypr_current_refs=8
80 82 hypr_migration=ok
81 83 rollout_boundary=ok
82 84 contrast_pairs=12
83 85 contrast_min=5.50
84 -required_files=shell.qml,Theme.qml,nugu.json,README.md,COMPONENTS.md,IPC.md,EXTERNALS.md,TRANSITIONS.md,SERVICE.md,PARITY.md,HYPR_MIGRATION.md,audit.sh,smoke.sh,live-check.sh
86 +required_files=shell.qml,Theme.qml,nugu.json,README.md,COMPONENTS.md,IPC.md,EXTERNALS.md,TRANSITIONS.md,SERVICE.md,PARITY.md,HYPR_MIGRATION.md,ROLLOUT.md,audit.sh,smoke.sh,live-check.sh
85 87 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,wpctl
86 88 WARN transitional external bridge still present: cliphist
87 89 WARN transitional external bridge still present: makoctl
104 106 service_contract=ok
105 107 parity_matrix=ok
106 108 parity_rows=12
109 +rollout_runbook=ok
107 110 hypr_migration_rows=21
108 111 hypr_current_refs=8
109 112 hypr_migration=ok
110 113 rollout_boundary=ok
111 114 contrast_pairs=12
112 115 contrast_min=5.50
113 -required_files=shell.qml,Theme.qml,nugu.json,README.md,COMPONENTS.md,IPC.md,EXTERNALS.md,TRANSITIONS.md,SERVICE.md,PARITY.md,HYPR_MIGRATION.md,audit.sh,smoke.sh,live-check.sh
116 +required_files=shell.qml,Theme.qml,nugu.json,README.md,COMPONENTS.md,IPC.md,EXTERNALS.md,TRANSITIONS.md,SERVICE.md,PARITY.md,HYPR_MIGRATION.md,ROLLOUT.md,audit.sh,smoke.sh,live-check.sh
114 117 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,wpctl
115 118 WARN transitional external bridge still present: cliphist
116 119 WARN transitional external bridge still present: makoctl
118 121 --- lingering qs ---
121 -The smoke runner now executes the audit before launching `qs -c nugu` with temporary `HOME` and `XDG_CONFIG_HOME`. It also opens/closes launcher and clipboard surfaces, verifies power confirmations stay dry-run, toggles the native notification loader only on the private smoke bus, and probes non-destructive OSD IPC.
124 +The smoke runner now executes the audit before launching `qs -c nugu` with temporary `HOME` and `XDG_CONFIG_HOME`. It also opens/closes launcher and clipboard surfaces, verifies power confirmations stay dry-run, toggles the native notification loader only on the private smoke bus, and probes non-destructive OSD IPC. The rollout runbook is audited as documentation only; it does not authorize live mutation.
123 126 ## Boundary

quickshell/nugu/README.md

Modified

+2 / −1 text lines

32 32 `EXTERNALS.md` inventories every approved executable boundary. `TRANSITIONS.md`
33 33 inventories temporary bridge commands and removal gates. `SERVICE.md`
34 34 documents the future user-service rollout contract without activating it.
35 +`ROLLOUT.md` documents the approval-only cutover and rollback sequence.
35 36 `PARITY.md` maps current companion apps/tools to their Quickshell replacements
36 37 and retirement gates. `HYPR_MIGRATION.md` maps current Hypr binds/helpers to
37 -future Quickshell IPC targets. `live-check.sh` reports final rollout blockers, including old Hypr companion refs, without mutating live services or links. The audit checks that required named-config files are present, every QML component and IPC method
38 +future Quickshell IPC targets. `live-check.sh` reports final rollout blockers, including old Hypr companion refs, without mutating live services or links. The audit checks that required named-config files are present, the rollout runbook keeps approval/rollback boundaries visible, every QML component and IPC method
38 39 are documented with non-thin inventory rows, QML imports stay local/Qt/Quickshell, every component has an
39 40 early decision/why comment, QML has no unresolved TODO/stub comments, local resources
40 41 are audited, the bundled palette matches

quickshell/nugu/ROLLOUT.md

Added
new file mode 100644

+65 / −0 text lines

1 +# Nugu Quickshell live rollout and rollback runbook
3 +This is a future live-activation runbook, not permission to execute it. Ironbar,
4 +Mako, old Hypr helper commands, and current Hypr binds remain authoritative until
5 +parity gates pass and human approval is explicit.
7 +## Required preflight
9 +Run these read-only gates first:
11 +```sh
12 +quickshell/nugu/audit.sh
13 +quickshell/nugu/smoke.sh
14 +quickshell/nugu/live-check.sh
15 +quickshell/nugu/live-check.sh --strict
16 +```
18 +`live-check.sh --strict` must pass before normal rollout. If any blocker is
19 +intentionally retained, record the explicit approval and the retained blocker in
20 +the verification note before continuing.
22 +## Approval boundary
24 +Do not run any live mutation without explicit approval in the current session:
26 +- no `just link` or dorkfiles relink;
27 +- no `systemctl --user start|stop|restart|enable|disable` for companion services;
28 +- no DBus restart;
29 +- no Hypr bind simplification;
30 +- no Ironbar or Mako retirement.
32 +## Cutover order after approval
34 +1. Recover user DBus first if `live-check.sh` reports `user_dbus_busctl_failed`.
35 +2. Link `quickshell/nugu` and `hypr/systemd/quickshell.service` through the
36 + tracked dorkfiles manifest.
37 +3. Reload the user unit view.
38 +4. Start `quickshell.service` while Ironbar and Mako are still live.
39 +5. Verify `qs ipc -c nugu call nugu scaffoldState`, screenshots, and resource
40 + use.
41 +6. Stop old services only after Quickshell surfaces are visible and recoverable.
42 +7. Re-run `live-check.sh --strict` and record the output.
43 +8. Simplify Hypr binds only after the Quickshell service survives restart and the
44 + replacement IPC actions pass live key-event tests.
46 +## Rollback order
48 +If Quickshell fails, reverse the cutover before changing Hypr binds:
50 +1. Stop `quickshell.service`.
51 +2. Start `ironbar.service`, `ironbar-workspaces.service`, and `mako.service`.
52 +3. Confirm no `qs` process remains.
53 +4. Confirm `hyprctl configerrors` is empty.
54 +5. Keep `HYPR_MIGRATION.md` unapplied and leave old Hypr helpers authoritative.
56 +## Completion boundary
58 +A successful rollout is not final completion. Final completion still requires:
60 +- native notification parity replacing Mako;
61 +- removal or explicit retention approval for `cliphist` and `makoctl` bridges;
62 +- Hypr config simplified and old companion refs absent;
63 +- Ironbar/Mako obsolete with rollback proof;
64 +- screenshots, performance checks, and human approval for same style or better
65 + looks.

quickshell/nugu/SERVICE.md

Modified

+4 / −2 text lines

29 29 ## Rollout boundary
31 31 Do not run `just link`, enable, start, stop, or restart this service without
32 -explicit approval. Static checks may verify this contract; live activation waits
33 -until Quickshell parity, rollback, and visual approval are complete.
32 +explicit approval. `ROLLOUT.md` keeps the future cutover and rollback sequence
33 +separate from this unit contract. Static checks may verify both documents; live
34 +activation waits until Quickshell parity, rollback, and visual approval are
35 +complete.

quickshell/nugu/audit.sh

Modified

+29 / −2 text lines

21 21 qml_files = sorted(config_dir.glob("*.qml"))
22 22 code_by_file = {}
23 23 decision_comment_files = set()
24 -required_files = ("shell.qml", "Theme.qml", "nugu.json", "README.md", "COMPONENTS.md", "IPC.md", "EXTERNALS.md", "TRANSITIONS.md", "SERVICE.md", "PARITY.md", "HYPR_MIGRATION.md", "audit.sh", "smoke.sh", "live-check.sh")
24 +required_files = ("shell.qml", "Theme.qml", "nugu.json", "README.md", "COMPONENTS.md", "IPC.md", "EXTERNALS.md", "TRANSITIONS.md", "SERVICE.md", "PARITY.md", "HYPR_MIGRATION.md", "ROLLOUT.md", "audit.sh", "smoke.sh", "live-check.sh")
26 26 for name in required_files:
27 27 if not (config_dir / name).exists():
81 81 readme_path = config_dir / "README.md"
82 82 if readme_path.exists():
83 83 readme_text = readme_path.read_text()
84 - for marker in ("COMPONENTS.md", "IPC.md", "EXTERNALS.md", "TRANSITIONS.md", "SERVICE.md", "PARITY.md", "HYPR_MIGRATION.md", "audit.sh", "smoke.sh", "live-check.sh", "qs -c nugu", "qs ipc -c nugu"):
84 + for marker in ("COMPONENTS.md", "IPC.md", "EXTERNALS.md", "TRANSITIONS.md", "SERVICE.md", "PARITY.md", "HYPR_MIGRATION.md", "ROLLOUT.md", "audit.sh", "smoke.sh", "live-check.sh", "qs -c nugu", "qs ipc -c nugu"):
85 85 if marker not in readme_text:
86 86 errors.append(f"README.md missing self-contained entry marker {marker!r}")
87 87 else:
340 340 errors.append("missing PARITY.md")
342 +rollout_doc = config_dir / "ROLLOUT.md"
343 +if rollout_doc.exists():
344 + rollout_text = rollout_doc.read_text().lower()
345 + required_rollout_markers = (
346 + "not permission to execute",
347 + "explicit approval",
348 + "quickshell/nugu/audit.sh",
349 + "quickshell/nugu/smoke.sh",
350 + "quickshell/nugu/live-check.sh --strict",
351 + "user_dbus_busctl_failed",
352 + "quickshell.service",
353 + "ironbar.service",
354 + "ironbar-workspaces.service",
355 + "mako.service",
356 + "hypr_migration.md",
357 + "hyprctl configerrors",
358 + "no `qs` process remains",
359 + "human approval",
360 + "old companion refs absent",
362 + for marker in required_rollout_markers:
363 + if marker not in rollout_text:
364 + errors.append(f"ROLLOUT.md missing rollout boundary marker {marker!r}")
365 +else:
366 + errors.append("missing ROLLOUT.md")
342 368 hypr_migration_doc = config_dir / "HYPR_MIGRATION.md"
343 369 hypr_migration_rows = []
344 370 hypr_current_refs = []
512 538 print("service_contract=ok")
513 539 print("parity_matrix=ok")
514 540 print(f"parity_rows={len(parity_rows)}")
541 +print("rollout_runbook=ok")
515 542 print(f"hypr_migration_rows={len(hypr_migration_rows)}")
516 543 print(f"hypr_current_refs={len(hypr_current_refs)}")
517 544 print("hypr_migration=ok")