Repository navigation
Package Omawake 0.0.3 and Omaspeak 0.0.3 with service-removal cleanup hooks - #503
Conversation
|
Reviewed
Verification: exact-head CI passed, including all 12 removal tests. Independently downloaded all four release archives and verified their SHA-256 hashes against the recipes and GitHub asset digests; checked packaged inputs, user units, ELF dependencies, and local helper/hook checksums. No additional concrete packaging defect found. The removal tests mock systemd. Disposable-worker provisioning failed because SSH to the configured hypervisor timed out, so I could not run real package transactions, the edge/rc/stable builds, or live service cleanup. Neither runtime reproduction nor a tested fix is claimed; no changes were pushed. GPT-6 reviewed the change in Codex/T3 Code, with a separate GPT-6 xhigh reviewer in a named T3 child thread. Both reported the two findings, which were checked against the PR and systemd source; reviewer independence is not guaranteed because filesystem access is shared. Waiting on the author to address the findings and on worker availability for runtime verification. No merge performed. 🤖 Generated by GPT-6 in Codex/T3 Code. Reviewed by GPT-6 XHigh. |
|
Both findings addressed in 5d50d5c. The two 1 — Preserve whitespace-formatted executable overrides Confirmed against the parser you linked: readonly execstart_assignment='^[[:space:]]*ExecStart[[:space:]]*='
...
if ! $online && grep -qs "$execstart_assignment" "$path.d/"*.conf; thenThe gate that decides whether a unit file is the generated one ( with both the base unit and the 2 — Handle quoted configuration paths without evaluating shell syntax Also confirmed:
Coverage
All 15 pass at this head, and the eight new sub-assertions fail against Recipes
CI at 5d50d5c
|
|
Re-reviewed the update from The whitespace override and ordinary quoted-path regression tests pass on a disposable Omabot worker and fail against the old helpers. Real package removal preserves offline services with whitespace-formatted development overrides and removes generated units from configuration paths containing spaces, apostrophes, and backslashes. The GPT-6 xhigh second review found one additional decoder defect: real Verified on the disposable worker:
The separate hosted package-build workflow remains red: its GPT-6 performed the review in Codex/T3 Code, with a named GPT-6 xhigh second-review thread. Its additional finding was independently reproduced on the disposable worker, and its final review found no further issues. Filesystem access is shared, so reviewer independence is not guaranteed. No merge performed. 🤖 Generated by GPT-6 in Codex/T3 Code. Reviewed by GPT-6 XHigh. |
Bump both -bin packages to the model-support roadmap delivery: Omawake 0.0.3: - W02-W05 setup/activation/cache gates audited and closed - W07 pinned catalog URL health checks and import diagnostics - W08 Moonshine Small/Medium benchmarked; both deferred (Tiny default) - W09 Spanish wake profile (multilingual Whisper Base INT8, es) - W10 connection-owned playback pauses (HoldPause) Omaspeak 0.0.2: - S09 Kokoro 82M: Kokoro-capable packaged provider (supertonic;kokoro_tts) with espeak-ng-data.bin shipped beside the executable, 54 named voices - S10 catalog URL checks, Spanish speech profile, consistent status shape - S07 streaming deferred at the current pin Upstream: omawake v0.0.3, omaspeak v0.0.2 (aarch64 + x86_64 verified on promaxgb10-d666 CUDA and local NPU installs).
- The tarball no longer ships espeak-ng-data.bin: the Kokoro catalog row pins the data package as a model asset (downloaded/verified/installed into the model directory with the GGUF), so the core package ships no model data at all. - Both arch checksums taken from the v0.0.3-rc.1 SHA256SUMS.txt.
These were swept in by git add -A during the version bumps: packaged copies of old releases (0.0.1 tarballs and extracted trees, ~80 MB) belong to the local verification workflow, not to the package repo. The consolidated upstream PR should carry only the package changes, hooks and the removal regression suite.
The removal helper reset the failed state of every unit it stopped, but systemd accepts ResetFailed for a unit that is in the failed state alone. For any other state it answers that the unit is not loaded and exits non-zero, and because the helper runs under errexit while the hook aborts on failure, a healthy unit then aborted the whole transaction: (2/2) Stop and remove omaspeak user services before package removal Failed to reset failed state of unit omaspeak.service: Unit omaspeak.service not loaded. :: Could not clean up omaspeak for jacob; removal aborted. That is the ordinary case, as the packaged service ships disabled and an enabled one is commonly stopped rather than failed. Read the active state after the stop and ask for the reset only where it applies, so a failed unit still loses its failed state along with its rate and restart counters while a clean unit no longer fails the removal. A reset that a reachable manager still refuses stays fatal. Model the rule in the removal suite, where reset-failed now follows the active state the way a real manager does, and cover both outcomes: an inactive unit must not be asked for, a failed one must be reset between the stop and the disable, and a refused reset must still fail the hook.
Both defects from the review of e025111 sat in the shared package-remove helper, so both packages were affected the same way. An offline user's drop-in was recognised by grep '^ExecStart=', while the configuration parser throws away the whitespace around an assignment (parse_line() strips the line and both halves of the assignment). A drop-in naming a development build as ExecStart = ExecStart = /home/alice/build/omawake daemon therefore went unmatched, and the helper cleared away the generated base unit beside with its enablement links, right behind a service that was never meant to be the package's. Match an assignment the way the parser accepts one. The gate that decides whether a unit file is the generated one stays strict on purpose: only the exact generated shape is ever deleted. systemctl show-environment also prints every value the way a shell would read it, through shell_maybe_quote(SHELL_ESCAPE_POSIX), so an XDG_CONFIG_HOME with a space arrives as $'/home/alice/custom config'. The XDG_CONFIG_HOME=/* case saw neither form and kept the home's .config directory quietly, leaving the unit in the directory the manager really reads pointing at the removed binary. Decode that quoting character by character, without letting the text become shell syntax, and refuse a value that is neither a plain path nor a closed $'...' quote rather than delete what would have to be guessed at. A value that is not an absolute path stays the fallback it is in systemd itself. The fixtures now hand the helper the very text a manager prints, quoted by a mirror of that printer, and cover a quoted path with a space, an apostrophe and a backslash, an unreadable quoted value, a relative one, and each spacing of an offline override. Verified with the removal suite, 15 tests; the eight new assertions fail against the helper as it was. The other suites were not run here, as they reach for the network. pkgrel 3 -> 4 and the helper's checksum, in both recipes. Reported-by: spencerbull
systemctl C-escapes control bytes in show-environment output. Rejecting those valid values aborted package removal for every user, even when the affected account had no Oma service. Decode the printer’s named and octal escapes without evaluating shell syntax or stripping trailing newlines, and cover the real printer format in the fixtures. Co-Authored-By: GPT-6 XHigh <noreply@openai.com>
41f2134 to
020c90f
Compare
Publish succeeded → livePackages: omaspeak-bin (x86_64, PR artifact); omaspeak-bin (aarch64, PR artifact); omawake-bin (x86_64, PR artifact); omawake-bin (aarch64, PR artifact)
|
Summary
Adds two packaged local-AI applications and the removal-safety plumbing that
keeps their user services from outliving the packages. Consolidates the two
stacked review PRs (jacob-vincent-mink#3 and jacob-vincent-mink#4) into one
reviewable change.
What's in the packages
omawake-bin 0.0.3 — local wake-word daemon
Silero VAD) — runtime-neutral, no vendor runtime baked in
builds; OpenVINO GenAI for Whisper Base on Intel (sm_121a/GB10 verified)
setup model --check-urls: pinned-catalog URL health check (29 assets)model.languagereaching inference and status(Tiny stays default; opt-in
asr_variantprofiles)cannot retrigger wake actions
omaspeak-bin 0.0.3 — local-first text-to-speech
(supertonic;kokoro_tts + statically linked eSpeak-ng), 54 named voices +
legacy numeric IDs, 24 kHz output
the Kokoro row pins it (18,383,744 B, sha256-verified release asset),
installs it into the model directory, and the worker points
AUDIOCPP_ESPEAK_DATAat it — the package root carries no model datasetup model --check-urls(18 pinned assets) + offline-importdiagnostics with expected/observed values
model.languagereaches the native worker anddaemon status); consistent
backend.requestsstatus shapeBoth packages — service-removal cleanup
remove-user-services.hook: PreTransaction ALPM hook (Remove-only,AbortOnFail) invoking a package-owned helperpackage-remove: per-user cleanup that stops/disables units owned bythe package binary (
/usr/bin/{app}), removes generated user units andwants-links, runs as each owning user, covers offline users and
lingering managers, and preserves configuration, models, masks and units
pointing at development builds. Upgrades never trigger cleanup.
Verification
Arch x86_64: hooks stop/disable/remove package-owned units; units
pointing elsewhere are preserved; config/models/caches untouched
units, effective overrides, failed stop, manager failure, root
dispatch, both
package()functions) — wired into CImakepkg --printsrcinfo, shell syntax, and checksums verifiedomaspeak v0.0.2 →
v0.0.3
Notes
pkgrel=2on both: the removal hooks land in this same version, so apreviously installed 0.0.3-1 without them still needs the hooks; the
regression suite asserts the pkgrel contract
.release-verification/fixtures are intentionally not part of the PRclosed in favor of this consolidated PR