Skip to content

upgrade: warn that v2 is a preview before any switch - #142

Merged
RyanTheTide merged 1 commit into
v2from
sgb6/upgrade-preview
Nov 9, 2026
Merged

RyanTheTide merged 1 commit into
v2from
sgb6/upgrade-preview

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor
  • Before any run that can switch (run without --no-switch), aurora-speaker-upgrade prints: speakerguardd v2 is a PREVIEW; it does not fully match macOS yet; the legacy protection (speakersafetyd, speakerguardd 0.1) is the supported default and stays installed; to go back, sudo aurora-speaker-upgrade --revert.
  • Interactive (stdin and stderr are TTYs): asks [y/N]; anything but y/yes exits 2 with nothing done.
  • Non-interactive (the boot unit, scripts): needs --i-understand-preview; without it exits 2 ("not now") with nothing collected, stored or switched. The unit already counts 2 as an outcome, and no refusal record is written.
  • --check, status, --revert, run --no-switch: no warning, no prompt.
  • README and the unit comment carry the same text and the drop-in that opts the boot unit in.

Tests: PreviewWarning (4 new) pass. On a host without python3-cryptography the 4 GoVectors/GoArchive tests error, the same as on v2.

🤖 Generated with Claude Code

Every run that can switch the speakers now prints that speakerguardd v2 is a
preview: it does not fully match macOS yet, the legacy protection is the
supported default and stays installed, and how to revert. A run in a
terminal asks for confirmation; a non-interactive run (the boot unit,
scripts) needs --i-understand-preview and otherwise exits 2 ("not now")
with nothing collected, stored or switched. --check, status, --revert and
run --no-switch never ask.

The boot unit keeps its ExecStart, so enabling it alone switches nothing
while v2 is a preview; README.md shows the drop-in that opts in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide
RyanTheTide merged commit 5561f18 into v2 Nov 9, 2026
6 checks passed
@RyanTheTide
RyanTheTide deleted the sgb6/upgrade-preview branch November 9, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant