Skip to content

macos: adopt rivet RivetUpdate, retire the hand-rolled UpdateService - #14

Merged
turinglambdaai merged 1 commit into
mainfrom
adopt/rivet-update
Oct 13, 2026
Merged

turinglambdaai merged 1 commit into
mainfrom
adopt/rivet-update

Conversation

@turinglambdaai

Copy link
Copy Markdown
Owner

Why

The macOS update client born in this repo and hardened through the issue #13 stalled-OTA battle is now upstream: rivet 0.8.1 ships it as the shared RivetUpdate Swift module (rivet#230), so the whole family stops re-implementing the same security-critical download/verify/swap flow — and re-hitting the same EOF/stuck-continuation, sheet-vetoes-terminate, and workdir-race bugs — per product.

What

  • UpdateService.swift shrinks from the 460-line hand-rolled implementation to a thin product adapter over RivetUpdateService: this file now only contributes the product facts (feed URL, signing key, key id, Taskly.app bundle name), the localized error surface, and test seams. Signed-wrapper verification (Ed25519 over exact payload bytes), the bounded delegate-driven download with progress/cancellation, size + SHA-256 enforcement (now also fail-fast on a disagreeing Content-Length), ditto unpack + bundle-version confirmation, the atomic swap with rollback, the sheet-safe quit/relaunch handoff, and the stale-workdir sweep all live in the library.
  • macos-host/Package.swift adds the RivetUpdate product dependency.
  • CI pins rivet to #v0.8.1 (the docs/ci.md install contract) in all ten install sites until the catalog's main-tracking checksum catches up.

Verified locally: raco rivet build green against local rivet main, and strings on the staged RivetHost binary confirms the RivetUpdate symbols are linked in.

Fixes the adoption half of #13's follow-up; real-machine OTA re-verification (check → download → swap → relaunch) rides the next release drill.

The 460-line hand-rolled update client (born here, hardened through the
issue #13 stalled-OTA battle) is upstreamed into rivet 0.8.1 as the
shared RivetUpdate Swift module. This file becomes a thin product
adapter: it contributes the product facts (feed URL, signing key, key
id, bundle name), the localized error surface, and test seams; signed-
manifest verification, the bounded delegate-driven download, size/SHA
enforcement, the ditto unpack + version confirmation, the atomic swap
with rollback, the sheet-safe quit/relaunch handoff, and stale workdir
sweeping all live in the library now.

CI pins rivet to the v0.8.1 tag (docs/ci.md install contract) until the
package catalog's main-tracking checksum catches up with the merge.
@turinglambdaai
turinglambdaai merged commit 4f1b115 into main Oct 13, 2026
6 checks passed
@turinglambdaai
turinglambdaai deleted the adopt/rivet-update branch October 13, 2026 04:59
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