Skip to content

Releases

Serein 0.2.0-beta — System settings and administrator execution

Choose a tag to compare

@tanjiro184 tanjiro184 released this 07 Aug 01:46

Source pre-release. No binary is attached, and that is deliberate: docs/RELEASING.md states that an ad hoc build must never be uploaded as a public release. Serein still has no Developer ID certificate, so no Developer ID-signed, Apple-notarized artifact can exist yet. Build it yourself — it takes one command.

git clone --branch v0.2.0-beta https://github.com/tanjiro184/SereinMac.git
cd SereinMac && bash scripts/build-app.sh
cp -R dist/Serein.app /Applications/

Apple Command Line Tools are enough; full Xcode is not required.

What is new

The catalogue grows from 62 to 100 modules — 88 standard, 10 sensitive, 2 critical. The sensitive and critical tiers are deliberately untouched.

30 system settings

A new Interface category covering Finder (12), the Dock (10) and screenshots (3), plus 5 Safari settings. These write macOS defaults through /usr/bin/defaults with a structured argument vector — never a shell string.

Three properties make them trustworthy:

  • The displayed state is read, not assumed. defaults read runs before a switch is drawn. When a key has never been written, the module's documented macOS default is used instead.
  • The reviewed value is the applied value. Your choice is frozen into the execution plan next to the fingerprinted executables. Changing your mind in the library after reviewing a plan does not silently change what runs.
  • Every setting is reversible. Each offers at least two values; applying the other one restores the previous behaviour.

8 new tools

A new Network category (flush DNS, measure connection quality, list DNS resolvers, list listening ports) and four System care tools (rotate system logs, update security definitions, relaunch Finder/Dock/menu bar, rebuild the icon cache).

Administrator execution

Some maintenance genuinely needs root. macOS presents its own authentication window; Serein never sees, stores or transmits the password, and leaves no privileged helper installed between runs.

This introduces a shell into the elevation path, which is stated plainly rather than buried — macOS offers only SMJobBless (needs a Developer ID certificate) or osascript. The property that matters is preserved: the argument vector stays structured until the last moment, then every element is single-quoted, so no catalogue value can escape its own argument. Verified against a deliberately hostile argument; that case is now a permanent self-check.

Administrator privilege is a permission, not a risk tier. A module that merely needs a password keeps the risk level its consequences warrant and carries a separate label. A self-check enforces it.

Full reasoning: docs/SAFETY.md.

Not included, on purpose

The BSD periodic scripts. /usr/sbin/periodic and /etc/periodic no longer ship with macOS 26 — verified on 26.6 (25G72). newsyslog -F covers the part that still exists.

Verification

  • Embedded self-check grew from 16 to 25 assertions; all seven original safety and recovery contracts still pass unchanged.
  • All 11 Swift Testing tests pass in CI, including four new ones covering settings reachability, quoting against shell injection, and the privilege-is-not-risk rule.
  • Exercised end to end on macOS 26.6 (MacBook Air M4): settings read real system state, simulation reports no change, and a real run moved com.apple.finder ShowPathbar from absent to 1.

Known limitation: an actual with administrator privileges elevation has not been exercised end to end, because it requires typing an account password. The composition, quoting and escaping around it are verified; the system prompt itself is not.

Still open

Developer ID signing and Apple notarization remain gated on an Apple Developer Program membership. Everything else in the pipeline is ready and waiting for the certificate.

Serein 0.1.0 — Source Preview

Pre-release

Choose a tag to compare

@tanjiro184 tanjiro184 released this 06 Aug 09:13
5d4f1b5

Serein 0.1.0 is the first public source preview of a native, open-source macOS maintenance utility built around exact plans rather than opaque one-click cleanup.

Important

This is a source release. It intentionally contains no public DMG or ZIP application binary. The locally produced ad hoc build is not Developer ID-signed or Apple-notarized and is therefore not attached here. GitHub provides the source-code archives for this tag.

Highlights

  • exactly 50 standard modules
  • 10 use-with-care modules that are never selected automatically
  • 2 standalone extreme-caution modules
  • native Swift and SwiftUI interface for macOS 13 or later
  • exact five-minute execution plans with visible paths, commands, sizes, and risks
  • whole-tree metadata fingerprint revalidation before mutation
  • write-ahead local Recovery manifests and restore
  • action-specific phrases, delay, acknowledgement, and device-owner authentication for irreversible actions
  • fixed executable paths and argument arrays with no generic shell
  • no account, telemetry, remote catalogue, or unattended scheduler
  • Universal 2 build and packaging path for arm64 and x86_64

Storage behavior

Moving data into Serein Recovery clears the original application location but does not free disk space. The bytes remain available for rollback. Space is reclaimed only by the separate irreversible Recovery purge.

Verification

This release points to the GitHub-verified commit 5d4f1b5.

The final main CI run passed:

  • the embedded safety and Recovery contract
  • all 9 Swift Testing cases
  • exact 50 / 10 / 2 / 62 catalogue checks
  • path, changed-target, age-gate, critical-isolation, journal, and restore checks
  • Universal 2 compilation
  • local ad hoc DMG and ZIP packaging checks
  • mounted-DMG and extracted-ZIP validation
  • portable SHA-256 verification

CI packaging proves that the source can produce a valid local Universal 2 development bundle. It does not convert that ad hoc bundle into a public notarized release.

Build locally

Requirements: macOS 13 or later, Swift 5.9 or later, and Apple Command Line Tools.

git clone https://github.com/tanjiro184/SereinMac.git
cd SereinMac
git checkout v0.1.0-source-preview

scripts/verify.sh
VERSION=0.1.0 BUILD_NUMBER=1 SIGN_IDENTITY=- UNIVERSAL=1 scripts/build-app.sh
VERSION=0.1.0 SIGN_IDENTITY=- scripts/package-dmg.sh

The local development artifacts appear in dist/. Run a simulation first and keep Recovery until affected applications have been checked.

Public binary gate

A downloadable public application binary will be published only after the exact artifact:

  1. is signed with the project owner's Developer ID Application certificate and private key;
  2. uses hardened runtime and a secure timestamp;
  3. receives Apple notary status Accepted;
  4. has valid stapled tickets for the app and DMG;
  5. passes Gatekeeper and a quarantined browser-download test;
  6. matches published SHA-256 values and provenance evidence.

Documentation

Mac and macOS are trademarks of Apple Inc. Serein is an independent project and is not affiliated with or endorsed by Apple Inc.