Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
ADR 0289: Signed macOS GitHub Releases and in-app update delivery
- Status: Accepted
- Date: 2026-09-18
- Decision: D450
- Amends: ADR 0022, ADR 0145, ADR 0191, ADR 0204, D078
- Related: D120, D126, D164, D364, ADR 0197, ADR 0232, ADR 0257, ADR 0278, E2E-196a, E2E-196c, E2E-067A
Context
Tag releases already produced native arm64 and x64 DMG/ZIP artifacts with a
merged latest-mac.yml, but the CI lane skipped identity discovery and
notarization, so packaged macOS stayed on notify-and-link delivery because
unsigned artifacts cannot support a qualified in-app upgrade. Local packaging
without a certificate must stay possible (D078), and contributors must not
commit certificate material, yet a Developer ID certificate for team
DUV63RKYTW is now available for the official release lane.
Decision
- Every
vX.Y.Ztag release Developer ID-signs the app through electron-builder 26 and notarizes it withxcrun notarytool, submitting the DMG separately because electron-builder notarizes only the app, and requiringstatus: Acceptedbefore stapling and before verification of the stapled tickets. Only stapling and ticket validation retry, and only after Apple accepts the matching submission; missing secrets fail the job and unsigned artifacts are never published from a tag. - CI pins the identity as
CSC_NAME=XingYu Liu (DUV63RKYTW), the bare common name electron-builder accepts, while verification re-adds theDeveloper ID Application:prefix when comparing thecodesignauthority. - Certificate material lives only in the GitHub Actions secrets
CSC_LINK,CSC_KEY_PASSWORD,APPLE_ID,APPLE_APP_SPECIFIC_PASSWORD, andAPPLE_TEAM_ID, and none of that set is committed, echoed, or written into electron-builder config. - Local
pnpm dist:macandpnpm packstay unsigned without a configured identity,scripts/release-macos.shremains the local signed lane, andsign_macos: falseexists only for debug artifacts. - Packaged macOS uses the existing
electron-updaterlane (ZIP, mergedlatest-mac.yml,quitAndInstall) like Windows NSIS and Linux AppImage, while deb/rpm and Windows portable stay notify-and-link. - Ad-hoc
afterPack/afterSigncodesign is not reintroduced (ADR 0278), and hardened runtime stays on with the minimum entitlements: V8 JIT, unsigned executable memory, library-validation disable, and microphone input for the plugin capture permission (ADR 0257).
Consequences
- A downloaded tagged DMG opens without a Gatekeeper unidentified-developer or quarantine-damaged warning.
- Packaged macOS installs update in-app; existing unsigned installs may still need one manual signed DMG first.
- Windows and Linux packaging and updater modes are unchanged, but operators must create the five Actions secrets before the next tag.
Alternatives
- Keep unsigned tag artifacts with opt-in signing: rejected, it leaves production users on the Gatekeeper warning path.
- Hard-code the identity in
apps/desktop/package.json: rejected, local packaging without the certificate must keep working (D078).