Skip to content

docs: v1.1 signed releases and in-app updates (ADR-0007, ADR-0008, updates spec) - #19

Merged
iamAdarshh merged 5 commits into
mainfrom
docs/v1.1-signing-and-updates
Oct 25, 2026
Merged

iamAdarshh merged 5 commits into
mainfrom
docs/v1.1-signing-and-updates

Conversation

@iamAdarshh

Copy link
Copy Markdown
Owner

What & why

Every update currently costs users a manual re-grant of Accessibility: ad-hoc signed builds have a per-build designated requirement (cdhash), so macOS treats each release as a new app. This PR records the plan for v1.1: sign releases with a stable self-signed certificate, and add opt-in in-app updates with Sparkle. Docs only; implementation follows in two PRs.

Milestone / roadmap item

New milestone v1.1: Signed releases and updates, ahead of M4.

Changes

  • ADR-0007: self-signed Mullion Release certificate (RSA 3072, 10 years) as release environment secrets; disable-library-validation; CI compares the designated requirement with a committed Config/release-designated-requirement.txt. Backed by a spike on macOS 27:
    • two differently hashed builds signed with the same certificate kept the Accessibility permission across replacement;
    • the Hardened Runtime refused a self-signed Sparkle.framework ("different Team IDs") until the entitlement was added.
  • ADR-0008: Sparkle 2.10.0, pinned exactly.
    • Opt-in: nothing is fetched until the user agrees on the second launch or chooses Check for Updates…, and system profiling is off.
    • Feed: releases/latest/download/appcast.xml, so drafts and betas are never offered.
    • EdDSA key as a secret. The trust model is spelled out: Sparkle accepts EdDSA or a matching code signature.
  • docs/features/updates.md: behaviour, implementation notes, edge cases and acceptance criteria UP-1 to UP-13. Decided: prompt on the second launch; ask before installing, with optional auto-install (off); inline release notes; daily checks; no icon badge.
  • Kept in sync:
    • CLAUDE.md rule 5, CONTRIBUTING and REVIEW: the opt-in updater is the one network exception.
    • PRD: menu, General tab, NFR-3, §7, §9.
    • ARCHITECTURE §3, ADR-0002, ADR-0005 (Sparkle approved), RELEASING step 6, ROADMAP.
  • README: the 1.0.x re-grant steps now say to remove Mullion with – and grant it again; turning the switch off and on doesn't work.

Testing

  • Docs only; make lint unaffected
  • Reviewed with /review-branch; its two Important findings (the Sparkle trust model, and a CI check too weak to catch a replaced certificate) are fixed in the last commit

Checklist

  • Public APIs only (ADR-0003)
  • Docs updated (PRD / feature spec) for the planned behaviour
  • CHANGELOG.md: nothing user-visible yet; entries come with the implementation PRs

…es with Sparkle

ADR-0007: from v1.1.0, sign releases with a stable self-signed certificate
so the Accessibility permission survives updates (the ad-hoc designated
requirement is a per-build cdhash). Adds disable-library-validation, which
a spike showed is needed to load a self-signed framework.

ADR-0008: Sparkle 2.10.0 for opt-in update checks and in-place installs,
EdDSA-signed, feed on GitHub Releases. Amends CLAUDE.md rule 5 and the
dependency table; ADR-0002 links both.
- ADR-0008: Sparkle accepts an update if the EdDSA signature is valid or
  the code signature matches, so a lost EdDSA key can be rotated with the
  release certificate, and the .p12 alone can authorise an update.
- ADR-0007: commit the expected designated requirement and compare it
  exactly in CI, so a replaced certificate can't ship; publish its SHA-1.
- Spec: gentle-reminder menu item wiring, the prompt's auto-install
  checkbox, waiting for Accessibility before asking, XPC strip and
  inside-out re-signing, precise UP-7 fixtures.
- CONTRIBUTING, REVIEW, PRD: the opt-in updater is the one network
  exception; v1.0.x was ad-hoc. ADR-0005: Sparkle's bundled notices.
@iamAdarshh
iamAdarshh merged commit 6f6b724 into main Oct 25, 2026
5 checks passed
@iamAdarshh
iamAdarshh deleted the docs/v1.1-signing-and-updates branch October 25, 2026 14:04
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