Repository navigation
Lifecycle dispatch interface, wired into owner provisioning - #540
Merged
Merged
Conversation
…-lifecycle-dispatch
…operations exactly
maralcbr
changed the base branch from
mac/13-hw-platform
to
quattro-upstream
September 25, 2026 10:19
This was referenced Sep 25, 2026
Keep #527's direct Apple re-key until omarchy-mac-boot ships its dispatch entrypoints: the provisioning and boot-rebuild operations stay optional on Apple until tickets 32, 35 and 36 make them required.
maralcbr
added a commit
that referenced
this pull request
Sep 25, 2026
…sion #540 landed with the provisioning operations optional on Apple, so owner setup kept #527's direct Apple re-key until omarchy-mac-boot shipped its entrypoints. This branch removes that direct path, so an optional operation would now send a Mac to the generic Limine path, which leaves the boot-partition key and rd.luks.key= behind. omarchy-mac-boot 20260925-2 ships the entrypoints, so provision-prepare, -commit and -verify are required again, as the contract planned for this ticket: a Mac with an older package stops before the owner form naming it. boot-rebuild stays optional until tickets 35 and 36 ship it.
maralcbr
added a commit
that referenced
this pull request
Sep 25, 2026
Owner provisioning and its journal test take quattro-upstream's version, which already carries #540 and ticket 32. The dispatch contract keeps both sides; boot-rebuild stays optional until ticket 36, since the update path does not call it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket 20 of the Apple Silicon convergence plan: the lifecycle dispatch interface, with owner provisioning as its one real caller.
Stacked on #514 (
mac/13-hw-platform). #517 (mac/18-generic-luks) is merged into this branch, because the caller is the journaled re-key that #517 adds. Once both land, only this ticket's commits remain in the diff.What changed
omarchy-lifecycle-dispatch <operation>runs one of a fixed set of boot lifecycle operations through the platform's boot package:provision-prepare/commit/verify,reset-prepare/verify/rollback,update-preflight/verifyandboot-rebuild.apple-siliconis registered. Its entrypoints are/usr/lib/omarchy/mac-boot/<operation>, fromomarchy-mac-boot, and every operation exceptupdate-preflightis required.provision-prepare on apple-silicon needs omarchy-mac-boot, which provides /usr/lib/omarchy/mac-boot/provision-prepare; it is not installed.bash -pwith a fixedPATH, and runs the detector underenv -i.provision-prepareruns before the owner form on each attempt.provision-commitandprovision-verifywhen the platform implements both, and the existing Limine UKI callbacks when it implements neither. Anything in between fails closed.boot-rebuildwhere the platform implements it, instead oflimine-update.docs/lifecycle-dispatch.mdis the contract. It covers the operations, registration, trust rules, caller shapes, the Converge Apple installation with shared Omarchy and package boot support #503 mapping and how Qualcomm plugs in.Mapping for #503
#503's Apple modules become the implementation through thin entrypoints. The modules stay in
/usr/lib/omarchy-mac/boot, andpackages/omarchy-mac/boot/installgains one loop that stagesentrypoints/*into/usr/lib/omarchy/mac-boot/.run_setupprovision-prepareapple_rekey_boot(droprd.luks.key=,mkinitcpio -P,omarchy-mac-boot-update), removing/boot/omarchy/luks-key,mark_encrypt_finishedprovision-commitrequire_finished_luks, plus theencrypt.statefinished checkprovision-verifystage_luks_rekey_appleandrebuild_next_boot_apple(ticket 34)reset-prepare,reset-verifyreset-rollbackomarchy-mac-boot-updateboot-rebuildomarchy-apple-silicon-boot-check(ticket 35)update-verifyThe slot steps in
rekey_luks_applefold into #517's shared journal. Whether the recovery passphrase stays Apple-only is ticket 33's decision.Testing
test/shell.d/lifecycle-dispatch-test.sh, run on the Apple, Qualcomm, generic aarch64 and x86 fixtures. It covers:BASH_ENVand exported functions (under a namespaced root)test/shell.d/luks-rekey-journal-test.shnow goes through the real dispatcher../test/allas non-root, base against branch:sleep-lock-test.sh,system-sleep-ownership-migration-test.sh) swapped places between the runs. Reruns show both are flaky on base too.Second review: round one found four issues, and all are fixed with tests:
PATHresetUNLOCK_OWNERwas trustedThe confirming round could not run in that tool until its quota resets on 2026-09-30. An independent confirming review found the fixes correct and no root-trust gaps. It flagged three weak test assertions and some doc wording, both fixed here.